@edifice.io/react 2.2.3 → 2.2.5-develop.20250429151203
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | 'fill';
|
|
5
|
+
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
6
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
7
|
+
gap?: string;
|
|
8
|
+
wrap?: 'wrap' | 'nowrap' | 'reverse';
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Flex: React.FC<FlexProps>;
|
|
12
|
+
export default Flex;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
const Flex = ({
|
|
4
|
+
as: Component = "div",
|
|
5
|
+
direction,
|
|
6
|
+
align,
|
|
7
|
+
justify,
|
|
8
|
+
gap,
|
|
9
|
+
wrap = "wrap",
|
|
10
|
+
className,
|
|
11
|
+
children,
|
|
12
|
+
...restProps
|
|
13
|
+
}) => {
|
|
14
|
+
const classes = clsx("d-flex", direction && (direction === "fill" ? "flex-fill" : `flex-${direction}`), align && `align-items-${align}`, justify && `justify-content-${justify}`, gap && `gap-${gap}`, wrap && `flex-${wrap}`, className);
|
|
15
|
+
return /* @__PURE__ */ jsx(Component, { className: classes, ...restProps, children });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
Flex as default
|
|
19
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -18,70 +18,71 @@ import { default as default18 } from "./components/Combobox/Combobox.js";
|
|
|
18
18
|
import { default as default19 } from "./components/Dropdown/Dropdown.js";
|
|
19
19
|
import { default as default20 } from "./components/Dropzone/Dropzone.js";
|
|
20
20
|
import { default as default21 } from "./components/EmptyScreen/EmptyScreen.js";
|
|
21
|
-
import { default as default22 } from "./components/
|
|
22
|
-
import { default as default23 } from "./components/Form/
|
|
23
|
-
import { default as default24 } from "./components/
|
|
24
|
-
import { default as default25 } from "./components/
|
|
25
|
-
import { default as default26 } from "./components/
|
|
26
|
-
import { default as default27 } from "./components/
|
|
27
|
-
import { default as default28 } from "./components/
|
|
28
|
-
import { default as default29 } from "./components/
|
|
29
|
-
import { default as default30 } from "./components/
|
|
30
|
-
import { default as default31 } from "./components/
|
|
31
|
-
import { default as default32 } from "./components/
|
|
32
|
-
import { default as default33 } from "./components/
|
|
33
|
-
import { default as default34 } from "./components/
|
|
34
|
-
import { default as default35 } from "./components/
|
|
35
|
-
import { default as default36 } from "./components/
|
|
36
|
-
import { default as default37 } from "./components/
|
|
37
|
-
import { default as default38 } from "./components/
|
|
38
|
-
import { default as default39 } from "./components/
|
|
39
|
-
import { default as default40 } from "./components/
|
|
21
|
+
import { default as default22 } from "./components/Flex/Flex.js";
|
|
22
|
+
import { default as default23 } from "./components/Form/FormText.js";
|
|
23
|
+
import { default as default24 } from "./components/Form/FormControl.js";
|
|
24
|
+
import { default as default25 } from "./components/Heading/Heading.js";
|
|
25
|
+
import { default as default26 } from "./components/Image/Image.js";
|
|
26
|
+
import { default as default27 } from "./components/Input/Input.js";
|
|
27
|
+
import { default as default28 } from "./components/Label/Label.js";
|
|
28
|
+
import { default as default29 } from "./components/Loading/Loading.js";
|
|
29
|
+
import { default as default30 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
30
|
+
import { default as default31 } from "./components/Logo/Logo.js";
|
|
31
|
+
import { default as default32 } from "./components/Modal/Modal.js";
|
|
32
|
+
import { default as default33 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
33
|
+
import { default as default34 } from "./components/Radio/Radio.js";
|
|
34
|
+
import { default as default35 } from "./components/SearchBar/SearchBar.js";
|
|
35
|
+
import { default as default36 } from "./components/Select/Select.js";
|
|
36
|
+
import { default as default37 } from "./components/StackedGroup/StackedGroup.js";
|
|
37
|
+
import { default as default38 } from "./components/Switch/Switch.js";
|
|
38
|
+
import { default as default39 } from "./components/Table/components/Table.js";
|
|
39
|
+
import { default as default40 } from "./components/TextArea/TextArea.js";
|
|
40
|
+
import { default as default41 } from "./components/Tooltip/Tooltip.js";
|
|
40
41
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
42
|
+
import { default as default42 } from "./components/Tree/components/SortableTree.js";
|
|
43
|
+
import { default as default43 } from "./components/Tree/components/Tree.js";
|
|
44
|
+
import { default as default44 } from "./components/TreeView/TreeView.js";
|
|
45
|
+
import { default as default45 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
46
|
+
import { default as default46 } from "./hooks/useBookmark/useBookmark.js";
|
|
47
|
+
import { default as default47 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
48
|
+
import { default as default48 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
49
|
+
import { default as default49 } from "./hooks/useCantoo/useCantoo.js";
|
|
50
|
+
import { default as default50 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
51
|
+
import { default as default51 } from "./hooks/useConversation/useConversation.js";
|
|
52
|
+
import { default as default52 } from "./hooks/useDate/useDate.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useDebounce/useDebounce.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useDirectory/useDirectory.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useDropdown/useDropdown.js";
|
|
56
|
+
import { default as default56 } from "./hooks/useDropzone/useDropzone.js";
|
|
57
|
+
import { default as default57 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
58
|
+
import { default as default58 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
59
|
+
import { default as default59 } from "./hooks/useHover/useHover.js";
|
|
60
|
+
import { default as default60 } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
61
|
+
import { default as default61 } from "./hooks/useImage/useImage.js";
|
|
62
|
+
import { default as default62 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
63
|
+
import { default as default63 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
64
|
+
import { default as default64 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
65
|
+
import { default as default65 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
66
|
+
import { default as default66 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
67
|
+
import { default as default67 } from "./hooks/useTitle/useTitle.js";
|
|
68
|
+
import { default as default68 } from "./hooks/useToast/useToast.js";
|
|
69
|
+
import { default as default69 } from "./hooks/useToggle/useToggle.js";
|
|
70
|
+
import { default as default70 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
71
|
+
import { default as default71 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
72
|
+
import { default as default72 } from "./hooks/useUpload/useUpload.js";
|
|
73
|
+
import { default as default73 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
74
|
+
import { default as default74 } from "./hooks/useUser/useUser.js";
|
|
75
|
+
import { default as default75 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
76
|
+
import { default as default76 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
77
|
+
import { default as default77 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
78
|
+
import { default as default78 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
79
|
+
import { default as default79 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
80
|
+
import { default as default80 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
81
|
+
import { default as default81 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
82
|
+
import { default as default82 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
83
|
+
import { default as default83 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
84
|
+
import { default as default84 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
85
|
+
import { default as default85 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
85
86
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
86
87
|
import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
|
|
87
88
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -118,7 +119,7 @@ export {
|
|
|
118
119
|
default7 as Avatar,
|
|
119
120
|
default8 as AvatarGroup,
|
|
120
121
|
default9 as Badge,
|
|
121
|
-
|
|
122
|
+
default81 as BlogPublic,
|
|
122
123
|
default10 as Breadcrumb,
|
|
123
124
|
default11 as Button,
|
|
124
125
|
default14 as Card,
|
|
@@ -137,49 +138,50 @@ export {
|
|
|
137
138
|
EdificeThemeContext,
|
|
138
139
|
EdificeThemeProvider,
|
|
139
140
|
default21 as EmptyScreen,
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
default22 as Flex,
|
|
142
|
+
default24 as FormControl,
|
|
143
|
+
default23 as FormText,
|
|
142
144
|
Grid,
|
|
143
|
-
|
|
145
|
+
default25 as Heading,
|
|
144
146
|
default12 as IconButton,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
default26 as Image,
|
|
148
|
+
default27 as Input,
|
|
149
|
+
default28 as Label,
|
|
148
150
|
Layout,
|
|
149
151
|
List,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
default29 as Loading,
|
|
153
|
+
default30 as LoadingScreen,
|
|
154
|
+
default31 as Logo,
|
|
153
155
|
Menu,
|
|
154
156
|
MockedProvider,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
default32 as Modal,
|
|
158
|
+
default79 as OnboardingModal,
|
|
157
159
|
Popover,
|
|
158
160
|
PopoverBody,
|
|
159
161
|
PopoverFooter,
|
|
160
162
|
PopoverHeader,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
default33 as PreventPropagation,
|
|
164
|
+
default80 as PublishModal,
|
|
165
|
+
default34 as Radio,
|
|
164
166
|
ResourceModal,
|
|
165
|
-
|
|
167
|
+
default35 as SearchBar,
|
|
166
168
|
default13 as SearchButton,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
default36 as Select,
|
|
170
|
+
default84 as ShareBlog,
|
|
171
|
+
default83 as ShareModal,
|
|
172
|
+
default42 as SortableTree,
|
|
173
|
+
default37 as StackedGroup,
|
|
174
|
+
default38 as Switch,
|
|
175
|
+
default39 as Table,
|
|
174
176
|
Tabs,
|
|
175
|
-
|
|
177
|
+
default40 as TextArea,
|
|
176
178
|
Toolbar,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
default41 as Tooltip,
|
|
180
|
+
default43 as Tree,
|
|
179
181
|
TreeNode,
|
|
180
182
|
TreeNodeFolderWrapper,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
+
default44 as TreeView,
|
|
184
|
+
default45 as VisuallyHidden,
|
|
183
185
|
addNode,
|
|
184
186
|
arrayUnique,
|
|
185
187
|
buildTree,
|
|
@@ -207,46 +209,46 @@ export {
|
|
|
207
209
|
setRef,
|
|
208
210
|
updateNode,
|
|
209
211
|
updateParentIds,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
default46 as useBookmark,
|
|
213
|
+
default47 as useBreakpoint,
|
|
214
|
+
default48 as useBrowserInfo,
|
|
215
|
+
default49 as useCantoo,
|
|
214
216
|
useCheckable,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
217
|
+
default50 as useClickOutside,
|
|
218
|
+
default51 as useConversation,
|
|
219
|
+
default52 as useDate,
|
|
220
|
+
default53 as useDebounce,
|
|
221
|
+
default54 as useDirectory,
|
|
222
|
+
default55 as useDropdown,
|
|
223
|
+
default56 as useDropzone,
|
|
222
224
|
useDropzoneContext,
|
|
223
225
|
useEdificeClient,
|
|
224
|
-
|
|
226
|
+
default57 as useEdificeIcons,
|
|
225
227
|
useEdificeTheme,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
228
|
+
default58 as useHasWorkflow,
|
|
229
|
+
default59 as useHover,
|
|
230
|
+
default60 as useHttpErrorToast,
|
|
231
|
+
default61 as useImage,
|
|
232
|
+
default62 as useIsAdml,
|
|
233
|
+
default63 as useKeyPress,
|
|
234
|
+
default64 as useLibraryUrl,
|
|
235
|
+
default65 as useMediaLibrary,
|
|
236
|
+
default66 as useScrollToTop,
|
|
237
|
+
default85 as useShareMutation,
|
|
238
|
+
default67 as useTitle,
|
|
239
|
+
default68 as useToast,
|
|
240
|
+
default69 as useToggle,
|
|
241
|
+
default70 as useTrapFocus,
|
|
242
|
+
default71 as useTrashedResource,
|
|
241
243
|
useTreeSortable,
|
|
242
244
|
useTreeView,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
245
|
+
default82 as useUpdateMutation,
|
|
246
|
+
default72 as useUpload,
|
|
247
|
+
default73 as useUploadFiles,
|
|
248
|
+
default74 as useUser,
|
|
249
|
+
default75 as useWorkspaceFile,
|
|
250
|
+
default76 as useWorkspaceSearch,
|
|
251
|
+
default77 as useXitiTrackPageLoad,
|
|
252
|
+
default78 as useZendeskGuide,
|
|
251
253
|
wrapTreeNode
|
|
252
254
|
};
|
|
@@ -176,7 +176,7 @@ function useShare({
|
|
|
176
176
|
}
|
|
177
177
|
onSuccess();
|
|
178
178
|
} catch (error) {
|
|
179
|
-
typeof error == "string" && toast.error(t("explorer.shared.status.error")), console.error("Failed to save share", error);
|
|
179
|
+
typeof error == "string" && toast.error(t("explorer.shared.status.error")), typeof error == "object" && toast.error(t((error == null ? void 0 : error.error) || "explorer.shared.status.error")), console.error("Failed to save share", error);
|
|
180
180
|
} finally {
|
|
181
181
|
dispatch({
|
|
182
182
|
type: "isSharing",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5-develop.20250429151203",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"react-slugify": "^3.0.3",
|
|
119
119
|
"swiper": "^10.1.0",
|
|
120
120
|
"ua-parser-js": "^1.0.36",
|
|
121
|
-
"@edifice.io/bootstrap": "2.2.
|
|
122
|
-
"@edifice.io/tiptap-extensions": "2.2.
|
|
123
|
-
"@edifice.io/utilities": "2.2.
|
|
121
|
+
"@edifice.io/bootstrap": "2.2.5-develop.20250429151203",
|
|
122
|
+
"@edifice.io/tiptap-extensions": "2.2.5-develop.20250429151203",
|
|
123
|
+
"@edifice.io/utilities": "2.2.5-develop.20250429151203"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"vite": "^5.4.11",
|
|
152
152
|
"vite-plugin-dts": "^4.1.0",
|
|
153
153
|
"vite-tsconfig-paths": "^5.0.1",
|
|
154
|
-
"@edifice.io/client": "2.2.
|
|
155
|
-
"@edifice.io/config": "2.2.
|
|
154
|
+
"@edifice.io/client": "2.2.5-develop.20250429151203",
|
|
155
|
+
"@edifice.io/config": "2.2.5-develop.20250429151203"
|
|
156
156
|
},
|
|
157
157
|
"peerDependencies": {
|
|
158
158
|
"@react-spring/web": "^9.7.5",
|