@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.
Files changed (107) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/common.js +4 -0
  3. package/dist/_virtual/de_DE.js +4 -0
  4. package/dist/_virtual/de_DE2.js +4 -0
  5. package/dist/_virtual/de_DE3.js +4 -0
  6. package/dist/_virtual/de_DE4.js +4 -0
  7. package/dist/_virtual/de_DE5.js +4 -0
  8. package/dist/_virtual/de_DE6.js +4 -0
  9. package/dist/_virtual/defineProperty.js +4 -0
  10. package/dist/_virtual/es_ES.js +4 -0
  11. package/dist/_virtual/es_ES2.js +4 -0
  12. package/dist/_virtual/es_ES3.js +4 -0
  13. package/dist/_virtual/es_ES4.js +4 -0
  14. package/dist/_virtual/es_ES5.js +4 -0
  15. package/dist/_virtual/es_ES6.js +4 -0
  16. package/dist/_virtual/fr_FR.js +4 -0
  17. package/dist/_virtual/fr_FR2.js +4 -0
  18. package/dist/_virtual/fr_FR3.js +4 -0
  19. package/dist/_virtual/fr_FR4.js +4 -0
  20. package/dist/_virtual/fr_FR5.js +4 -0
  21. package/dist/_virtual/fr_FR6.js +4 -0
  22. package/dist/_virtual/interopRequireDefault.js +4 -0
  23. package/dist/_virtual/it_IT.js +4 -0
  24. package/dist/_virtual/it_IT2.js +4 -0
  25. package/dist/_virtual/it_IT3.js +4 -0
  26. package/dist/_virtual/it_IT4.js +4 -0
  27. package/dist/_virtual/it_IT5.js +4 -0
  28. package/dist/_virtual/it_IT6.js +4 -0
  29. package/dist/_virtual/localeData.js +4 -0
  30. package/dist/_virtual/objectSpread2.js +4 -0
  31. package/dist/_virtual/pt_PT.js +4 -0
  32. package/dist/_virtual/pt_PT2.js +4 -0
  33. package/dist/_virtual/pt_PT3.js +4 -0
  34. package/dist/_virtual/pt_PT4.js +4 -0
  35. package/dist/_virtual/pt_PT5.js +4 -0
  36. package/dist/_virtual/pt_PT6.js +4 -0
  37. package/dist/_virtual/toPrimitive.js +4 -0
  38. package/dist/_virtual/toPropertyKey.js +4 -0
  39. package/dist/_virtual/typeof.js +4 -0
  40. package/dist/_virtual/weekday.js +4 -0
  41. package/dist/components/Combobox/Combobox.js +1 -1
  42. package/dist/components/Combobox/ComboboxTrigger.js +1 -1
  43. package/dist/components/DatePicker/DatePicker.js +35 -0
  44. package/dist/components/DatePicker/index.d.ts +2 -0
  45. package/dist/components/Layout/components/Header.js +6 -1
  46. package/dist/components/SegmentedControl/SegmentedControl.js +4 -1
  47. package/dist/components/index.d.ts +1 -0
  48. package/dist/icons.js +80 -78
  49. package/dist/index.js +184 -182
  50. package/dist/modules/editor/components/Editor/Editor.js +1 -1
  51. package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +2 -2
  52. package/dist/modules/icons/components/IconSubmitToValidate.d.ts +7 -0
  53. package/dist/modules/icons/components/IconSubmitToValidate.js +12 -0
  54. package/dist/modules/icons/components/index.d.ts +1 -0
  55. package/dist/modules/modals/ShareModal/ShareBookmark.js +2 -2
  56. package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +4 -4
  57. package/dist/modules/modals/ShareModal/ShareResources.d.ts +14 -1
  58. package/dist/modules/modals/ShareModal/ShareResources.js +11 -3
  59. package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +4 -3
  60. package/dist/modules/modals/ShareModal/hooks/useSearch.js +10 -15
  61. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/defineProperty.js +18 -0
  62. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js +13 -0
  63. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/objectSpread2.js +31 -0
  64. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPrimitive.js +20 -0
  65. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPropertyKey.js +15 -0
  66. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js +16 -0
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js +82 -0
  93. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js +19 -0
  94. 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
  95. 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
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. package/dist/providers/AntThemeProvider/AntProvider.d.ts +2 -2
  106. package/dist/providers/AntThemeProvider/AntProvider.js +19 -2
  107. 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/Divider/Divider.js";
19
- import { default as default20 } from "./components/Dropdown/Dropdown.js";
20
- import { default as default21 } from "./components/Dropzone/Dropzone.js";
21
- import { default as default22 } from "./components/EmptyScreen/EmptyScreen.js";
22
- import { default as default23 } from "./components/Flex/Flex.js";
23
- import { default as default24 } from "./components/Form/FormText.js";
24
- import { default as default25 } from "./components/Form/FormControl.js";
25
- import { default as default26 } from "./components/Heading/Heading.js";
26
- import { default as default27 } from "./components/Image/Image.js";
27
- import { default as default28 } from "./components/Input/Input.js";
28
- import { default as default29 } from "./components/Label/Label.js";
29
- import { default as default30 } from "./components/Loading/Loading.js";
30
- import { default as default31 } from "./components/LoadingScreen/LoadingScreen.js";
31
- import { default as default32 } from "./components/Logo/Logo.js";
32
- import { default as default33 } from "./components/Modal/Modal.js";
33
- import { default as default34 } from "./components/PreventPropagation/PreventPropagation.js";
34
- import { default as default35 } from "./components/Radio/Radio.js";
35
- import { default as default36 } from "./components/RadioCard/RadioCard.js";
36
- import { default as default37 } from "./components/SearchBar/SearchBar.js";
37
- import { default as default38 } from "./components/SegmentedControl/SegmentedControl.js";
38
- import { default as default39 } from "./components/Select/Select.js";
39
- import { default as default40 } from "./components/Skeleton/ButtonSkeleton.js";
40
- import { default as default41 } from "./components/Skeleton/TextSkeleton.js";
41
- import { default as default42 } from "./components/StackedGroup/StackedGroup.js";
42
- import { default as default43 } from "./components/Stepper/Stepper.js";
43
- import { default as default44 } from "./components/Switch/Switch.js";
44
- import { default as default45 } from "./components/Table/components/Table.js";
45
- import { default as default46 } from "./components/TextArea/TextArea.js";
46
- import { default as default47 } from "./components/Tooltip/Tooltip.js";
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 default48 } from "./components/Tree/components/SortableTree.js";
49
- import { default as default49 } from "./components/Tree/components/Tree.js";
50
- import { default as default50 } from "./components/TreeView/TreeView.js";
51
- import { default as default51 } from "./components/VisuallyHidden/VisuallyHidden.js";
52
- import { default as default52 } from "./hooks/useBookmark/useBookmark.js";
53
- import { default as default53 } from "./hooks/useBreakpoint/useBreakpoint.js";
54
- import { default as default54 } from "./hooks/useBrowserInfo/useBrowserInfo.js";
55
- import { default as default55 } from "./hooks/useCantoo/useCantoo.js";
56
- import { default as default56 } from "./hooks/useClickOutside/useClickOutside.js";
57
- import { default as default57 } from "./hooks/useConversation/useConversation.js";
58
- import { default as default58 } from "./hooks/useDate/useDate.js";
59
- import { default as default59 } from "./hooks/useDebounce/useDebounce.js";
60
- import { default as default60 } from "./hooks/useDirectory/useDirectory.js";
61
- import { default as default61 } from "./hooks/useDropdown/useDropdown.js";
62
- import { default as default62 } from "./hooks/useDropzone/useDropzone.js";
63
- import { default as default63 } from "./hooks/useEdificeIcons/useEdificeIcons.js";
64
- import { default as default64 } from "./hooks/useHasWorkflow/useHasWorkflow.js";
65
- import { default as default65 } from "./hooks/useHover/useHover.js";
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 default66 } from "./hooks/useImage/useImage.js";
68
- import { default as default67 } from "./hooks/useInfiniteScroll/useInfiniteScroll.js";
69
- import { default as default68 } from "./hooks/useIsAdml/useIsAdml.js";
70
- import { default as default69 } from "./hooks/useIsAdmc/useIsAdmc.js";
71
- import { default as default70 } from "./hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js";
72
- import { default as default71 } from "./hooks/useKeyPress/useKeyPress.js";
73
- import { default as default72 } from "./hooks/useLibraryUrl/useLibraryUrl.js";
74
- import { default as default73 } from "./hooks/useMediaLibrary/useMediaLibrary.js";
75
- import { default as default74 } from "./hooks/useScrollToTop/useScrollToTop.js";
76
- import { default as default75 } from "./hooks/useTitle/useTitle.js";
77
- import { default as default76 } from "./hooks/useToast/useToast.js";
78
- import { default as default77 } from "./hooks/useToggle/useToggle.js";
79
- import { default as default78 } from "./hooks/useTrapFocus/useTrapFocus.js";
80
- import { default as default79 } from "./hooks/useTrashedResource/useTrashedResource.js";
81
- import { default as default80 } from "./hooks/useUpload/useUpload.js";
82
- import { default as default81 } from "./hooks/useUploadFiles/useUploadFiles.js";
83
- import { default as default82 } from "./hooks/useUser/useUser.js";
84
- import { default as default83 } from "./hooks/useWorkspaceFile/useWorkspaceFile.js";
85
- import { default as default84 } from "./hooks/useWorkspaceFolders/useWorkspaceFolders.js";
86
- import { WORKSPACE_SHARED_FOLDER_ID, WORKSPACE_USER_FOLDER_ID, default as default85 } from "./hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js";
87
- import { default as default86 } from "./hooks/useWorkspaceSearch/useWorkspaceSearch.js";
88
- import { default as default87 } from "./hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js";
89
- import { default as default88 } from "./hooks/useZendeskGuide/useZendeskGuide.js";
90
- import { default as default89 } from "./modules/modals/ConfirmModal/ConfirmModal.js";
91
- import { default as default90 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
92
- import { default as default91 } from "./modules/modals/PublishModal/PublishModal.js";
93
- import { default as default92 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
94
- import { default as default93 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
95
- import { default as default94 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
96
- import { default as default95 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
97
- import { default as default96 } from "./modules/modals/ShareModal/ShareModal.js";
98
- import { default as default97 } from "./modules/modals/ShareModal/ShareResources.js";
99
- import { default as default98 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
100
- import { default as default99 } from "./modules/multimedia/Embed/Embed.js";
101
- import { default as default100 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
102
- import { default as default101 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
103
- import { default as default102 } from "./modules/multimedia/FileCard/FileCard.js";
104
- import { default as default103 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
105
- import { default as default104 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
106
- import { default as default105 } from "./modules/multimedia/UploadCard/UploadCard.js";
107
- import { default as default106 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
108
- import { default as default107 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
109
- import { default as default108 } from "./modules/multimedia/Workspace/Workspace.js";
110
- import { default as default109 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
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
- default98 as AudioRecorder,
151
+ default99 as AudioRecorder,
151
152
  default7 as Avatar,
152
153
  default8 as AvatarGroup,
153
154
  default9 as Badge,
154
- default92 as BlogPublic,
155
+ default93 as BlogPublic,
155
156
  default10 as Breadcrumb,
156
157
  default11 as Button,
157
- default40 as ButtonSkeleton,
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
- default89 as ConfirmModal,
165
+ default90 as ConfirmModal,
166
+ default19 as DatePicker,
165
167
  DefaultPalette,
166
- default19 as Divider,
168
+ default20 as Divider,
167
169
  DndTree,
168
- default20 as Dropdown,
169
- default21 as Dropzone,
170
+ default21 as Dropdown,
171
+ default22 as Dropzone,
170
172
  DropzoneContext,
171
173
  EdificeClientContext,
172
174
  EdificeClientProvider,
173
175
  EdificeThemeContext,
174
176
  EdificeThemeProvider,
175
- default99 as Embed,
176
- default22 as EmptyScreen,
177
+ default100 as Embed,
178
+ default23 as EmptyScreen,
177
179
  ExternalLinker,
178
- default102 as FileCard,
179
- default23 as Flex,
180
- default25 as FormControl,
181
- default24 as FormText,
180
+ default103 as FileCard,
181
+ default24 as Flex,
182
+ default26 as FormControl,
183
+ default25 as FormText,
182
184
  Grid,
183
- default26 as Heading,
185
+ default27 as Heading,
184
186
  default12 as IconButton,
185
- default27 as Image,
186
- default100 as ImageEditor,
187
- default101 as ImagePicker,
188
- default28 as Input,
187
+ default28 as Image,
188
+ default101 as ImageEditor,
189
+ default102 as ImagePicker,
190
+ default29 as Input,
189
191
  InternalLinker,
190
- default29 as Label,
192
+ default30 as Label,
191
193
  Layout,
192
194
  List,
193
- default30 as Loading,
194
- default31 as LoadingScreen,
195
- default32 as Logo,
196
- default103 as MediaLibrary,
195
+ default31 as Loading,
196
+ default32 as LoadingScreen,
197
+ default33 as Logo,
198
+ default104 as MediaLibrary,
197
199
  Menu,
198
200
  MockedProvider,
199
- default33 as Modal,
200
- default90 as OnboardingModal,
201
+ default34 as Modal,
202
+ default91 as OnboardingModal,
201
203
  Popover,
202
204
  PopoverBody,
203
205
  PopoverFooter,
204
206
  PopoverHeader,
205
- default34 as PreventPropagation,
206
- default91 as PublishModal,
207
- default35 as Radio,
208
- default36 as RadioCard,
207
+ default35 as PreventPropagation,
208
+ default92 as PublishModal,
209
+ default36 as Radio,
210
+ default37 as RadioCard,
209
211
  ResourceModal,
210
- default37 as SearchBar,
212
+ default38 as SearchBar,
211
213
  default13 as SearchButton,
212
- default38 as SegmentedControl,
213
- default39 as Select,
214
- default94 as ShareBlog,
215
- default96 as ShareModal,
216
- default97 as ShareResources,
217
- default48 as SortableTree,
218
- default42 as StackedGroup,
219
- default43 as Stepper,
220
- default44 as Switch,
221
- default45 as Table,
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
- default46 as TextArea,
224
- default41 as TextSkeleton,
225
+ default47 as TextArea,
226
+ default42 as TextSkeleton,
225
227
  Toolbar,
226
- default47 as Tooltip,
227
- default49 as Tree,
228
+ default48 as Tooltip,
229
+ default50 as Tree,
228
230
  TreeNode,
229
231
  TreeNodeFolderWrapper,
230
- default50 as TreeView,
232
+ default51 as TreeView,
231
233
  Upload,
232
- default105 as UploadCard,
233
- default104 as UploadFiles,
234
- default106 as VideoEmbed,
235
- default107 as VideoRecorder,
236
- default51 as VisuallyHidden,
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
- default108 as Workspace,
240
- default109 as WorkspaceFolders,
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
- default52 as useBookmark,
270
- default53 as useBreakpoint,
271
- default54 as useBrowserInfo,
272
- default55 as useCantoo,
271
+ default53 as useBookmark,
272
+ default54 as useBreakpoint,
273
+ default55 as useBrowserInfo,
274
+ default56 as useCantoo,
273
275
  useCheckable,
274
- default56 as useClickOutside,
275
- default57 as useConversation,
276
- default58 as useDate,
277
- default59 as useDebounce,
278
- default60 as useDirectory,
279
- default61 as useDropdown,
280
- default62 as useDropzone,
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
- default63 as useEdificeIcons,
285
+ default64 as useEdificeIcons,
284
286
  useEdificeTheme,
285
- default64 as useHasWorkflow,
286
- default65 as useHover,
287
+ default65 as useHasWorkflow,
288
+ default66 as useHover,
287
289
  useHttpErrorToast,
288
- default66 as useImage,
289
- default67 as useInfiniteScroll,
290
- default69 as useIsAdmc,
291
- default68 as useIsAdml,
292
- default70 as useIsAdmlcOrAdmc,
293
- default71 as useKeyPress,
294
- default72 as useLibraryUrl,
295
- default73 as useMediaLibrary,
296
- default74 as useScrollToTop,
297
- default95 as useShareMutation,
298
- default75 as useTitle,
299
- default76 as useToast,
300
- default77 as useToggle,
301
- default78 as useTrapFocus,
302
- default79 as useTrashedResource,
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
- default93 as useUpdateMutation,
306
- default80 as useUpload,
307
- default81 as useUploadFiles,
308
- default82 as useUser,
309
- default83 as useWorkspaceFile,
310
- default84 as useWorkspaceFolders,
311
- default85 as useWorkspaceFoldersTree,
312
- default86 as useWorkspaceSearch,
313
- default87 as useXitiTrackPageLoad,
314
- default88 as useZendeskGuide,
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.documentId) })
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") }),