laif-ds 0.1.9 → 0.1.11
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.
- package/dist/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/accordion.js +20 -20
- package/dist/components/ui/alert-dialog.js +41 -41
- package/dist/components/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +4 -4
- package/dist/components/ui/async-select.js +112 -112
- package/dist/components/ui/audio-visualizer.js +26 -26
- package/dist/components/ui/avatar.js +17 -17
- package/dist/components/ui/badge.js +9 -10
- package/dist/components/ui/breadcrumb.js +24 -25
- package/dist/components/ui/button.js +17 -17
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/card.js +15 -15
- package/dist/components/ui/carousel.js +66 -66
- package/dist/components/ui/chart.js +80 -80
- package/dist/components/ui/chat-message.js +104 -104
- package/dist/components/ui/chat.js +109 -109
- package/dist/components/ui/checkbox.js +5 -5
- package/dist/components/ui/collapsible.js +10 -10
- package/dist/components/ui/command.js +52 -52
- package/dist/components/ui/context-menu.js +61 -61
- package/dist/components/ui/copy-button.js +19 -19
- package/dist/components/ui/data-table.js +73 -73
- package/dist/components/ui/date-picker.js +18 -18
- package/dist/components/ui/dialog.js +49 -49
- package/dist/components/ui/drawer.js +43 -43
- package/dist/components/ui/file-preview.js +49 -49
- package/dist/components/ui/form.js +33 -33
- package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +5 -5
- package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +6 -6
- package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +28 -28
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +80 -80
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +13 -13
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +10 -10
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +25 -25
- package/dist/components/ui/gantt/components/Chart/Chart.js +30 -30
- package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +45 -45
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +37 -37
- package/dist/components/ui/gantt/components/Controls/Controls.js +53 -53
- package/dist/components/ui/gantt/components/Gantt/Gantt.js +29 -29
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/icon.js +9 -9
- package/dist/components/ui/input-otp.js +14 -14
- package/dist/components/ui/input-selector.js +38 -38
- package/dist/components/ui/input.js +32 -32
- package/dist/components/ui/interrupt-prompt.js +9 -10
- package/dist/components/ui/label.js +4 -4
- package/dist/components/ui/markdown-renderer.js +60 -63
- package/dist/components/ui/menubar.js +89 -89
- package/dist/components/ui/message-input.js +149 -150
- package/dist/components/ui/message-list.js +15 -15
- package/dist/components/ui/multiple-selector.js +159 -159
- package/dist/components/ui/navigation-menu.js +44 -44
- package/dist/components/ui/pagination.js +39 -39
- package/dist/components/ui/popover.js +13 -13
- package/dist/components/ui/progress.js +14 -14
- package/dist/components/ui/prompt-suggestions.js +10 -10
- package/dist/components/ui/radio-group.js +15 -15
- package/dist/components/ui/resizable.js +13 -13
- package/dist/components/ui/scroll-area.js +25 -25
- package/dist/components/ui/select.js +80 -80
- package/dist/components/ui/separator.js +4 -4
- package/dist/components/ui/sheet.js +48 -48
- package/dist/components/ui/sidebar.js +178 -182
- package/dist/components/ui/skeleton.js +4 -4
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/table.js +14 -14
- package/dist/components/ui/tabs.js +10 -10
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/toaster.js +2 -2
- package/dist/components/ui/toggle-group.js +6 -6
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +19 -19
- package/dist/components/ui/typing-indicator.js +7 -7
- package/dist/components/ui/typo.js +10 -10
- package/dist/dist/components/ui/checkbox.js +6 -6
- package/dist/dist/components/ui/scroll-area.js +30 -30
- package/dist/dist/components/ui/table.js +15 -15
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +60 -60
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +19 -19
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +3 -2
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +116 -116
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +65 -65
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +21 -21
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +58 -58
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +49 -49
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +16 -16
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +36 -36
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +113 -113
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +18 -18
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +50 -50
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +223 -223
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +95 -95
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +260 -260
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +92 -92
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +22 -22
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +105 -105
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +157 -157
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +345 -345
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +19 -19
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +46 -46
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-day-picker/dist/index.esm.js +483 -483
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/index.js +39 -39
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -2
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -206
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -148
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -93
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -257
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -69
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -86
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -54
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -615
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -227
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -55
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -125
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/index.js +0 -208
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -13
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/node_modules/react/jsx-runtime.js +0 -11
|
@@ -1,615 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { noop as nt } from "../../../../../motion-utils/dist/es/noop.js";
|
|
4
|
-
import { getValueTransition as lt } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
|
|
5
|
-
import { animateSingleValue as ht } from "../../animation/animate/single-value.js";
|
|
6
|
-
import { getOptimisedAppearId as ut } from "../../animation/optimized-appear/get-appear-id.js";
|
|
7
|
-
import { cancelFrame as z, frameData as y, frameSteps as O, frame as U } from "../../frameloop/frame.js";
|
|
8
|
-
import { microtask as ct } from "../../frameloop/microtask.js";
|
|
9
|
-
import { time as dt } from "../../frameloop/sync-time.js";
|
|
10
|
-
import { isSVGElement as ft } from "../../render/dom/utils/is-svg-element.js";
|
|
11
|
-
import { FlatTree as mt } from "../../render/utils/flat-tree.js";
|
|
12
|
-
import { clamp as pt } from "../../utils/clamp.js";
|
|
13
|
-
import { delay as yt } from "../../utils/delay.js";
|
|
14
|
-
import { mixNumber as F } from "../../utils/mix/number.js";
|
|
15
|
-
import { SubscriptionManager as gt } from "../../utils/subscription-manager.js";
|
|
16
|
-
import { resolveMotionValue as b } from "../../value/utils/resolve-motion-value.js";
|
|
17
|
-
import { mixValues as vt } from "../animation/mix-values.js";
|
|
18
|
-
import { copyBoxInto as p, copyAxisDeltaInto as _ } from "../geometry/copy.js";
|
|
19
|
-
import { translateAxis as w, transformBox as E, applyBoxDelta as Tt, applyTreeDeltas as Dt } from "../geometry/delta-apply.js";
|
|
20
|
-
import { calcRelativePosition as k, calcRelativeBox as xt, calcBoxDelta as L, calcLength as C, isNear as Pt } from "../geometry/delta-calc.js";
|
|
21
|
-
import { removeBoxTransforms as W } from "../geometry/delta-remove.js";
|
|
22
|
-
import { createBox as f, createDelta as j } from "../geometry/models.js";
|
|
23
|
-
import { boxEqualsRounded as st, isDeltaZero as ot, axisDeltaEquals as H, boxEquals as St, aspectRatio as q } from "../geometry/utils.js";
|
|
24
|
-
import { NodeStack as Bt } from "../shared/stack.js";
|
|
25
|
-
import { scaleCorrectors as G } from "../styles/scale-correction.js";
|
|
26
|
-
import { buildProjectionTransform as jt } from "../styles/transform.js";
|
|
27
|
-
import { eachAxis as X } from "../utils/each-axis.js";
|
|
28
|
-
import { hasTransform as B, hasScale as Y, has2DTranslate as At } from "../utils/has-transform.js";
|
|
29
|
-
import { globalProjectionState as M } from "./state.js";
|
|
30
|
-
const x = {
|
|
31
|
-
type: "projectionFrame",
|
|
32
|
-
totalNodes: 0,
|
|
33
|
-
resolvedTargetDeltas: 0,
|
|
34
|
-
recalculatedProjection: 0
|
|
35
|
-
}, V = typeof window < "u" && window.MotionDebug !== void 0, I = ["", "X", "Y", "Z"], Rt = { visibility: "hidden" }, $ = 1e3;
|
|
36
|
-
let Vt = 0;
|
|
37
|
-
function N(e, l, h, c) {
|
|
38
|
-
const { latestValues: v } = l;
|
|
39
|
-
v[e] && (h[e] = v[e], l.setStaticValue(e, 0), c && (c[e] = 0));
|
|
40
|
-
}
|
|
41
|
-
function at(e) {
|
|
42
|
-
if (e.hasCheckedOptimisedAppear = !0, e.root === e)
|
|
43
|
-
return;
|
|
44
|
-
const { visualElement: l } = e.options;
|
|
45
|
-
if (!l)
|
|
46
|
-
return;
|
|
47
|
-
const h = ut(l);
|
|
48
|
-
if (window.MotionHasOptimisedAnimation(h, "transform")) {
|
|
49
|
-
const { layout: v, layoutId: A } = e.options;
|
|
50
|
-
window.MotionCancelOptimisedAnimation(h, "transform", U, !(v || A));
|
|
51
|
-
}
|
|
52
|
-
const { parent: c } = e;
|
|
53
|
-
c && !c.hasCheckedOptimisedAppear && at(c);
|
|
54
|
-
}
|
|
55
|
-
function De({ attachResizeListener: e, defaultParent: l, measureScroll: h, checkIsScrollRoot: c, resetTransform: v }) {
|
|
56
|
-
return class {
|
|
57
|
-
constructor(t = {}, i = l == null ? void 0 : l()) {
|
|
58
|
-
this.id = Vt++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
59
|
-
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
60
|
-
}, this.updateProjection = () => {
|
|
61
|
-
this.projectionUpdateScheduled = !1, V && (x.totalNodes = x.resolvedTargetDeltas = x.recalculatedProjection = 0), this.nodes.forEach(wt), this.nodes.forEach(Ot), this.nodes.forEach(bt), this.nodes.forEach(Et), V && window.MotionDebug.record(x);
|
|
62
|
-
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = t, this.root = i ? i.root || i : this, this.path = i ? [...i.path, i] : [], this.parent = i, this.depth = i ? i.depth + 1 : 0;
|
|
63
|
-
for (let s = 0; s < this.path.length; s++)
|
|
64
|
-
this.path[s].shouldResetTransform = !0;
|
|
65
|
-
this.root === this && (this.nodes = new mt());
|
|
66
|
-
}
|
|
67
|
-
addEventListener(t, i) {
|
|
68
|
-
return this.eventHandlers.has(t) || this.eventHandlers.set(t, new gt()), this.eventHandlers.get(t).add(i);
|
|
69
|
-
}
|
|
70
|
-
notifyListeners(t, ...i) {
|
|
71
|
-
const s = this.eventHandlers.get(t);
|
|
72
|
-
s && s.notify(...i);
|
|
73
|
-
}
|
|
74
|
-
hasListeners(t) {
|
|
75
|
-
return this.eventHandlers.has(t);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Lifecycles
|
|
79
|
-
*/
|
|
80
|
-
mount(t, i = this.root.hasTreeAnimated) {
|
|
81
|
-
if (this.instance)
|
|
82
|
-
return;
|
|
83
|
-
this.isSVG = ft(t), this.instance = t;
|
|
84
|
-
const { layoutId: s, layout: o, visualElement: a } = this.options;
|
|
85
|
-
if (a && !a.current && a.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), i && (o || s) && (this.isLayoutDirty = !0), e) {
|
|
86
|
-
let r;
|
|
87
|
-
const n = () => this.root.updateBlockedByResize = !1;
|
|
88
|
-
e(t, () => {
|
|
89
|
-
this.root.updateBlockedByResize = !0, r && r(), r = yt(n, 250), M.hasAnimatedSinceResize && (M.hasAnimatedSinceResize = !1, this.nodes.forEach(J));
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
s && this.root.registerSharedNode(s, this), this.options.animate !== !1 && a && (s || o) && this.addEventListener("didUpdate", ({ delta: r, hasLayoutChanged: n, hasRelativeTargetChanged: u, layout: m }) => {
|
|
93
|
-
if (this.isTreeAnimationBlocked()) {
|
|
94
|
-
this.target = void 0, this.relativeTarget = void 0;
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
const d = this.options.transition || a.getDefaultTransition() || _t, { onLayoutAnimationStart: P, onLayoutAnimationComplete: D } = a.getProps(), S = !this.targetLayout || !st(this.targetLayout, m) || u, g = !n && u;
|
|
98
|
-
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || g || n && (S || !this.currentAnimation)) {
|
|
99
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(r, g);
|
|
100
|
-
const T = {
|
|
101
|
-
...lt(d, "layout"),
|
|
102
|
-
onPlay: P,
|
|
103
|
-
onComplete: D
|
|
104
|
-
};
|
|
105
|
-
(a.shouldReduceMotion || this.options.layoutRoot) && (T.delay = 0, T.type = !1), this.startAnimation(T);
|
|
106
|
-
} else
|
|
107
|
-
n || J(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
108
|
-
this.targetLayout = m;
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
unmount() {
|
|
112
|
-
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
113
|
-
const t = this.getStack();
|
|
114
|
-
t && t.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, z(this.updateProjection);
|
|
115
|
-
}
|
|
116
|
-
// only on the root
|
|
117
|
-
blockUpdate() {
|
|
118
|
-
this.updateManuallyBlocked = !0;
|
|
119
|
-
}
|
|
120
|
-
unblockUpdate() {
|
|
121
|
-
this.updateManuallyBlocked = !1;
|
|
122
|
-
}
|
|
123
|
-
isUpdateBlocked() {
|
|
124
|
-
return this.updateManuallyBlocked || this.updateBlockedByResize;
|
|
125
|
-
}
|
|
126
|
-
isTreeAnimationBlocked() {
|
|
127
|
-
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
128
|
-
}
|
|
129
|
-
// Note: currently only running on root node
|
|
130
|
-
startUpdate() {
|
|
131
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Mt), this.animationId++);
|
|
132
|
-
}
|
|
133
|
-
getTransformTemplate() {
|
|
134
|
-
const { visualElement: t } = this.options;
|
|
135
|
-
return t && t.getProps().transformTemplate;
|
|
136
|
-
}
|
|
137
|
-
willUpdate(t = !0) {
|
|
138
|
-
if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
|
|
139
|
-
this.options.onExitComplete && this.options.onExitComplete();
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && at(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
|
|
143
|
-
return;
|
|
144
|
-
this.isLayoutDirty = !0;
|
|
145
|
-
for (let a = 0; a < this.path.length; a++) {
|
|
146
|
-
const r = this.path[a];
|
|
147
|
-
r.shouldResetTransform = !0, r.updateScroll("snapshot"), r.options.layoutRoot && r.willUpdate(!1);
|
|
148
|
-
}
|
|
149
|
-
const { layoutId: i, layout: s } = this.options;
|
|
150
|
-
if (i === void 0 && !s)
|
|
151
|
-
return;
|
|
152
|
-
const o = this.getTransformTemplate();
|
|
153
|
-
this.prevTransformTemplateValue = o ? o(this.latestValues, "") : void 0, this.updateSnapshot(), t && this.notifyListeners("willUpdate");
|
|
154
|
-
}
|
|
155
|
-
update() {
|
|
156
|
-
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
157
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Z);
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
this.isUpdating || this.nodes.forEach(Ft), this.isUpdating = !1, this.nodes.forEach(Ct), this.nodes.forEach(kt), this.nodes.forEach(Lt), this.clearAllSnapshots();
|
|
161
|
-
const i = dt.now();
|
|
162
|
-
y.delta = pt(0, 1e3 / 60, i - y.timestamp), y.timestamp = i, y.isProcessing = !0, O.update.process(y), O.preRender.process(y), O.render.process(y), y.isProcessing = !1;
|
|
163
|
-
}
|
|
164
|
-
didUpdate() {
|
|
165
|
-
this.updateScheduled || (this.updateScheduled = !0, ct.read(this.scheduleUpdate));
|
|
166
|
-
}
|
|
167
|
-
clearAllSnapshots() {
|
|
168
|
-
this.nodes.forEach(Ut), this.sharedNodes.forEach(It);
|
|
169
|
-
}
|
|
170
|
-
scheduleUpdateProjection() {
|
|
171
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, U.preRender(this.updateProjection, !1, !0));
|
|
172
|
-
}
|
|
173
|
-
scheduleCheckAfterUnmount() {
|
|
174
|
-
U.postRender(() => {
|
|
175
|
-
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Update measurements
|
|
180
|
-
*/
|
|
181
|
-
updateSnapshot() {
|
|
182
|
-
this.snapshot || !this.instance || (this.snapshot = this.measure());
|
|
183
|
-
}
|
|
184
|
-
updateLayout() {
|
|
185
|
-
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
186
|
-
return;
|
|
187
|
-
if (this.resumeFrom && !this.resumeFrom.instance)
|
|
188
|
-
for (let s = 0; s < this.path.length; s++)
|
|
189
|
-
this.path[s].updateScroll();
|
|
190
|
-
const t = this.layout;
|
|
191
|
-
this.layout = this.measure(!1), this.layoutCorrected = f(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
192
|
-
const { visualElement: i } = this.options;
|
|
193
|
-
i && i.notify("LayoutMeasure", this.layout.layoutBox, t ? t.layoutBox : void 0);
|
|
194
|
-
}
|
|
195
|
-
updateScroll(t = "measure") {
|
|
196
|
-
let i = !!(this.options.layoutScroll && this.instance);
|
|
197
|
-
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === t && (i = !1), i) {
|
|
198
|
-
const s = c(this.instance);
|
|
199
|
-
this.scroll = {
|
|
200
|
-
animationId: this.root.animationId,
|
|
201
|
-
phase: t,
|
|
202
|
-
isRoot: s,
|
|
203
|
-
offset: h(this.instance),
|
|
204
|
-
wasRoot: this.scroll ? this.scroll.isRoot : s
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
resetTransform() {
|
|
209
|
-
if (!v)
|
|
210
|
-
return;
|
|
211
|
-
const t = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, i = this.projectionDelta && !ot(this.projectionDelta), s = this.getTransformTemplate(), o = s ? s(this.latestValues, "") : void 0, a = o !== this.prevTransformTemplateValue;
|
|
212
|
-
t && (i || B(this.latestValues) || a) && (v(this.instance, o), this.shouldResetTransform = !1, this.scheduleRender());
|
|
213
|
-
}
|
|
214
|
-
measure(t = !0) {
|
|
215
|
-
const i = this.measurePageBox();
|
|
216
|
-
let s = this.removeElementScroll(i);
|
|
217
|
-
return t && (s = this.removeTransform(s)), Wt(s), {
|
|
218
|
-
animationId: this.root.animationId,
|
|
219
|
-
measuredBox: i,
|
|
220
|
-
layoutBox: s,
|
|
221
|
-
latestValues: {},
|
|
222
|
-
source: this.id
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
measurePageBox() {
|
|
226
|
-
var t;
|
|
227
|
-
const { visualElement: i } = this.options;
|
|
228
|
-
if (!i)
|
|
229
|
-
return f();
|
|
230
|
-
const s = i.measureViewportBox();
|
|
231
|
-
if (!(((t = this.scroll) === null || t === void 0 ? void 0 : t.wasRoot) || this.path.some(Ht))) {
|
|
232
|
-
const { scroll: a } = this.root;
|
|
233
|
-
a && (w(s.x, a.offset.x), w(s.y, a.offset.y));
|
|
234
|
-
}
|
|
235
|
-
return s;
|
|
236
|
-
}
|
|
237
|
-
removeElementScroll(t) {
|
|
238
|
-
var i;
|
|
239
|
-
const s = f();
|
|
240
|
-
if (p(s, t), !((i = this.scroll) === null || i === void 0) && i.wasRoot)
|
|
241
|
-
return s;
|
|
242
|
-
for (let o = 0; o < this.path.length; o++) {
|
|
243
|
-
const a = this.path[o], { scroll: r, options: n } = a;
|
|
244
|
-
a !== this.root && r && n.layoutScroll && (r.wasRoot && p(s, t), w(s.x, r.offset.x), w(s.y, r.offset.y));
|
|
245
|
-
}
|
|
246
|
-
return s;
|
|
247
|
-
}
|
|
248
|
-
applyTransform(t, i = !1) {
|
|
249
|
-
const s = f();
|
|
250
|
-
p(s, t);
|
|
251
|
-
for (let o = 0; o < this.path.length; o++) {
|
|
252
|
-
const a = this.path[o];
|
|
253
|
-
!i && a.options.layoutScroll && a.scroll && a !== a.root && E(s, {
|
|
254
|
-
x: -a.scroll.offset.x,
|
|
255
|
-
y: -a.scroll.offset.y
|
|
256
|
-
}), B(a.latestValues) && E(s, a.latestValues);
|
|
257
|
-
}
|
|
258
|
-
return B(this.latestValues) && E(s, this.latestValues), s;
|
|
259
|
-
}
|
|
260
|
-
removeTransform(t) {
|
|
261
|
-
const i = f();
|
|
262
|
-
p(i, t);
|
|
263
|
-
for (let s = 0; s < this.path.length; s++) {
|
|
264
|
-
const o = this.path[s];
|
|
265
|
-
if (!o.instance || !B(o.latestValues))
|
|
266
|
-
continue;
|
|
267
|
-
Y(o.latestValues) && o.updateSnapshot();
|
|
268
|
-
const a = f(), r = o.measurePageBox();
|
|
269
|
-
p(a, r), W(i, o.latestValues, o.snapshot ? o.snapshot.layoutBox : void 0, a);
|
|
270
|
-
}
|
|
271
|
-
return B(this.latestValues) && W(i, this.latestValues), i;
|
|
272
|
-
}
|
|
273
|
-
setTargetDelta(t) {
|
|
274
|
-
this.targetDelta = t, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
275
|
-
}
|
|
276
|
-
setOptions(t) {
|
|
277
|
-
this.options = {
|
|
278
|
-
...this.options,
|
|
279
|
-
...t,
|
|
280
|
-
crossfade: t.crossfade !== void 0 ? t.crossfade : !0
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
clearMeasurements() {
|
|
284
|
-
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
285
|
-
}
|
|
286
|
-
forceRelativeParentToResolveTarget() {
|
|
287
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== y.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
288
|
-
}
|
|
289
|
-
resolveTargetDelta(t = !1) {
|
|
290
|
-
var i;
|
|
291
|
-
const s = this.getLead();
|
|
292
|
-
this.isProjectionDirty || (this.isProjectionDirty = s.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = s.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = s.isSharedProjectionDirty);
|
|
293
|
-
const o = !!this.resumingFrom || this !== s;
|
|
294
|
-
if (!(t || o && this.isSharedProjectionDirty || this.isProjectionDirty || !((i = this.parent) === null || i === void 0) && i.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
|
|
295
|
-
return;
|
|
296
|
-
const { layout: r, layoutId: n } = this.options;
|
|
297
|
-
if (!(!this.layout || !(r || n))) {
|
|
298
|
-
if (this.resolvedRelativeTargetAt = y.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
299
|
-
const u = this.getClosestProjectingParent();
|
|
300
|
-
u && u.layout && this.animationProgress !== 1 ? (this.relativeParent = u, this.forceRelativeParentToResolveTarget(), this.relativeTarget = f(), this.relativeTargetOrigin = f(), k(this.relativeTargetOrigin, this.layout.layoutBox, u.layout.layoutBox), p(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
301
|
-
}
|
|
302
|
-
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
303
|
-
if (this.target || (this.target = f(), this.targetWithTransforms = f()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), xt(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : p(this.target, this.layout.layoutBox), Tt(this.target, this.targetDelta)) : p(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
304
|
-
this.attemptToResolveRelativeTarget = !1;
|
|
305
|
-
const u = this.getClosestProjectingParent();
|
|
306
|
-
u && !!u.resumingFrom == !!this.resumingFrom && !u.options.layoutScroll && u.target && this.animationProgress !== 1 ? (this.relativeParent = u, this.forceRelativeParentToResolveTarget(), this.relativeTarget = f(), this.relativeTargetOrigin = f(), k(this.relativeTargetOrigin, this.target, u.target), p(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
307
|
-
}
|
|
308
|
-
V && x.resolvedTargetDeltas++;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
getClosestProjectingParent() {
|
|
313
|
-
if (!(!this.parent || Y(this.parent.latestValues) || At(this.parent.latestValues)))
|
|
314
|
-
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
315
|
-
}
|
|
316
|
-
isProjecting() {
|
|
317
|
-
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
318
|
-
}
|
|
319
|
-
calcProjection() {
|
|
320
|
-
var t;
|
|
321
|
-
const i = this.getLead(), s = !!this.resumingFrom || this !== i;
|
|
322
|
-
let o = !0;
|
|
323
|
-
if ((this.isProjectionDirty || !((t = this.parent) === null || t === void 0) && t.isProjectionDirty) && (o = !1), s && (this.isSharedProjectionDirty || this.isTransformDirty) && (o = !1), this.resolvedRelativeTargetAt === y.timestamp && (o = !1), o)
|
|
324
|
-
return;
|
|
325
|
-
const { layout: a, layoutId: r } = this.options;
|
|
326
|
-
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(a || r))
|
|
327
|
-
return;
|
|
328
|
-
p(this.layoutCorrected, this.layout.layoutBox);
|
|
329
|
-
const n = this.treeScale.x, u = this.treeScale.y;
|
|
330
|
-
Dt(this.layoutCorrected, this.treeScale, this.path, s), i.layout && !i.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (i.target = i.layout.layoutBox, i.targetWithTransforms = f());
|
|
331
|
-
const { target: m } = i;
|
|
332
|
-
if (!m) {
|
|
333
|
-
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
334
|
-
return;
|
|
335
|
-
}
|
|
336
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (_(this.prevProjectionDelta.x, this.projectionDelta.x), _(this.prevProjectionDelta.y, this.projectionDelta.y)), L(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== n || this.treeScale.y !== u || !H(this.projectionDelta.x, this.prevProjectionDelta.x) || !H(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), V && x.recalculatedProjection++;
|
|
337
|
-
}
|
|
338
|
-
hide() {
|
|
339
|
-
this.isVisible = !1;
|
|
340
|
-
}
|
|
341
|
-
show() {
|
|
342
|
-
this.isVisible = !0;
|
|
343
|
-
}
|
|
344
|
-
scheduleRender(t = !0) {
|
|
345
|
-
var i;
|
|
346
|
-
if ((i = this.options.visualElement) === null || i === void 0 || i.scheduleRender(), t) {
|
|
347
|
-
const s = this.getStack();
|
|
348
|
-
s && s.scheduleRender();
|
|
349
|
-
}
|
|
350
|
-
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
351
|
-
}
|
|
352
|
-
createProjectionDeltas() {
|
|
353
|
-
this.prevProjectionDelta = j(), this.projectionDelta = j(), this.projectionDeltaWithTransform = j();
|
|
354
|
-
}
|
|
355
|
-
setAnimationOrigin(t, i = !1) {
|
|
356
|
-
const s = this.snapshot, o = s ? s.latestValues : {}, a = { ...this.latestValues }, r = j();
|
|
357
|
-
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !i;
|
|
358
|
-
const n = f(), u = s ? s.source : void 0, m = this.layout ? this.layout.source : void 0, d = u !== m, P = this.getStack(), D = !P || P.members.length <= 1, S = !!(d && !D && this.options.crossfade === !0 && !this.path.some(zt));
|
|
359
|
-
this.animationProgress = 0;
|
|
360
|
-
let g;
|
|
361
|
-
this.mixTargetDelta = (T) => {
|
|
362
|
-
const R = T / 1e3;
|
|
363
|
-
K(r.x, t.x, R), K(r.y, t.y, R), this.setTargetDelta(r), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (k(n, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Nt(this.relativeTarget, this.relativeTargetOrigin, n, R), g && St(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = f()), p(g, this.relativeTarget)), d && (this.animationValues = a, vt(a, o, this.latestValues, R, S, D)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = R;
|
|
364
|
-
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
365
|
-
}
|
|
366
|
-
startAnimation(t) {
|
|
367
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (z(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = U.update(() => {
|
|
368
|
-
M.hasAnimatedSinceResize = !0, this.currentAnimation = ht(0, $, {
|
|
369
|
-
...t,
|
|
370
|
-
onUpdate: (i) => {
|
|
371
|
-
this.mixTargetDelta(i), t.onUpdate && t.onUpdate(i);
|
|
372
|
-
},
|
|
373
|
-
onComplete: () => {
|
|
374
|
-
t.onComplete && t.onComplete(), this.completeAnimation();
|
|
375
|
-
}
|
|
376
|
-
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
completeAnimation() {
|
|
380
|
-
this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
|
|
381
|
-
const t = this.getStack();
|
|
382
|
-
t && t.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
383
|
-
}
|
|
384
|
-
finishAnimation() {
|
|
385
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta($), this.currentAnimation.stop()), this.completeAnimation();
|
|
386
|
-
}
|
|
387
|
-
applyTransformsToTarget() {
|
|
388
|
-
const t = this.getLead();
|
|
389
|
-
let { targetWithTransforms: i, target: s, layout: o, latestValues: a } = t;
|
|
390
|
-
if (!(!i || !s || !o)) {
|
|
391
|
-
if (this !== t && this.layout && o && rt(this.options.animationType, this.layout.layoutBox, o.layoutBox)) {
|
|
392
|
-
s = this.target || f();
|
|
393
|
-
const r = C(this.layout.layoutBox.x);
|
|
394
|
-
s.x.min = t.target.x.min, s.x.max = s.x.min + r;
|
|
395
|
-
const n = C(this.layout.layoutBox.y);
|
|
396
|
-
s.y.min = t.target.y.min, s.y.max = s.y.min + n;
|
|
397
|
-
}
|
|
398
|
-
p(i, s), E(i, a), L(this.projectionDeltaWithTransform, this.layoutCorrected, i, a);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
registerSharedNode(t, i) {
|
|
402
|
-
this.sharedNodes.has(t) || this.sharedNodes.set(t, new Bt()), this.sharedNodes.get(t).add(i);
|
|
403
|
-
const o = i.options.initialPromotionConfig;
|
|
404
|
-
i.promote({
|
|
405
|
-
transition: o ? o.transition : void 0,
|
|
406
|
-
preserveFollowOpacity: o && o.shouldPreserveFollowOpacity ? o.shouldPreserveFollowOpacity(i) : void 0
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
isLead() {
|
|
410
|
-
const t = this.getStack();
|
|
411
|
-
return t ? t.lead === this : !0;
|
|
412
|
-
}
|
|
413
|
-
getLead() {
|
|
414
|
-
var t;
|
|
415
|
-
const { layoutId: i } = this.options;
|
|
416
|
-
return i ? ((t = this.getStack()) === null || t === void 0 ? void 0 : t.lead) || this : this;
|
|
417
|
-
}
|
|
418
|
-
getPrevLead() {
|
|
419
|
-
var t;
|
|
420
|
-
const { layoutId: i } = this.options;
|
|
421
|
-
return i ? (t = this.getStack()) === null || t === void 0 ? void 0 : t.prevLead : void 0;
|
|
422
|
-
}
|
|
423
|
-
getStack() {
|
|
424
|
-
const { layoutId: t } = this.options;
|
|
425
|
-
if (t)
|
|
426
|
-
return this.root.sharedNodes.get(t);
|
|
427
|
-
}
|
|
428
|
-
promote({ needsReset: t, transition: i, preserveFollowOpacity: s } = {}) {
|
|
429
|
-
const o = this.getStack();
|
|
430
|
-
o && o.promote(this, s), t && (this.projectionDelta = void 0, this.needsReset = !0), i && this.setOptions({ transition: i });
|
|
431
|
-
}
|
|
432
|
-
relegate() {
|
|
433
|
-
const t = this.getStack();
|
|
434
|
-
return t ? t.relegate(this) : !1;
|
|
435
|
-
}
|
|
436
|
-
resetSkewAndRotation() {
|
|
437
|
-
const { visualElement: t } = this.options;
|
|
438
|
-
if (!t)
|
|
439
|
-
return;
|
|
440
|
-
let i = !1;
|
|
441
|
-
const { latestValues: s } = t;
|
|
442
|
-
if ((s.z || s.rotate || s.rotateX || s.rotateY || s.rotateZ || s.skewX || s.skewY) && (i = !0), !i)
|
|
443
|
-
return;
|
|
444
|
-
const o = {};
|
|
445
|
-
s.z && N("z", t, o, this.animationValues);
|
|
446
|
-
for (let a = 0; a < I.length; a++)
|
|
447
|
-
N(`rotate${I[a]}`, t, o, this.animationValues), N(`skew${I[a]}`, t, o, this.animationValues);
|
|
448
|
-
t.render();
|
|
449
|
-
for (const a in o)
|
|
450
|
-
t.setStaticValue(a, o[a]), this.animationValues && (this.animationValues[a] = o[a]);
|
|
451
|
-
t.scheduleRender();
|
|
452
|
-
}
|
|
453
|
-
getProjectionStyles(t) {
|
|
454
|
-
var i, s;
|
|
455
|
-
if (!this.instance || this.isSVG)
|
|
456
|
-
return;
|
|
457
|
-
if (!this.isVisible)
|
|
458
|
-
return Rt;
|
|
459
|
-
const o = {
|
|
460
|
-
visibility: ""
|
|
461
|
-
}, a = this.getTransformTemplate();
|
|
462
|
-
if (this.needsReset)
|
|
463
|
-
return this.needsReset = !1, o.opacity = "", o.pointerEvents = b(t == null ? void 0 : t.pointerEvents) || "", o.transform = a ? a(this.latestValues, "") : "none", o;
|
|
464
|
-
const r = this.getLead();
|
|
465
|
-
if (!this.projectionDelta || !this.layout || !r.target) {
|
|
466
|
-
const d = {};
|
|
467
|
-
return this.options.layoutId && (d.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, d.pointerEvents = b(t == null ? void 0 : t.pointerEvents) || ""), this.hasProjected && !B(this.latestValues) && (d.transform = a ? a({}, "") : "none", this.hasProjected = !1), d;
|
|
468
|
-
}
|
|
469
|
-
const n = r.animationValues || r.latestValues;
|
|
470
|
-
this.applyTransformsToTarget(), o.transform = jt(this.projectionDeltaWithTransform, this.treeScale, n), a && (o.transform = a(n, o.transform));
|
|
471
|
-
const { x: u, y: m } = this.projectionDelta;
|
|
472
|
-
o.transformOrigin = `${u.origin * 100}% ${m.origin * 100}% 0`, r.animationValues ? o.opacity = r === this ? (s = (i = n.opacity) !== null && i !== void 0 ? i : this.latestValues.opacity) !== null && s !== void 0 ? s : 1 : this.preserveOpacity ? this.latestValues.opacity : n.opacityExit : o.opacity = r === this ? n.opacity !== void 0 ? n.opacity : "" : n.opacityExit !== void 0 ? n.opacityExit : 0;
|
|
473
|
-
for (const d in G) {
|
|
474
|
-
if (n[d] === void 0)
|
|
475
|
-
continue;
|
|
476
|
-
const { correct: P, applyTo: D } = G[d], S = o.transform === "none" ? n[d] : P(n[d], r);
|
|
477
|
-
if (D) {
|
|
478
|
-
const g = D.length;
|
|
479
|
-
for (let T = 0; T < g; T++)
|
|
480
|
-
o[D[T]] = S;
|
|
481
|
-
} else
|
|
482
|
-
o[d] = S;
|
|
483
|
-
}
|
|
484
|
-
return this.options.layoutId && (o.pointerEvents = r === this ? b(t == null ? void 0 : t.pointerEvents) || "" : "none"), o;
|
|
485
|
-
}
|
|
486
|
-
clearSnapshot() {
|
|
487
|
-
this.resumeFrom = this.snapshot = void 0;
|
|
488
|
-
}
|
|
489
|
-
// Only run on root
|
|
490
|
-
resetTree() {
|
|
491
|
-
this.root.nodes.forEach((t) => {
|
|
492
|
-
var i;
|
|
493
|
-
return (i = t.currentAnimation) === null || i === void 0 ? void 0 : i.stop();
|
|
494
|
-
}), this.root.nodes.forEach(Z), this.root.sharedNodes.clear();
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
|
-
}
|
|
498
|
-
function kt(e) {
|
|
499
|
-
e.updateLayout();
|
|
500
|
-
}
|
|
501
|
-
function Lt(e) {
|
|
502
|
-
var l;
|
|
503
|
-
const h = ((l = e.resumeFrom) === null || l === void 0 ? void 0 : l.snapshot) || e.snapshot;
|
|
504
|
-
if (e.isLead() && e.layout && h && e.hasListeners("didUpdate")) {
|
|
505
|
-
const { layoutBox: c, measuredBox: v } = e.layout, { animationType: A } = e.options, t = h.source !== e.layout.source;
|
|
506
|
-
A === "size" ? X((r) => {
|
|
507
|
-
const n = t ? h.measuredBox[r] : h.layoutBox[r], u = C(n);
|
|
508
|
-
n.min = c[r].min, n.max = n.min + u;
|
|
509
|
-
}) : rt(A, h.layoutBox, c) && X((r) => {
|
|
510
|
-
const n = t ? h.measuredBox[r] : h.layoutBox[r], u = C(c[r]);
|
|
511
|
-
n.max = n.min + u, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + u);
|
|
512
|
-
});
|
|
513
|
-
const i = j();
|
|
514
|
-
L(i, c, h.layoutBox);
|
|
515
|
-
const s = j();
|
|
516
|
-
t ? L(s, e.applyTransform(v, !0), h.measuredBox) : L(s, c, h.layoutBox);
|
|
517
|
-
const o = !ot(i);
|
|
518
|
-
let a = !1;
|
|
519
|
-
if (!e.resumeFrom) {
|
|
520
|
-
const r = e.getClosestProjectingParent();
|
|
521
|
-
if (r && !r.resumeFrom) {
|
|
522
|
-
const { snapshot: n, layout: u } = r;
|
|
523
|
-
if (n && u) {
|
|
524
|
-
const m = f();
|
|
525
|
-
k(m, h.layoutBox, n.layoutBox);
|
|
526
|
-
const d = f();
|
|
527
|
-
k(d, c, u.layoutBox), st(m, d) || (a = !0), r.options.layoutRoot && (e.relativeTarget = d, e.relativeTargetOrigin = m, e.relativeParent = r);
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
e.notifyListeners("didUpdate", {
|
|
532
|
-
layout: c,
|
|
533
|
-
snapshot: h,
|
|
534
|
-
delta: s,
|
|
535
|
-
layoutDelta: i,
|
|
536
|
-
hasLayoutChanged: o,
|
|
537
|
-
hasRelativeTargetChanged: a
|
|
538
|
-
});
|
|
539
|
-
} else if (e.isLead()) {
|
|
540
|
-
const { onExitComplete: c } = e.options;
|
|
541
|
-
c && c();
|
|
542
|
-
}
|
|
543
|
-
e.options.transition = void 0;
|
|
544
|
-
}
|
|
545
|
-
function wt(e) {
|
|
546
|
-
V && x.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
|
|
547
|
-
}
|
|
548
|
-
function Et(e) {
|
|
549
|
-
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
550
|
-
}
|
|
551
|
-
function Ut(e) {
|
|
552
|
-
e.clearSnapshot();
|
|
553
|
-
}
|
|
554
|
-
function Z(e) {
|
|
555
|
-
e.clearMeasurements();
|
|
556
|
-
}
|
|
557
|
-
function Ft(e) {
|
|
558
|
-
e.isLayoutDirty = !1;
|
|
559
|
-
}
|
|
560
|
-
function Ct(e) {
|
|
561
|
-
const { visualElement: l } = e.options;
|
|
562
|
-
l && l.getProps().onBeforeLayoutMeasure && l.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
563
|
-
}
|
|
564
|
-
function J(e) {
|
|
565
|
-
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
566
|
-
}
|
|
567
|
-
function Ot(e) {
|
|
568
|
-
e.resolveTargetDelta();
|
|
569
|
-
}
|
|
570
|
-
function bt(e) {
|
|
571
|
-
e.calcProjection();
|
|
572
|
-
}
|
|
573
|
-
function Mt(e) {
|
|
574
|
-
e.resetSkewAndRotation();
|
|
575
|
-
}
|
|
576
|
-
function It(e) {
|
|
577
|
-
e.removeLeadSnapshot();
|
|
578
|
-
}
|
|
579
|
-
function K(e, l, h) {
|
|
580
|
-
e.translate = F(l.translate, 0, h), e.scale = F(l.scale, 1, h), e.origin = l.origin, e.originPoint = l.originPoint;
|
|
581
|
-
}
|
|
582
|
-
function Q(e, l, h, c) {
|
|
583
|
-
e.min = F(l.min, h.min, c), e.max = F(l.max, h.max, c);
|
|
584
|
-
}
|
|
585
|
-
function Nt(e, l, h, c) {
|
|
586
|
-
Q(e.x, l.x, h.x, c), Q(e.y, l.y, h.y, c);
|
|
587
|
-
}
|
|
588
|
-
function zt(e) {
|
|
589
|
-
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
590
|
-
}
|
|
591
|
-
const _t = {
|
|
592
|
-
duration: 0.45,
|
|
593
|
-
ease: [0.4, 0, 0.1, 1]
|
|
594
|
-
}, tt = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), et = tt("applewebkit/") && !tt("chrome/") ? Math.round : nt;
|
|
595
|
-
function it(e) {
|
|
596
|
-
e.min = et(e.min), e.max = et(e.max);
|
|
597
|
-
}
|
|
598
|
-
function Wt(e) {
|
|
599
|
-
it(e.x), it(e.y);
|
|
600
|
-
}
|
|
601
|
-
function rt(e, l, h) {
|
|
602
|
-
return e === "position" || e === "preserve-aspect" && !Pt(q(l), q(h), 0.2);
|
|
603
|
-
}
|
|
604
|
-
function Ht(e) {
|
|
605
|
-
var l;
|
|
606
|
-
return e !== e.root && ((l = e.scroll) === null || l === void 0 ? void 0 : l.wasRoot);
|
|
607
|
-
}
|
|
608
|
-
export {
|
|
609
|
-
Et as cleanDirtyNodes,
|
|
610
|
-
De as createProjectionNode,
|
|
611
|
-
Q as mixAxis,
|
|
612
|
-
K as mixAxisDelta,
|
|
613
|
-
Nt as mixBox,
|
|
614
|
-
wt as propagateDirtyNodes
|
|
615
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const e = {
|
|
3
|
-
/**
|
|
4
|
-
* Global flag as to whether the tree has animated since the last time
|
|
5
|
-
* we resized the window
|
|
6
|
-
*/
|
|
7
|
-
hasAnimatedSinceResize: !0,
|
|
8
|
-
/**
|
|
9
|
-
* We set this to true once, on the first update. Any nodes added to the tree beyond that
|
|
10
|
-
* update will be given a `data-projection-id` attribute.
|
|
11
|
-
*/
|
|
12
|
-
hasEverUpdated: !1
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
e as globalProjectionState
|
|
16
|
-
};
|