@uipath/apollo-react 4.39.5 → 4.40.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/dist/material/components/ap-rich-text-editor/ApRichTextEditor.cjs +297 -0
- package/dist/material/components/ap-rich-text-editor/ApRichTextEditor.css +535 -0
- package/dist/material/components/ap-rich-text-editor/ApRichTextEditor.d.ts +5 -0
- package/dist/material/components/ap-rich-text-editor/ApRichTextEditor.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/ApRichTextEditor.js +250 -0
- package/dist/material/components/ap-rich-text-editor/ApRichTextEditor.types.cjs +18 -0
- package/dist/material/components/ap-rich-text-editor/ApRichTextEditor.types.d.ts +18 -0
- package/dist/material/components/ap-rich-text-editor/ApRichTextEditor.types.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/ApRichTextEditor.types.js +0 -0
- package/dist/material/components/ap-rich-text-editor/index.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/index.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/index.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/index.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/de.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/de.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/de.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/de.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/en.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/en.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/en.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/en.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/es-MX.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/es-MX.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/es-MX.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/es-MX.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/es.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/es.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/es.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/es.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/fr.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/fr.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/fr.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/fr.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/ja.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/ja.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/ja.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/ja.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/ko.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/ko.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/ko.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/ko.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/pt-BR.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/pt-BR.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/pt-BR.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/pt-BR.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/pt.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/pt.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/pt.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/pt.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/ru.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/ru.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/ru.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/ru.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/tr.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/tr.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/tr.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/tr.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/zh-CN.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/zh-CN.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/zh-CN.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/zh-CN.js +2 -0
- package/dist/material/components/ap-rich-text-editor/locales/zh-TW.cjs +36 -0
- package/dist/material/components/ap-rich-text-editor/locales/zh-TW.d.ts +3 -0
- package/dist/material/components/ap-rich-text-editor/locales/zh-TW.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/locales/zh-TW.js +2 -0
- package/dist/material/components/ap-rich-text-editor/plugins/AutoLinkPlugin.cjs +64 -0
- package/dist/material/components/ap-rich-text-editor/plugins/AutoLinkPlugin.d.ts +2 -0
- package/dist/material/components/ap-rich-text-editor/plugins/AutoLinkPlugin.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/plugins/AutoLinkPlugin.js +30 -0
- package/dist/material/components/ap-rich-text-editor/plugins/CodeHighlightPlugin.cjs +45 -0
- package/dist/material/components/ap-rich-text-editor/plugins/CodeHighlightPlugin.d.ts +2 -0
- package/dist/material/components/ap-rich-text-editor/plugins/CodeHighlightPlugin.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/plugins/CodeHighlightPlugin.js +11 -0
- package/dist/material/components/ap-rich-text-editor/plugins/MarkdownTransformers.cjs +187 -0
- package/dist/material/components/ap-rich-text-editor/plugins/MarkdownTransformers.d.ts +2 -0
- package/dist/material/components/ap-rich-text-editor/plugins/MarkdownTransformers.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/plugins/MarkdownTransformers.js +153 -0
- package/dist/material/components/ap-rich-text-editor/plugins/ToolbarPlugin.cjs +306 -0
- package/dist/material/components/ap-rich-text-editor/plugins/ToolbarPlugin.d.ts +4 -0
- package/dist/material/components/ap-rich-text-editor/plugins/ToolbarPlugin.d.ts.map +1 -0
- package/dist/material/components/ap-rich-text-editor/plugins/ToolbarPlugin.js +272 -0
- package/dist/material/components/index.cjs +23 -16
- package/dist/material/components/index.d.ts +1 -0
- package/dist/material/components/index.d.ts.map +1 -1
- package/dist/material/components/index.js +1 -0
- package/package.json +12 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { $isLinkNode, TOGGLE_LINK_COMMAND } from "@lexical/link";
|
|
3
|
+
import { $isListNode, INSERT_ORDERED_LIST_COMMAND, INSERT_UNORDERED_LIST_COMMAND, ListNode, REMOVE_LIST_COMMAND } from "@lexical/list";
|
|
4
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
5
|
+
import { $isHeadingNode } from "@lexical/rich-text";
|
|
6
|
+
import { $isAtNodeEnd } from "@lexical/selection";
|
|
7
|
+
import { $getNearestNodeOfType, mergeRegister } from "@lexical/utils";
|
|
8
|
+
import { Code, FormatBold, FormatItalic, FormatListBulleted, FormatListNumbered, FormatStrikethrough, FormatUnderlined, Link } from "@mui/icons-material";
|
|
9
|
+
import { Tooltip } from "@mui/material";
|
|
10
|
+
import { $getSelection, $isRangeSelection, FORMAT_TEXT_COMMAND, SELECTION_CHANGE_COMMAND } from "lexical";
|
|
11
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
12
|
+
import { useSafeLingui } from "../../../../i18n/useSafeLingui.js";
|
|
13
|
+
const LowPriority = 1;
|
|
14
|
+
function Divider() {
|
|
15
|
+
return /*#__PURE__*/ jsx("div", {
|
|
16
|
+
className: "divider"
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function getSelectedNode(selection) {
|
|
20
|
+
const anchor = selection.anchor;
|
|
21
|
+
const focus = selection.focus;
|
|
22
|
+
const anchorNode = selection.anchor.getNode();
|
|
23
|
+
const focusNode = selection.focus.getNode();
|
|
24
|
+
if (anchorNode === focusNode) return anchorNode;
|
|
25
|
+
const isBackward = selection.isBackward();
|
|
26
|
+
if (isBackward) return $isAtNodeEnd(focus) ? anchorNode : focusNode;
|
|
27
|
+
return $isAtNodeEnd(anchor) ? focusNode : anchorNode;
|
|
28
|
+
}
|
|
29
|
+
function ToolbarPlugin({ disabled = false }) {
|
|
30
|
+
const [editor] = useLexicalComposerContext();
|
|
31
|
+
const toolbarRef = useRef(null);
|
|
32
|
+
const { _ } = useSafeLingui();
|
|
33
|
+
const [isBold, setIsBold] = useState(false);
|
|
34
|
+
const [isItalic, setIsItalic] = useState(false);
|
|
35
|
+
const [isUnderline, setIsUnderline] = useState(false);
|
|
36
|
+
const [isStrikethrough, setIsStrikethrough] = useState(false);
|
|
37
|
+
const [blockType, setBlockType] = useState('paragraph');
|
|
38
|
+
const [isLink, setIsLink] = useState(false);
|
|
39
|
+
const [isCode, setIsCode] = useState(false);
|
|
40
|
+
const $updateToolbar = useCallback(()=>{
|
|
41
|
+
const selection = $getSelection();
|
|
42
|
+
if ($isRangeSelection(selection)) {
|
|
43
|
+
const anchorNode = selection.anchor.getNode();
|
|
44
|
+
const element = 'root' === anchorNode.getKey() ? anchorNode : anchorNode.getTopLevelElementOrThrow();
|
|
45
|
+
const elementKey = element.getKey();
|
|
46
|
+
const elementDOM = editor.getElementByKey(elementKey);
|
|
47
|
+
if (null !== elementDOM) if ($isListNode(element)) {
|
|
48
|
+
const parentList = $getNearestNodeOfType(anchorNode, ListNode);
|
|
49
|
+
const type = parentList ? parentList.getTag() : element.getTag();
|
|
50
|
+
setBlockType(type);
|
|
51
|
+
} else {
|
|
52
|
+
const type = $isHeadingNode(element) ? element.getTag() : element.getType();
|
|
53
|
+
setBlockType(type);
|
|
54
|
+
}
|
|
55
|
+
setIsBold(selection.hasFormat('bold'));
|
|
56
|
+
setIsItalic(selection.hasFormat('italic'));
|
|
57
|
+
setIsUnderline(selection.hasFormat('underline'));
|
|
58
|
+
setIsStrikethrough(selection.hasFormat('strikethrough'));
|
|
59
|
+
setIsCode(selection.hasFormat('code'));
|
|
60
|
+
const node = getSelectedNode(selection);
|
|
61
|
+
const parent = node.getParent();
|
|
62
|
+
$isLinkNode(parent) || $isLinkNode(node) ? setIsLink(true) : setIsLink(false);
|
|
63
|
+
}
|
|
64
|
+
}, [
|
|
65
|
+
editor
|
|
66
|
+
]);
|
|
67
|
+
useEffect(()=>mergeRegister(editor.registerUpdateListener(({ editorState })=>{
|
|
68
|
+
editorState.read(()=>{
|
|
69
|
+
$updateToolbar();
|
|
70
|
+
});
|
|
71
|
+
}), editor.registerCommand(SELECTION_CHANGE_COMMAND, ()=>{
|
|
72
|
+
$updateToolbar();
|
|
73
|
+
return false;
|
|
74
|
+
}, LowPriority)), [
|
|
75
|
+
editor,
|
|
76
|
+
$updateToolbar
|
|
77
|
+
]);
|
|
78
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
79
|
+
className: `toolbar${disabled ? ' disabled' : ''}`,
|
|
80
|
+
ref: toolbarRef,
|
|
81
|
+
role: "toolbar",
|
|
82
|
+
"aria-orientation": "horizontal",
|
|
83
|
+
"aria-disabled": disabled,
|
|
84
|
+
children: [
|
|
85
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
86
|
+
title: _({
|
|
87
|
+
id: 'rich-text-editor.bold'
|
|
88
|
+
}),
|
|
89
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
90
|
+
type: "button",
|
|
91
|
+
onClick: ()=>{
|
|
92
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'bold');
|
|
93
|
+
},
|
|
94
|
+
disabled: disabled,
|
|
95
|
+
className: 'toolbar-item spaced ' + (isBold ? 'active' : ''),
|
|
96
|
+
"aria-pressed": isBold,
|
|
97
|
+
"aria-label": _({
|
|
98
|
+
id: 'rich-text-editor.format-bold'
|
|
99
|
+
}),
|
|
100
|
+
children: /*#__PURE__*/ jsx(FormatBold, {
|
|
101
|
+
sx: {
|
|
102
|
+
fontSize: '24px'
|
|
103
|
+
}
|
|
104
|
+
})
|
|
105
|
+
})
|
|
106
|
+
}),
|
|
107
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
108
|
+
title: _({
|
|
109
|
+
id: 'rich-text-editor.italic'
|
|
110
|
+
}),
|
|
111
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
112
|
+
type: "button",
|
|
113
|
+
onClick: ()=>{
|
|
114
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'italic');
|
|
115
|
+
},
|
|
116
|
+
className: 'toolbar-item spaced ' + (isItalic ? 'active' : ''),
|
|
117
|
+
"aria-pressed": isItalic,
|
|
118
|
+
disabled: disabled,
|
|
119
|
+
"aria-label": _({
|
|
120
|
+
id: 'rich-text-editor.format-italic'
|
|
121
|
+
}),
|
|
122
|
+
children: /*#__PURE__*/ jsx(FormatItalic, {
|
|
123
|
+
sx: {
|
|
124
|
+
fontSize: '24px'
|
|
125
|
+
}
|
|
126
|
+
})
|
|
127
|
+
})
|
|
128
|
+
}),
|
|
129
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
130
|
+
title: _({
|
|
131
|
+
id: 'rich-text-editor.underline'
|
|
132
|
+
}),
|
|
133
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
134
|
+
type: "button",
|
|
135
|
+
onClick: ()=>{
|
|
136
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'underline');
|
|
137
|
+
},
|
|
138
|
+
className: 'toolbar-item spaced ' + (isUnderline ? 'active' : ''),
|
|
139
|
+
"aria-pressed": isUnderline,
|
|
140
|
+
disabled: disabled,
|
|
141
|
+
"aria-label": _({
|
|
142
|
+
id: 'rich-text-editor.format-underline'
|
|
143
|
+
}),
|
|
144
|
+
children: /*#__PURE__*/ jsx(FormatUnderlined, {
|
|
145
|
+
sx: {
|
|
146
|
+
fontSize: '24px'
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
})
|
|
150
|
+
}),
|
|
151
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
152
|
+
title: _({
|
|
153
|
+
id: 'rich-text-editor.strikethrough'
|
|
154
|
+
}),
|
|
155
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
156
|
+
type: "button",
|
|
157
|
+
onClick: ()=>{
|
|
158
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'strikethrough');
|
|
159
|
+
},
|
|
160
|
+
className: 'toolbar-item spaced ' + (isStrikethrough ? 'active' : ''),
|
|
161
|
+
"aria-pressed": isStrikethrough,
|
|
162
|
+
disabled: disabled,
|
|
163
|
+
"aria-label": _({
|
|
164
|
+
id: 'rich-text-editor.format-strikethrough'
|
|
165
|
+
}),
|
|
166
|
+
children: /*#__PURE__*/ jsx(FormatStrikethrough, {
|
|
167
|
+
sx: {
|
|
168
|
+
fontSize: '24px'
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
})
|
|
172
|
+
}),
|
|
173
|
+
/*#__PURE__*/ jsx(Divider, {}),
|
|
174
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
175
|
+
title: _({
|
|
176
|
+
id: 'rich-text-editor.unordered-list'
|
|
177
|
+
}),
|
|
178
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
179
|
+
type: "button",
|
|
180
|
+
onClick: ()=>{
|
|
181
|
+
if ('ul' !== blockType) editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, void 0);
|
|
182
|
+
else editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0);
|
|
183
|
+
},
|
|
184
|
+
className: 'toolbar-item spaced ' + ('ul' === blockType ? 'active' : ''),
|
|
185
|
+
disabled: disabled,
|
|
186
|
+
"aria-pressed": 'ul' === blockType,
|
|
187
|
+
"aria-label": _({
|
|
188
|
+
id: 'rich-text-editor.format-unordered-list'
|
|
189
|
+
}),
|
|
190
|
+
children: /*#__PURE__*/ jsx(FormatListBulleted, {
|
|
191
|
+
sx: {
|
|
192
|
+
fontSize: '24px'
|
|
193
|
+
}
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
}),
|
|
197
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
198
|
+
title: _({
|
|
199
|
+
id: 'rich-text-editor.ordered-list'
|
|
200
|
+
}),
|
|
201
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
202
|
+
type: "button",
|
|
203
|
+
onClick: ()=>{
|
|
204
|
+
if ('ol' !== blockType) editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, void 0);
|
|
205
|
+
else editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0);
|
|
206
|
+
},
|
|
207
|
+
className: 'toolbar-item spaced ' + ('ol' === blockType ? 'active' : ''),
|
|
208
|
+
disabled: disabled,
|
|
209
|
+
"aria-pressed": 'ol' === blockType,
|
|
210
|
+
"aria-label": _({
|
|
211
|
+
id: 'rich-text-editor.format-ordered-list'
|
|
212
|
+
}),
|
|
213
|
+
children: /*#__PURE__*/ jsx(FormatListNumbered, {
|
|
214
|
+
sx: {
|
|
215
|
+
fontSize: '24px'
|
|
216
|
+
}
|
|
217
|
+
})
|
|
218
|
+
})
|
|
219
|
+
}),
|
|
220
|
+
/*#__PURE__*/ jsx(Divider, {}),
|
|
221
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
222
|
+
title: _({
|
|
223
|
+
id: 'rich-text-editor.link'
|
|
224
|
+
}),
|
|
225
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
226
|
+
type: "button",
|
|
227
|
+
onClick: ()=>{
|
|
228
|
+
if (isLink) editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
|
|
229
|
+
else editor.update(()=>{
|
|
230
|
+
const selection = $getSelection();
|
|
231
|
+
if ($isRangeSelection(selection)) selection.insertText(`[${selection.getTextContent() || 'text'}](link)`);
|
|
232
|
+
});
|
|
233
|
+
},
|
|
234
|
+
className: 'toolbar-item spaced ' + (isLink ? 'active' : ''),
|
|
235
|
+
disabled: disabled,
|
|
236
|
+
"aria-pressed": isLink,
|
|
237
|
+
"aria-label": _({
|
|
238
|
+
id: 'rich-text-editor.insert-link'
|
|
239
|
+
}),
|
|
240
|
+
children: /*#__PURE__*/ jsx(Link, {
|
|
241
|
+
sx: {
|
|
242
|
+
fontSize: '24px'
|
|
243
|
+
}
|
|
244
|
+
})
|
|
245
|
+
})
|
|
246
|
+
}),
|
|
247
|
+
/*#__PURE__*/ jsx(Tooltip, {
|
|
248
|
+
title: _({
|
|
249
|
+
id: 'rich-text-editor.code'
|
|
250
|
+
}),
|
|
251
|
+
children: /*#__PURE__*/ jsx("button", {
|
|
252
|
+
type: "button",
|
|
253
|
+
onClick: ()=>{
|
|
254
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'code');
|
|
255
|
+
},
|
|
256
|
+
className: 'toolbar-item spaced ' + (isCode ? 'active' : ''),
|
|
257
|
+
"aria-pressed": isCode,
|
|
258
|
+
disabled: disabled,
|
|
259
|
+
"aria-label": _({
|
|
260
|
+
id: 'rich-text-editor.format-code'
|
|
261
|
+
}),
|
|
262
|
+
children: /*#__PURE__*/ jsx(Code, {
|
|
263
|
+
sx: {
|
|
264
|
+
fontSize: '24px'
|
|
265
|
+
}
|
|
266
|
+
})
|
|
267
|
+
})
|
|
268
|
+
})
|
|
269
|
+
]
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
export { ToolbarPlugin as default };
|
|
@@ -42,6 +42,9 @@ var __webpack_modules__ = {
|
|
|
42
42
|
"./ap-progress-spinner" (module) {
|
|
43
43
|
module.exports = require("./ap-progress-spinner/index.cjs");
|
|
44
44
|
},
|
|
45
|
+
"./ap-rich-text-editor" (module) {
|
|
46
|
+
module.exports = require("./ap-rich-text-editor/index.cjs");
|
|
47
|
+
},
|
|
45
48
|
"./ap-sankey-diagram" (module) {
|
|
46
49
|
module.exports = require("./ap-sankey-diagram/index.cjs");
|
|
47
50
|
},
|
|
@@ -166,37 +169,41 @@ var __webpack_exports__ = {};
|
|
|
166
169
|
var __rspack_reexport = {};
|
|
167
170
|
for(const __rspack_import_key in _ap_progress_spinner__rspack_import_13)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_progress_spinner__rspack_import_13[__rspack_import_key];
|
|
168
171
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
169
|
-
var
|
|
172
|
+
var _ap_rich_text_editor__rspack_import_14 = __webpack_require__("./ap-rich-text-editor");
|
|
173
|
+
var __rspack_reexport = {};
|
|
174
|
+
for(const __rspack_import_key in _ap_rich_text_editor__rspack_import_14)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_rich_text_editor__rspack_import_14[__rspack_import_key];
|
|
175
|
+
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
176
|
+
var _ap_skeleton__rspack_import_15 = __webpack_require__("./ap-skeleton");
|
|
170
177
|
var __rspack_reexport = {};
|
|
171
|
-
for(const __rspack_import_key in
|
|
178
|
+
for(const __rspack_import_key in _ap_skeleton__rspack_import_15)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_skeleton__rspack_import_15[__rspack_import_key];
|
|
172
179
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
173
|
-
var
|
|
180
|
+
var _ap_text_area__rspack_import_16 = __webpack_require__("./ap-text-area");
|
|
174
181
|
var __rspack_reexport = {};
|
|
175
|
-
for(const __rspack_import_key in
|
|
182
|
+
for(const __rspack_import_key in _ap_text_area__rspack_import_16)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_text_area__rspack_import_16[__rspack_import_key];
|
|
176
183
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
177
|
-
var
|
|
184
|
+
var _ap_text_field__rspack_import_17 = __webpack_require__("./ap-text-field");
|
|
178
185
|
var __rspack_reexport = {};
|
|
179
|
-
for(const __rspack_import_key in
|
|
186
|
+
for(const __rspack_import_key in _ap_text_field__rspack_import_17)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_text_field__rspack_import_17[__rspack_import_key];
|
|
180
187
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
181
|
-
var
|
|
188
|
+
var _ap_tool_call__rspack_import_18 = __webpack_require__("./ap-tool-call");
|
|
182
189
|
var __rspack_reexport = {};
|
|
183
|
-
for(const __rspack_import_key in
|
|
190
|
+
for(const __rspack_import_key in _ap_tool_call__rspack_import_18)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_tool_call__rspack_import_18[__rspack_import_key];
|
|
184
191
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
185
|
-
var
|
|
192
|
+
var _ap_tooltip__rspack_import_19 = __webpack_require__("./ap-tooltip");
|
|
186
193
|
var __rspack_reexport = {};
|
|
187
|
-
for(const __rspack_import_key in
|
|
194
|
+
for(const __rspack_import_key in _ap_tooltip__rspack_import_19)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_tooltip__rspack_import_19[__rspack_import_key];
|
|
188
195
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
189
|
-
var
|
|
196
|
+
var _ap_tree_view__rspack_import_20 = __webpack_require__("./ap-tree-view");
|
|
190
197
|
var __rspack_reexport = {};
|
|
191
|
-
for(const __rspack_import_key in
|
|
198
|
+
for(const __rspack_import_key in _ap_tree_view__rspack_import_20)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_tree_view__rspack_import_20[__rspack_import_key];
|
|
192
199
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
193
|
-
var
|
|
200
|
+
var _ap_typography__rspack_import_21 = __webpack_require__("./ap-typography");
|
|
194
201
|
var __rspack_reexport = {};
|
|
195
|
-
for(const __rspack_import_key in
|
|
202
|
+
for(const __rspack_import_key in _ap_typography__rspack_import_21)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_typography__rspack_import_21[__rspack_import_key];
|
|
196
203
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
197
|
-
var
|
|
204
|
+
var _ap_sankey_diagram__rspack_import_22 = __webpack_require__("./ap-sankey-diagram");
|
|
198
205
|
var __rspack_reexport = {};
|
|
199
|
-
for(const __rspack_import_key in
|
|
206
|
+
for(const __rspack_import_key in _ap_sankey_diagram__rspack_import_22)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ap_sankey_diagram__rspack_import_22[__rspack_import_key];
|
|
200
207
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
201
208
|
})();
|
|
202
209
|
for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
@@ -12,6 +12,7 @@ export * from './ap-menu';
|
|
|
12
12
|
export * from './ap-modal';
|
|
13
13
|
export * from './ap-popover';
|
|
14
14
|
export * from './ap-progress-spinner';
|
|
15
|
+
export * from './ap-rich-text-editor';
|
|
15
16
|
export * from './ap-skeleton';
|
|
16
17
|
export * from './ap-text-area';
|
|
17
18
|
export * from './ap-text-field';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/material/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/material/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
|
@@ -12,6 +12,7 @@ export * from "./ap-menu/index.js";
|
|
|
12
12
|
export * from "./ap-modal/index.js";
|
|
13
13
|
export * from "./ap-popover/index.js";
|
|
14
14
|
export * from "./ap-progress-spinner/index.js";
|
|
15
|
+
export * from "./ap-rich-text-editor/index.js";
|
|
15
16
|
export * from "./ap-skeleton/index.js";
|
|
16
17
|
export * from "./ap-text-area/index.js";
|
|
17
18
|
export * from "./ap-text-field/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.40.0",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -156,6 +156,16 @@
|
|
|
156
156
|
"@emotion/react": "^11.14.0",
|
|
157
157
|
"@emotion/styled": "^11.14.1",
|
|
158
158
|
"@floating-ui/react": "^0.27.15",
|
|
159
|
+
"@lexical/code": "0.16.0",
|
|
160
|
+
"@lexical/html": "0.16.0",
|
|
161
|
+
"@lexical/link": "0.16.0",
|
|
162
|
+
"@lexical/list": "0.16.0",
|
|
163
|
+
"@lexical/markdown": "0.16.0",
|
|
164
|
+
"@lexical/react": "0.16.0",
|
|
165
|
+
"@lexical/rich-text": "0.16.0",
|
|
166
|
+
"@lexical/selection": "0.16.0",
|
|
167
|
+
"@lexical/table": "0.16.0",
|
|
168
|
+
"@lexical/utils": "0.16.0",
|
|
159
169
|
"@lingui/core": "^5.6.1",
|
|
160
170
|
"@lingui/react": "^5.6.1",
|
|
161
171
|
"@mui/icons-material": "^5.18.0",
|
|
@@ -185,6 +195,7 @@
|
|
|
185
195
|
"debounce": "^3.0.0",
|
|
186
196
|
"html-to-image": "^1.11.11",
|
|
187
197
|
"katex": "^0.16.27",
|
|
198
|
+
"lexical": "0.16.0",
|
|
188
199
|
"lodash": "^4.18.1",
|
|
189
200
|
"lucide-react": "^0.577.0",
|
|
190
201
|
"luxon": "^3.7.1",
|