@edifice.io/react 2.5.5-develop.20260112150307 → 2.5.6-develop.20260116103750
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/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/common.js +4 -0
- package/dist/_virtual/de_DE.js +4 -0
- package/dist/_virtual/de_DE2.js +4 -0
- package/dist/_virtual/de_DE3.js +4 -0
- package/dist/_virtual/de_DE4.js +4 -0
- package/dist/_virtual/de_DE5.js +4 -0
- package/dist/_virtual/de_DE6.js +4 -0
- package/dist/_virtual/defineProperty.js +4 -0
- package/dist/_virtual/es_ES.js +4 -0
- package/dist/_virtual/es_ES2.js +4 -0
- package/dist/_virtual/es_ES3.js +4 -0
- package/dist/_virtual/es_ES4.js +4 -0
- package/dist/_virtual/es_ES5.js +4 -0
- package/dist/_virtual/es_ES6.js +4 -0
- package/dist/_virtual/fr_FR.js +4 -0
- package/dist/_virtual/fr_FR2.js +4 -0
- package/dist/_virtual/fr_FR3.js +4 -0
- package/dist/_virtual/fr_FR4.js +4 -0
- package/dist/_virtual/fr_FR5.js +4 -0
- package/dist/_virtual/fr_FR6.js +4 -0
- package/dist/_virtual/interopRequireDefault.js +4 -0
- package/dist/_virtual/it_IT.js +4 -0
- package/dist/_virtual/it_IT2.js +4 -0
- package/dist/_virtual/it_IT3.js +4 -0
- package/dist/_virtual/it_IT4.js +4 -0
- package/dist/_virtual/it_IT5.js +4 -0
- package/dist/_virtual/it_IT6.js +4 -0
- package/dist/_virtual/localeData.js +4 -0
- package/dist/_virtual/objectSpread2.js +4 -0
- package/dist/_virtual/pt_PT.js +4 -0
- package/dist/_virtual/pt_PT2.js +4 -0
- package/dist/_virtual/pt_PT3.js +4 -0
- package/dist/_virtual/pt_PT4.js +4 -0
- package/dist/_virtual/pt_PT5.js +4 -0
- package/dist/_virtual/pt_PT6.js +4 -0
- package/dist/_virtual/toPrimitive.js +4 -0
- package/dist/_virtual/toPropertyKey.js +4 -0
- package/dist/_virtual/typeof.js +4 -0
- package/dist/_virtual/weekday.js +4 -0
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Combobox/ComboboxTrigger.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +35 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/Layout/components/Header.js +6 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +4 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/icons.js +80 -78
- package/dist/index.js +184 -182
- package/dist/modules/editor/components/Editor/Editor.js +1 -1
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +2 -2
- package/dist/modules/icons/components/IconSubmitToValidate.d.ts +7 -0
- package/dist/modules/icons/components/IconSubmitToValidate.js +12 -0
- package/dist/modules/icons/components/index.d.ts +1 -0
- package/dist/modules/modals/ShareModal/ShareBookmark.js +2 -2
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +4 -4
- package/dist/modules/modals/ShareModal/ShareResources.d.ts +14 -1
- package/dist/modules/modals/ShareModal/ShareResources.js +11 -3
- package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +4 -3
- package/dist/modules/modals/ShareModal/hooks/useSearch.js +10 -15
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/defineProperty.js +18 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/objectSpread2.js +31 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPrimitive.js +20 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPropertyKey.js +15 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js +16 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/de_DE.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/es_ES.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/fr_FR.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/it_IT.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/pt_PT.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/de_DE.js +22 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/es_ES.js +22 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/fr_FR.js +27 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/it_IT.js +20 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/pt_PT.js +45 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/de_DE.js +145 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/es_ES.js +145 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/fr_FR.js +144 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/it_IT.js +156 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/pt_PT.js +158 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/de_DE.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/es_ES.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/fr_FR.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/it_IT.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/pt_PT.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/de_DE.js +8 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/es_ES.js +8 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/fr_FR.js +8 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/it_IT.js +8 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/pt_PT.js +8 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js +82 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js +19 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/de_DE.js +21 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/es_ES.js +21 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/fr_FR.js +21 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/it_IT.js +21 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/pt_PT.js +21 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/common.js +14 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/de_DE.js +37 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/es_ES.js +37 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/fr_FR.js +38 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/it_IT.js +37 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/pt_PT.js +39 -0
- package/dist/providers/AntThemeProvider/AntProvider.d.ts +2 -2
- package/dist/providers/AntThemeProvider/AntProvider.js +19 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -15,99 +15,100 @@ import { default as default15 } from "./components/Checkbox/Checkbox.js";
|
|
|
15
15
|
import { default as default16 } from "./components/ColorPicker/ColorPicker.js";
|
|
16
16
|
import { default as default17 } from "./components/ColorPicker/ColorPickerItem.js";
|
|
17
17
|
import { default as default18 } from "./components/Combobox/Combobox.js";
|
|
18
|
-
import { default as default19 } from "./components/
|
|
19
|
-
import { default as default20 } from "./components/
|
|
20
|
-
import { default as default21 } from "./components/
|
|
21
|
-
import { default as default22 } from "./components/
|
|
22
|
-
import { default as default23 } from "./components/
|
|
23
|
-
import { default as default24 } from "./components/
|
|
24
|
-
import { default as default25 } from "./components/Form/
|
|
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/
|
|
40
|
-
import { default as default41 } from "./components/Skeleton/
|
|
41
|
-
import { default as default42 } from "./components/
|
|
42
|
-
import { default as default43 } from "./components/
|
|
43
|
-
import { default as default44 } from "./components/
|
|
44
|
-
import { default as default45 } from "./components/
|
|
45
|
-
import { default as default46 } from "./components/
|
|
46
|
-
import { default as default47 } from "./components/
|
|
18
|
+
import { default as default19 } from "./components/DatePicker/DatePicker.js";
|
|
19
|
+
import { default as default20 } from "./components/Divider/Divider.js";
|
|
20
|
+
import { default as default21 } from "./components/Dropdown/Dropdown.js";
|
|
21
|
+
import { default as default22 } from "./components/Dropzone/Dropzone.js";
|
|
22
|
+
import { default as default23 } from "./components/EmptyScreen/EmptyScreen.js";
|
|
23
|
+
import { default as default24 } from "./components/Flex/Flex.js";
|
|
24
|
+
import { default as default25 } from "./components/Form/FormText.js";
|
|
25
|
+
import { default as default26 } from "./components/Form/FormControl.js";
|
|
26
|
+
import { default as default27 } from "./components/Heading/Heading.js";
|
|
27
|
+
import { default as default28 } from "./components/Image/Image.js";
|
|
28
|
+
import { default as default29 } from "./components/Input/Input.js";
|
|
29
|
+
import { default as default30 } from "./components/Label/Label.js";
|
|
30
|
+
import { default as default31 } from "./components/Loading/Loading.js";
|
|
31
|
+
import { default as default32 } from "./components/LoadingScreen/LoadingScreen.js";
|
|
32
|
+
import { default as default33 } from "./components/Logo/Logo.js";
|
|
33
|
+
import { default as default34 } from "./components/Modal/Modal.js";
|
|
34
|
+
import { default as default35 } from "./components/PreventPropagation/PreventPropagation.js";
|
|
35
|
+
import { default as default36 } from "./components/Radio/Radio.js";
|
|
36
|
+
import { default as default37 } from "./components/RadioCard/RadioCard.js";
|
|
37
|
+
import { default as default38 } from "./components/SearchBar/SearchBar.js";
|
|
38
|
+
import { default as default39 } from "./components/SegmentedControl/SegmentedControl.js";
|
|
39
|
+
import { default as default40 } from "./components/Select/Select.js";
|
|
40
|
+
import { default as default41 } from "./components/Skeleton/ButtonSkeleton.js";
|
|
41
|
+
import { default as default42 } from "./components/Skeleton/TextSkeleton.js";
|
|
42
|
+
import { default as default43 } from "./components/StackedGroup/StackedGroup.js";
|
|
43
|
+
import { default as default44 } from "./components/Stepper/Stepper.js";
|
|
44
|
+
import { default as default45 } from "./components/Switch/Switch.js";
|
|
45
|
+
import { default as default46 } from "./components/Table/components/Table.js";
|
|
46
|
+
import { default as default47 } from "./components/TextArea/TextArea.js";
|
|
47
|
+
import { default as default48 } from "./components/Tooltip/Tooltip.js";
|
|
47
48
|
import { DndTree } from "./components/Tree/components/DndTree.js";
|
|
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
|
|
49
|
+
import { default as default49 } from "./components/Tree/components/SortableTree.js";
|
|
50
|
+
import { default as default50 } from "./components/Tree/components/Tree.js";
|
|
51
|
+
import { default as default51 } from "./components/TreeView/TreeView.js";
|
|
52
|
+
import { default as default52 } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
53
|
+
import { default as default53 } from "./hooks/useBookmark/useBookmark.js";
|
|
54
|
+
import { default as default54 } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
55
|
+
import { default as default55 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
|
|
56
|
+
import { default as default56 } from "./hooks/useCantoo/useCantoo.js";
|
|
57
|
+
import { default as default57 } from "./hooks/useClickOutside/useClickOutside.js";
|
|
58
|
+
import { default as default58 } from "./hooks/useConversation/useConversation.js";
|
|
59
|
+
import { default as default59 } from "./hooks/useDate/useDate.js";
|
|
60
|
+
import { default as default60 } from "./hooks/useDebounce/useDebounce.js";
|
|
61
|
+
import { default as default61 } from "./hooks/useDirectory/useDirectory.js";
|
|
62
|
+
import { default as default62 } from "./hooks/useDropdown/useDropdown.js";
|
|
63
|
+
import { default as default63 } from "./hooks/useDropzone/useDropzone.js";
|
|
64
|
+
import { default as default64 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
|
|
65
|
+
import { default as default65 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
|
|
66
|
+
import { default as default66 } from "./hooks/useHover/useHover.js";
|
|
66
67
|
import { useHttpErrorToast } from "./hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
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
|
|
85
|
-
import { default as
|
|
86
|
-
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
68
|
+
import { default as default67 } from "./hooks/useImage/useImage.js";
|
|
69
|
+
import { default as default68 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
|
|
70
|
+
import { default as default69 } from "./hooks/useIsAdml/useIsAdml.js";
|
|
71
|
+
import { default as default70 } from "./hooks/useIsAdmc/useIsAdmc.js";
|
|
72
|
+
import { default as default71 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
|
|
73
|
+
import { default as default72 } from "./hooks/useKeyPress/useKeyPress.js";
|
|
74
|
+
import { default as default73 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
|
|
75
|
+
import { default as default74 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
|
|
76
|
+
import { default as default75 } from "./hooks/useScrollToTop/useScrollToTop.js";
|
|
77
|
+
import { default as default76 } from "./hooks/useTitle/useTitle.js";
|
|
78
|
+
import { default as default77 } from "./hooks/useToast/useToast.js";
|
|
79
|
+
import { default as default78 } from "./hooks/useToggle/useToggle.js";
|
|
80
|
+
import { default as default79 } from "./hooks/useTrapFocus/useTrapFocus.js";
|
|
81
|
+
import { default as default80 } from "./hooks/useTrashedResource/useTrashedResource.js";
|
|
82
|
+
import { default as default81 } from "./hooks/useUpload/useUpload.js";
|
|
83
|
+
import { default as default82 } from "./hooks/useUploadFiles/useUploadFiles.js";
|
|
84
|
+
import { default as default83 } from "./hooks/useUser/useUser.js";
|
|
85
|
+
import { default as default84 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
|
|
86
|
+
import { default as default85 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
|
|
87
|
+
import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default86 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
|
|
88
|
+
import { default as default87 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
|
|
89
|
+
import { default as default88 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
|
|
90
|
+
import { default as default89 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
|
|
91
|
+
import { default as default90 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
|
|
92
|
+
import { default as default91 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
|
|
93
|
+
import { default as default92 } from "./modules/modals/PublishModal/PublishModal.js";
|
|
94
|
+
import { default as default93 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
|
|
95
|
+
import { default as default94 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
|
|
96
|
+
import { default as default95 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
|
|
97
|
+
import { default as default96 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
|
|
98
|
+
import { default as default97 } from "./modules/modals/ShareModal/ShareModal.js";
|
|
99
|
+
import { default as default98 } from "./modules/modals/ShareModal/ShareResources.js";
|
|
100
|
+
import { default as default99 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
101
|
+
import { default as default100 } from "./modules/multimedia/Embed/Embed.js";
|
|
102
|
+
import { default as default101 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
103
|
+
import { default as default102 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
104
|
+
import { default as default103 } from "./modules/multimedia/FileCard/FileCard.js";
|
|
105
|
+
import { default as default104 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
106
|
+
import { default as default105 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
107
|
+
import { default as default106 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
108
|
+
import { default as default107 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
109
|
+
import { default as default108 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
110
|
+
import { default as default109 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
111
|
+
import { default as default110 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
111
112
|
import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
|
|
112
113
|
import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
|
|
113
114
|
import { Column, Grid } from "./components/Grid/Grid.js";
|
|
@@ -147,97 +148,98 @@ export {
|
|
|
147
148
|
default4 as AppHeader,
|
|
148
149
|
default5 as AppIcon,
|
|
149
150
|
default6 as Attachment,
|
|
150
|
-
|
|
151
|
+
default99 as AudioRecorder,
|
|
151
152
|
default7 as Avatar,
|
|
152
153
|
default8 as AvatarGroup,
|
|
153
154
|
default9 as Badge,
|
|
154
|
-
|
|
155
|
+
default93 as BlogPublic,
|
|
155
156
|
default10 as Breadcrumb,
|
|
156
157
|
default11 as Button,
|
|
157
|
-
|
|
158
|
+
default41 as ButtonSkeleton,
|
|
158
159
|
default14 as Card,
|
|
159
160
|
default15 as Checkbox,
|
|
160
161
|
default16 as ColorPicker,
|
|
161
162
|
default17 as ColorPickerItem,
|
|
162
163
|
Column,
|
|
163
164
|
default18 as Combobox,
|
|
164
|
-
|
|
165
|
+
default90 as ConfirmModal,
|
|
166
|
+
default19 as DatePicker,
|
|
165
167
|
DefaultPalette,
|
|
166
|
-
|
|
168
|
+
default20 as Divider,
|
|
167
169
|
DndTree,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
+
default21 as Dropdown,
|
|
171
|
+
default22 as Dropzone,
|
|
170
172
|
DropzoneContext,
|
|
171
173
|
EdificeClientContext,
|
|
172
174
|
EdificeClientProvider,
|
|
173
175
|
EdificeThemeContext,
|
|
174
176
|
EdificeThemeProvider,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
default100 as Embed,
|
|
178
|
+
default23 as EmptyScreen,
|
|
177
179
|
ExternalLinker,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
default103 as FileCard,
|
|
181
|
+
default24 as Flex,
|
|
182
|
+
default26 as FormControl,
|
|
183
|
+
default25 as FormText,
|
|
182
184
|
Grid,
|
|
183
|
-
|
|
185
|
+
default27 as Heading,
|
|
184
186
|
default12 as IconButton,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
default28 as Image,
|
|
188
|
+
default101 as ImageEditor,
|
|
189
|
+
default102 as ImagePicker,
|
|
190
|
+
default29 as Input,
|
|
189
191
|
InternalLinker,
|
|
190
|
-
|
|
192
|
+
default30 as Label,
|
|
191
193
|
Layout,
|
|
192
194
|
List,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
default31 as Loading,
|
|
196
|
+
default32 as LoadingScreen,
|
|
197
|
+
default33 as Logo,
|
|
198
|
+
default104 as MediaLibrary,
|
|
197
199
|
Menu,
|
|
198
200
|
MockedProvider,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
default34 as Modal,
|
|
202
|
+
default91 as OnboardingModal,
|
|
201
203
|
Popover,
|
|
202
204
|
PopoverBody,
|
|
203
205
|
PopoverFooter,
|
|
204
206
|
PopoverHeader,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
default35 as PreventPropagation,
|
|
208
|
+
default92 as PublishModal,
|
|
209
|
+
default36 as Radio,
|
|
210
|
+
default37 as RadioCard,
|
|
209
211
|
ResourceModal,
|
|
210
|
-
|
|
212
|
+
default38 as SearchBar,
|
|
211
213
|
default13 as SearchButton,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
214
|
+
default39 as SegmentedControl,
|
|
215
|
+
default40 as Select,
|
|
216
|
+
default95 as ShareBlog,
|
|
217
|
+
default97 as ShareModal,
|
|
218
|
+
default98 as ShareResources,
|
|
219
|
+
default49 as SortableTree,
|
|
220
|
+
default43 as StackedGroup,
|
|
221
|
+
default44 as Stepper,
|
|
222
|
+
default45 as Switch,
|
|
223
|
+
default46 as Table,
|
|
222
224
|
Tabs,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
+
default47 as TextArea,
|
|
226
|
+
default42 as TextSkeleton,
|
|
225
227
|
Toolbar,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
+
default48 as Tooltip,
|
|
229
|
+
default50 as Tree,
|
|
228
230
|
TreeNode,
|
|
229
231
|
TreeNodeFolderWrapper,
|
|
230
|
-
|
|
232
|
+
default51 as TreeView,
|
|
231
233
|
Upload,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
default106 as UploadCard,
|
|
235
|
+
default105 as UploadFiles,
|
|
236
|
+
default107 as VideoEmbed,
|
|
237
|
+
default108 as VideoRecorder,
|
|
238
|
+
default52 as VisuallyHidden,
|
|
237
239
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
238
240
|
WORKSPACE_USER_FOLDER_ID,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
default109 as Workspace,
|
|
242
|
+
default110 as WorkspaceFolders,
|
|
241
243
|
addNode,
|
|
242
244
|
arrayUnique,
|
|
243
245
|
buildTree,
|
|
@@ -266,51 +268,51 @@ export {
|
|
|
266
268
|
setRef,
|
|
267
269
|
updateNode,
|
|
268
270
|
updateParentIds,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
default53 as useBookmark,
|
|
272
|
+
default54 as useBreakpoint,
|
|
273
|
+
default55 as useBrowserInfo,
|
|
274
|
+
default56 as useCantoo,
|
|
273
275
|
useCheckable,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
276
|
+
default57 as useClickOutside,
|
|
277
|
+
default58 as useConversation,
|
|
278
|
+
default59 as useDate,
|
|
279
|
+
default60 as useDebounce,
|
|
280
|
+
default61 as useDirectory,
|
|
281
|
+
default62 as useDropdown,
|
|
282
|
+
default63 as useDropzone,
|
|
281
283
|
useDropzoneContext,
|
|
282
284
|
useEdificeClient,
|
|
283
|
-
|
|
285
|
+
default64 as useEdificeIcons,
|
|
284
286
|
useEdificeTheme,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
+
default65 as useHasWorkflow,
|
|
288
|
+
default66 as useHover,
|
|
287
289
|
useHttpErrorToast,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
290
|
+
default67 as useImage,
|
|
291
|
+
default68 as useInfiniteScroll,
|
|
292
|
+
default70 as useIsAdmc,
|
|
293
|
+
default69 as useIsAdml,
|
|
294
|
+
default71 as useIsAdmlcOrAdmc,
|
|
295
|
+
default72 as useKeyPress,
|
|
296
|
+
default73 as useLibraryUrl,
|
|
297
|
+
default74 as useMediaLibrary,
|
|
298
|
+
default75 as useScrollToTop,
|
|
299
|
+
default96 as useShareMutation,
|
|
300
|
+
default76 as useTitle,
|
|
301
|
+
default77 as useToast,
|
|
302
|
+
default78 as useToggle,
|
|
303
|
+
default79 as useTrapFocus,
|
|
304
|
+
default80 as useTrashedResource,
|
|
303
305
|
useTreeSortable,
|
|
304
306
|
useTreeView,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
307
|
+
default94 as useUpdateMutation,
|
|
308
|
+
default81 as useUpload,
|
|
309
|
+
default82 as useUploadFiles,
|
|
310
|
+
default83 as useUser,
|
|
311
|
+
default84 as useWorkspaceFile,
|
|
312
|
+
default85 as useWorkspaceFolders,
|
|
313
|
+
default86 as useWorkspaceFoldersTree,
|
|
314
|
+
default87 as useWorkspaceSearch,
|
|
315
|
+
default88 as useXitiTrackPageLoad,
|
|
316
|
+
default89 as useZendeskGuide,
|
|
315
317
|
wrapTreeNode
|
|
316
318
|
};
|
|
@@ -78,7 +78,7 @@ const MathsModal = /* @__PURE__ */ lazy(async () => await import("../MathsModal/
|
|
|
78
78
|
/* @__PURE__ */ jsxs("div", { className: borderClass, children: [
|
|
79
79
|
toolbar !== "none" && editable && /* @__PURE__ */ jsx(EditorToolbar, { mediaLibraryRef: mediaLibraryModalRef, toggleMathsModal, cantooEditor: contooEditor }),
|
|
80
80
|
/* @__PURE__ */ jsxs(Flex, { direction: "row", children: [
|
|
81
|
-
/* @__PURE__ */ jsx(EditorContent, { id: id ?? editorId, editor, className: contentClass, style: {
|
|
81
|
+
/* @__PURE__ */ jsx(EditorContent, { "data-testid": "editor-content", id: id ?? editorId, editor, className: contentClass, style: {
|
|
82
82
|
flex: 1
|
|
83
83
|
} }),
|
|
84
84
|
editable && contooEditor.openPositionAdaptText.right && /* @__PURE__ */ jsx(CantooAdaptTextBoxView, { openPosition: contooEditor.openPositionAdaptText })
|
|
@@ -31,8 +31,8 @@ const AttachmentRenderer = (props) => {
|
|
|
31
31
|
}, "data-drag-handle": !0, children: [
|
|
32
32
|
/* @__PURE__ */ jsx("p", { className: "m-12 mt-0", children: t("tiptap.attachments.bloc") }),
|
|
33
33
|
/* @__PURE__ */ jsx(Grid, { children: attachmentArrayAttrs == null ? void 0 : attachmentArrayAttrs.map((attachment, index) => /* @__PURE__ */ jsx(Grid.Col, { sm: "6", children: /* @__PURE__ */ jsx(Attachment, { name: attachment.name, options: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
34
|
-
/* @__PURE__ */ jsx("a", { href: attachment.href, "data-content-type": attachment.dataContentType, download: !0, children: /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.download"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDownload, {}), variant: "ghost" }) }),
|
|
35
|
-
editable && /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.delete"), color: "danger", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), variant: "ghost", onClick: () => handleDelete(index, attachment.
|
|
34
|
+
/* @__PURE__ */ jsx("a", { href: attachment.href, "data-document-id": attachment.dataDocumentId, "data-content-type": attachment.dataContentType, download: !0, children: /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.download"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDownload, {}), variant: "ghost" }) }),
|
|
35
|
+
editable && /* @__PURE__ */ jsx(IconButton, { "aria-label": t("tiptap.attachments.delete"), color: "danger", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), variant: "ghost", onClick: () => handleDelete(index, attachment.dataDocumentId) })
|
|
36
36
|
] }) }) }, index)) })
|
|
37
37
|
] }) });
|
|
38
38
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconSubmitToValidate: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconSubmitToValidate;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconSubmitToValidate = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.844 7.9a1 1 0 0 0-.085 1.41c.366.417.998.463 1.412.1l4.18-3.656a.99.99 0 0 0 .337-.762 1.01 1.01 0 0 0-.363-.757L12.019.632a1 1 0 0 0-1.408.118 1 1 0 0 0 .134 1.41l2.2 1.84h-.939c-5.617-.067-9.838 4.478-9.905 9.887-.05 4.03 2.374 7.51 5.865 9.091a1 1 0 0 0 .825-1.822c-2.815-1.274-4.73-4.058-4.69-7.244C4.156 9.521 7.554 5.945 11.988 6h1.028zm10.785.822a1 1 0 0 1 .148 1.407l-6.875 8.5a1 1 0 0 1-1.572-.022l-3.125-4.09a1 1 0 0 1 1.59-1.215l2.352 3.08 6.076-7.51a1 1 0 0 1 1.406-.15", clipRule: "evenodd" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconSubmitToValidate as default
|
|
12
|
+
};
|
|
@@ -135,6 +135,7 @@ export { default as IconSplitCells } from './IconSplitCells';
|
|
|
135
135
|
export { default as IconSquareRoot } from './IconSquareRoot';
|
|
136
136
|
export { default as IconStarFull } from './IconStarFull';
|
|
137
137
|
export { default as IconStar } from './IconStar';
|
|
138
|
+
export { default as IconSubmitToValidate } from './IconSubmitToValidate';
|
|
138
139
|
export { default as IconSubscript } from './IconSubscript';
|
|
139
140
|
export { default as IconSuccessFill } from './IconSuccessFill';
|
|
140
141
|
export { default as IconSuccessOutline } from './IconSuccessOutline';
|
|
@@ -16,8 +16,8 @@ const ShareBookmark = ({
|
|
|
16
16
|
setIsSaving(!0), await onSave(), setIsSaving(!1);
|
|
17
17
|
};
|
|
18
18
|
return /* @__PURE__ */ jsx("div", { className: "mt-16", children: /* @__PURE__ */ jsxs(FormControl, { id: "bookmarkName", className: "d-flex flex-wrap align-items-center gap-16", children: [
|
|
19
|
-
/* @__PURE__ */ jsx("div", { className: "flex-fill", children: /* @__PURE__ */ jsx(FormControl.Input, { ref: refBookmark, onChange: onBookmarkChange, placeholder: t("explorer.modal.share.sharebookmark.placeholder"), size: "sm", type: "text" }, bookmark.id) }),
|
|
20
|
-
/* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "ghost", disabled: bookmark.name.length === 0 || isSaving, leftIcon: /* @__PURE__ */ jsx(SvgIconSave, {}), onClick: handleSaveClick, className: "text-nowrap", isLoading: isSaving, children: t("explorer.modal.share.sharebookmark.save") })
|
|
19
|
+
/* @__PURE__ */ jsx("div", { className: "flex-fill", children: /* @__PURE__ */ jsx(FormControl.Input, { "data-testid": "share-bookmark-name-input", ref: refBookmark, onChange: onBookmarkChange, placeholder: t("explorer.modal.share.sharebookmark.placeholder"), size: "sm", type: "text" }, bookmark.id) }),
|
|
20
|
+
/* @__PURE__ */ jsx(Button, { "data-testid": "share-bookmark-save-button", type: "button", color: "primary", variant: "ghost", disabled: bookmark.name.length === 0 || isSaving, leftIcon: /* @__PURE__ */ jsx(SvgIconSave, {}), onClick: handleSaveClick, className: "text-nowrap", isLoading: isSaving, children: t("explorer.modal.share.sharebookmark.save") })
|
|
21
21
|
] }) });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
@@ -4,10 +4,10 @@ import SvgIconBookmark from "../../icons/components/IconBookmark.js";
|
|
|
4
4
|
import SvgIconClose from "../../icons/components/IconClose.js";
|
|
5
5
|
import SvgIconRafterDown from "../../icons/components/IconRafterDown.js";
|
|
6
6
|
import SvgIconUsers from "../../icons/components/IconUsers.js";
|
|
7
|
-
import { hasRight } from "./utils/hasRight.js";
|
|
8
|
-
import { showShareRightLine } from "./utils/showShareRightLine.js";
|
|
9
7
|
import { useShareRightDisabled } from "./hooks/useShareRightDisabled.js";
|
|
10
8
|
import { useShareRightVisible } from "./hooks/useShareRightVisible.js";
|
|
9
|
+
import { hasRight } from "./utils/hasRight.js";
|
|
10
|
+
import { showShareRightLine } from "./utils/showShareRightLine.js";
|
|
11
11
|
import Avatar from "../../../components/Avatar/Avatar.js";
|
|
12
12
|
import Button from "../../../components/Button/Button.js";
|
|
13
13
|
import Checkbox from "../../../components/Checkbox/Checkbox.js";
|
|
@@ -45,8 +45,8 @@ const ShareBookmarkLine = ({
|
|
|
45
45
|
] }) }),
|
|
46
46
|
shareRightActions.map((shareRightAction) => /* @__PURE__ */ jsx("td", { style: {
|
|
47
47
|
width: "80px"
|
|
48
|
-
}, className: "text-center text-white", children: /* @__PURE__ */ jsx(Checkbox, { checked: hasRight(shareRight, shareRightAction), onChange: () => toggleRight(shareRight, shareRightAction.id), disabled: isDisabled }) }, shareRightAction.displayName)),
|
|
49
|
-
/* @__PURE__ */ jsx("td", { children: !shareRight.isBookmarkMember && !isDisabled && /* @__PURE__ */ jsx(IconButton, { "aria-label": t("close"), color: "tertiary", icon: /* @__PURE__ */ jsx(SvgIconClose, {}), type: "button", variant: "ghost", title: t("close"), onClick: () => onDeleteRow(shareRight) }) })
|
|
48
|
+
}, className: "text-center text-white", children: /* @__PURE__ */ jsx(Checkbox, { checked: hasRight(shareRight, shareRightAction), onChange: () => toggleRight(shareRight, shareRightAction.id), disabled: isDisabled, "data-testid": `share-right-${shareRightAction.id}-checkbox` }) }, shareRightAction.displayName)),
|
|
49
|
+
/* @__PURE__ */ jsx("td", { children: !shareRight.isBookmarkMember && !isDisabled && /* @__PURE__ */ jsx(IconButton, { "data-testid": "share-right-close-button", "aria-label": t("close"), color: "tertiary", icon: /* @__PURE__ */ jsx(SvgIconClose, {}), type: "button", variant: "ghost", title: t("close"), onClick: () => onDeleteRow(shareRight) }) })
|
|
50
50
|
] }, shareRight.id) : null;
|
|
51
51
|
});
|
|
52
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ID, PutShareResponse, RightStringified, ShareRight, ShareRightActionDisplayName, ShareUrls } from '@edifice.io/client';
|
|
1
|
+
import { ID, PutShareResponse, RightStringified, ShareRight, ShareRightAction, ShareRightActionDisplayName, ShareUrls } from '@edifice.io/client';
|
|
2
2
|
import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration options for sharing a resource
|
|
@@ -22,6 +22,12 @@ import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
|
22
22
|
* resourceRights: [],
|
|
23
23
|
* resourceCreatorId: 'user-67890',
|
|
24
24
|
* filteredActions: ['read', 'contrib'],
|
|
25
|
+
* defaultActions: [
|
|
26
|
+
* {
|
|
27
|
+
* id: 'read',
|
|
28
|
+
* displayName: 'read',
|
|
29
|
+
* },
|
|
30
|
+
* ],
|
|
25
31
|
* shareUrls: {
|
|
26
32
|
* getResourceRights: '/api/V1/thread/shares', (get endpoint)
|
|
27
33
|
* saveResourceRights: '/api/V1/thread/shares', (put endpoint)
|
|
@@ -37,6 +43,12 @@ import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
|
37
43
|
* resourceRights: [],
|
|
38
44
|
* resourceCreatorId: 'user-67890',
|
|
39
45
|
* filteredActions: ['read', 'contrib'],
|
|
46
|
+
* defaultActions: [
|
|
47
|
+
* {
|
|
48
|
+
* id: 'read',
|
|
49
|
+
* displayName: 'read',
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
40
52
|
* shareUrls: {
|
|
41
53
|
* getResourceRights: '/api/V1/info/shares', (get endpoint)
|
|
42
54
|
* saveResourceRights: '/api/V1/info/shares', (put endpoint)
|
|
@@ -51,6 +63,7 @@ export type ShareOptions = {
|
|
|
51
63
|
resourceCreatorId: string;
|
|
52
64
|
filteredActions?: ShareRightActionDisplayName[];
|
|
53
65
|
shareUrls?: ShareUrls;
|
|
66
|
+
defaultActions?: ShareRightAction[];
|
|
54
67
|
};
|
|
55
68
|
/**
|
|
56
69
|
* React Query mutation result for share operations
|
|
@@ -33,7 +33,14 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
33
33
|
resourceCreatorId,
|
|
34
34
|
resourceRights,
|
|
35
35
|
filteredActions,
|
|
36
|
-
shareUrls
|
|
36
|
+
shareUrls,
|
|
37
|
+
defaultActions = [{
|
|
38
|
+
id: "read",
|
|
39
|
+
displayName: "read"
|
|
40
|
+
}, {
|
|
41
|
+
id: "comment",
|
|
42
|
+
displayName: "comment"
|
|
43
|
+
}]
|
|
37
44
|
} = shareOptions, [isLoading, setIsLoading] = useState(!0), [isSavingBookmark, setIsSavingBookmark] = useState(!1), {
|
|
38
45
|
state: {
|
|
39
46
|
isSharing,
|
|
@@ -72,7 +79,8 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
72
79
|
resourceCreatorId,
|
|
73
80
|
shareRights,
|
|
74
81
|
shareDispatch,
|
|
75
|
-
urlResourceRights: shareUrls == null ? void 0 : shareUrls.getResourceRights
|
|
82
|
+
urlResourceRights: shareUrls == null ? void 0 : shareUrls.getResourceRights,
|
|
83
|
+
defaultActions
|
|
76
84
|
}), {
|
|
77
85
|
refBookmark,
|
|
78
86
|
showBookmark,
|
|
@@ -124,7 +132,7 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
124
132
|
] })
|
|
125
133
|
] }) }),
|
|
126
134
|
/* @__PURE__ */ jsxs("div", { className: "mt-16", children: [
|
|
127
|
-
/* @__PURE__ */ jsx(Button, { color: "tertiary", leftIcon: /* @__PURE__ */ jsx(SvgIconBookmark, {}), rightIcon: /* @__PURE__ */ jsx(SvgIconRafterDown, { title: t("show"), className: "w-16 min-w-0", style: {
|
|
135
|
+
/* @__PURE__ */ jsx(Button, { "data-testid": "share-bookmark-show-button", color: "tertiary", leftIcon: /* @__PURE__ */ jsx(SvgIconBookmark, {}), rightIcon: /* @__PURE__ */ jsx(SvgIconRafterDown, { title: t("show"), className: "w-16 min-w-0", style: {
|
|
128
136
|
transition: "rotate 0.2s ease-out",
|
|
129
137
|
rotate: showBookmarkInput ? "-180deg" : "0deg"
|
|
130
138
|
} }), type: "button", variant: "ghost", className: "fw-normal", onClick: () => toggleBookmarkInput(!showBookmarkInput), children: t("share.save.sharebookmark") }),
|