@selfcommunity/react-ui 0.7.0-alpha.328 → 0.7.0-alpha.329

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.
@@ -15,7 +15,6 @@ const react_intersection_observer_1 = require("react-intersection-observer");
15
15
  const contribution_1 = require("../../utils/contribution");
16
16
  const types_1 = require("@selfcommunity/types");
17
17
  const utils_1 = require("@selfcommunity/utils");
18
- const seamless_scroll_polyfill_1 = require("seamless-scroll-polyfill");
19
18
  const Pagination_1 = require("../../constants/Pagination");
20
19
  const react_core_1 = require("@selfcommunity/react-core");
21
20
  const PREFIX = 'SCCommentsObject';
@@ -125,7 +124,7 @@ function CommentsObject(inProps) {
125
124
  setTimeout(() => {
126
125
  const element = document.getElementById(`reply-${comment.id}`);
127
126
  if (element) {
128
- (0, seamless_scroll_polyfill_1.scrollIntoView)(element, { behavior: 'smooth', block: 'center', inline: 'center' });
127
+ element.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' });
129
128
  }
130
129
  }, 200);
131
130
  }
@@ -13,7 +13,6 @@ import { InView } from 'react-intersection-observer';
13
13
  import { getContributionRouteName, getRouteData } from '../../utils/contribution';
14
14
  import { SCContributionType, SCCustomAdvPosition } from '@selfcommunity/types';
15
15
  import { appendURLSearchParams, CacheStrategies } from '@selfcommunity/utils';
16
- import { scrollIntoView } from 'seamless-scroll-polyfill';
17
16
  import { DEFAULT_PAGINATION_QUERY_PARAM_NAME } from '../../constants/Pagination';
18
17
  import { Link, SCPreferences, useSCFetchFeedObject, useSCPreferences, useSCRouting, useSCUser } from '@selfcommunity/react-core';
19
18
  const PREFIX = 'SCCommentsObject';
@@ -123,7 +122,7 @@ export default function CommentsObject(inProps) {
123
122
  setTimeout(() => {
124
123
  const element = document.getElementById(`reply-${comment.id}`);
125
124
  if (element) {
126
- scrollIntoView(element, { behavior: 'smooth', block: 'center', inline: 'center' });
125
+ element.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' });
127
126
  }
128
127
  }, 200);
129
128
  }