@reltio/components 1.4.1637 → 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 (453) 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/StepNavigation/ProgressButton.d.ts +12 -0
  52. package/cjs/components/StepNavigation/ProgressButton.js +41 -0
  53. package/cjs/components/StepNavigation/StepNavigation.d.ts +13 -0
  54. package/cjs/components/StepNavigation/StepNavigation.js +62 -0
  55. package/cjs/components/StepNavigation/styles.d.ts +2 -0
  56. package/cjs/components/StepNavigation/styles.js +44 -0
  57. package/cjs/components/TenantLabel/TenantLabel.d.ts +6 -0
  58. package/cjs/components/TenantLabel/TenantLabel.js +22 -0
  59. package/cjs/components/TenantLabel/styles.d.ts +1 -0
  60. package/cjs/components/TenantLabel/styles.js +22 -0
  61. package/cjs/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  62. package/cjs/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  63. package/cjs/components/UploadImageDialog/UploadImageDialog.js +4 -5
  64. package/cjs/components/UserSelector/UserSelector.js +3 -4
  65. package/cjs/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  66. package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  67. package/cjs/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  68. package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  69. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  70. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  71. package/cjs/components/activityLog/activities/GroupActivity.js +2 -3
  72. package/cjs/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  73. package/cjs/components/activityLog/activities/SearchActivity.js +6 -7
  74. package/cjs/components/activityLog/activities/fields/DeltaField.js +7 -8
  75. package/cjs/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  76. package/cjs/components/activityLog/activities/records/EntityRecord.js +8 -9
  77. package/cjs/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  78. package/cjs/components/attributes/AttributesView/AttributesView.js +8 -4
  79. package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  80. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  81. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.js +8 -9
  82. package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  83. package/cjs/components/attributes/OvIcon/OvIcon.js +4 -6
  84. package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +3 -5
  85. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  86. package/cjs/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  87. package/cjs/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  88. package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  89. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  90. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +10 -2
  91. package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  92. package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  93. package/cjs/components/attributes/editMode/AttributesPager/index.js +5 -44
  94. package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  95. package/cjs/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  96. package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  97. package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +10 -12
  98. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  99. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  100. package/cjs/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  101. package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +3 -6
  102. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  103. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  104. package/cjs/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  105. package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +16 -15
  106. package/cjs/components/attributes/editMode/Roles/Roles.js +4 -5
  107. package/cjs/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +4 -9
  108. package/cjs/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -30
  109. package/cjs/components/attributes/editMode/Tags/Tags.js +3 -4
  110. package/cjs/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +3 -5
  111. package/cjs/components/attributes/inline/common/SourceItem.js +2 -4
  112. package/cjs/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  113. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  114. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  115. package/cjs/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  116. package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  117. package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  118. package/cjs/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  119. package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +3 -4
  120. package/cjs/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  121. package/cjs/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +2 -4
  122. package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -6
  123. package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -4
  124. package/cjs/components/attributes/types/attributesView.d.ts +2 -7
  125. package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  126. package/cjs/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  127. package/cjs/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  128. package/cjs/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +1 -3
  129. package/cjs/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  130. package/cjs/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  131. package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +11 -12
  132. package/cjs/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  133. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  134. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +10 -36
  135. package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  136. package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  137. package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  138. package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  139. package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -32
  140. package/cjs/components/history/HistoryTree/HistoryTree.js +9 -8
  141. package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
  142. package/cjs/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -31
  143. package/cjs/components/history/hooks/useHistoryDiff.js +8 -32
  144. package/cjs/components/history/hooks/useHistorySlice.js +4 -28
  145. package/cjs/components/index.d.ts +8 -6
  146. package/cjs/components/index.js +11 -6
  147. package/cjs/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  148. package/cjs/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  149. package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  150. package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  151. package/cjs/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  152. package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -11
  153. package/cjs/components/workflow/hooks/useWorkflowAssignee.js +3 -8
  154. package/cjs/components/workflow/hooks/useWorkflowCheckPermission.js +24 -25
  155. package/cjs/components/workflow/hooks/useWorkflowComments.js +4 -8
  156. package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +6 -30
  157. package/cjs/components/workflow/hooks/useWorkflowDefinitions.js +5 -9
  158. package/cjs/components/workflow/hooks/useWorkflowDueDate.js +4 -8
  159. package/cjs/components/workflow/hooks/useWorkflowPriority.js +4 -5
  160. package/cjs/components/workflow/hooks/useWorkflowProcessInstance.js +6 -10
  161. package/cjs/components/workflow/hooks/useWorkflowTasks.js +11 -15
  162. package/cjs/contexts/ActionsHookContext/index.d.ts +4 -1
  163. package/cjs/contexts/CollaborationContext/index.js +2 -2
  164. package/cjs/contexts/MdmModuleContext/context.d.ts +243 -0
  165. package/cjs/contexts/MdmModuleContext/context.js +7 -0
  166. package/cjs/contexts/MdmModuleContext/hooks.d.ts +139 -0
  167. package/cjs/contexts/MdmModuleContext/hooks.js +206 -0
  168. package/cjs/contexts/MdmModuleContext/index.d.ts +3 -0
  169. package/cjs/contexts/MdmModuleContext/index.js +70 -0
  170. package/cjs/contexts/MdmModuleContext/provider.d.ts +10 -0
  171. package/cjs/contexts/MdmModuleContext/provider.js +15 -0
  172. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  173. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +132 -0
  174. package/cjs/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  175. package/cjs/contexts/MdmModuleContext/selectors/entity.js +11 -0
  176. package/cjs/contexts/MdmModuleContext/selectors.d.ts +3 -0
  177. package/cjs/contexts/MdmModuleContext/selectors.js +11 -0
  178. package/cjs/contexts/index.d.ts +1 -0
  179. package/cjs/contexts/index.js +15 -0
  180. package/cjs/hooks/useAPI/useAPI.js +14 -40
  181. package/cjs/hooks/useCollaboration.js +5 -9
  182. package/cjs/hooks/useCommentsEntitiesMap.js +2 -6
  183. package/cjs/hooks/useConfigPermissions.js +3 -7
  184. package/cjs/hooks/useCustomScripts.js +13 -39
  185. package/cjs/hooks/useEditableConnection.js +2 -6
  186. package/cjs/hooks/useMarkAsNotMatchRequest.js +4 -8
  187. package/cjs/hooks/useMatchesLoader.js +5 -9
  188. package/cjs/hooks/useMergeAllRequest.js +16 -30
  189. package/cjs/hooks/useReadableSearchState.js +8 -32
  190. package/cjs/hooks/useRelationsLoader.js +9 -33
  191. package/cjs/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  192. package/cjs/hooks/useUsers.js +4 -5
  193. package/cjs/icons/Tenant.d.ts +3 -0
  194. package/cjs/icons/Tenant.js +22 -0
  195. package/esm/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
  196. package/esm/components/AttributeSelector/AttributeSelector.js +2 -3
  197. package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +5 -6
  198. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
  199. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +7 -18
  200. package/esm/components/BasicView/BasicView.d.ts +1 -1
  201. package/esm/components/CollaborationItem/Comment/Comment.js +2 -4
  202. package/esm/components/CollaborationItem/CommentTarget/CommentTarget.js +3 -5
  203. package/esm/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
  204. package/esm/components/CollaborationItem/RepliedComment/RepliedComment.js +2 -4
  205. package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +2 -4
  206. package/esm/components/ColoredSourceIcon/ColoredSourceIcon.js +2 -4
  207. package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -6
  208. package/esm/components/DataTenantBadge/DataTenantBadge.js +6 -4
  209. package/esm/components/DataTypeValue/DataTypeValue.js +4 -5
  210. package/esm/components/EntityAvatar/EntityAvatar.js +4 -5
  211. package/esm/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
  212. package/esm/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
  213. package/esm/components/EntityUriLink/EntityUriLink.js +5 -7
  214. package/esm/components/ErrorPopup/ErrorPopup.d.ts +13 -8
  215. package/esm/components/ErrorPopup/ErrorPopup.js +23 -18
  216. package/esm/components/ErrorPopup/styles.d.ts +1 -1
  217. package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +5 -7
  218. package/esm/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -3
  219. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
  220. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
  221. package/esm/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
  222. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
  223. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
  224. package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -11
  225. package/esm/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
  226. package/esm/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
  227. package/esm/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
  228. package/esm/components/ModeSwitcher/styles.d.ts +1 -1
  229. package/esm/components/PivotingUriLink/PivotingUriLink.js +2 -4
  230. package/esm/components/Popper/Popper.d.ts +1 -1
  231. package/esm/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  232. package/esm/components/ProfileBand/ProfileBand.js +3 -4
  233. package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  234. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +20 -32
  235. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -5
  236. package/esm/components/ProfilesList/ProfilesList.d.ts +2 -3
  237. package/esm/components/ProfilesList/ProfilesList.js +3 -1
  238. package/esm/components/RelationEditor/RelationEditor.js +49 -36
  239. package/esm/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
  240. package/esm/components/SelectAttributesList/SelectAttributesList.js +2 -3
  241. package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
  242. package/esm/components/SmallIconButton/index.d.ts +1 -1
  243. package/esm/components/SourceIcon/SourceIcon.js +2 -3
  244. package/esm/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
  245. package/esm/components/StepNavigation/ProgressButton.d.ts +12 -0
  246. package/esm/components/StepNavigation/ProgressButton.js +36 -0
  247. package/esm/components/StepNavigation/StepNavigation.d.ts +13 -0
  248. package/esm/components/StepNavigation/StepNavigation.js +57 -0
  249. package/esm/components/StepNavigation/styles.d.ts +2 -0
  250. package/esm/components/StepNavigation/styles.js +41 -0
  251. package/esm/components/TenantLabel/TenantLabel.d.ts +6 -0
  252. package/esm/components/TenantLabel/TenantLabel.js +17 -0
  253. package/esm/components/TenantLabel/styles.d.ts +1 -0
  254. package/esm/components/TenantLabel/styles.js +19 -0
  255. package/esm/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  256. package/esm/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  257. package/esm/components/UploadImageDialog/UploadImageDialog.js +4 -5
  258. package/esm/components/UserSelector/UserSelector.js +3 -4
  259. package/esm/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  260. package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  261. package/esm/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  262. package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  263. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  264. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  265. package/esm/components/activityLog/activities/GroupActivity.js +2 -3
  266. package/esm/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  267. package/esm/components/activityLog/activities/SearchActivity.js +6 -7
  268. package/esm/components/activityLog/activities/fields/DeltaField.js +7 -8
  269. package/esm/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  270. package/esm/components/activityLog/activities/records/EntityRecord.js +8 -9
  271. package/esm/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  272. package/esm/components/attributes/AttributesView/AttributesView.js +10 -6
  273. package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  274. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  275. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.js +9 -10
  276. package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  277. package/esm/components/attributes/OvIcon/OvIcon.js +5 -7
  278. package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -6
  279. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  280. package/esm/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  281. package/esm/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  282. package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  283. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  284. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +12 -4
  285. package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  286. package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  287. package/esm/components/attributes/editMode/AttributesPager/index.js +2 -19
  288. package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  289. package/esm/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  290. package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  291. package/esm/components/attributes/editMode/AttributesView/AttributesView.js +11 -13
  292. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  293. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  294. package/esm/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  295. package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +4 -7
  296. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  297. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  298. package/esm/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  299. package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +18 -17
  300. package/esm/components/attributes/editMode/Roles/Roles.js +4 -5
  301. package/esm/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +5 -10
  302. package/esm/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -7
  303. package/esm/components/attributes/editMode/Tags/Tags.js +3 -4
  304. package/esm/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +4 -6
  305. package/esm/components/attributes/inline/common/SourceItem.js +3 -5
  306. package/esm/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  307. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  308. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  309. package/esm/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  310. package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  311. package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  312. package/esm/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  313. package/esm/components/attributes/readMode/AttributesView/AttributesView.js +4 -5
  314. package/esm/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  315. package/esm/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +4 -6
  316. package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -3
  317. package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +3 -5
  318. package/esm/components/attributes/types/attributesView.d.ts +2 -7
  319. package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  320. package/esm/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  321. package/esm/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  322. package/esm/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +2 -4
  323. package/esm/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  324. package/esm/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  325. package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +12 -13
  326. package/esm/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  327. package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  328. package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +10 -13
  329. package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  330. package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  331. package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  332. package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  333. package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -9
  334. package/esm/components/history/HistoryTree/HistoryTree.js +9 -8
  335. package/esm/components/history/HistoryTree/styles.d.ts +1 -1
  336. package/esm/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -8
  337. package/esm/components/history/hooks/useHistoryDiff.js +8 -9
  338. package/esm/components/history/hooks/useHistorySlice.js +4 -5
  339. package/esm/components/index.d.ts +8 -6
  340. package/esm/components/index.js +8 -6
  341. package/esm/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  342. package/esm/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  343. package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  344. package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  345. package/esm/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  346. package/esm/components/workflow/hooks/useWorkflowActions.js +5 -7
  347. package/esm/components/workflow/hooks/useWorkflowAssignee.js +4 -6
  348. package/esm/components/workflow/hooks/useWorkflowCheckPermission.js +24 -22
  349. package/esm/components/workflow/hooks/useWorkflowComments.js +4 -5
  350. package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +7 -8
  351. package/esm/components/workflow/hooks/useWorkflowDefinitions.js +5 -6
  352. package/esm/components/workflow/hooks/useWorkflowDueDate.js +4 -5
  353. package/esm/components/workflow/hooks/useWorkflowPriority.js +4 -5
  354. package/esm/components/workflow/hooks/useWorkflowProcessInstance.js +6 -7
  355. package/esm/components/workflow/hooks/useWorkflowTasks.js +11 -12
  356. package/esm/contexts/ActionsHookContext/index.d.ts +4 -1
  357. package/esm/contexts/CollaborationContext/index.js +1 -1
  358. package/esm/contexts/MdmModuleContext/context.d.ts +243 -0
  359. package/esm/contexts/MdmModuleContext/context.js +4 -0
  360. package/esm/contexts/MdmModuleContext/hooks.d.ts +139 -0
  361. package/esm/contexts/MdmModuleContext/hooks.js +139 -0
  362. package/esm/contexts/MdmModuleContext/index.d.ts +3 -0
  363. package/esm/contexts/MdmModuleContext/index.js +2 -0
  364. package/esm/contexts/MdmModuleContext/provider.d.ts +10 -0
  365. package/esm/contexts/MdmModuleContext/provider.js +8 -0
  366. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  367. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +123 -0
  368. package/esm/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  369. package/esm/contexts/MdmModuleContext/selectors/entity.js +6 -0
  370. package/esm/contexts/MdmModuleContext/selectors.d.ts +3 -0
  371. package/esm/contexts/MdmModuleContext/selectors.js +6 -0
  372. package/esm/contexts/index.d.ts +1 -0
  373. package/esm/contexts/index.js +1 -0
  374. package/esm/hooks/useAPI/useAPI.js +15 -18
  375. package/esm/hooks/useCollaboration.js +5 -6
  376. package/esm/hooks/useCommentsEntitiesMap.js +2 -3
  377. package/esm/hooks/useConfigPermissions.js +3 -4
  378. package/esm/hooks/useCustomScripts.js +14 -17
  379. package/esm/hooks/useEditableConnection.js +2 -3
  380. package/esm/hooks/useMarkAsNotMatchRequest.js +4 -5
  381. package/esm/hooks/useMatchesLoader.js +5 -6
  382. package/esm/hooks/useMergeAllRequest.js +16 -7
  383. package/esm/hooks/useReadableSearchState.js +8 -9
  384. package/esm/hooks/useRelationsLoader.js +9 -10
  385. package/esm/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  386. package/esm/hooks/useUsers.js +4 -5
  387. package/esm/icons/Tenant.d.ts +3 -0
  388. package/esm/icons/Tenant.js +17 -0
  389. package/package.json +3 -4
  390. package/cjs/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  391. package/cjs/components/ProfileBandNavigation/helpers/index.js +0 -70
  392. package/cjs/components/ProfileBandNavigation/types/index.d.ts +0 -15
  393. package/cjs/components/ProfileBandNavigation/types/index.js +0 -2
  394. package/cjs/components/ProfilesList/index.d.ts +0 -27
  395. package/cjs/components/ProfilesList/index.js +0 -16
  396. package/cjs/components/RelationEditor/index.d.ts +0 -6
  397. package/cjs/components/RelationEditor/index.js +0 -50
  398. package/cjs/components/attributes/AttributesView/index.d.ts +0 -7
  399. package/cjs/components/attributes/AttributesView/index.js +0 -15
  400. package/cjs/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  401. package/cjs/components/attributes/editMode/AttributesView/index.js +0 -14
  402. package/cjs/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  403. package/cjs/components/attributes/editMode/EntityCreator/index.js +0 -42
  404. package/cjs/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  405. package/cjs/components/attributes/editMode/ReferenceAttribute/index.js +0 -48
  406. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  407. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -34
  408. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  409. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -19
  410. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  411. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -20
  412. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  413. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -79
  414. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  415. package/cjs/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  416. package/cjs/components/attributes/readMode/AttributesPager/index.js +0 -43
  417. package/cjs/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  418. package/cjs/components/attributes/readMode/AttributesView/index.js +0 -14
  419. package/cjs/test-utils/store-utils.d.ts +0 -78
  420. package/cjs/test-utils/store-utils.js +0 -19
  421. package/esm/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  422. package/esm/components/ProfileBandNavigation/helpers/index.js +0 -66
  423. package/esm/components/ProfileBandNavigation/types/index.d.ts +0 -15
  424. package/esm/components/ProfileBandNavigation/types/index.js +0 -1
  425. package/esm/components/ProfilesList/index.d.ts +0 -27
  426. package/esm/components/ProfilesList/index.js +0 -10
  427. package/esm/components/RelationEditor/index.d.ts +0 -6
  428. package/esm/components/RelationEditor/index.js +0 -21
  429. package/esm/components/attributes/AttributesView/index.d.ts +0 -7
  430. package/esm/components/attributes/AttributesView/index.js +0 -9
  431. package/esm/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  432. package/esm/components/attributes/editMode/AttributesView/index.js +0 -8
  433. package/esm/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  434. package/esm/components/attributes/editMode/EntityCreator/index.js +0 -13
  435. package/esm/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  436. package/esm/components/attributes/editMode/ReferenceAttribute/index.js +0 -19
  437. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  438. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -27
  439. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  440. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -15
  441. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  442. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -13
  443. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  444. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -72
  445. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  446. package/esm/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  447. package/esm/components/attributes/readMode/AttributesPager/index.js +0 -14
  448. package/esm/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  449. package/esm/components/attributes/readMode/AttributesView/index.js +0 -8
  450. package/esm/test-utils/store-utils.d.ts +0 -78
  451. package/esm/test-utils/store-utils.js +0 -12
  452. /package/cjs/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
  453. /package/esm/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
@@ -9,7 +9,7 @@ declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
9
9
  format?: undefined;
10
10
  tenant?: undefined;
11
11
  } | {
12
- lookups: any;
12
+ lookups: import("@reltio/mdm-sdk").Lookups;
13
13
  lookupCode: any;
14
14
  getLookups: () => any;
15
15
  entries?: undefined;
@@ -18,7 +18,7 @@ declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
18
18
  format?: undefined;
19
19
  tenant?: undefined;
20
20
  } | {
21
- lookups: any;
21
+ lookups: import("@reltio/mdm-sdk").Lookups;
22
22
  lookupCode: any;
23
23
  getLookups: ({ type, parents, displayNamePrefix, max, offset }: {
24
24
  type: any;
@@ -51,7 +51,7 @@ declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
51
51
  getSuggestions?: undefined;
52
52
  tenant?: undefined;
53
53
  } | {
54
- tenant: any;
54
+ tenant: string;
55
55
  entries?: undefined;
56
56
  lookups?: undefined;
57
57
  lookupCode?: undefined;
@@ -10,41 +10,18 @@ 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
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
38
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
39
- var react_redux_1 = require("react-redux");
40
14
  var react_1 = require("react");
41
15
  var ramda_1 = require("ramda");
16
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
17
+ var contexts_1 = require("../../../contexts");
42
18
  var useEditorContext = function (fieldName, dataTypeDefinition) {
43
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
44
- var lookups = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getLookups);
45
- var attributePresentations = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getAttributePresentations);
46
- var globalSearchRequestOptions = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getGlobalSearchRequestOptions);
47
- var dispatch = (0, react_redux_1.useDispatch)();
19
+ var lookupsLoaded = (0, contexts_1.useMdmAction)('lookupsLoaded');
20
+ var lookupsForTypeResolved = (0, contexts_1.useMdmAction)('lookupsForTypeResolved');
21
+ var tenant = (0, contexts_1.useMdmTenant)();
22
+ var lookups = (0, contexts_1.useMdmLookups)();
23
+ var attributePresentations = (0, contexts_1.useMdmAttributePresentations)();
24
+ var globalSearchRequestOptions = (0, contexts_1.useMdmGlobalSearchRequestOptions)();
48
25
  var typeaheadGetSuggestion = (0, react_1.useCallback)(function (searchValue, max, pageNo) {
49
26
  return (0, mdm_sdk_1.getFacetedAttributeData)({
50
27
  fieldName: fieldName,
@@ -62,7 +39,7 @@ var useEditorContext = function (fieldName, dataTypeDefinition) {
62
39
  lookupCode: lookupCode,
63
40
  getLookups: function () {
64
41
  return (0, mdm_sdk_1.getLookups)().then(function (lookups) {
65
- dispatch(mdm_module_1.profile.lookups.actions.lookupsLoaded(lookups));
42
+ lookupsLoaded(lookups);
66
43
  });
67
44
  }
68
45
  };
@@ -82,10 +59,7 @@ var useEditorContext = function (fieldName, dataTypeDefinition) {
82
59
  return (0, mdm_sdk_1.resolveLookupsList)(lookupsList).then(function (response) {
83
60
  if (Array.isArray(response)) {
84
61
  var lookups_1 = response.reduce(function (acc, lookupData) { return (__assign(__assign({}, acc), lookupData[type])); }, {});
85
- dispatch(mdm_module_1.profile.lookups.actions.lookupsForTypeResolved({
86
- type: type,
87
- values: lookups_1
88
- }));
62
+ lookupsForTypeResolved({ type: type, values: lookups_1 });
89
63
  }
90
64
  });
91
65
  }
@@ -18,11 +18,11 @@ export type DateRangeEditorProps = {
18
18
  };
19
19
  declare const _default: {
20
20
  (props: DateRangeEditorProps & React.RefAttributes<HTMLDivElement> & {
21
- values?: string | [Date, Date] | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE">;
21
+ values?: string | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE"> | [Date, Date];
22
22
  options?: import("../../../HOCs/withDateRangeSelector/helpers").Option[];
23
23
  dataTypeDefinition?: import("@reltio/mdm-sdk").DataTypeDefinition;
24
- getValuesDateRange?: (value: string | [Date, Date] | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE">) => [Date, Date];
25
- onChange?: (value: string | [Date, Date] | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE">) => void;
24
+ getValuesDateRange?: (value: string | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE"> | [Date, Date]) => [Date, Date];
25
+ onChange?: (value: string | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE"> | [Date, Date]) => void;
26
26
  DateRangePickerProps?: Partial<{
27
27
  onApply: ([startDate, endDate]: [Date, Date]) => void;
28
28
  values?: [Date, Date];
@@ -145,7 +145,7 @@ var TypeaheadEditor = function (_a) {
145
145
  }
146
146
  };
147
147
  return (react_1.default.createElement(react_autosuggest_1.default, { suggestions: displayedSuggestions, shouldRenderSuggestions: ramda_1.T, inputProps: __assign(__assign({ value: inputValue, onChange: (0, ramda_1.pipe)((0, ramda_1.nthArg)(1), onInputChange), onKeyDown: function (event) {
148
- if (event.keyCode === 13 && multiple && !hasHighlightedItem) {
148
+ if (event.code === 'Enter' && multiple && !hasHighlightedItem) {
149
149
  onInputChange({ method: 'enter', newValue: currentValue });
150
150
  }
151
151
  }, fullWidth: fullWidth }, inputProps), { autoComplete: 'nope' }), getSuggestionValue: ramda_1.identity, onSuggestionsFetchRequested: (0, ramda_1.ifElse)((0, ramda_1.propEq)('reason', 'input-changed'), debouncedFetchSuggestions, fetchSuggestions), onSuggestionsClearRequested: (0, ramda_1.pipe)((0, ramda_1.always)([]), setSuggestions, ramda_1.F, setPlaceholderVisibility, (0, ramda_1.always)(1), setPageNumber), renderInputComponent: function (_a) {
@@ -9,5 +9,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<{
9
9
  isCollapsed?: boolean;
10
10
  showCollapseIcon?: boolean;
11
11
  showLine?: boolean;
12
- } & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "local" | "visibility" | "type" | "operator" | "id" | "in" | "name" | "direction" | "max" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "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" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
12
+ } & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "in" | "id" | "type" | "name" | "direction" | "max" | "local" | "visibility" | "operator" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "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" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
13
13
  export default _default;
@@ -16,7 +16,7 @@ export declare const HistoryCircleWithTooltip: React.ForwardRefExoticComponent<i
16
16
  isCollapsed?: boolean;
17
17
  showCollapseIcon?: boolean;
18
18
  showLine?: boolean;
19
- } & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "local" | "visibility" | "type" | "operator" | "id" | "in" | "name" | "direction" | "max" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "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" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
19
+ } & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "in" | "id" | "type" | "name" | "direction" | "max" | "local" | "visibility" | "operator" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "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" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
20
20
  type Props = {
21
21
  graphData: HistoryData;
22
22
  onHistoryCircleMouseOver?: (uri: string, timestamp: number, index: number) => void;
@@ -1,56 +1,29 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  var react_1 = __importDefault(require("react"));
30
- var react_redux_1 = require("react-redux");
31
7
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
32
8
  var MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
33
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
34
9
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
35
10
  var SmallIconButton_1 = require("../../SmallIconButton");
36
11
  var DropDownMenuButton_1 = __importDefault(require("../../DropDownMenuButton/DropDownMenuButton"));
37
12
  var MenuItemRenderer_1 = __importDefault(require("./MenuItemRenderer"));
13
+ var contexts_1 = require("../../../contexts");
38
14
  var HistoryMenuButton = function () {
39
- var mode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getHistoryMode);
40
- var dispatch = (0, react_redux_1.useDispatch)();
41
- var handleModeChange = function (selectedMode) {
42
- dispatch(mdm_module_1.profile.history.actions.setHistoryMode(selectedMode));
43
- };
15
+ var setHistoryMode = (0, contexts_1.useMdmAction)('setHistoryMode');
16
+ var mode = (0, contexts_1.useMdmHistoryMode)();
44
17
  var menuItems = [
45
18
  {
46
19
  text: ui_i18n_1.default.text('Compare to Current view'),
47
20
  selected: mode === mdm_sdk_1.HistoryMode.Current,
48
- onClick: function () { return handleModeChange(mdm_sdk_1.HistoryMode.Current); }
21
+ onClick: function () { return setHistoryMode(mdm_sdk_1.HistoryMode.Current); }
49
22
  },
50
23
  {
51
24
  text: ui_i18n_1.default.text('Compare to Previous view'),
52
25
  selected: mode === mdm_sdk_1.HistoryMode.Previous,
53
- onClick: function () { return handleModeChange(mdm_sdk_1.HistoryMode.Previous); }
26
+ onClick: function () { return setHistoryMode(mdm_sdk_1.HistoryMode.Previous); }
54
27
  }
55
28
  ];
56
29
  return (react_1.default.createElement(DropDownMenuButton_1.default, { MenuItemRenderer: MenuItemRenderer_1.default, buttonComponent: SmallIconButton_1.SmallIconButton, buttonProps: {
@@ -38,28 +38,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  };
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  var react_1 = __importStar(require("react"));
41
- var react_redux_1 = require("react-redux");
42
41
  var react_resize_detector_1 = __importDefault(require("react-resize-detector"));
43
42
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
44
43
  var ramda_1 = require("ramda");
45
44
  var classnames_1 = __importDefault(require("classnames"));
46
45
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
47
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
48
46
  var Button_1 = __importDefault(require("@mui/material/Button"));
49
47
  var HistoryRow_1 = __importDefault(require("../HistoryRow/HistoryRow"));
50
48
  var HistoryGraph_1 = __importDefault(require("../HistoryGraph/HistoryGraph"));
51
49
  var LinearLoadIndicator_1 = __importDefault(require("../../LinearLoadIndicator/LinearLoadIndicator"));
50
+ var contexts_1 = require("../../../contexts");
52
51
  var styles_1 = require("./styles");
53
52
  var HistoryTree = function (_a) {
54
53
  var _b;
55
54
  var historyData = _a.historyData, isLoading = _a.isLoading, canLoadMore = _a.canLoadMore, onLoadMore = _a.onLoadMore, entityUri = _a.entityUri, historyEvent = _a.historyEvent, findPreviousChange = _a.findPreviousChange;
56
55
  var styles = (0, styles_1.useStyles)();
57
- var dispatch = (0, react_redux_1.useDispatch)();
58
- var isEditableMode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getIsEditableMode);
59
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
60
56
  var _c = (0, react_1.useState)({ historyLanes: {}, rows: [] }), graphData = _c[0], setGraphData = _c[1];
61
57
  var _d = (0, react_1.useState)(false), isScrollable = _d[0], setIsScrollable = _d[1];
62
58
  var _e = (0, react_1.useState)(-1), selectedIndex = _e[0], setSelectedIndex = _e[1];
59
+ var setHistoryEvent = (0, contexts_1.useMdmAction)('setHistoryEvent');
60
+ var clearHistoryEvent = (0, contexts_1.useMdmAction)('clearHistoryEvent');
61
+ var modeUpdated = (0, contexts_1.useMdmAction)('modeUpdated');
62
+ var metadata = (0, contexts_1.useMdmMetadata)();
63
+ var isEditableMode = (0, contexts_1.useMdmIsEditableMode)();
63
64
  (0, react_1.useEffect)(function () {
64
65
  if ((0, ramda_1.isNil)(historyEvent)) {
65
66
  setSelectedIndex(0);
@@ -105,14 +106,14 @@ var HistoryTree = function (_a) {
105
106
  var handleHistoryRowClick = function (index, change, isSelected, isCurrent) {
106
107
  if (isEditableMode) {
107
108
  if (window.confirm(ui_i18n_1.default.text('Are you sure you want to go in history mode? All your changes will be lost.'))) {
108
- dispatch(mdm_module_1.profile.mode.actions.modeUpdated(mdm_sdk_1.Mode.Viewing));
109
+ modeUpdated(mdm_sdk_1.Mode.Viewing);
109
110
  }
110
111
  else {
111
112
  return;
112
113
  }
113
114
  }
114
115
  if ((isCurrent && !isSelected) || (!isCurrent && isSelected)) {
115
- dispatch(mdm_module_1.profile.history.actions.clearHistoryEvent());
116
+ clearHistoryEvent();
116
117
  setSelectedIndex(0);
117
118
  }
118
119
  else if (!isCurrent && !isSelected) {
@@ -121,7 +122,7 @@ var HistoryTree = function (_a) {
121
122
  var aStamp = aChange === null || aChange === void 0 ? void 0 : aChange.timestamp;
122
123
  var bStamp = bChange === null || bChange === void 0 ? void 0 : bChange.timestamp;
123
124
  var overrideUri = (change === null || change === void 0 ? void 0 : change.uri) === entityUri ? null : change === null || change === void 0 ? void 0 : change.uri;
124
- dispatch(mdm_module_1.profile.history.actions.setHistoryEvent({ aStamp: aStamp, bStamp: bStamp, overrideUri: overrideUri }));
125
+ setHistoryEvent({ aStamp: aStamp, bStamp: bStamp, overrideUri: overrideUri });
125
126
  setSelectedIndex(index);
126
127
  }
127
128
  };
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"history" | "historyTree" | "graph" | "buttonContainer" | "shadow">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"historyTree" | "graph" | "history" | "buttonContainer" | "shadow">;
@@ -1,49 +1,23 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  var react_1 = __importDefault(require("react"));
30
- var react_redux_1 = require("react-redux");
31
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
7
+ var ui_i18n_1 = __importDefault(require("ui-i18n"));
32
8
  var Button_1 = __importDefault(require("@mui/material/Button"));
33
9
  var Typography_1 = __importDefault(require("@mui/material/Typography"));
34
- var ramda_1 = require("ramda");
35
- var ui_i18n_1 = __importDefault(require("ui-i18n"));
10
+ var contexts_1 = require("../../../contexts");
36
11
  var styles_1 = require("./styles");
37
12
  var ProfileBandHistory = function () {
38
13
  var styles = (0, styles_1.useStyles)();
39
- var historyEvent = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getHistoryEvent);
40
- var dispatch = (0, react_redux_1.useDispatch)();
41
- var onCancel = (0, ramda_1.pipe)(mdm_module_1.profile.history.actions.clearHistoryEvent, dispatch);
14
+ var clearHistoryEvent = (0, contexts_1.useMdmAction)('clearHistoryEvent');
15
+ var historyEvent = (0, contexts_1.useMdmHistoryEvent)();
42
16
  return historyEvent ? (react_1.default.createElement("div", { className: styles.root },
43
17
  react_1.default.createElement(Typography_1.default, { component: 'div' },
44
18
  ui_i18n_1.default.text('You are viewing a historic slice:'),
45
19
  ' ',
46
20
  react_1.default.createElement("span", { className: styles.slice }, ui_i18n_1.default.date(historyEvent.aStamp, 'llll'))),
47
- react_1.default.createElement(Button_1.default, { className: styles.cancelButton, variant: "contained", color: "primary", onClick: onCancel }, ui_i18n_1.default.text('Cancel')))) : null;
21
+ react_1.default.createElement(Button_1.default, { className: styles.cancelButton, variant: "contained", color: "primary", onClick: clearHistoryEvent }, ui_i18n_1.default.text('Cancel')))) : null;
48
22
  };
49
23
  exports.default = ProfileBandHistory;
@@ -1,34 +1,10 @@
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.useHistoryDiff = exports.defaultHistoryDiff = void 0;
27
4
  var react_1 = require("react");
28
- var react_redux_1 = require("react-redux");
29
5
  var ramda_1 = require("ramda");
30
6
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
31
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
7
+ var contexts_1 = require("../../../contexts");
32
8
  exports.defaultHistoryDiff = {
33
9
  appearance: {},
34
10
  attributes: {},
@@ -48,19 +24,19 @@ var prepareHistorySlice = function (historySlice) {
48
24
  return historySlice;
49
25
  };
50
26
  var useHistoryDiff = function () {
51
- var dispatch = (0, react_redux_1.useDispatch)();
52
- var historySlice = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getHistorySlice);
53
- var historyDiff = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getHistoryDiff);
54
- var historyMode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getHistoryMode);
55
- var entity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity);
27
+ var setHistoryDiff = (0, contexts_1.useMdmAction)('setHistoryDiff');
28
+ var historySlice = (0, contexts_1.useMdmHistorySlice)();
29
+ var historyDiff = (0, contexts_1.useMdmHistoryDiff)();
30
+ var historyMode = (0, contexts_1.useMdmHistoryMode)();
31
+ var entity = (0, contexts_1.useMdmEntity)();
56
32
  (0, react_1.useEffect)(function () {
57
33
  if (historySlice) {
58
34
  var aEntity = historySlice.aEntity, bEntity = historySlice.bEntity;
59
35
  var historyManager = mdm_sdk_1.entity.HistoryManager.createHistoryManager();
60
36
  var historyDiff_1 = historyManager.computeEntityHistoryDiff(prepareHistorySlice(historyMode === mdm_sdk_1.HistoryMode.Current ? entity : bEntity), prepareHistorySlice(aEntity));
61
- dispatch(mdm_module_1.profile.history.actions.setHistoryDiff(historyDiff_1));
37
+ setHistoryDiff(historyDiff_1);
62
38
  }
63
- }, [historySlice, historyMode, dispatch, entity]);
39
+ }, [historySlice, historyMode, setHistoryDiff, entity]);
64
40
  return historyDiff || exports.defaultHistoryDiff;
65
41
  };
66
42
  exports.useHistoryDiff = useHistoryDiff;
@@ -1,39 +1,15 @@
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.useHistorySlice = 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 hooks_1 = require("../../../hooks");
7
+ var contexts_1 = require("../../../contexts");
32
8
  var useHistorySlice = function (_a) {
33
9
  var entity = _a.entity, historyEvent = _a.historyEvent;
34
10
  var _b = (0, react_1.useState)(false), isLoading = _b[0], setIsLoading = _b[1];
35
- var historySlice = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getHistorySlice);
36
- var dispatch = (0, react_redux_1.useDispatch)();
11
+ var setHistorySlice = (0, contexts_1.useMdmAction)('setHistorySlice');
12
+ var historySlice = (0, contexts_1.useMdmHistorySlice)();
37
13
  var safePromise = (0, hooks_1.useSafePromise)();
38
14
  var _c = historyEvent || {}, aStamp = _c.aStamp, bStamp = _c.bStamp, overrideUri = _c.overrideUri;
39
15
  var entityUri = overrideUri || (entity === null || entity === void 0 ? void 0 : entity.uri);
@@ -46,7 +22,7 @@ var useHistorySlice = function (_a) {
46
22
  ]))
47
23
  .then(function (_a) {
48
24
  var aEntity = _a[0], bEntity = _a[1];
49
- dispatch(mdm_module_1.profile.history.actions.setHistorySlice({ aEntity: aEntity, bEntity: bEntity }));
25
+ setHistorySlice({ aEntity: aEntity, bEntity: bEntity });
50
26
  })
51
27
  .catch(function (e) {
52
28
  console.warn('Failed to load entity slice', e);
@@ -1,14 +1,14 @@
1
1
  export * from './activityLog';
2
2
  export { default as AttributeListItem } from './AttributeListItem/AttributeListItem';
3
- export { default as AttributesView } from './attributes/AttributesView';
3
+ export { default as AttributesView } from './attributes/AttributesView/AttributesView';
4
4
  export { default as DescriptionIcon } from './attributes/DescriptionIcon';
5
5
  export { default as BranchDecorator } from './attributes/BranchDecorator/BranchDecorator';
6
6
  export { default as AttributesList } from './attributes/editMode/AttributesList';
7
- export { default as EntityCreator } from './attributes/editMode/EntityCreator';
7
+ export { default as EntityCreator } from './attributes/editMode/EntityCreator/EntityCreator';
8
8
  export { default as EntitySelector } from './attributes/editMode/EntitySelector/EntitySelector';
9
9
  export { default as MoreAttributesButton } from './attributes/editMode/MoreAttributesButton';
10
10
  export { default as NestedAttributeEditor } from './attributes/editMode/NestedAttribute/NestedAttribute';
11
- export { default as ReferenceAttributeEditor } from './attributes/editMode/ReferenceAttribute';
11
+ export { default as ReferenceAttributeEditor } from './attributes/editMode/ReferenceAttribute/ReferenceAttribute';
12
12
  export { default as RelationTypeSelector } from './attributes/editMode/RelationTypeSelector/RelationTypeSelector';
13
13
  export { default as SimpleAttributeEditor } from './attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor';
14
14
  export { default as AttributesPager, CardinalityMessage } from './attributes/editMode/AttributesPager';
@@ -21,7 +21,7 @@ export { default as EditableImageAttributesLine } from './attributes/editMode/Im
21
21
  export { default as NestedAttribute } from './attributes/readMode/NestedAttribute';
22
22
  export { default as ReferenceAttribute } from './attributes/readMode/ReferenceAttribute';
23
23
  export { default as SimpleAttribute } from './attributes/readMode/SimpleAttribute';
24
- export { default as ReadOnlyAttributesPager } from './attributes/readMode/AttributesPager';
24
+ export { default as ReadOnlyAttributesPager } from './attributes/readMode/AttributesPager/AttributesPager';
25
25
  export { default as AutoSizeList } from './AutoSizeList/AutoSizeList';
26
26
  export { default as AvatarWithFallback } from './AvatarWithFallback/AvatarWithFallback';
27
27
  export * from './BasicTableView';
@@ -125,13 +125,13 @@ export { ReltioMap } from './ReltioMap';
125
125
  export { default as ErrorMessage } from './ErrorWrapper/ErrorMessage';
126
126
  export * from './history';
127
127
  export { default as OvIcon } from './attributes/OvIcon';
128
- export { default as RelationEditor } from './RelationEditor';
128
+ export { default as RelationEditor } from './RelationEditor/RelationEditor';
129
129
  export * from './workflow';
130
130
  export { ProfileMatchCard } from './ProfileMatchCard/ProfileMatchCard';
131
131
  export { MergeButton } from './MergeButton/MergeButton';
132
132
  export { NotMatchButton } from './NotMatchButton/NotMatchButton';
133
133
  export { ActionButton, ActionButtonMode } from './ActionButton/ActionButton';
134
- export { default as ProfilesList } from './ProfilesList';
134
+ export { default as ProfilesList } from './ProfilesList/ProfilesList';
135
135
  export { default as BasicAttributeSelector } from './BasicAttributeSelector/BasicAttributeSelector';
136
136
  export { default as AttributeGroupIcon } from './AttributeGroupIcon/AttributeGroupIcon';
137
137
  export { default as AttributesFiltersButton } from './AttributesFiltersButton/AttributesFiltersButton';
@@ -150,3 +150,5 @@ export { HierarchyNodeTitle } from './HierarchyNodeTitle/HierarchyNodeTitle';
150
150
  export { default as RequiredMark } from './RequiredMark/RequiredMark';
151
151
  export { RelevanceScoreBadge } from './RelevanceScoreBadge/RelevanceScoreBadge';
152
152
  export { default as MultilineMenuItem } from './MultilineMenuItem/MultilineMenuItem';
153
+ export { default as TenantLabel } from './TenantLabel/TenantLabel';
154
+ export { default as StepNavigation } from './StepNavigation/StepNavigation';