@vkontakte/vkui 8.1.2 → 8.1.3

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 (51) hide show
  1. package/dist/components/NavTransitionContext/NavTransitionContext.d.ts +2 -1
  2. package/dist/components/NavTransitionContext/NavTransitionContext.d.ts.map +1 -1
  3. package/dist/components/NavTransitionContext/NavTransitionContext.js +8 -4
  4. package/dist/components/NavTransitionContext/NavTransitionContext.js.map +1 -1
  5. package/dist/components/OnboardingTooltip/OnboardingTooltip.d.ts.map +1 -1
  6. package/dist/components/OnboardingTooltip/OnboardingTooltip.js +2 -4
  7. package/dist/components/OnboardingTooltip/OnboardingTooltip.js.map +1 -1
  8. package/dist/components/Popper/Popper.d.ts.map +1 -1
  9. package/dist/components/Popper/Popper.js +6 -3
  10. package/dist/components/Popper/Popper.js.map +1 -1
  11. package/dist/components/Root/Root.d.ts.map +1 -1
  12. package/dist/components/Root/Root.js +29 -32
  13. package/dist/components/Root/Root.js.map +1 -1
  14. package/dist/components/View/View.d.ts.map +1 -1
  15. package/dist/components/View/View.js +50 -53
  16. package/dist/components/View/View.js.map +1 -1
  17. package/dist/components/View/ViewInfinite.d.ts.map +1 -1
  18. package/dist/components/View/ViewInfinite.js +34 -37
  19. package/dist/components/View/ViewInfinite.js.map +1 -1
  20. package/dist/cssm/components/NavTransitionContext/NavTransitionContext.js +8 -4
  21. package/dist/cssm/components/NavTransitionContext/NavTransitionContext.js.map +1 -1
  22. package/dist/cssm/components/OnboardingTooltip/OnboardingTooltip.js +2 -4
  23. package/dist/cssm/components/OnboardingTooltip/OnboardingTooltip.js.map +1 -1
  24. package/dist/cssm/components/Popper/Popper.js +6 -3
  25. package/dist/cssm/components/Popper/Popper.js.map +1 -1
  26. package/dist/cssm/components/Root/Root.js +29 -32
  27. package/dist/cssm/components/Root/Root.js.map +1 -1
  28. package/dist/cssm/components/View/View.js +50 -53
  29. package/dist/cssm/components/View/View.js.map +1 -1
  30. package/dist/cssm/components/View/ViewInfinite.js +34 -37
  31. package/dist/cssm/components/View/ViewInfinite.js.map +1 -1
  32. package/dist/cssm/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.js +4 -4
  33. package/dist/cssm/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.js.map +1 -1
  34. package/dist/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.d.ts.map +1 -1
  35. package/dist/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.js +4 -4
  36. package/dist/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/components/NavTransitionContext/NavTransitionContext.tsx +5 -1
  39. package/src/components/OnboardingTooltip/OnboardingTooltip.tsx +2 -5
  40. package/src/components/Popper/Popper.tsx +7 -4
  41. package/src/components/Root/Root.tsx +50 -52
  42. package/src/components/View/View.tsx +83 -89
  43. package/src/components/View/ViewInfinite.tsx +65 -69
  44. package/src/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.ts +4 -5
  45. package/dist/cssm/lib/floating/LockFloatingPosition/LockFloatingPosition.js +0 -6
  46. package/dist/cssm/lib/floating/LockFloatingPosition/LockFloatingPosition.js.map +0 -1
  47. package/dist/lib/floating/LockFloatingPosition/LockFloatingPosition.d.ts +0 -6
  48. package/dist/lib/floating/LockFloatingPosition/LockFloatingPosition.d.ts.map +0 -1
  49. package/dist/lib/floating/LockFloatingPosition/LockFloatingPosition.js +0 -6
  50. package/dist/lib/floating/LockFloatingPosition/LockFloatingPosition.js.map +0 -1
  51. package/src/lib/floating/LockFloatingPosition/LockFloatingPosition.tsx +0 -6
@@ -5,7 +5,6 @@ import { classNames } from '@vkontakte/vkjs';
5
5
  import { usePlatform } from '../../hooks/usePlatform';
6
6
  import { millisecondsInSecond } from '../../lib/date';
7
7
  import { blurActiveElement, useDOM } from '../../lib/dom';
8
- import { LockFloatingPositionContext } from '../../lib/floating/LockFloatingPosition/LockFloatingPosition';
9
8
  import { getNavId, type NavIdProps } from '../../lib/getNavId';
10
9
  import { warnOnce } from '../../lib/warnOnce';
11
10
  import type { HTMLAttributesWithRootRef } from '../../types';
@@ -457,96 +456,91 @@ export const View = ({
457
456
 
458
457
  return (
459
458
  <NavViewIdContext.Provider value={id}>
460
- <LockFloatingPositionContext.Provider value={swipingBack || animated}>
461
- <Touch
462
- Component="section"
463
- {...restProps}
464
- className={classNames(
465
- styles.host,
466
- platform === 'ios' && classNames(styles.ios, 'vkuiInternalView--ios'),
467
- !disableAnimation && animated && styles.animated,
468
- !disableAnimation && swipingBack && styles.swipingBack,
469
- disableAnimation && styles.noMotion,
470
- className,
471
- )}
472
- onMoveX={
473
- iOSSwipeBackSimulationEnabled
474
- ? handleTouchMoveXForIOSSwipeBackSimulation
475
- : platform === 'ios'
476
- ? handleTouchMoveXForNativeIOSSwipeBackOrSwipeNext
477
- : undefined
478
- }
479
- onEnd={
480
- iOSSwipeBackSimulationEnabled ? handleTouchEndForIOSSwipeBackSimulation : undefined
481
- }
482
- >
483
- <div className={styles.panels}>
484
- {panels.map((panel) => {
485
- const panelId = getNavId(panel.props, warn);
486
-
487
- const isPanelActive = panelId === activePanel;
488
- const isPanelPrev = panelId === prevPanel;
489
- const isPanelNext = panelId === nextPanel;
490
- const isAnimatedTarget = animated && (isBack ? isPanelPrev : isPanelNext);
491
-
492
- const isSwipeBackPrev = panelId === swipeBackPrevPanel;
493
- const isSwipeBackNext = panelId === swipeBackNextPanel;
494
- const isSwipeBackTarget = swipeBackResult && isSwipeBackPrev;
495
-
496
- let scrollCompensateStyle: React.CSSProperties | undefined = undefined;
497
-
498
- if (isPanelPrev || (isPanelNext && isBack) || isSwipeBackPrev || isSwipeBackNext) {
499
- const marginTop = scrolls.get(panelId);
500
- if (marginTop !== undefined) {
501
- scrollCompensateStyle = { marginTop: -1 * marginTop };
502
- }
459
+ <Touch
460
+ Component="section"
461
+ {...restProps}
462
+ className={classNames(
463
+ styles.host,
464
+ platform === 'ios' && classNames(styles.ios, 'vkuiInternalView--ios'),
465
+ !disableAnimation && animated && styles.animated,
466
+ !disableAnimation && swipingBack && styles.swipingBack,
467
+ disableAnimation && styles.noMotion,
468
+ className,
469
+ )}
470
+ onMoveX={
471
+ iOSSwipeBackSimulationEnabled
472
+ ? handleTouchMoveXForIOSSwipeBackSimulation
473
+ : platform === 'ios'
474
+ ? handleTouchMoveXForNativeIOSSwipeBackOrSwipeNext
475
+ : undefined
476
+ }
477
+ onEnd={iOSSwipeBackSimulationEnabled ? handleTouchEndForIOSSwipeBackSimulation : undefined}
478
+ >
479
+ <div className={styles.panels}>
480
+ {panels.map((panel) => {
481
+ const panelId = getNavId(panel.props, warn);
482
+
483
+ const isPanelActive = panelId === activePanel;
484
+ const isPanelPrev = panelId === prevPanel;
485
+ const isPanelNext = panelId === nextPanel;
486
+ const isAnimatedTarget = animated && (isBack ? isPanelPrev : isPanelNext);
487
+
488
+ const isSwipeBackPrev = panelId === swipeBackPrevPanel;
489
+ const isSwipeBackNext = panelId === swipeBackNextPanel;
490
+ const isSwipeBackTarget = swipeBackResult && isSwipeBackPrev;
491
+
492
+ let scrollCompensateStyle: React.CSSProperties | undefined = undefined;
493
+
494
+ if (isPanelPrev || (isPanelNext && isBack) || isSwipeBackPrev || isSwipeBackNext) {
495
+ const marginTop = scrolls.get(panelId);
496
+ if (marginTop !== undefined) {
497
+ scrollCompensateStyle = { marginTop: -1 * marginTop };
503
498
  }
504
-
505
- return (
506
- <div
507
- className={classNames(
508
- styles.panel,
509
-
510
- isPanelActive && styles.panelActive,
511
- isPanelPrev && styles.panelPrev,
512
- isPanelNext && styles.panelNext,
513
-
514
- isSwipeBackPrev && styles.panelSwipeBackPrev,
515
- isSwipeBackNext && styles.panelSwipeBackNext,
516
- swipeBackResult === 'success' && styles.panelSwipeBackSuccess,
517
- swipeBackResult === 'fail' && styles.panelSwipeBackFailed,
518
- )}
519
- onTransitionEnd={
520
- isSwipeBackTarget ? handleSwipeBackTargetTransitionEnd : undefined
521
- }
522
- onAnimationEnd={isAnimatedTarget ? handleAnimatedTargetAnimationEnd : undefined}
523
- ref={(el) => {
524
- panelId !== undefined && (panelNodes.current[panelId] = el);
525
- }}
526
- style={calcPanelSwipeStyles(isSwipeBackPrev, isSwipeBackNext)}
527
- key={panelId}
528
- >
529
- {platform === 'ios' && (
530
- <div
531
- className={styles.panelOverlay}
532
- style={calcPanelSwipeBackOverlayStyles(isSwipeBackNext)}
533
- />
534
- )}
535
- <div className={styles.panelIn} style={scrollCompensateStyle}>
536
- <NavTransitionDirectionProvider isBack={swipingBack || isBack}>
537
- <NavTransitionProvider
538
- entering={panelId === nextPanel || panelId === swipeBackNextPanel}
539
- >
540
- {panel}
541
- </NavTransitionProvider>
542
- </NavTransitionDirectionProvider>
543
- </div>
499
+ }
500
+
501
+ return (
502
+ <div
503
+ className={classNames(
504
+ styles.panel,
505
+
506
+ isPanelActive && styles.panelActive,
507
+ isPanelPrev && styles.panelPrev,
508
+ isPanelNext && styles.panelNext,
509
+
510
+ isSwipeBackPrev && styles.panelSwipeBackPrev,
511
+ isSwipeBackNext && styles.panelSwipeBackNext,
512
+ swipeBackResult === 'success' && styles.panelSwipeBackSuccess,
513
+ swipeBackResult === 'fail' && styles.panelSwipeBackFailed,
514
+ )}
515
+ onTransitionEnd={isSwipeBackTarget ? handleSwipeBackTargetTransitionEnd : undefined}
516
+ onAnimationEnd={isAnimatedTarget ? handleAnimatedTargetAnimationEnd : undefined}
517
+ ref={(el) => {
518
+ panelId !== undefined && (panelNodes.current[panelId] = el);
519
+ }}
520
+ style={calcPanelSwipeStyles(isSwipeBackPrev, isSwipeBackNext)}
521
+ key={panelId}
522
+ >
523
+ {platform === 'ios' && (
524
+ <div
525
+ className={styles.panelOverlay}
526
+ style={calcPanelSwipeBackOverlayStyles(isSwipeBackNext)}
527
+ />
528
+ )}
529
+ <div className={styles.panelIn} style={scrollCompensateStyle}>
530
+ <NavTransitionDirectionProvider isBack={swipingBack || isBack}>
531
+ <NavTransitionProvider
532
+ entering={panelId === nextPanel || panelId === swipeBackNextPanel}
533
+ animating={swipingBack || animated}
534
+ >
535
+ {panel}
536
+ </NavTransitionProvider>
537
+ </NavTransitionDirectionProvider>
544
538
  </div>
545
- );
546
- })}
547
- </div>
548
- </Touch>
549
- </LockFloatingPositionContext.Provider>
539
+ </div>
540
+ );
541
+ })}
542
+ </div>
543
+ </Touch>
550
544
  </NavViewIdContext.Provider>
551
545
  );
552
546
  };
@@ -6,7 +6,6 @@ import { withContext } from '../../hoc/withContext';
6
6
  import { withPlatform } from '../../hoc/withPlatform';
7
7
  import { millisecondsInSecond } from '../../lib/date';
8
8
  import { canUseDOM, type DOMProps, withDOM } from '../../lib/dom';
9
- import { LockFloatingPositionContext } from '../../lib/floating/LockFloatingPosition/LockFloatingPosition';
10
9
  import { getNavId, type NavIdProps } from '../../lib/getNavId';
11
10
  import { warnOnce } from '../../lib/warnOnce';
12
11
  import type { HasPlatform, HTMLAttributesWithRootRef } from '../../types';
@@ -601,78 +600,75 @@ class ViewInfiniteComponent extends React.Component<
601
600
 
602
601
  return (
603
602
  <NavViewIdContext.Provider value={id || nav}>
604
- <LockFloatingPositionContext.Provider value={swipingBack || animated}>
605
- <Touch
606
- Component="section"
607
- {...restProps}
608
- className={classNames(
609
- styles.host,
610
- platform === 'ios' && classNames(styles.ios, 'vkuiInternalView--ios'),
611
- !disableAnimation && this.state.animated && styles.animated,
612
- !disableAnimation && this.state.swipingBack && styles.swipingBack,
613
- disableAnimation && styles.noMotion,
614
- className,
615
- )}
616
- onMoveX={
617
- iOSSwipeBackSimulationEnabled
618
- ? this.handleTouchMoveXForIOSSwipeBackSimulation
619
- : platform === 'ios'
620
- ? this.handleTouchMoveXForNativeIOSSwipeBackOrSwipeNext
621
- : undefined
622
- }
623
- onEnd={
624
- iOSSwipeBackSimulationEnabled
625
- ? this.handleTouchEndForIOSSwipeBackSimulation
603
+ <Touch
604
+ Component="section"
605
+ {...restProps}
606
+ className={classNames(
607
+ styles.host,
608
+ platform === 'ios' && classNames(styles.ios, 'vkuiInternalView--ios'),
609
+ !disableAnimation && this.state.animated && styles.animated,
610
+ !disableAnimation && this.state.swipingBack && styles.swipingBack,
611
+ disableAnimation && styles.noMotion,
612
+ className,
613
+ )}
614
+ onMoveX={
615
+ iOSSwipeBackSimulationEnabled
616
+ ? this.handleTouchMoveXForIOSSwipeBackSimulation
617
+ : platform === 'ios'
618
+ ? this.handleTouchMoveXForNativeIOSSwipeBackOrSwipeNext
626
619
  : undefined
627
- }
628
- >
629
- <div className={styles.panels}>
630
- {panels.map((panel) => {
631
- const panelId = getNavId(panel.props, warn);
632
- const isPrev = panelId === prevPanel || panelId === swipeBackPrevPanel;
633
- const compensateScroll =
634
- isPrev || panelId === swipeBackNextPanel || (panelId === nextPanel && isBack);
635
- const isTransitionTarget = animated && panelId === (isBack ? prevPanel : nextPanel);
636
- const scrollList = (panelId && this.scrolls.get(panelId)) || [];
637
- const scroll = scrollList[scrollList.length - 1] || 0;
638
-
639
- return (
620
+ }
621
+ onEnd={
622
+ iOSSwipeBackSimulationEnabled ? this.handleTouchEndForIOSSwipeBackSimulation : undefined
623
+ }
624
+ >
625
+ <div className={styles.panels}>
626
+ {panels.map((panel) => {
627
+ const panelId = getNavId(panel.props, warn);
628
+ const isPrev = panelId === prevPanel || panelId === swipeBackPrevPanel;
629
+ const compensateScroll =
630
+ isPrev || panelId === swipeBackNextPanel || (panelId === nextPanel && isBack);
631
+ const isTransitionTarget = animated && panelId === (isBack ? prevPanel : nextPanel);
632
+ const scrollList = (panelId && this.scrolls.get(panelId)) || [];
633
+ const scroll = scrollList[scrollList.length - 1] || 0;
634
+
635
+ return (
636
+ <div
637
+ className={classNames(
638
+ styles.panel,
639
+ panelId === activePanel && styles.panelActive,
640
+ panelId === prevPanel && styles.panelPrev,
641
+ panelId === nextPanel && styles.panelNext,
642
+ panelId === swipeBackPrevPanel && styles.panelSwipeBackPrev,
643
+ panelId === swipeBackNextPanel && styles.panelSwipeBackNext,
644
+ swipeBackResult === 'success' && styles.panelSwipeBackSuccess,
645
+ swipeBackResult === 'fail' && styles.panelSwipeBackFailed,
646
+ )}
647
+ onAnimationEnd={isTransitionTarget ? this.transitionEndHandler : undefined}
648
+ ref={(el) => {
649
+ panelId !== undefined && (this.panelNodes[panelId] = el);
650
+ }}
651
+ style={this.calcPanelSwipeStyles(panelId)}
652
+ key={panelId}
653
+ >
640
654
  <div
641
- className={classNames(
642
- styles.panel,
643
- panelId === activePanel && styles.panelActive,
644
- panelId === prevPanel && styles.panelPrev,
645
- panelId === nextPanel && styles.panelNext,
646
- panelId === swipeBackPrevPanel && styles.panelSwipeBackPrev,
647
- panelId === swipeBackNextPanel && styles.panelSwipeBackNext,
648
- swipeBackResult === 'success' && styles.panelSwipeBackSuccess,
649
- swipeBackResult === 'fail' && styles.panelSwipeBackFailed,
650
- )}
651
- onAnimationEnd={isTransitionTarget ? this.transitionEndHandler : undefined}
652
- ref={(el) => {
653
- panelId !== undefined && (this.panelNodes[panelId] = el);
654
- }}
655
- style={this.calcPanelSwipeStyles(panelId)}
656
- key={panelId}
655
+ className={styles.panelIn}
656
+ style={{ marginTop: compensateScroll ? -scroll : undefined }}
657
657
  >
658
- <div
659
- className={styles.panelIn}
660
- style={{ marginTop: compensateScroll ? -scroll : undefined }}
661
- >
662
- <NavTransitionDirectionProvider isBack={swipingBack || isBack}>
663
- <NavTransitionProvider
664
- entering={panelId === nextPanel || panelId === swipeBackNextPanel}
665
- >
666
- {panel}
667
- </NavTransitionProvider>
668
- </NavTransitionDirectionProvider>
669
- </div>
658
+ <NavTransitionDirectionProvider isBack={swipingBack || isBack}>
659
+ <NavTransitionProvider
660
+ entering={panelId === nextPanel || panelId === swipeBackNextPanel}
661
+ animating={swipingBack || animated}
662
+ >
663
+ {panel}
664
+ </NavTransitionProvider>
665
+ </NavTransitionDirectionProvider>
670
666
  </div>
671
- );
672
- })}
673
- </div>
674
- </Touch>
675
- </LockFloatingPositionContext.Provider>
667
+ </div>
668
+ );
669
+ })}
670
+ </div>
671
+ </Touch>
676
672
  </NavViewIdContext.Provider>
677
673
  );
678
674
  }
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { debounce, noop } from '@vkontakte/vkjs';
3
3
  import { getWindow, isHTMLElement } from '@vkontakte/vkui-floating-ui/utils/dom';
4
+ import { useNavTransition } from '../../../components/NavTransitionContext/NavTransitionContext';
4
5
  import { useCustomEnsuredControl } from '../../../hooks/useEnsuredControl';
5
6
  import { useGlobalOnClickOutside } from '../../../hooks/useGlobalOnClickOutside';
6
7
  import { useStableCallback } from '../../../hooks/useStableCallback';
7
8
  import { contains, getActiveElementByAnotherElement } from '../../dom';
8
9
  import { useIsomorphicLayoutEffect } from '../../useIsomorphicLayoutEffect';
9
- import { LockFloatingPositionContext } from '../LockFloatingPosition/LockFloatingPosition';
10
10
  import { autoUpdateFloatingElement, useFloating } from '../adapters';
11
11
  import { convertFloatingDataToReactCSSProperties } from '../functions';
12
12
  import type { UseFloatingOptions } from '../types/common';
@@ -57,6 +57,7 @@ export const useFloatingWithInteractions = <T extends HTMLElement = HTMLElement>
57
57
  () => (shownProp !== undefined ? { shown: shownProp } : undefined),
58
58
  [shownProp],
59
59
  );
60
+ const { entering, animating } = useNavTransition();
60
61
  const [shownLocalState, setShownLocalState] = useCustomEnsuredControl<LocalState>({
61
62
  value: memoizedValue,
62
63
  disabled,
@@ -84,14 +85,12 @@ export const useFloatingWithInteractions = <T extends HTMLElement = HTMLElement>
84
85
 
85
86
  const { triggerOnFocus, triggerOnClick, triggerOnHover } = useResolveTriggerType(trigger);
86
87
 
87
- const isLock = React.useContext(LockFloatingPositionContext);
88
-
89
88
  // Библиотека `floating-ui`
90
89
  const { placement, x, y, strategy, refs, middlewareData } = useFloating<T>({
91
90
  strategy: strategyProp,
92
91
  placement: placementProp,
93
92
  ...(middlewares !== undefined ? { middleware: middlewares } : {}),
94
- ...(!isLock && { whileElementsMounted }),
93
+ ...(!animating && { whileElementsMounted }),
95
94
  });
96
95
 
97
96
  const commitShownLocalState = React.useCallback(
@@ -376,7 +375,7 @@ export const useFloatingWithInteractions = <T extends HTMLElement = HTMLElement>
376
375
 
377
376
  return {
378
377
  placement,
379
- shown: shownFinalState,
378
+ shown: shownFinalState && !entering,
380
379
  willBeHide,
381
380
  refs,
382
381
  referenceProps,
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * @see https://github.com/VKCOM/VKUI/pull/9603
4
- */ export const LockFloatingPositionContext = /*#__PURE__*/ React.createContext(false);
5
-
6
- //# sourceMappingURL=LockFloatingPosition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/lib/floating/LockFloatingPosition/LockFloatingPosition.tsx"],"sourcesContent":["import * as React from 'react';\n\n/**\n * @see https://github.com/VKCOM/VKUI/pull/9603\n */\nexport const LockFloatingPositionContext = React.createContext(false);\n"],"names":["React","LockFloatingPositionContext","createContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B;;CAEC,GACD,OAAO,MAAMC,4CAA8BD,MAAME,aAAa,CAAC,OAAO"}
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * @see https://github.com/VKCOM/VKUI/pull/9603
4
- */
5
- export declare const LockFloatingPositionContext: React.Context<boolean>;
6
- //# sourceMappingURL=LockFloatingPosition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LockFloatingPosition.d.ts","sourceRoot":"","sources":["../../../../src/lib/floating/LockFloatingPosition/LockFloatingPosition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,2BAA2B,wBAA6B,CAAC"}
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * @see https://github.com/VKCOM/VKUI/pull/9603
4
- */ export const LockFloatingPositionContext = /*#__PURE__*/ React.createContext(false);
5
-
6
- //# sourceMappingURL=LockFloatingPosition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/floating/LockFloatingPosition/LockFloatingPosition.tsx"],"sourcesContent":["import * as React from 'react';\n\n/**\n * @see https://github.com/VKCOM/VKUI/pull/9603\n */\nexport const LockFloatingPositionContext = React.createContext(false);\n"],"names":["React","LockFloatingPositionContext","createContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B;;CAEC,GACD,OAAO,MAAMC,4CAA8BD,MAAME,aAAa,CAAC,OAAO"}
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
-
3
- /**
4
- * @see https://github.com/VKCOM/VKUI/pull/9603
5
- */
6
- export const LockFloatingPositionContext = React.createContext(false);