@reltio/components 1.4.1638 → 1.4.1639

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 (431) hide show
  1. package/cjs/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
  2. package/cjs/components/AttributeSelector/AttributeSelector.js +2 -3
  3. package/cjs/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +4 -5
  4. package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
  5. package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +6 -17
  6. package/cjs/components/BasicView/BasicView.d.ts +1 -1
  7. package/cjs/components/CollaborationItem/Comment/Comment.js +1 -3
  8. package/cjs/components/CollaborationItem/CommentTarget/CommentTarget.js +2 -4
  9. package/cjs/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
  10. package/cjs/components/CollaborationItem/RepliedComment/RepliedComment.js +1 -3
  11. package/cjs/components/CollaborationItem/SendMessageArea/SendMessageArea.js +1 -3
  12. package/cjs/components/ColoredSourceIcon/ColoredSourceIcon.js +1 -3
  13. package/cjs/components/ConnectionEditor/ConnectionEditor.js +3 -6
  14. package/cjs/components/DataTenantBadge/DataTenantBadge.js +6 -4
  15. package/cjs/components/DataTypeValue/DataTypeValue.js +4 -5
  16. package/cjs/components/EntityAvatar/EntityAvatar.js +4 -5
  17. package/cjs/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
  18. package/cjs/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
  19. package/cjs/components/EntityUriLink/EntityUriLink.js +4 -6
  20. package/cjs/components/ErrorPopup/ErrorPopup.d.ts +13 -8
  21. package/cjs/components/ErrorPopup/ErrorPopup.js +23 -18
  22. package/cjs/components/ErrorPopup/styles.d.ts +1 -1
  23. package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.js +4 -6
  24. package/cjs/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -6
  25. package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
  26. package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
  27. package/cjs/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
  28. package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
  29. package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
  30. package/cjs/components/ImageDetailsView/hooks/useEditMetaInfo.js +3 -10
  31. package/cjs/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
  32. package/cjs/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
  33. package/cjs/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
  34. package/cjs/components/ModeSwitcher/styles.d.ts +1 -1
  35. package/cjs/components/PivotingUriLink/PivotingUriLink.js +1 -3
  36. package/cjs/components/Popper/Popper.d.ts +1 -1
  37. package/cjs/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  38. package/cjs/components/ProfileBand/ProfileBand.js +3 -4
  39. package/cjs/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  40. package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigation.js +19 -54
  41. package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -8
  42. package/cjs/components/ProfilesList/ProfilesList.d.ts +2 -3
  43. package/cjs/components/ProfilesList/ProfilesList.js +3 -1
  44. package/cjs/components/RelationEditor/RelationEditor.js +46 -33
  45. package/cjs/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
  46. package/cjs/components/SelectAttributesList/SelectAttributesList.js +2 -3
  47. package/cjs/components/SmallIconButton/SmallIconButton.d.ts +1 -1
  48. package/cjs/components/SmallIconButton/index.d.ts +1 -1
  49. package/cjs/components/SourceIcon/SourceIcon.js +2 -3
  50. package/cjs/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
  51. package/cjs/components/TenantLabel/TenantLabel.js +3 -4
  52. package/cjs/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  53. package/cjs/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  54. package/cjs/components/UploadImageDialog/UploadImageDialog.js +4 -5
  55. package/cjs/components/UserSelector/UserSelector.js +3 -4
  56. package/cjs/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  57. package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  58. package/cjs/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  59. package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  60. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  61. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  62. package/cjs/components/activityLog/activities/GroupActivity.js +2 -3
  63. package/cjs/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  64. package/cjs/components/activityLog/activities/SearchActivity.js +6 -7
  65. package/cjs/components/activityLog/activities/fields/DeltaField.js +7 -8
  66. package/cjs/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  67. package/cjs/components/activityLog/activities/records/EntityRecord.js +8 -9
  68. package/cjs/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  69. package/cjs/components/attributes/AttributesView/AttributesView.js +8 -4
  70. package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  71. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  72. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.js +8 -9
  73. package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  74. package/cjs/components/attributes/OvIcon/OvIcon.js +4 -6
  75. package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +3 -5
  76. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  77. package/cjs/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  78. package/cjs/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  79. package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  80. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  81. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +10 -2
  82. package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  83. package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  84. package/cjs/components/attributes/editMode/AttributesPager/index.js +5 -44
  85. package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  86. package/cjs/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  87. package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  88. package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +10 -12
  89. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  90. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  91. package/cjs/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  92. package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +3 -6
  93. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  94. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  95. package/cjs/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  96. package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +16 -15
  97. package/cjs/components/attributes/editMode/Roles/Roles.js +4 -5
  98. package/cjs/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +4 -9
  99. package/cjs/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -30
  100. package/cjs/components/attributes/editMode/Tags/Tags.js +3 -4
  101. package/cjs/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +3 -5
  102. package/cjs/components/attributes/inline/common/SourceItem.js +2 -4
  103. package/cjs/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  104. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  105. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  106. package/cjs/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  107. package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  108. package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  109. package/cjs/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  110. package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +3 -4
  111. package/cjs/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  112. package/cjs/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +2 -4
  113. package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -6
  114. package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -4
  115. package/cjs/components/attributes/types/attributesView.d.ts +2 -7
  116. package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  117. package/cjs/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  118. package/cjs/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  119. package/cjs/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +1 -3
  120. package/cjs/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  121. package/cjs/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  122. package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +11 -12
  123. package/cjs/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  124. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  125. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +10 -36
  126. package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  127. package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  128. package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  129. package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  130. package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -32
  131. package/cjs/components/history/HistoryTree/HistoryTree.js +9 -8
  132. package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
  133. package/cjs/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -31
  134. package/cjs/components/history/hooks/useHistoryDiff.js +8 -32
  135. package/cjs/components/history/hooks/useHistorySlice.js +4 -28
  136. package/cjs/components/index.d.ts +6 -6
  137. package/cjs/components/index.js +6 -6
  138. package/cjs/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  139. package/cjs/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  140. package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  141. package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  142. package/cjs/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  143. package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -11
  144. package/cjs/components/workflow/hooks/useWorkflowAssignee.js +3 -8
  145. package/cjs/components/workflow/hooks/useWorkflowCheckPermission.js +24 -25
  146. package/cjs/components/workflow/hooks/useWorkflowComments.js +4 -8
  147. package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +6 -30
  148. package/cjs/components/workflow/hooks/useWorkflowDefinitions.js +5 -9
  149. package/cjs/components/workflow/hooks/useWorkflowDueDate.js +4 -8
  150. package/cjs/components/workflow/hooks/useWorkflowPriority.js +4 -5
  151. package/cjs/components/workflow/hooks/useWorkflowProcessInstance.js +6 -10
  152. package/cjs/components/workflow/hooks/useWorkflowTasks.js +11 -15
  153. package/cjs/contexts/ActionsHookContext/index.d.ts +4 -1
  154. package/cjs/contexts/CollaborationContext/index.js +2 -2
  155. package/cjs/contexts/MdmModuleContext/context.d.ts +243 -0
  156. package/cjs/contexts/MdmModuleContext/context.js +7 -0
  157. package/cjs/contexts/MdmModuleContext/hooks.d.ts +139 -0
  158. package/cjs/contexts/MdmModuleContext/hooks.js +206 -0
  159. package/cjs/contexts/MdmModuleContext/index.d.ts +3 -0
  160. package/cjs/contexts/MdmModuleContext/index.js +70 -0
  161. package/cjs/contexts/MdmModuleContext/provider.d.ts +10 -0
  162. package/cjs/contexts/MdmModuleContext/provider.js +15 -0
  163. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  164. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +132 -0
  165. package/cjs/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  166. package/cjs/contexts/MdmModuleContext/selectors/entity.js +11 -0
  167. package/cjs/contexts/MdmModuleContext/selectors.d.ts +3 -0
  168. package/cjs/contexts/MdmModuleContext/selectors.js +11 -0
  169. package/cjs/contexts/index.d.ts +1 -0
  170. package/cjs/contexts/index.js +15 -0
  171. package/cjs/hooks/useAPI/useAPI.js +14 -40
  172. package/cjs/hooks/useCollaboration.js +5 -9
  173. package/cjs/hooks/useCommentsEntitiesMap.js +2 -6
  174. package/cjs/hooks/useConfigPermissions.js +3 -7
  175. package/cjs/hooks/useCustomScripts.js +13 -39
  176. package/cjs/hooks/useEditableConnection.js +2 -6
  177. package/cjs/hooks/useMarkAsNotMatchRequest.js +4 -8
  178. package/cjs/hooks/useMatchesLoader.js +5 -9
  179. package/cjs/hooks/useMergeAllRequest.js +16 -30
  180. package/cjs/hooks/useReadableSearchState.js +8 -32
  181. package/cjs/hooks/useRelationsLoader.js +9 -33
  182. package/cjs/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  183. package/cjs/hooks/useUsers.js +4 -5
  184. package/esm/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
  185. package/esm/components/AttributeSelector/AttributeSelector.js +2 -3
  186. package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +5 -6
  187. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
  188. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +7 -18
  189. package/esm/components/BasicView/BasicView.d.ts +1 -1
  190. package/esm/components/CollaborationItem/Comment/Comment.js +2 -4
  191. package/esm/components/CollaborationItem/CommentTarget/CommentTarget.js +3 -5
  192. package/esm/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
  193. package/esm/components/CollaborationItem/RepliedComment/RepliedComment.js +2 -4
  194. package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +2 -4
  195. package/esm/components/ColoredSourceIcon/ColoredSourceIcon.js +2 -4
  196. package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -6
  197. package/esm/components/DataTenantBadge/DataTenantBadge.js +6 -4
  198. package/esm/components/DataTypeValue/DataTypeValue.js +4 -5
  199. package/esm/components/EntityAvatar/EntityAvatar.js +4 -5
  200. package/esm/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
  201. package/esm/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
  202. package/esm/components/EntityUriLink/EntityUriLink.js +5 -7
  203. package/esm/components/ErrorPopup/ErrorPopup.d.ts +13 -8
  204. package/esm/components/ErrorPopup/ErrorPopup.js +23 -18
  205. package/esm/components/ErrorPopup/styles.d.ts +1 -1
  206. package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +5 -7
  207. package/esm/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -3
  208. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
  209. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
  210. package/esm/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
  211. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
  212. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
  213. package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -11
  214. package/esm/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
  215. package/esm/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
  216. package/esm/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
  217. package/esm/components/ModeSwitcher/styles.d.ts +1 -1
  218. package/esm/components/PivotingUriLink/PivotingUriLink.js +2 -4
  219. package/esm/components/Popper/Popper.d.ts +1 -1
  220. package/esm/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  221. package/esm/components/ProfileBand/ProfileBand.js +3 -4
  222. package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  223. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +20 -32
  224. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -5
  225. package/esm/components/ProfilesList/ProfilesList.d.ts +2 -3
  226. package/esm/components/ProfilesList/ProfilesList.js +3 -1
  227. package/esm/components/RelationEditor/RelationEditor.js +49 -36
  228. package/esm/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
  229. package/esm/components/SelectAttributesList/SelectAttributesList.js +2 -3
  230. package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
  231. package/esm/components/SmallIconButton/index.d.ts +1 -1
  232. package/esm/components/SourceIcon/SourceIcon.js +2 -3
  233. package/esm/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
  234. package/esm/components/TenantLabel/TenantLabel.js +3 -4
  235. package/esm/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  236. package/esm/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  237. package/esm/components/UploadImageDialog/UploadImageDialog.js +4 -5
  238. package/esm/components/UserSelector/UserSelector.js +3 -4
  239. package/esm/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  240. package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  241. package/esm/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  242. package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  243. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  244. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  245. package/esm/components/activityLog/activities/GroupActivity.js +2 -3
  246. package/esm/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  247. package/esm/components/activityLog/activities/SearchActivity.js +6 -7
  248. package/esm/components/activityLog/activities/fields/DeltaField.js +7 -8
  249. package/esm/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  250. package/esm/components/activityLog/activities/records/EntityRecord.js +8 -9
  251. package/esm/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  252. package/esm/components/attributes/AttributesView/AttributesView.js +10 -6
  253. package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  254. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  255. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.js +9 -10
  256. package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  257. package/esm/components/attributes/OvIcon/OvIcon.js +5 -7
  258. package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -6
  259. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  260. package/esm/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  261. package/esm/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  262. package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  263. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  264. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +12 -4
  265. package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  266. package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  267. package/esm/components/attributes/editMode/AttributesPager/index.js +2 -19
  268. package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  269. package/esm/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  270. package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  271. package/esm/components/attributes/editMode/AttributesView/AttributesView.js +11 -13
  272. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  273. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  274. package/esm/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  275. package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +4 -7
  276. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  277. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  278. package/esm/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  279. package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +18 -17
  280. package/esm/components/attributes/editMode/Roles/Roles.js +4 -5
  281. package/esm/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +5 -10
  282. package/esm/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -7
  283. package/esm/components/attributes/editMode/Tags/Tags.js +3 -4
  284. package/esm/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +4 -6
  285. package/esm/components/attributes/inline/common/SourceItem.js +3 -5
  286. package/esm/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  287. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  288. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  289. package/esm/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  290. package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  291. package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  292. package/esm/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  293. package/esm/components/attributes/readMode/AttributesView/AttributesView.js +4 -5
  294. package/esm/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  295. package/esm/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +4 -6
  296. package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -3
  297. package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +3 -5
  298. package/esm/components/attributes/types/attributesView.d.ts +2 -7
  299. package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  300. package/esm/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  301. package/esm/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  302. package/esm/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +2 -4
  303. package/esm/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  304. package/esm/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  305. package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +12 -13
  306. package/esm/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  307. package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  308. package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +10 -13
  309. package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  310. package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  311. package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  312. package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  313. package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -9
  314. package/esm/components/history/HistoryTree/HistoryTree.js +9 -8
  315. package/esm/components/history/HistoryTree/styles.d.ts +1 -1
  316. package/esm/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -8
  317. package/esm/components/history/hooks/useHistoryDiff.js +8 -9
  318. package/esm/components/history/hooks/useHistorySlice.js +4 -5
  319. package/esm/components/index.d.ts +6 -6
  320. package/esm/components/index.js +6 -6
  321. package/esm/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  322. package/esm/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  323. package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  324. package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  325. package/esm/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  326. package/esm/components/workflow/hooks/useWorkflowActions.js +5 -7
  327. package/esm/components/workflow/hooks/useWorkflowAssignee.js +4 -6
  328. package/esm/components/workflow/hooks/useWorkflowCheckPermission.js +24 -22
  329. package/esm/components/workflow/hooks/useWorkflowComments.js +4 -5
  330. package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +7 -8
  331. package/esm/components/workflow/hooks/useWorkflowDefinitions.js +5 -6
  332. package/esm/components/workflow/hooks/useWorkflowDueDate.js +4 -5
  333. package/esm/components/workflow/hooks/useWorkflowPriority.js +4 -5
  334. package/esm/components/workflow/hooks/useWorkflowProcessInstance.js +6 -7
  335. package/esm/components/workflow/hooks/useWorkflowTasks.js +11 -12
  336. package/esm/contexts/ActionsHookContext/index.d.ts +4 -1
  337. package/esm/contexts/CollaborationContext/index.js +1 -1
  338. package/esm/contexts/MdmModuleContext/context.d.ts +243 -0
  339. package/esm/contexts/MdmModuleContext/context.js +4 -0
  340. package/esm/contexts/MdmModuleContext/hooks.d.ts +139 -0
  341. package/esm/contexts/MdmModuleContext/hooks.js +139 -0
  342. package/esm/contexts/MdmModuleContext/index.d.ts +3 -0
  343. package/esm/contexts/MdmModuleContext/index.js +2 -0
  344. package/esm/contexts/MdmModuleContext/provider.d.ts +10 -0
  345. package/esm/contexts/MdmModuleContext/provider.js +8 -0
  346. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  347. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +123 -0
  348. package/esm/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  349. package/esm/contexts/MdmModuleContext/selectors/entity.js +6 -0
  350. package/esm/contexts/MdmModuleContext/selectors.d.ts +3 -0
  351. package/esm/contexts/MdmModuleContext/selectors.js +6 -0
  352. package/esm/contexts/index.d.ts +1 -0
  353. package/esm/contexts/index.js +1 -0
  354. package/esm/hooks/useAPI/useAPI.js +15 -18
  355. package/esm/hooks/useCollaboration.js +5 -6
  356. package/esm/hooks/useCommentsEntitiesMap.js +2 -3
  357. package/esm/hooks/useConfigPermissions.js +3 -4
  358. package/esm/hooks/useCustomScripts.js +14 -17
  359. package/esm/hooks/useEditableConnection.js +2 -3
  360. package/esm/hooks/useMarkAsNotMatchRequest.js +4 -5
  361. package/esm/hooks/useMatchesLoader.js +5 -6
  362. package/esm/hooks/useMergeAllRequest.js +16 -7
  363. package/esm/hooks/useReadableSearchState.js +8 -9
  364. package/esm/hooks/useRelationsLoader.js +9 -10
  365. package/esm/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  366. package/esm/hooks/useUsers.js +4 -5
  367. package/package.json +3 -4
  368. package/cjs/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  369. package/cjs/components/ProfileBandNavigation/helpers/index.js +0 -70
  370. package/cjs/components/ProfileBandNavigation/types/index.d.ts +0 -15
  371. package/cjs/components/ProfileBandNavigation/types/index.js +0 -2
  372. package/cjs/components/ProfilesList/index.d.ts +0 -27
  373. package/cjs/components/ProfilesList/index.js +0 -16
  374. package/cjs/components/RelationEditor/index.d.ts +0 -6
  375. package/cjs/components/RelationEditor/index.js +0 -50
  376. package/cjs/components/attributes/AttributesView/index.d.ts +0 -7
  377. package/cjs/components/attributes/AttributesView/index.js +0 -15
  378. package/cjs/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  379. package/cjs/components/attributes/editMode/AttributesView/index.js +0 -14
  380. package/cjs/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  381. package/cjs/components/attributes/editMode/EntityCreator/index.js +0 -42
  382. package/cjs/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  383. package/cjs/components/attributes/editMode/ReferenceAttribute/index.js +0 -48
  384. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  385. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -34
  386. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  387. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -19
  388. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  389. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -20
  390. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  391. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -79
  392. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  393. package/cjs/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  394. package/cjs/components/attributes/readMode/AttributesPager/index.js +0 -43
  395. package/cjs/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  396. package/cjs/components/attributes/readMode/AttributesView/index.js +0 -14
  397. package/cjs/test-utils/store-utils.d.ts +0 -78
  398. package/cjs/test-utils/store-utils.js +0 -19
  399. package/esm/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  400. package/esm/components/ProfileBandNavigation/helpers/index.js +0 -66
  401. package/esm/components/ProfileBandNavigation/types/index.d.ts +0 -15
  402. package/esm/components/ProfileBandNavigation/types/index.js +0 -1
  403. package/esm/components/ProfilesList/index.d.ts +0 -27
  404. package/esm/components/ProfilesList/index.js +0 -10
  405. package/esm/components/RelationEditor/index.d.ts +0 -6
  406. package/esm/components/RelationEditor/index.js +0 -21
  407. package/esm/components/attributes/AttributesView/index.d.ts +0 -7
  408. package/esm/components/attributes/AttributesView/index.js +0 -9
  409. package/esm/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  410. package/esm/components/attributes/editMode/AttributesView/index.js +0 -8
  411. package/esm/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  412. package/esm/components/attributes/editMode/EntityCreator/index.js +0 -13
  413. package/esm/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  414. package/esm/components/attributes/editMode/ReferenceAttribute/index.js +0 -19
  415. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  416. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -27
  417. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  418. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -15
  419. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  420. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -13
  421. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  422. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -72
  423. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  424. package/esm/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  425. package/esm/components/attributes/readMode/AttributesPager/index.js +0 -14
  426. package/esm/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  427. package/esm/components/attributes/readMode/AttributesView/index.js +0 -8
  428. package/esm/test-utils/store-utils.d.ts +0 -78
  429. package/esm/test-utils/store-utils.js +0 -12
  430. /package/cjs/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
  431. /package/esm/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
@@ -1,25 +1,21 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.useMatchesLoader = void 0;
7
4
  var react_1 = require("react");
8
- var react_redux_1 = require("react-redux");
9
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
10
5
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
11
6
  var usePagingSimulator_1 = require("./usePagingSimulator");
12
7
  var useSafePromise_1 = require("./useSafePromise");
8
+ var contexts_1 = require("../contexts");
13
9
  var useMatchesLoader = function (_a) {
14
10
  var enabled = _a.enabled, entity = _a.entity, filter = _a.filter, rules = _a.rules, onFinishLoading = _a.onFinishLoading, onStartLoading = _a.onStartLoading, options = _a.options, page = _a.page, rowsPerPage = _a.rowsPerPage, sorting = _a.sorting, markMatchedValues = _a.markMatchedValues;
15
11
  var _b = sorting || {}, order = _b.order, field = _b.field;
16
12
  var _c = (0, react_1.useState)(0), total = _c[0], setTotal = _c[1];
17
13
  var _d = (0, react_1.useState)([]), matches = _d[0], setMatches = _d[1];
18
14
  var _e = (0, react_1.useState)({}), entitiesMap = _e[0], setEntitiesMap = _e[1];
19
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
20
- var dtssPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDtssPath);
21
- var dataTenants = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDataTenants);
22
- var _f = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getGlobalSearchRequestOptions) || {}, activityFilter = _f.activityFilter, globalFilter = _f.globalFilter;
15
+ var tenant = (0, contexts_1.useMdmTenant)();
16
+ var dtssPath = (0, contexts_1.useMdmDtssPath)();
17
+ var dataTenants = (0, contexts_1.useMdmDataTenants)();
18
+ var _f = (0, contexts_1.useMdmGlobalSearchRequestOptions)() || {}, activityFilter = _f.activityFilter, globalFilter = _f.globalFilter;
23
19
  var activeness = typeof options.showInactiveEntities === 'boolean'
24
20
  ? options.showInactiveEntities
25
21
  ? mdm_sdk_1.ActivityFilters.ALL
@@ -1,43 +1,19 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.useMergeAllRequest = void 0;
27
4
  var react_1 = require("react");
28
- var react_redux_1 = require("react-redux");
29
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
30
5
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
31
6
  var core_1 = require("../core");
32
7
  var useIsMountedRef_1 = require("./useIsMountedRef");
33
8
  var merge_1 = require("./helpers/merge");
9
+ var contexts_1 = require("../contexts");
34
10
  var useMergeAllRequest = function (_a) {
35
11
  var entities = _a.entities, entity = _a.entity, onFinishRequest = _a.onFinishRequest, onStartRequest = _a.onStartRequest, onSuccess = _a.onSuccess, _b = _a.onError, onError = _b === void 0 ? core_1.noop : _b;
36
12
  var isMountedRef = (0, useIsMountedRef_1.useIsMountedRef)();
37
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
38
- var dtssPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDtssPath);
39
13
  var _c = (0, react_1.useState)(false), isPending = _c[0], setIsPending = _c[1];
40
- var dispatch = (0, react_redux_1.useDispatch)();
14
+ var updateSearchNavigationDataOnMerge = (0, contexts_1.useMdmAction)('updateSearchNavigationDataOnMerge');
15
+ var tenant = (0, contexts_1.useMdmTenant)();
16
+ var dtssPath = (0, contexts_1.useMdmDtssPath)();
41
17
  var sendMergeAllRequest = (0, react_1.useCallback)(function () {
42
18
  onStartRequest === null || onStartRequest === void 0 ? void 0 : onStartRequest();
43
19
  setIsPending(true);
@@ -50,7 +26,7 @@ var useMergeAllRequest = function (_a) {
50
26
  var uris = (0, merge_1.getWinnerLosersUrisFromMergeResponses)(entity, entities, responses);
51
27
  if (uris) {
52
28
  var winnerUri = uris.winnerUri, losersUris = uris.losersUris;
53
- dispatch(mdm_module_1.search.actions.updateSearchNavigationDataOnMerge({ winnerUri: winnerUri, losersUris: losersUris }));
29
+ updateSearchNavigationDataOnMerge({ winnerUri: winnerUri, losersUris: losersUris });
54
30
  }
55
31
  })
56
32
  .catch(onError)
@@ -58,7 +34,17 @@ var useMergeAllRequest = function (_a) {
58
34
  onFinishRequest === null || onFinishRequest === void 0 ? void 0 : onFinishRequest();
59
35
  isMountedRef.current && setIsPending(false);
60
36
  });
61
- }, [dtssPath, entities, entity, onError, onFinishRequest, onStartRequest, onSuccess, tenant, dispatch]);
37
+ }, [
38
+ dtssPath,
39
+ entities,
40
+ entity,
41
+ onError,
42
+ onFinishRequest,
43
+ onStartRequest,
44
+ onSuccess,
45
+ tenant,
46
+ updateSearchNavigationDataOnMerge
47
+ ]);
62
48
  return { isPending: isPending, sendMergeAllRequest: sendMergeAllRequest };
63
49
  };
64
50
  exports.useMergeAllRequest = useMergeAllRequest;
@@ -1,50 +1,26 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.useReadableSearchState = void 0;
27
4
  var react_1 = require("react");
28
- var react_redux_1 = require("react-redux");
29
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
30
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
31
5
  var ramda_1 = require("ramda");
6
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
7
+ var contexts_1 = require("../contexts");
32
8
  var useReadableSearchState = function (searchState) {
33
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
34
- var dataTenants = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDataTenants);
35
- var attributePresentations = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getAttributePresentations);
36
- var lookups = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getLookups);
9
+ var lookupsListResolved = (0, contexts_1.useMdmAction)('lookupsListResolved');
10
+ var metadata = (0, contexts_1.useMdmMetadata)();
11
+ var dataTenants = (0, contexts_1.useMdmDataTenants)();
12
+ var attributePresentations = (0, contexts_1.useMdmAttributePresentations)();
13
+ var lookups = (0, contexts_1.useMdmLookups)();
37
14
  var map = searchState.map;
38
15
  var keyword = (0, mdm_sdk_1.getKeywordFromSearchState)(searchState);
39
16
  var groups = (0, mdm_sdk_1.getGroupsFromSearchState)(metadata, dataTenants, true, searchState);
40
17
  var unresolvedLookups = (0, mdm_sdk_1.getUnresolvedLookupsListFromSearchGroups)(groups, lookups);
41
- var dispatch = (0, react_redux_1.useDispatch)();
42
18
  (0, react_1.useEffect)(function () {
43
19
  if (unresolvedLookups.length > 0) {
44
20
  (0, ramda_1.pipe)((0, ramda_1.chain)(function (_a) {
45
21
  var type = _a.type, codeValues = _a.codeValues;
46
22
  return codeValues.map(function (codeValue) { return ({ type: type, codeValue: codeValue }); });
47
- }), mdm_sdk_1.resolveLookupsList, (0, ramda_1.andThen)((0, ramda_1.pipe)(mdm_module_1.profile.lookups.actions.lookupsListResolved, dispatch)))(unresolvedLookups);
23
+ }), mdm_sdk_1.resolveLookupsList, (0, ramda_1.andThen)(lookupsListResolved))(unresolvedLookups);
48
24
  }
49
25
  }, [searchState]); // eslint-disable-line
50
26
  return (0, mdm_sdk_1.buildReadableQueryToString)(metadata, attributePresentations, lookups, groups, keyword, map);
@@ -10,38 +10,14 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
13
  Object.defineProperty(exports, "__esModule", { value: true });
37
14
  exports.useRelationsLoader = void 0;
38
15
  var react_1 = require("react");
39
- var react_redux_1 = require("react-redux");
40
16
  var ramda_1 = require("ramda");
41
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
42
17
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
43
18
  var useSafePromise_1 = require("./useSafePromise");
44
19
  var usePrevious_1 = require("./usePrevious");
20
+ var contexts_1 = require("../contexts");
45
21
  var buildSuggestedIds = (0, ramda_1.when)(ramda_1.identity, (0, ramda_1.pipe)(mdm_sdk_1.wrapInArrayIfNeeded, ramda_1.length, (0, ramda_1.times)(function (n) { return n + 1; })));
46
22
  var isValidRequestConfig = function (config) {
47
23
  var _a;
@@ -57,12 +33,12 @@ var isValidRequestConfig = function (config) {
57
33
  var useRelationsLoader = function (_a) {
58
34
  var sorting = _a.sorting, filter = _a.filter, page = _a.page, rowsPerPage = _a.rowsPerPage, config = _a.config, entity = _a.entity, relationActivityFilter = _a.relationActivityFilter, mode = _a.mode, _b = _a.searchByOv, searchByOv = _b === void 0 ? false : _b;
59
35
  var _c = (0, react_1.useState)(false), isLoading = _c[0], setIsLoading = _c[1];
60
- var dispatch = (0, react_redux_1.useDispatch)();
61
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
62
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
63
- var dtssPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDtssPath);
64
- var _d = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getGlobalSearchRequestOptions) || {}, activityFilter = _d.activityFilter, globalFilter = _d.globalFilter;
65
- var lastLoadedTime = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getProfileLastLoadedTime);
36
+ var relationsLoaded = (0, contexts_1.useMdmAction)('relationsLoaded');
37
+ var tenant = (0, contexts_1.useMdmTenant)();
38
+ var metadata = (0, contexts_1.useMdmMetadata)();
39
+ var dtssPath = (0, contexts_1.useMdmDtssPath)();
40
+ var _d = (0, contexts_1.useMdmGlobalSearchRequestOptions)() || {}, activityFilter = _d.activityFilter, globalFilter = _d.globalFilter;
41
+ var lastLoadedTime = (0, contexts_1.useMdmProfileLastLoadedTime)();
66
42
  var safePromise = (0, useSafePromise_1.useSafePromise)();
67
43
  var processContent = function (content) {
68
44
  var getUri = (0, ramda_1.when)(mdm_sdk_1.isObject, (0, ramda_1.prop)('uri'));
@@ -120,7 +96,7 @@ var useRelationsLoader = function (_a) {
120
96
  throw Error(JSON.stringify(result));
121
97
  }
122
98
  var _a = result[0], connections = _a.connections, total = _a.total;
123
- dispatch(mdm_module_1.profile.relations.actions.relationsLoaded({ id: config.id, connections: connections, total: total }));
99
+ relationsLoaded({ id: config.id, connections: connections, total: total });
124
100
  })
125
101
  .catch(function (e) {
126
102
  console.warn('Failed to load relations data', e);
@@ -134,7 +110,7 @@ var useRelationsLoader = function (_a) {
134
110
  activityFilter,
135
111
  metadata,
136
112
  config,
137
- dispatch,
113
+ relationsLoaded,
138
114
  dtssPath,
139
115
  entity === null || entity === void 0 ? void 0 : entity.uri,
140
116
  entity === null || entity === void 0 ? void 0 : entity.dataTenant,
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"@keyframes highlightAnimation" | "highlightError" | "highlightWarning" | "simpleAttribute">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"highlightError" | "@keyframes highlightAnimation" | "highlightWarning" | "simpleAttribute">;
@@ -5,15 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.useUsers = void 0;
7
7
  var react_1 = require("react");
8
- var react_redux_1 = require("react-redux");
9
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
10
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
11
8
  var memoize_one_1 = __importDefault(require("memoize-one"));
9
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
10
+ var contexts_1 = require("../contexts");
12
11
  var getAllUsersForTenantMemoized = (0, memoize_one_1.default)(function (tenant, servicesPath) { return (0, mdm_sdk_1.getAllUsersForTenant)({ tenant: tenant, servicesPath: servicesPath }); });
13
12
  var useUsers = function () {
14
13
  var _a = (0, react_1.useState)([]), users = _a[0], setUsers = _a[1];
15
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
16
- var servicesPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getServicesPath);
14
+ var tenant = (0, contexts_1.useMdmTenant)();
15
+ var servicesPath = (0, contexts_1.useMdmServicesPath)();
17
16
  var onError = function (e) {
18
17
  console.warn('Users error', e);
19
18
  setUsers([]);
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
- import { useSelector } from 'react-redux';
3
- import mdm from '@reltio/mdm-module';
4
2
  import { getAbsoluteImageUrl, getEntityTypeGraphIcon } from '@reltio/mdm-sdk';
5
3
  import AvatarWithFallback from '../AvatarWithFallback/AvatarWithFallback';
4
+ import { useMdmAbsoluteImagePath } from '../../contexts';
6
5
  import { useStyles } from './styles';
7
6
  var AttributeGroupIcon = function (_a) {
8
7
  var group = _a.group, metadata = _a.metadata;
9
8
  var styles = useStyles();
10
- var absoluteImagePath = useSelector(mdm.selectors.getAbsoluteImagePath);
9
+ var absoluteImagePath = useMdmAbsoluteImagePath();
11
10
  var entityTypeGraphIcon = getEntityTypeGraphIcon(metadata, { type: group.id });
12
11
  var absoluteImageUrl = getAbsoluteImageUrl(absoluteImagePath, entityTypeGraphIcon);
13
12
  return React.createElement(AvatarWithFallback, { className: styles.icon, icon: absoluteImageUrl, avatarText: group.title[0] });
@@ -24,19 +24,18 @@ import React, { useCallback, useMemo } from 'react';
24
24
  import i18n from 'ui-i18n';
25
25
  import classnames from 'classnames';
26
26
  import { pipe, defaultTo } from 'ramda';
27
- import { useSelector } from 'react-redux';
28
- import mdmModule from '@reltio/mdm-module';
29
27
  import { getAttributeTypeSubAttributes } from '@reltio/mdm-sdk';
30
28
  import Typography from '@mui/material/Typography';
31
29
  import MultiSelect from '../ReactSelect/MultiSelect';
32
30
  import MultiValue from '../ReactSelect/commonComponents/MultiValue';
33
31
  import DropdownIndicatorWithIconButton from '../commonReactSelectComponents/DropdownIndicatorWithIconButton';
34
32
  import AttributeListItem from '../AttributeListItem/AttributeListItem';
33
+ import { useMdmMetadata } from '../../contexts';
35
34
  import { customStyles, useStyles } from './styles';
36
35
  var AttributeSelector = function (_a) {
37
36
  var entityType = _a.entityType, selectedAttributes = _a.selectedAttributes, className = _a.className, onChange = _a.onChange, title = _a.title, disableUnderline = _a.disableUnderline, _b = _a.menuPlacement, menuPlacement = _b === void 0 ? 'bottom' : _b;
38
- var metadata = useSelector(mdmModule.selectors.getMetadata);
39
37
  var styles = useStyles();
38
+ var metadata = useMdmMetadata();
40
39
  var prepareItems = useCallback(function (data, level, prevLabel) {
41
40
  if (level === void 0) { level = 0; }
42
41
  if (prevLabel === void 0) { prevLabel = ''; }
@@ -7,10 +7,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7
7
  }
8
8
  return to.concat(ar || Array.prototype.slice.call(from));
9
9
  };
10
- import React, { useCallback, useRef, useMemo, memo, useEffect } from 'react';
11
- import { useSelector } from 'react-redux';
10
+ import React, { useCallback, useRef, useMemo, useEffect, memo } from 'react';
12
11
  import { always, evolve } from 'ramda';
13
- import mdmModule from '@reltio/mdm-module';
14
12
  import { getEntityType } from '@reltio/mdm-sdk';
15
13
  import { getAttributeSelectorItems, getRowsDataFromFilters, getEntityTypeFromAttrTypes } from './helpers';
16
14
  import FilterSelector from './components/FilterSelector/FilterSelector';
@@ -18,20 +16,21 @@ import RowActions from './components/RowActions/RowActions';
18
16
  import QueryBuilderRowsGroup from '../QueryBuilderRowsGroup/QueryBuilderRowsGroup';
19
17
  import AttributeSelector from './components/AttributeSelector/AttributeSelector';
20
18
  import ValuesEditor from './components/ValuesEditor/ValuesEditor';
19
+ import { useMdmMetadata } from '../../contexts';
21
20
  import { useStyles } from './styles';
22
21
  var EMPTY_FILTER = { fieldName: null, filter: null, values: [] };
23
22
  var Stub = function () { return null; };
24
23
  var AttributesFiltersBuilder = function (_a) {
25
24
  var attributeTypes = _a.attributeTypes, filters = _a.filters, onChange = _a.onChange, _b = _a.components, components = _b === void 0 ? {} : _b;
26
25
  var CustomValuesEditor = components.ValuesEditor, CustomFilterSelector = components.FilterSelector;
27
- var metadata = useSelector(mdmModule.selectors.getMetadata);
28
- var entityType = getEntityType(metadata, getEntityTypeFromAttrTypes(attributeTypes));
29
26
  var _c = useStyles(), attrSelector = _c.attrSelector, filterSelector = _c.filterSelector, actionContainer = _c.actionContainer;
30
27
  var actualFilters = useRef(filters);
31
- actualFilters.current = filters;
32
28
  var attributeFilterRef = useRef(null);
33
29
  var lastAttributesCountRef = useRef(null);
34
30
  var attributesCountRef = useRef(null);
31
+ var metadata = useMdmMetadata();
32
+ var entityType = getEntityType(metadata, getEntityTypeFromAttrTypes(attributeTypes));
33
+ actualFilters.current = filters;
35
34
  var rowClasses = useMemo(function () { return ({
36
35
  attributeSelectorContainer: attrSelector,
37
36
  filterSelectorContainer: filterSelector,
@@ -1,20 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { DataTypeDefinition, PrimitiveValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
3
+ type FilterValue = SimpleAttributeValue | PrimitiveValue;
4
+ type Props = {
5
+ filterOption: {
6
+ value: string;
7
+ label: string;
8
+ };
9
+ filterValue: FilterValue | FilterValue[];
10
+ onDelete: () => void;
11
+ dataTypeDefinition: DataTypeDefinition;
12
+ };
13
+ declare const FilterChip: ({ filterOption, filterValue, onDelete, dataTypeDefinition }: Props) => JSX.Element;
1
14
  export default FilterChip;
2
- declare function FilterChip({ filterOption, filterValue, onDelete, dataTypeDefinition }: {
3
- filterOption: any;
4
- filterValue: any;
5
- onDelete: any;
6
- dataTypeDefinition: any;
7
- }): JSX.Element;
8
- declare namespace FilterChip {
9
- namespace propTypes {
10
- export { FilterValueType as filterValue };
11
- export const filterOption: PropTypes.Requireable<PropTypes.InferProps<{
12
- value: PropTypes.Requireable<string>;
13
- label: PropTypes.Requireable<string>;
14
- }>>;
15
- export const onDelete: PropTypes.Requireable<(...args: any[]) => any>;
16
- export const dataTypeDefinition: PropTypes.Requireable<object>;
17
- }
18
- }
19
- import { FilterValueType } from '@reltio/mdm-sdk';
20
- import PropTypes from 'prop-types';
@@ -1,19 +1,17 @@
1
1
  import Chip from '@mui/material/Chip';
2
- import PropTypes from 'prop-types';
3
2
  import React from 'react';
4
- import mdm from '@reltio/mdm-module';
5
- import { checkIfOptionHasValues, FilterValueType, formatDataTypeValue, getFilterValueLabel, mapFilterValue } from '@reltio/mdm-sdk';
6
- import { useSelector } from 'react-redux';
7
- import { useStyles } from './styles';
3
+ import { checkIfOptionHasValues, formatDataTypeValue, getFilterValueLabel, mapFilterValue } from '@reltio/mdm-sdk';
8
4
  import ExpandedValueTooltip from '../../../ExpandedValueTooltip/ExpandedValueTooltip';
5
+ import { useMdmAttributePresentations, useMdmDateMask, useMdmDateTimeMask } from '../../../../contexts';
6
+ import { useStyles } from './styles';
9
7
  var FilterChip = function (_a) {
10
8
  var filterOption = _a.filterOption, filterValue = _a.filterValue, onDelete = _a.onDelete, dataTypeDefinition = _a.dataTypeDefinition;
9
+ var styles = useStyles();
10
+ var attributePresentations = useMdmAttributePresentations();
11
+ var dateMask = useMdmDateMask();
12
+ var dateTimeMask = useMdmDateTimeMask();
11
13
  var canFilterAcceptValues = checkIfOptionHasValues(filterOption.value);
12
14
  var optionLabel = filterOption.label + (canFilterAcceptValues ? ': ' : '');
13
- var styles = useStyles();
14
- var attributePresentations = useSelector(mdm.selectors.getAttributePresentations);
15
- var dateMask = useSelector(mdm.selectors.getDateMask);
16
- var dateTimeMask = useSelector(mdm.selectors.getDateTimeMask);
17
15
  var formatValue = formatDataTypeValue({ attributePresentations: attributePresentations, dataTypeDefinition: dataTypeDefinition, dateMask: dateMask, dateTimeMask: dateTimeMask });
18
16
  var convertedValue = mapFilterValue(formatValue, filterValue);
19
17
  var filterLabel = canFilterAcceptValues ? getFilterValueLabel(filterOption.value, convertedValue) : '';
@@ -25,13 +23,4 @@ var FilterChip = function (_a) {
25
23
  label: styles['filter-chip__label']
26
24
  }, onDelete: onDelete }));
27
25
  };
28
- FilterChip.propTypes = {
29
- filterValue: FilterValueType,
30
- filterOption: PropTypes.shape({
31
- value: PropTypes.string,
32
- label: PropTypes.string
33
- }),
34
- onDelete: PropTypes.func,
35
- dataTypeDefinition: PropTypes.object
36
- };
37
26
  export default FilterChip;
@@ -8,5 +8,5 @@ declare const BasicView: React.ForwardRefExoticComponent<Pick<{
8
8
  variant?: import("@mui/types").OverridableStringUnion<"elevation" | "outlined", import("@mui/material/Paper").PaperPropsVariantOverrides>;
9
9
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
10
  ref?: React.Ref<HTMLDivElement>;
11
- }, "children" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant">, "title" | "id" | "hidden" | "key" | "children" | "defaultValue" | "prefix" | "results" | "slot" | "color" | "translate" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "lang" | "role" | "tabIndex" | "elevation" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "security" | "unselectable" | "inputMode" | "is" | "variant"> & React.RefAttributes<HTMLDivElement>>;
11
+ }, "children" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant">, "id" | "hidden" | "title" | "key" | "children" | "defaultValue" | "prefix" | "results" | "slot" | "color" | "translate" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "lang" | "role" | "tabIndex" | "elevation" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "security" | "unselectable" | "inputMode" | "is" | "variant"> & React.RefAttributes<HTMLDivElement>>;
12
12
  export default BasicView;
@@ -1,17 +1,15 @@
1
1
  import React, { useMemo, useContext, useRef, useCallback } from 'react';
2
- import { useSelector } from 'react-redux';
3
2
  import i18n from 'ui-i18n';
4
3
  import Link from '@mui/material/Link';
5
4
  import Box from '@mui/material/Box';
6
5
  import Typography from '@mui/material/Typography';
7
6
  import MoreVertIcon from '@mui/icons-material/MoreVert';
8
- import mdm from '@reltio/mdm-module';
9
7
  import DropDownMenuButton from '../../DropDownMenuButton/DropDownMenuButton';
10
8
  import { SmallIconButtonWithTooltip } from '../../SmallIconButton';
11
9
  import { CommentTarget } from '../CommentTarget/CommentTarget';
12
10
  import { CommentContent } from '../CommentContent/CommentContent';
13
11
  import { Avatar } from '../Avatar/Avatar';
14
- import { CollaborationContext } from '../../../contexts';
12
+ import { CollaborationContext, useMdmUsername } from '../../../contexts';
15
13
  import { useAutoFocus } from '../../../hooks';
16
14
  import { createEditedCommentUri, formatDate } from '../utils';
17
15
  import { SendMessageArea } from '../SendMessageArea/SendMessageArea';
@@ -20,7 +18,7 @@ export var Comment = function (_a) {
20
18
  var onReply = _a.onReply, className = _a.className, uri = _a.uri, comment = _a.comment, relatedObjectUris = _a.relatedObjectUris, objectType = _a.objectType;
21
19
  var styles = useStyles();
22
20
  var inputRef = useRef();
23
- var username = useSelector(mdm.selectors.getUserName);
21
+ var username = useMdmUsername();
24
22
  var commentId = comment.commentId, createdBy = comment.createdBy, createdTime = comment.createdTime, status = comment.status;
25
23
  var isResolved = status === 'resolved';
26
24
  var canChangeComment = createdBy === username;
@@ -10,25 +10,23 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import React, { useContext } from 'react';
13
- import { useSelector } from 'react-redux';
14
13
  import i18n from 'ui-i18n';
15
14
  import classnames from 'classnames';
16
15
  import { startsWith } from 'ramda';
17
- import mdm from '@reltio/mdm-module';
18
16
  import { CollaborationObjectTypes } from '@reltio/mdm-sdk';
19
17
  import { findAttributeTypeByUri, getLabel, getEntityUriForLink, getEntityId, getAttributeTypeUriByValueUri } from '@reltio/mdm-sdk';
20
18
  import Typography from '@mui/material/Typography';
21
19
  import Box from '@mui/material/Box';
22
- import { EntitiesMapContext } from '../../../contexts';
20
+ import { EntitiesMapContext, useMdmEntity, useMdmMetadata } from '../../../contexts';
23
21
  import EntityUriLink from '../../EntityUriLink/EntityUriLink';
24
22
  import { getRelatedEntityUri } from '../utils';
25
23
  import { useStyles } from './styles';
26
24
  export var CommentTarget = function (_a) {
27
25
  var comment = _a.comment, className = _a.className;
28
26
  var styles = useStyles();
29
- var entity = useSelector(mdm.selectors.getEntity);
30
- var metadata = useSelector(mdm.selectors.getMetadata);
31
27
  var entitiesMap = useContext(EntitiesMapContext);
28
+ var metadata = useMdmMetadata();
29
+ var entity = useMdmEntity();
32
30
  var getContent = function () {
33
31
  var _a;
34
32
  switch (comment.objectType) {
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "title" | "link">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "link" | "title">;
@@ -1,15 +1,13 @@
1
1
  import React, { useRef, useContext, useMemo, useCallback } from 'react';
2
- import { useSelector } from 'react-redux';
3
2
  import i18n from 'ui-i18n';
4
3
  import classnames from 'classnames';
5
- import mdm from '@reltio/mdm-module';
6
4
  import Box from '@mui/material/Box';
7
5
  import MoreVertIcon from '@mui/icons-material/MoreVert';
8
6
  import Typography from '@mui/material/Typography';
9
7
  import { Avatar } from '../Avatar/Avatar';
10
8
  import { CommentContent } from '../CommentContent/CommentContent';
11
9
  import { createEditedReplyUri, formatDate } from '../utils';
12
- import { CollaborationContext } from '../../../contexts';
10
+ import { CollaborationContext, useMdmUsername } from '../../../contexts';
13
11
  import { useAutoFocus } from '../../../hooks';
14
12
  import DropDownMenuButton from '../../DropDownMenuButton/DropDownMenuButton';
15
13
  import { SmallIconButtonWithTooltip } from '../../SmallIconButton';
@@ -18,8 +16,8 @@ import { useStyles } from './styles';
18
16
  export var RepliedComment = function (_a) {
19
17
  var className = _a.className, reply = _a.reply, uri = _a.uri, comment = _a.comment, popperRef = _a.popperRef;
20
18
  var inputRef = useRef();
19
+ var username = useMdmUsername();
21
20
  var createdBy = reply.createdBy, action = reply.action, createdTime = reply.createdTime;
22
- var username = useSelector(mdm.selectors.getUserName);
23
21
  var canChangeReply = createdBy === username && comment.status !== 'resolved';
24
22
  var _b = useContext(CollaborationContext), deleteReply = _b.deleteReply, updateCommentState = _b.updateCommentState, getCommentState = _b.getCommentState;
25
23
  var commentUri = createEditedReplyUri(comment, reply);
@@ -1,14 +1,12 @@
1
1
  import React, { useState, useContext, useEffect } from 'react';
2
2
  import i18n from 'ui-i18n';
3
3
  import classnames from 'classnames';
4
- import { useSelector } from 'react-redux';
5
4
  import { always, cond, T } from 'ramda';
6
- import mdm from '@reltio/mdm-module';
7
5
  import Box from '@mui/material/Box';
8
6
  import Button from '@mui/material/Button';
9
7
  import { TextFieldWithMentions } from '../TextFieldWithMentions/TextFieldWithMentions';
10
8
  import { Avatar } from '../Avatar/Avatar';
11
- import { CollaborationContext } from '../../../contexts';
9
+ import { CollaborationContext, useMdmUsername } from '../../../contexts';
12
10
  import { createCommentUri, transformPlainTextValueToValueWithMentions } from '../utils';
13
11
  import { useStyles } from './styles';
14
12
  var getPlaceholder = function (status) {
@@ -45,8 +43,8 @@ export var SendMessageArea = function (_a) {
45
43
  var isEditing = isEditingComment || isEditingReply;
46
44
  var styles = useStyles({ isEditing: isEditing });
47
45
  var _b = useState(false), focused = _b[0], setFocused = _b[1];
48
- var username = useSelector(mdm.selectors.getUserName);
49
46
  var _c = useContext(CollaborationContext), createReply = _c.createReply, createComment = _c.createComment, sending = _c.sending, editComment = _c.editComment, editReply = _c.editReply, getCommentState = _c.getCommentState, updateCommentState = _c.updateCommentState, clearCommentState = _c.clearCommentState;
47
+ var username = useMdmUsername();
50
48
  var commentUri = createCommentUri({ comment: comment, reply: reply, isEditingComment: isEditingComment, isEditingReply: isEditingReply });
51
49
  var defaultCommentState = getDefaultCommentState({ comment: comment, reply: reply, isEditingComment: isEditingComment, isEditingReply: isEditingReply });
52
50
  var _d = getCommentState(uri, commentUri), _e = _d.value, value = _e === void 0 ? defaultCommentState.value : _e, _f = _d.plainTextValue, plainTextValue = _f === void 0 ? defaultCommentState.plainTextValue : _f, _g = _d.mentions, mentions = _g === void 0 ? defaultCommentState.mentions : _g;
@@ -1,17 +1,15 @@
1
1
  import React, { memo } from 'react';
2
2
  import classnames from 'classnames';
3
- import mdm from '@reltio/mdm-module';
4
- import { useSelector } from 'react-redux';
5
3
  import Tooltip from '@mui/material/Tooltip';
6
4
  import { getSourceSystemLabel } from '@reltio/mdm-sdk';
7
- import { useCrosswalkColor } from '../../contexts';
5
+ import { useCrosswalkColor, useMdmMetadata } from '../../contexts';
8
6
  import SourceIcon from '../SourceIcon/SourceIcon';
9
7
  import { useStyles } from './styles';
10
8
  var ColoredSourceIcon = function (_a) {
11
9
  var className = _a.className, crosswalk = _a.crosswalk, _b = _a.showTooltip, showTooltip = _b === void 0 ? true : _b;
12
10
  var styles = useStyles();
13
11
  var color = useCrosswalkColor(crosswalk);
14
- var metadata = useSelector(mdm.selectors.getMetadata) || {};
12
+ var metadata = useMdmMetadata() || {};
15
13
  var content = (React.createElement("div", { className: classnames(styles.itemContainer, className), style: { background: color } },
16
14
  React.createElement(SourceIcon, { sourceType: crosswalk.type, className: styles.item })));
17
15
  return showTooltip ? React.createElement(Tooltip, { title: getSourceSystemLabel(metadata, crosswalk.type) }, content) : content;