@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
@@ -31,14 +31,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
31
31
  }
32
32
  return to.concat(ar || Array.prototype.slice.call(from));
33
33
  };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
34
  Object.defineProperty(exports, "__esModule", { value: true });
38
35
  /* eslint-disable indent */
39
36
  var react_1 = __importStar(require("react"));
40
- var react_redux_1 = require("react-redux");
41
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
42
37
  var ramda_1 = require("ramda");
43
38
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
44
39
  var ImageDetailsView_1 = require("../ImageDetailsView/ImageDetailsView");
@@ -46,11 +41,12 @@ var ImageGalleryDialog_1 = require("../ImageGalleryDialog/ImageGalleryDialog");
46
41
  var GalleryView_1 = require("./GalleryView/GalleryView");
47
42
  var HeaderLeft_1 = require("./HeaderLeft/HeaderLeft");
48
43
  var HeaderRight_1 = require("./HeaderRight/HeaderRight");
44
+ var contexts_1 = require("../../contexts");
49
45
  var ImageAttributesGallery = function (_a) {
50
46
  var attributeValues = _a.attributeValues, open = _a.open, onClose = _a.onClose, currentAttributeValueUri = _a.currentAttributeValueUri, setCurrentAttributeValueUri = _a.setCurrentAttributeValueUri, attributeType = _a.attributeType, onDownload = _a.onDownload, onShareLink = _a.onShareLink, onSetAsDefault = _a.onSetAsDefault, onUpload = _a.onUpload, onDeleteAttribute = _a.onDeleteAttribute;
51
47
  var _b = (0, react_1.useState)([]), selectedItems = _b[0], setSelectedItems = _b[1];
52
48
  var _c = (0, react_1.useState)(ImageGalleryDialog_1.Mode.GALLERY_MODE), mode = _c[0], setMode = _c[1];
53
- var isViewMode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getIsViewMode);
49
+ var isViewMode = (0, contexts_1.useMdmIsViewMode)();
54
50
  (0, react_1.useEffect)(function () {
55
51
  setMode(currentAttributeValueUri ? ImageGalleryDialog_1.Mode.DETAILS_MODE : ImageGalleryDialog_1.Mode.GALLERY_MODE);
56
52
  }, [currentAttributeValueUri]);
@@ -1,10 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { AttributeType, ImageAttributeValue } from '@reltio/mdm-sdk';
3
- export type ImageAttributeFieldsOrder = {
4
- order?: string[];
5
- excludeNames?: string[];
6
- includeNames?: string[];
7
- };
8
3
  type Props = {
9
4
  className?: string;
10
5
  attributeValue: ImageAttributeValue;
@@ -28,26 +28,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ImageDetailsViewSidebar = void 0;
30
30
  var react_1 = __importStar(require("react"));
31
- var react_redux_1 = require("react-redux");
32
31
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
33
32
  var Box_1 = __importDefault(require("@mui/material/Box"));
34
33
  var Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
35
34
  var FormControlLabel_1 = __importDefault(require("@mui/material/FormControlLabel"));
36
35
  var Typography_1 = __importDefault(require("@mui/material/Typography"));
37
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
38
36
  var classnames_1 = __importDefault(require("classnames"));
39
37
  var MetaInfo_1 = require("../MetaInfo/MetaInfo");
38
+ var contexts_1 = require("../../../contexts");
40
39
  var styles_1 = require("./styles");
41
40
  var ImageDetailsViewSidebar = function (_a) {
42
41
  var className = _a.className, attributeValue = _a.attributeValue, handleSetAsDefault = _a.handleSetAsDefault, attributeType = _a.attributeType;
43
42
  var styles = (0, styles_1.useStyles)();
44
- var entity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity) || {};
45
- var modifiedEntity = (0, react_redux_1.useSelector)(function (state) { return mdm_module_1.default.selectors.getModifiedEntity(state, entity === null || entity === void 0 ? void 0 : entity.uri); }) || {};
46
- var isViewMode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getIsViewMode);
43
+ var _b = (0, react_1.useState)(false), isDefault = _b[0], setIsDefault = _b[1];
44
+ var entity = (0, contexts_1.useMdmEntity)() || {};
45
+ var modifiedEntity = (0, contexts_1.useMdmModifiedEntity)(entity === null || entity === void 0 ? void 0 : entity.uri) || {};
46
+ var isViewMode = (0, contexts_1.useMdmIsViewMode)();
47
+ var imageAttributeConfig = (0, contexts_1.useMdmImageAttributesFieldsOrder)() || {};
47
48
  var entityToShow = isViewMode ? entity : modifiedEntity;
48
- var imageAttributeConfig = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getImageAttributesFieldsOrder) || {};
49
49
  var imageAttributeFieldsOrder = imageAttributeConfig[entity === null || entity === void 0 ? void 0 : entity.type] || (imageAttributeConfig === null || imageAttributeConfig === void 0 ? void 0 : imageAttributeConfig.default) || {};
50
- var _b = (0, react_1.useState)(false), isDefault = _b[0], setIsDefault = _b[1];
51
50
  (0, react_1.useEffect)(function () {
52
51
  setIsDefault((entityToShow === null || entityToShow === void 0 ? void 0 : entityToShow.defaultProfilePic) === (attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.uri));
53
52
  }, [attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.uri, entityToShow]);
@@ -5,8 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.MetaInfo = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
- var react_redux_1 = require("react-redux");
9
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
10
8
  var styles_1 = require("@mui/material/styles");
11
9
  var Box_1 = __importDefault(require("@mui/material/Box"));
12
10
  var MetaInfoHeader_1 = require("../MetaInfoHeader/MetaInfoHeader");
@@ -14,12 +12,13 @@ var MetaInfoList_1 = require("../MetaInfoList/MetaInfoList");
14
12
  var MetaInfoForm_1 = require("../MetaInfoForm/MetaInfoForm");
15
13
  var useEditMetaInfo_1 = require("../hooks/useEditMetaInfo");
16
14
  var theme_1 = require("../theme");
15
+ var contexts_1 = require("../../../contexts");
17
16
  var darkMuiTheme = (0, styles_1.createTheme)(theme_1.darkTheme);
18
17
  var MetaInfo = function (_a) {
19
18
  var imageAttributeFieldsOrder = _a.imageAttributeFieldsOrder, attributeType = _a.attributeType, initialAttributeValue = _a.attributeValue;
19
+ var mode = (0, contexts_1.useMdmMode)();
20
+ var isEditableMode = (0, contexts_1.useMdmIsEditableMode)();
20
21
  var _b = (0, useEditMetaInfo_1.useEditMetaInfo)({ attributeType: attributeType, initialAttributeValue: initialAttributeValue }), addAttributes = _b.addAttributes, changeAttribute = _b.changeAttribute, deleteAttribute = _b.deleteAttribute, clearLocalChanges = _b.clearLocalChanges, applyLocalChanges = _b.applyLocalChanges, attributeValue = _b.attributeValue, hasChanges = _b.hasChanges;
21
- var mode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMode);
22
- var isEditableMode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getIsEditableMode);
23
22
  return (react_1.default.createElement(styles_1.ThemeProvider, { theme: darkMuiTheme },
24
23
  react_1.default.createElement(Box_1.default, null,
25
24
  react_1.default.createElement(MetaInfoHeader_1.MetaInfoHeader, { attributeType: attributeType, uri: attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.uri, onAddAttributes: isEditableMode ? addAttributes : undefined }),
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "title" | "link" | "root">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "content" | "title" | "root">;
@@ -5,17 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.MetaInfoList = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
- var react_redux_1 = require("react-redux");
9
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
10
8
  var Box_1 = __importDefault(require("@mui/material/Box"));
11
- var AttributesPager_1 = __importDefault(require("../../attributes/readMode/AttributesPager"));
9
+ var AttributesPager_1 = __importDefault(require("../../attributes/readMode/AttributesPager/AttributesPager"));
12
10
  var MetaInfoItem_1 = require("./MetaInfoItem/MetaInfoItem");
13
11
  var helpers_1 = require("../helpers");
12
+ var contexts_1 = require("../../../contexts");
14
13
  var styles_1 = require("./styles");
15
14
  var MetaInfoList = function (_a) {
16
15
  var attributeValue = _a.attributeValue, attributeType = _a.attributeType, imageAttributeFieldsOrder = _a.imageAttributeFieldsOrder;
17
16
  var styles = (0, styles_1.useStyles)();
18
- var isViewMode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getIsViewMode);
17
+ var isViewMode = (0, contexts_1.useMdmIsViewMode)();
19
18
  var systemAttributesList = (0, helpers_1.getSystemAttributesList)(attributeValue, imageAttributeFieldsOrder);
20
19
  var notSystemAttributesList = (0, helpers_1.getNotSystemAttributesList)(attributeValue, attributeType, imageAttributeFieldsOrder);
21
20
  return (react_1.default.createElement(Box_1.default, { className: styles.root },
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useEditMetaInfo = void 0;
4
4
  var react_1 = require("react");
5
5
  var ramda_1 = require("ramda");
6
- var react_redux_1 = require("react-redux");
7
- var mdm_module_1 = require("@reltio/mdm-module");
8
6
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
9
7
  var contexts_1 = require("../../../contexts");
10
8
  var useEditMetaInfo = function (_a) {
11
9
  var initialAttributeValue = _a.initialAttributeValue, attributeType = _a.attributeType;
12
- var dispatch = (0, react_redux_1.useDispatch)();
13
10
  var viewId = (0, react_1.useContext)(contexts_1.ViewIdContext);
11
+ var modifyAttribute = (0, contexts_1.useMdmAction)('modifyAttribute');
14
12
  var _b = (0, react_1.useState)(initialAttributeValue), attributeValue = _b[0], setAttributeValue = _b[1];
15
13
  (0, react_1.useEffect)(function () {
16
14
  setAttributeValue(initialAttributeValue);
@@ -53,13 +51,8 @@ var useEditMetaInfo = function (_a) {
53
51
  setAttributeValue(initialAttributeValue);
54
52
  }, [initialAttributeValue]);
55
53
  var applyLocalChanges = (0, react_1.useCallback)(function () {
56
- dispatch(mdm_module_1.profile.actions.modifyAttribute({
57
- value: attributeValue,
58
- attributeType: attributeType,
59
- uri: attributeValue.uri,
60
- viewId: viewId
61
- }));
62
- }, [attributeValue, attributeType, viewId, dispatch]);
54
+ modifyAttribute({ value: attributeValue, attributeType: attributeType, uri: attributeValue.uri, viewId: viewId });
55
+ }, [attributeValue, attributeType, viewId, modifyAttribute]);
63
56
  return {
64
57
  addAttributes: addAttributes,
65
58
  changeAttribute: changeAttribute,
@@ -1,2 +1,2 @@
1
- declare const styles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "relevanceScore" | "container" | "negativeRuleIcon" | "labelsContainer" | "matchRuleInfo" | "matchRuleLabel">;
1
+ declare const styles: (props?: any) => import("@mui/styles").ClassNameMap<"relevanceScore" | "title" | "container" | "negativeRuleIcon" | "labelsContainer" | "matchRuleInfo" | "matchRuleLabel">;
2
2
  export default styles;
@@ -9,8 +9,5 @@ type Props = {
9
9
  fullWidth?: boolean;
10
10
  entityType: TEntityType;
11
11
  };
12
- declare const MatchRulesSelector: {
13
- ({ name, values, onChange, entityType, TextFieldProps, fullWidth }: Props): JSX.Element;
14
- displayName: string;
15
- };
12
+ declare const MatchRulesSelector: ({ name, values, onChange, entityType, TextFieldProps, fullWidth }: Props) => JSX.Element;
16
13
  export default MatchRulesSelector;
@@ -27,10 +27,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
31
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
32
30
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
33
31
  var MultiValueSelector_1 = __importDefault(require("../MultiValueSelector/MultiValueSelector"));
32
+ var contexts_1 = require("../../contexts");
34
33
  var prepareOptions = function (options) {
35
34
  if (options === void 0) { options = []; }
36
35
  return options.map(function (_a) {
@@ -40,10 +39,9 @@ var prepareOptions = function (options) {
40
39
  };
41
40
  var MatchRulesSelector = function (_a) {
42
41
  var name = _a.name, values = _a.values, onChange = _a.onChange, entityType = _a.entityType, TextFieldProps = _a.TextFieldProps, fullWidth = _a.fullWidth;
43
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
42
+ var metadata = (0, contexts_1.useMdmMetadata)();
44
43
  var _b = (0, react_1.useMemo)(function () { return (0, mdm_sdk_1.partitionByMlMatch)((0, mdm_sdk_1.getMatchGroups)(metadata, entityType === null || entityType === void 0 ? void 0 : entityType.uri)); }, [entityType === null || entityType === void 0 ? void 0 : entityType.uri, metadata]), mlMatchRules = _b[0], matchRules = _b[1];
45
44
  var options = (0, react_1.useMemo)(function () { return prepareOptions(name === mdm_sdk_1.MatchRulesAttrNames.matchRules ? matchRules : mlMatchRules); }, [name, matchRules, mlMatchRules]);
46
45
  return (react_1.default.createElement(MultiValueSelector_1.default, { values: values, onChange: onChange, options: options, TextFieldProps: TextFieldProps, fullWidth: fullWidth }));
47
46
  };
48
- MatchRulesSelector.displayName = 'MatchRulesSelector';
49
47
  exports.default = MatchRulesSelector;
@@ -1,2 +1,2 @@
1
- declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "icon" | "button" | "current">;
1
+ declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"icon" | "title" | "button" | "current">;
2
2
  export default useStyles;
@@ -27,16 +27,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
31
30
  var classnames_1 = __importDefault(require("classnames"));
32
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
33
31
  var contexts_1 = require("../../contexts");
34
32
  var styles_1 = require("./styles");
35
33
  var PivotingUriLink = (0, react_1.forwardRef)(function (_a, ref) {
36
34
  var value = _a.value, attributeType = _a.attributeType, children = _a.children, className = _a.className, onClick = _a.onClick;
37
35
  var styles = (0, styles_1.useStyles)();
38
- var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
39
36
  var generatePivotingUrl = (0, react_1.useContext)(contexts_1.UrlGeneratorsContext).generatePivotingUrl;
37
+ var uiPath = (0, contexts_1.useMdmUiPath)();
40
38
  var url = generatePivotingUrl({ uiPath: uiPath, uri: attributeType.uri, value: JSON.stringify(value) });
41
39
  return (react_1.default.createElement("a", { ref: ref, href: url, onClick: function (e) {
42
40
  onClick();
@@ -13,5 +13,5 @@ declare const Popper: React.ForwardRefExoticComponent<Pick<Omit<import("@mui/bas
13
13
  anchorEl?: HTMLElement | null;
14
14
  excludeAnchorFromBackdrop?: boolean;
15
15
  onClose?: () => void;
16
- }, "open" | "title" | "id" | "hidden" | "key" | "children" | "defaultValue" | "prefix" | "results" | "slot" | "style" | "color" | "translate" | "container" | "transition" | "className" | "sx" | "lang" | "role" | "tabIndex" | "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" | "components" | "componentsProps" | "slotProps" | "slots" | "onClose" | "component" | "disablePortal" | "keepMounted" | "anchorEl" | "placement" | "modifiers" | "popperOptions" | "popperRef" | "modal" | "excludeAnchorFromBackdrop"> & React.RefAttributes<HTMLDivElement>>;
16
+ }, "id" | "hidden" | "open" | "title" | "key" | "children" | "defaultValue" | "prefix" | "results" | "slot" | "style" | "color" | "translate" | "container" | "transition" | "className" | "sx" | "lang" | "role" | "tabIndex" | "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" | "components" | "componentsProps" | "slotProps" | "slots" | "onClose" | "component" | "disablePortal" | "keepMounted" | "anchorEl" | "placement" | "modifiers" | "popperOptions" | "popperRef" | "modal" | "excludeAnchorFromBackdrop"> & React.RefAttributes<HTMLDivElement>>;
17
17
  export default Popper;
@@ -1 +1 @@
1
- export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"date" | "title" | "icon" | "caption" | "flex" | "header" | "expanded" | "info" | "infoBlock" | "flag" | "mainInfo" | "pmReviewCard">;
1
+ export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"date" | "icon" | "caption" | "title" | "flex" | "header" | "expanded" | "info" | "infoBlock" | "flag" | "mainInfo" | "pmReviewCard">;
@@ -28,22 +28,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
30
  var classnames_1 = __importDefault(require("classnames"));
31
- var react_redux_1 = require("react-redux");
32
31
  var ramda_1 = require("ramda");
33
32
  var Typography_1 = __importDefault(require("@mui/material/Typography"));
34
33
  var Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
35
34
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
36
35
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
37
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
38
36
  var EntityAvatar_1 = __importDefault(require("../EntityAvatar/EntityAvatar"));
39
37
  var EntityTypeBadge_1 = __importDefault(require("../EntityTypeBadge/EntityTypeBadge"));
38
+ var contexts_1 = require("../../contexts");
40
39
  var styles_1 = __importDefault(require("./styles"));
41
40
  var ProfileBand = function (_a) {
42
41
  var _b;
43
42
  var className = _a.className, entity = _a.entity, children = _a.children, classes = _a.classes, _c = _a.renderLabel, renderLabel = _c === void 0 ? ramda_1.identity : _c;
44
43
  var styles = (0, styles_1.default)({ classes: classes });
45
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
46
- var showEntityId = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getShowEntityId);
44
+ var metadata = (0, contexts_1.useMdmMetadata)();
45
+ var showEntityId = (0, contexts_1.useMdmShowEntityId)();
47
46
  var handleCopyEntityIdToClipboard = (0, react_1.useCallback)(function () {
48
47
  navigator.clipboard.writeText((0, mdm_sdk_1.getEntityId)(entity));
49
48
  }, [entity]);
@@ -17,7 +17,7 @@ declare const LinkWithTooltip: React.ForwardRefExoticComponent<import("prop-type
17
17
  variant?: import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides>;
18
18
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>> & {
19
19
  ref?: React.Ref<HTMLAnchorElement>;
20
- }, "m" | "visibility" | "type" | "title" | "id" | "hidden" | "key" | "children" | "defaultValue" | "prefix" | "order" | "width" | "minHeight" | "maxHeight" | "height" | "flex" | "minWidth" | "maxWidth" | "top" | "right" | "left" | "position" | "referrerPolicy" | "results" | "p" | "slot" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "translate" | "whiteSpace" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "underline" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "lang" | "media" | "target" | "role" | "tabIndex" | "href" | "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" | "hrefLang" | "rel" | "download" | "ping" | "align" | "variant" | "bgcolor" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "TypographyClasses"> & {
20
+ }, "m" | "id" | "type" | "hidden" | "visibility" | "title" | "key" | "children" | "defaultValue" | "prefix" | "order" | "width" | "minHeight" | "maxHeight" | "height" | "flex" | "minWidth" | "maxWidth" | "top" | "right" | "left" | "position" | "referrerPolicy" | "results" | "p" | "slot" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "translate" | "whiteSpace" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "underline" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "lang" | "media" | "target" | "role" | "tabIndex" | "href" | "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" | "hrefLang" | "rel" | "download" | "ping" | "align" | "variant" | "bgcolor" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "TypographyClasses"> & {
21
21
  component: string;
22
22
  }>;
23
23
  type Props = {
@@ -1,27 +1,4 @@
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
  var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
26
3
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
27
4
  if (ar || !(i in from)) {
@@ -34,14 +11,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
34
11
  Object.defineProperty(exports, "__esModule", { value: true });
35
12
  exports.useSearchNavigation = exports.REQUEST_PAGE_SIZE = void 0;
36
13
  var react_1 = require("react");
37
- var react_redux_1 = require("react-redux");
38
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
39
14
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
40
15
  var ramda_1 = require("ramda");
41
16
  var contexts_1 = require("../../../contexts");
42
17
  var hooks_1 = require("../../../hooks");
43
18
  var SearchProviderFactory_1 = require("../searchProviders/SearchProviderFactory");
44
- var helpers_1 = require("../helpers");
45
19
  exports.REQUEST_PAGE_SIZE = 15;
46
20
  var getNewUris = function (entities, cache) {
47
21
  return (0, ramda_1.pipe)((0, ramda_1.map)((0, ramda_1.prop)('uri')), (0, ramda_1.reject)(function (uri) { return cache.includes(uri); }))(entities);
@@ -50,29 +24,30 @@ var useSearchNavigation = function () {
50
24
  var safeCheckEntityPromise = (0, hooks_1.useSafePromise)();
51
25
  var safeRequestTotalPromise = (0, hooks_1.useSafePromise)();
52
26
  var safeRequestEntitiesPromise = (0, hooks_1.useSafePromise)();
53
- var _a = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getSearchNavigationData) || {}, uri = _a.uri, index = _a.index, total = _a.total, searchTenant = _a.tenant, cache = _a.cache;
54
- var _b = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getSearchProviderData) || {}, type = _b.type, data = _b.data;
55
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
56
- var apiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getApiPath);
57
- var dtssPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDtssPath);
58
- var globalSearchRequestOptions = (0, react_redux_1.useSelector)(function (state) {
59
- return mdm_module_1.default.selectors.getGlobalSearchRequestOptions(state, ['ovOnly']);
60
- });
61
- var updateEntitiesNavigationLoadingState = (0, contexts_1.useEntityLoadingIndication)().updateEntitiesNavigationLoadingState;
62
27
  var viewId = (0, react_1.useContext)(contexts_1.ViewIdContext);
63
- var dispatch = (0, react_redux_1.useDispatch)();
28
+ var searchNavigationListener = (0, contexts_1.useMdmListener)('searchNavigationListener');
29
+ var updateSearchNavigationDataFields = (0, contexts_1.useMdmAction)('updateSearchNavigationDataFields');
30
+ var mdmOpenEntity = (0, contexts_1.useMdmAction)('openEntity');
31
+ var openPerspective = (0, contexts_1.useMdmAction)('openPerspective');
32
+ var _a = (0, contexts_1.useMdmSearchNavigationData)() || {}, uri = _a.uri, index = _a.index, total = _a.total, searchTenant = _a.tenant, cache = _a.cache;
33
+ var _b = (0, contexts_1.useMdmSearchProviderData)() || {}, type = _b.type, data = _b.data;
34
+ var tenant = (0, contexts_1.useMdmTenant)();
35
+ var apiPath = (0, contexts_1.useMdmApiPath)();
36
+ var dtssPath = (0, contexts_1.useMdmDtssPath)();
37
+ var globalSearchRequestOptions = (0, contexts_1.useMdmGlobalSearchRequestOptions)(['ovOnly']);
38
+ var updateEntitiesNavigationLoadingState = (0, contexts_1.useEntityLoadingIndication)().updateEntitiesNavigationLoadingState;
64
39
  var _c = (0, react_1.useState)(false), loading = _c[0], setLoading = _c[1];
65
40
  var searchProvider = (0, react_1.useMemo)(function () { return (0, SearchProviderFactory_1.getSearchProvider)(type, { data: data, tenant: tenant, searchTenant: searchTenant, apiPath: apiPath, dtssPath: dtssPath, globalSearchRequestOptions: globalSearchRequestOptions }); }, [type, data, tenant, searchTenant, apiPath, dtssPath, globalSearchRequestOptions]);
66
41
  var updateNavigationData = (0, react_1.useCallback)(function (data) {
67
- dispatch(mdm_module_1.search.actions.updateSearchNavigationDataFields(data));
68
- }, [dispatch]);
42
+ updateSearchNavigationDataFields(data);
43
+ }, [updateSearchNavigationDataFields]);
69
44
  var openEntity = (0, react_1.useCallback)(function (uri) {
70
45
  var preparedUri = tenant !== searchTenant ? (0, mdm_sdk_1.getEntityUriForLink)({ uri: uri, dataTenant: searchTenant }) : uri;
71
- dispatch(mdm_module_1.ui.actions.openEntity({ uri: preparedUri, viewId: viewId, source: 'navigation' }));
72
- }, [dispatch, viewId, tenant, searchTenant]);
46
+ mdmOpenEntity({ uri: preparedUri, viewId: viewId, source: 'navigation' });
47
+ }, [mdmOpenEntity, viewId, tenant, searchTenant]);
73
48
  var onSearchResultsClick = (0, react_1.useCallback)(function () {
74
- dispatch(mdm_module_1.ui.actions.openPerspective({ perspectiveId: type, viewId: viewId }));
75
- }, [dispatch, type, viewId]);
49
+ openPerspective({ perspectiveId: type, viewId: viewId });
50
+ }, [openPerspective, type, viewId]);
76
51
  (0, react_1.useEffect)(function () {
77
52
  if (index >= total) {
78
53
  updateNavigationData({
@@ -87,19 +62,9 @@ var useSearchNavigation = function () {
87
62
  }, [total, index, updateNavigationData]);
88
63
  var listenToActions = (0, contexts_1.useActionsHook)();
89
64
  (0, react_1.useEffect)(function () {
90
- var stopListeningActions = listenToActions(function (action, state) {
91
- switch (action.type) {
92
- case mdm_module_1.search.constants.UPDATE_SEARCH_NAVIGATION_DATA_ON_MERGE: {
93
- var searchNavigationData = mdm_module_1.default.selectors.getSearchNavigationData(state);
94
- if (searchNavigationData) {
95
- updateNavigationData((0, helpers_1.applyMergeToSearchNavigationData)(searchNavigationData, action.payload));
96
- }
97
- break;
98
- }
99
- }
100
- });
65
+ var stopListeningActions = listenToActions(searchNavigationListener);
101
66
  return function () { return stopListeningActions(); };
102
- }, [listenToActions, updateNavigationData]);
67
+ }, [listenToActions, updateNavigationData, searchNavigationListener]);
103
68
  var requestNextPage = (0, react_1.useCallback)(function (cache, total, index) {
104
69
  setLoading(true);
105
70
  safeRequestTotalPromise(searchProvider.requestTotal()).then(function (total) { return updateNavigationData({ total: total }); });
@@ -1,16 +1,12 @@
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.useSearchNavigationVisibility = void 0;
7
- var react_redux_1 = require("react-redux");
8
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
9
4
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
5
+ var contexts_1 = require("../../../contexts");
10
6
  var useSearchNavigationVisibility = function () {
11
- var cache = ((0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getSearchNavigationData) || {}).cache;
12
- var mode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMode);
13
- var entity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity);
7
+ var cache = ((0, contexts_1.useMdmSearchNavigationData)() || {}).cache;
8
+ var mode = (0, contexts_1.useMdmMode)();
9
+ var entity = (0, contexts_1.useMdmEntity)();
14
10
  return (0, mdm_sdk_1.isViewMode)(mode) && (cache === null || cache === void 0 ? void 0 : cache.includes(entity === null || entity === void 0 ? void 0 : entity.uri));
15
11
  };
16
12
  exports.useSearchNavigationVisibility = useSearchNavigationVisibility;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Entity, Metadata } from '@reltio/mdm-sdk';
2
+ import { Entity } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- metadata: Metadata;
5
4
  entities: Entity[];
6
5
  entityToHighlight?: string;
7
6
  selectedEntityUri?: string;
@@ -12,5 +11,5 @@ type Props = {
12
11
  };
13
12
  entityButtonsRenderer?: (entity: Entity) => void;
14
13
  };
15
- declare const ProfilesList: ({ entities, metadata, entityToHighlight, selectedEntityUri, onEntityClick, onEntityHover, entitiesImportStatus, entityButtonsRenderer }: Props) => JSX.Element;
14
+ declare const ProfilesList: ({ entities, entityToHighlight, selectedEntityUri, onEntityClick, onEntityHover, entitiesImportStatus, entityButtonsRenderer }: Props) => JSX.Element;
16
15
  export default ProfilesList;
@@ -36,13 +36,15 @@ var EntityAvatar_1 = __importDefault(require("../EntityAvatar/EntityAvatar"));
36
36
  var ImportButton_1 = require("../ImportButton/ImportButton");
37
37
  var helpers_1 = require("./helpers");
38
38
  var hooks_1 = require("../../hooks");
39
+ var contexts_1 = require("../../contexts");
39
40
  var styles_1 = require("./styles");
40
41
  var SECOND_SCROLL_PAUSE = 1000;
41
42
  var ProfilesList = function (_a) {
42
- var entities = _a.entities, metadata = _a.metadata, entityToHighlight = _a.entityToHighlight, selectedEntityUri = _a.selectedEntityUri, onEntityClick = _a.onEntityClick, onEntityHover = _a.onEntityHover, entitiesImportStatus = _a.entitiesImportStatus, entityButtonsRenderer = _a.entityButtonsRenderer;
43
+ var entities = _a.entities, entityToHighlight = _a.entityToHighlight, selectedEntityUri = _a.selectedEntityUri, onEntityClick = _a.onEntityClick, onEntityHover = _a.onEntityHover, entitiesImportStatus = _a.entitiesImportStatus, entityButtonsRenderer = _a.entityButtonsRenderer;
43
44
  var styles = (0, styles_1.useStyles)();
44
45
  var list = (0, react_1.useRef)(null);
45
46
  var scrollTimer = (0, react_1.useRef)(null);
47
+ var metadata = (0, contexts_1.useMdmMetadata)();
46
48
  (0, hooks_1.useDidUpdateEffect)(function () {
47
49
  var _a, _b;
48
50
  if (entityToHighlight) {