@vkzstudio/muza-ui 1.0.48 → 1.1.0
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/README.md +173 -171
- package/dist/Muza_BP_logo.svg +26 -26
- package/dist/components/Alert/Alert.d.ts +3 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +28 -24
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +10 -11
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +30 -3
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.js +112 -92
- package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/DatePickerButton/DatePickerButton.stories.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/components/Icons/CustomBadges.d.ts +5 -0
- package/dist/components/Icons/CustomBadges.d.ts.map +1 -1
- package/dist/components/Icons/CustomBadges.js +216 -13
- package/dist/components/Input/Input.js +22 -32
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts +1 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.js +70 -54
- package/dist/components/Lightbox/Lightbox.stories.d.ts +1 -0
- package/dist/components/Lightbox/Lightbox.stories.d.ts.map +1 -1
- package/dist/components/Lightbox/LightboxOverrides.css +5 -5
- package/dist/components/LoginScreen/LoginScreen.js +8 -8
- package/dist/components/LoginScreen/LoginScreen.stories.d.ts.map +1 -1
- package/dist/components/LoginScreen/LoginScreen3D/LoginScreen3DModel.js +10 -9
- package/dist/components/LoginScreen/LoginScreen3D/LoginScreen3DScene.js +21 -22
- package/dist/components/LoginScreen/LoginScreenItem.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +1 -0
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/dist/components/Popover/Popover.stories.d.ts +1 -0
- package/dist/components/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/components/Reorderable/Reorderable.js +74 -78
- package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -1
- package/dist/components/ReorderableTable/ReorderableTable.js +1 -1
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Sheet/Sheet.stories.d.ts +1 -0
- package/dist/components/Sheet/Sheet.stories.d.ts.map +1 -1
- package/dist/components/SwipeButton/SwipeButton.js +37 -42
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TextEditor/LinkBubbleMenu.js +2 -2
- package/dist/components/TextEditor/TextEditor.js +5 -5
- package/dist/components/Toast/Toast.stories.d.ts +1 -0
- package/dist/components/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/TypographyLink/TypographyLink.stories.d.ts.map +1 -1
- package/dist/fonts/Objectivity/OFL.txt +92 -92
- package/dist/globals.css +12 -12
- package/dist/index.js +194 -193
- package/dist/muza-ui.css +1 -1
- package/dist/styles/3rd-parties.css +5 -5
- package/dist/styles/animations.css +21 -21
- package/dist/styles/breakpoints.css +4 -4
- package/dist/styles/primitives.css +163 -163
- package/dist/styles/token-colors.css +1445 -1445
- package/dist/styles/token-sizes.css +1553 -1553
- package/dist/styles/typography.css +113 -113
- package/dist/styles/utilities.css +66 -66
- package/dist/styles/white-label.css +26 -26
- package/dist/translations/TranslationContext.js +22 -24
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +3 -0
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +3 -0
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +3 -0
- package/dist/translations/types.d.ts +8 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/llms-full.md +584 -584
- package/llms.txt +37 -37
- package/package.json +165 -171
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/constants.js +0 -5
- package/dist/_virtual/constants2.js +0 -4
- package/dist/_virtual/index.js +0 -7
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/index4.js +0 -7
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index6.js +0 -4
- package/dist/_virtual/index7.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.production.min.js +0 -4
- package/dist/_virtual/react-dom-server.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server.browser.production.min.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-reconciler-constants.development.js +0 -4
- package/dist/_virtual/react-reconciler-constants.production.min.js +0 -4
- package/dist/_virtual/react-reconciler.development.js +0 -4
- package/dist/_virtual/scheduler.development.js +0 -4
- package/dist/_virtual/scheduler.production.min.js +0 -4
- package/dist/_virtual/server.browser.js +0 -5
- package/dist/_virtual/server.browser2.js +0 -4
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -61
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -69
- package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -22
- package/dist/node_modules/@popperjs/core/lib/createPopper.js +0 -122
- package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +0 -18
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +0 -23
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +0 -37
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +0 -32
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +0 -17
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +0 -35
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +0 -18
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +0 -20
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +0 -16
- package/dist/node_modules/@popperjs/core/lib/enums.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +0 -47
- package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +0 -37
- package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +0 -99
- package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +0 -26
- package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +0 -74
- package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +0 -44
- package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +0 -19
- package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +0 -54
- package/dist/node_modules/@popperjs/core/lib/popper.js +0 -27
- package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -27
- package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +0 -54
- package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +0 -33
- package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +0 -14
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/math.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +0 -15
- package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/utils/within.js +0 -12
- package/dist/node_modules/@react-three/drei/core/useAnimations.js +0 -34
- package/dist/node_modules/@react-three/drei/core/useGLTF.js +0 -18
- package/dist/node_modules/@react-three/fiber/dist/events-776716bd.esm.js +0 -1311
- package/dist/node_modules/@react-three/fiber/dist/react-three-fiber.esm.js +0 -145
- package/dist/node_modules/@react-three/fiber/node_modules/suspend-react/index.js +0 -47
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -2857
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -45
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -76
- package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +0 -129
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +0 -55
- package/dist/node_modules/@tiptap/extension-character-count/dist/index.js +0 -73
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -54
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -136
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -10
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +0 -21
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +0 -25
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -56
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -55
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +0 -36
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -59
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -75
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -272
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +0 -34
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +0 -73
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -34
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -53
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -64
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -9
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -709
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -30
- package/dist/node_modules/color/index.js +0 -262
- package/dist/node_modules/color/node_modules/color-convert/conversions.js +0 -421
- package/dist/node_modules/color/node_modules/color-convert/index.js +0 -35
- package/dist/node_modules/color/node_modules/color-convert/route.js +0 -46
- package/dist/node_modules/color/node_modules/color-name/index.js +0 -153
- package/dist/node_modules/color-string/index.js +0 -105
- package/dist/node_modules/color-string/node_modules/color-name/index.js +0 -153
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
- package/dist/node_modules/date-fns/constants.js +0 -4
- package/dist/node_modules/date-fns/constructFrom.js +0 -8
- package/dist/node_modules/date-fns/isSameWeek.js +0 -14
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -18
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -31
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -15
- package/dist/node_modules/date-fns/locale/cs/_lib/formatDistance.js +0 -275
- package/dist/node_modules/date-fns/locale/cs/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/cs/_lib/formatRelative.js +0 -25
- package/dist/node_modules/date-fns/locale/cs/_lib/localize.js +0 -167
- package/dist/node_modules/date-fns/locale/cs/_lib/match.js +0 -109
- package/dist/node_modules/date-fns/locale/cs.js +0 -21
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -70
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -155
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -110
- package/dist/node_modules/date-fns/locale/en-US.js +0 -21
- package/dist/node_modules/date-fns/locale/sk/_lib/formatDistance.js +0 -158
- package/dist/node_modules/date-fns/locale/sk/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/sk/_lib/formatRelative.js +0 -60
- package/dist/node_modules/date-fns/locale/sk/_lib/localize.js +0 -175
- package/dist/node_modules/date-fns/locale/sk/_lib/match.js +0 -111
- package/dist/node_modules/date-fns/locale/sk.js +0 -21
- package/dist/node_modules/date-fns/startOfWeek.js +0 -11
- package/dist/node_modules/date-fns/toDate.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/animate/index.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/animate/sequence.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +0 -128
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/edit.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/sort.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
- 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 -12
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +0 -46
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +0 -64
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -277
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.js +0 -70
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -131
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -63
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -22
- 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 -52
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
- 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/feature-bundle.js +0 -13
- 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/create-visual-element.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/use-motion-value-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +0 -31
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -34
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +0 -31
- package/dist/node_modules/imask/esm/controls/html-mask-element.js +0 -48
- package/dist/node_modules/imask/esm/controls/input-history.js +0 -30
- package/dist/node_modules/imask/esm/controls/input.js +0 -222
- package/dist/node_modules/imask/esm/controls/mask-element.js +0 -43
- package/dist/node_modules/imask/esm/core/action-details.js +0 -51
- package/dist/node_modules/imask/esm/core/change-details.js +0 -36
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js +0 -42
- package/dist/node_modules/imask/esm/core/holder.js +0 -6
- package/dist/node_modules/imask/esm/core/utils.js +0 -67
- package/dist/node_modules/imask/esm/index.js +0 -50
- package/dist/node_modules/imask/esm/masked/base.js +0 -252
- package/dist/node_modules/imask/esm/masked/date.js +0 -117
- package/dist/node_modules/imask/esm/masked/dynamic.js +0 -222
- package/dist/node_modules/imask/esm/masked/enum.js +0 -69
- package/dist/node_modules/imask/esm/masked/factory.js +0 -46
- package/dist/node_modules/imask/esm/masked/function.js +0 -23
- package/dist/node_modules/imask/esm/masked/number.js +0 -212
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -103
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js +0 -100
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -102
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +0 -133
- package/dist/node_modules/imask/esm/masked/pattern.js +0 -322
- package/dist/node_modules/imask/esm/masked/pipe.js +0 -23
- package/dist/node_modules/imask/esm/masked/range.js +0 -78
- package/dist/node_modules/imask/esm/masked/regexp.js +0 -21
- package/dist/node_modules/imask/esm/masked/repeat.js +0 -104
- package/dist/node_modules/its-fine/dist/index.js +0 -116
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -707
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -106
- package/dist/node_modules/motion-dom/dist/es/animation/GroupAnimation.js +0 -76
- package/dist/node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -133
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -108
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -98
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -69
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
- 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 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -36
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -623
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -60
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -247
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/object/ObjectVisualElement.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -141
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
- 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 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/transform.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -218
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -49
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -20
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -18
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -15
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/wrap.js +0 -7
- package/dist/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/orderedmap/dist/index.js +0 -103
- package/dist/node_modules/photoswipe/dist/photoswipe.esm.js +0 -2956
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -17
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -388
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -86
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -204
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -248
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -62
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -2733
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -88
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -822
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1520
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -3794
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -229
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -222
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -56
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -44
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -32
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -28
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -3621
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0 -1234
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -3600
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -1255
- package/dist/node_modules/react-dom/server.browser.js +0 -15
- package/dist/node_modules/react-imask/esm/hook.js +0 -75
- package/dist/node_modules/react-imask/esm/input.js +0 -23
- package/dist/node_modules/react-imask/esm/mixin.js +0 -131
- package/dist/node_modules/react-photoswipe-gallery/dist/context.js +0 -17
- package/dist/node_modules/react-photoswipe-gallery/dist/gallery.js +0 -216
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/ensure-ref-passed.js +0 -10
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/entry-item-ref-is-element.js +0 -4
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-base-url.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-hash-value.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-hash-without-gid-and-pid.js +0 -9
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-initial-active-slide-index.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-slides-and-index-from-data-source.js +0 -39
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-slides-and-index-from-items-refs.js +0 -31
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/hash-includes-navigation-query-params.js +0 -8
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/hash-to-object.js +0 -9
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/item-to-slide.js +0 -37
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/object-to-hash.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/sort-nodes.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/hooks.js +0 -22
- package/dist/node_modules/react-photoswipe-gallery/dist/item.js +0 -54
- package/dist/node_modules/react-photoswipe-gallery/dist/lightbox-stub.js +0 -8
- package/dist/node_modules/react-photoswipe-gallery/dist/no-ref-error.js +0 -14
- package/dist/node_modules/react-photoswipe-gallery/dist/no-source-id-error.js +0 -18
- package/dist/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js +0 -32
- package/dist/node_modules/react-reconciler/cjs/react-reconciler-constants.production.min.js +0 -17
- package/dist/node_modules/react-reconciler/cjs/react-reconciler.development.js +0 -9139
- package/dist/node_modules/react-reconciler/cjs/react-reconciler.production.min.js +0 -3778
- package/dist/node_modules/react-reconciler/constants.js +0 -10
- package/dist/node_modules/react-reconciler/index.js +0 -10
- package/dist/node_modules/react-use-measure/dist/index.js +0 -60
- package/dist/node_modules/rope-sequence/dist/index.js +0 -100
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -277
- package/dist/node_modules/scheduler/cjs/scheduler.production.min.js +0 -213
- package/dist/node_modules/scheduler/index.js +0 -10
- package/dist/node_modules/three/build/three.module.js +0 -20599
- package/dist/node_modules/three-stdlib/_polyfill/LoaderUtils.js +0 -15
- package/dist/node_modules/three-stdlib/_polyfill/constants.js +0 -5
- package/dist/node_modules/three-stdlib/libs/MeshoptDecoder.js +0 -201
- package/dist/node_modules/three-stdlib/loaders/DRACOLoader.js +0 -246
- package/dist/node_modules/three-stdlib/loaders/GLTFLoader.js +0 -1670
- package/dist/node_modules/three-stdlib/utils/BufferGeometryUtils.js +0 -34
- package/dist/node_modules/tippy.js/dist/tippy.esm.js +0 -813
- package/dist/node_modules/w3c-keyname/index.js +0 -93
- package/dist/node_modules/zustand/esm/index.js +0 -61
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Node as e, wrappingInputRule as o, mergeAttributes as r } from "../../core/dist/index.js";
|
|
2
|
-
const n = /^\s*>\s$/, s = e.create({
|
|
3
|
-
name: "blockquote",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
content: "block+",
|
|
10
|
-
group: "block",
|
|
11
|
-
defining: !0,
|
|
12
|
-
parseHTML() {
|
|
13
|
-
return [
|
|
14
|
-
{ tag: "blockquote" }
|
|
15
|
-
];
|
|
16
|
-
},
|
|
17
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
18
|
-
return ["blockquote", r(this.options.HTMLAttributes, t), 0];
|
|
19
|
-
},
|
|
20
|
-
addCommands() {
|
|
21
|
-
return {
|
|
22
|
-
setBlockquote: () => ({ commands: t }) => t.wrapIn(this.name),
|
|
23
|
-
toggleBlockquote: () => ({ commands: t }) => t.toggleWrap(this.name),
|
|
24
|
-
unsetBlockquote: () => ({ commands: t }) => t.lift(this.name)
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
addKeyboardShortcuts() {
|
|
28
|
-
return {
|
|
29
|
-
"Mod-Shift-b": () => this.editor.commands.toggleBlockquote()
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
addInputRules() {
|
|
33
|
-
return [
|
|
34
|
-
o({
|
|
35
|
-
find: n,
|
|
36
|
-
type: this.type
|
|
37
|
-
})
|
|
38
|
-
];
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
s as Blockquote,
|
|
43
|
-
s as default,
|
|
44
|
-
n as inputRegex
|
|
45
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { Mark as r, markPasteRule as e, markInputRule as s, mergeAttributes as n } from "../../core/dist/index.js";
|
|
2
|
-
const o = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, a = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, d = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, u = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, l = r.create({
|
|
3
|
-
name: "bold",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
parseHTML() {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
tag: "strong"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
tag: "b",
|
|
16
|
-
getAttrs: (t) => t.style.fontWeight !== "normal" && null
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
style: "font-weight=400",
|
|
20
|
-
clearMark: (t) => t.type.name === this.name
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
style: "font-weight",
|
|
24
|
-
getAttrs: (t) => /^(bold(er)?|[5-9]\d{2,})$/.test(t) && null
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
},
|
|
28
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
29
|
-
return ["strong", n(this.options.HTMLAttributes, t), 0];
|
|
30
|
-
},
|
|
31
|
-
addCommands() {
|
|
32
|
-
return {
|
|
33
|
-
setBold: () => ({ commands: t }) => t.setMark(this.name),
|
|
34
|
-
toggleBold: () => ({ commands: t }) => t.toggleMark(this.name),
|
|
35
|
-
unsetBold: () => ({ commands: t }) => t.unsetMark(this.name)
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
addKeyboardShortcuts() {
|
|
39
|
-
return {
|
|
40
|
-
"Mod-b": () => this.editor.commands.toggleBold(),
|
|
41
|
-
"Mod-B": () => this.editor.commands.toggleBold()
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
addInputRules() {
|
|
45
|
-
return [
|
|
46
|
-
s({
|
|
47
|
-
find: o,
|
|
48
|
-
type: this.type
|
|
49
|
-
}),
|
|
50
|
-
s({
|
|
51
|
-
find: d,
|
|
52
|
-
type: this.type
|
|
53
|
-
})
|
|
54
|
-
];
|
|
55
|
-
},
|
|
56
|
-
addPasteRules() {
|
|
57
|
-
return [
|
|
58
|
-
e({
|
|
59
|
-
find: a,
|
|
60
|
-
type: this.type
|
|
61
|
-
}),
|
|
62
|
-
e({
|
|
63
|
-
find: u,
|
|
64
|
-
type: this.type
|
|
65
|
-
})
|
|
66
|
-
];
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
l as Bold,
|
|
71
|
-
l as default,
|
|
72
|
-
o as starInputRegex,
|
|
73
|
-
a as starPasteRegex,
|
|
74
|
-
d as underscoreInputRegex,
|
|
75
|
-
u as underscorePasteRegex
|
|
76
|
-
};
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { isTextSelection as C, isNodeSelection as E, posToDOMRect as T, Extension as D } from "../../core/dist/index.js";
|
|
2
|
-
import { Plugin as O, PluginKey as M } from "../../../prosemirror-state/dist/index.js";
|
|
3
|
-
import B from "../../../tippy.js/dist/tippy.esm.js";
|
|
4
|
-
class R {
|
|
5
|
-
constructor({ editor: e, element: i, view: a, tippyOptions: m = {}, updateDelay: f = 250, shouldShow: c }) {
|
|
6
|
-
this.preventHide = !1, this.shouldShow = ({ view: t, state: s, from: o, to: r }) => {
|
|
7
|
-
const { doc: l, selection: h } = s, { empty: u } = h, p = !l.textBetween(o, r).length && C(s.selection), v = this.element.contains(document.activeElement);
|
|
8
|
-
return !(!(t.hasFocus() || v) || u || p || !this.editor.isEditable);
|
|
9
|
-
}, this.mousedownHandler = () => {
|
|
10
|
-
this.preventHide = !0;
|
|
11
|
-
}, this.dragstartHandler = () => {
|
|
12
|
-
this.hide();
|
|
13
|
-
}, this.focusHandler = () => {
|
|
14
|
-
setTimeout(() => this.update(this.editor.view));
|
|
15
|
-
}, this.blurHandler = ({ event: t }) => {
|
|
16
|
-
var s;
|
|
17
|
-
if (this.preventHide) {
|
|
18
|
-
this.preventHide = !1;
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
t != null && t.relatedTarget && (!((s = this.element.parentNode) === null || s === void 0) && s.contains(t.relatedTarget)) || (t == null ? void 0 : t.relatedTarget) !== this.editor.view.dom && this.hide();
|
|
22
|
-
}, this.tippyBlurHandler = (t) => {
|
|
23
|
-
this.blurHandler({ event: t });
|
|
24
|
-
}, this.handleDebouncedUpdate = (t, s) => {
|
|
25
|
-
const o = !(s != null && s.selection.eq(t.state.selection)), r = !(s != null && s.doc.eq(t.state.doc));
|
|
26
|
-
!o && !r || (this.updateDebounceTimer && clearTimeout(this.updateDebounceTimer), this.updateDebounceTimer = window.setTimeout(() => {
|
|
27
|
-
this.updateHandler(t, o, r, s);
|
|
28
|
-
}, this.updateDelay));
|
|
29
|
-
}, this.updateHandler = (t, s, o, r) => {
|
|
30
|
-
var l, h, u;
|
|
31
|
-
const { state: p, composing: v } = t, { selection: g } = p;
|
|
32
|
-
if (v || !s && !o)
|
|
33
|
-
return;
|
|
34
|
-
this.createTooltip();
|
|
35
|
-
const { ranges: b } = g, y = Math.min(...b.map((n) => n.$from.pos)), w = Math.max(...b.map((n) => n.$to.pos));
|
|
36
|
-
if (!((l = this.shouldShow) === null || l === void 0 ? void 0 : l.call(this, {
|
|
37
|
-
editor: this.editor,
|
|
38
|
-
element: this.element,
|
|
39
|
-
view: t,
|
|
40
|
-
state: p,
|
|
41
|
-
oldState: r,
|
|
42
|
-
from: y,
|
|
43
|
-
to: w
|
|
44
|
-
}))) {
|
|
45
|
-
this.hide();
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
(h = this.tippy) === null || h === void 0 || h.setProps({
|
|
49
|
-
getReferenceClientRect: ((u = this.tippyOptions) === null || u === void 0 ? void 0 : u.getReferenceClientRect) || (() => {
|
|
50
|
-
if (E(p.selection)) {
|
|
51
|
-
let n = t.nodeDOM(y);
|
|
52
|
-
if (n) {
|
|
53
|
-
const H = n.dataset.nodeViewWrapper ? n : n.querySelector("[data-node-view-wrapper]");
|
|
54
|
-
if (H && (n = H.firstChild), n)
|
|
55
|
-
return n.getBoundingClientRect();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return T(t, y, w);
|
|
59
|
-
})
|
|
60
|
-
}), this.show();
|
|
61
|
-
}, this.editor = e, this.element = i, this.view = a, this.updateDelay = f, c && (this.shouldShow = c), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = m, this.element.remove(), this.element.style.visibility = "visible";
|
|
62
|
-
}
|
|
63
|
-
createTooltip() {
|
|
64
|
-
const { element: e } = this.editor.options, i = !!e.parentElement;
|
|
65
|
-
this.element.tabIndex = 0, !(this.tippy || !i) && (this.tippy = B(e, {
|
|
66
|
-
duration: 0,
|
|
67
|
-
getReferenceClientRect: null,
|
|
68
|
-
content: this.element,
|
|
69
|
-
interactive: !0,
|
|
70
|
-
trigger: "manual",
|
|
71
|
-
placement: "top",
|
|
72
|
-
hideOnClick: "toggle",
|
|
73
|
-
...this.tippyOptions
|
|
74
|
-
}), this.tippy.popper.firstChild && this.tippy.popper.firstChild.addEventListener("blur", this.tippyBlurHandler));
|
|
75
|
-
}
|
|
76
|
-
update(e, i) {
|
|
77
|
-
const { state: a } = e, m = a.selection.from !== a.selection.to;
|
|
78
|
-
if (this.updateDelay > 0 && m) {
|
|
79
|
-
this.handleDebouncedUpdate(e, i);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
const f = !(i != null && i.selection.eq(e.state.selection)), c = !(i != null && i.doc.eq(e.state.doc));
|
|
83
|
-
this.updateHandler(e, f, c, i);
|
|
84
|
-
}
|
|
85
|
-
show() {
|
|
86
|
-
var e;
|
|
87
|
-
(e = this.tippy) === null || e === void 0 || e.show();
|
|
88
|
-
}
|
|
89
|
-
hide() {
|
|
90
|
-
var e;
|
|
91
|
-
(e = this.tippy) === null || e === void 0 || e.hide();
|
|
92
|
-
}
|
|
93
|
-
destroy() {
|
|
94
|
-
var e, i;
|
|
95
|
-
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (i = this.tippy) === null || i === void 0 || i.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
const _ = (d) => new O({
|
|
99
|
-
key: typeof d.pluginKey == "string" ? new M(d.pluginKey) : d.pluginKey,
|
|
100
|
-
view: (e) => new R({ view: e, ...d })
|
|
101
|
-
});
|
|
102
|
-
D.create({
|
|
103
|
-
name: "bubbleMenu",
|
|
104
|
-
addOptions() {
|
|
105
|
-
return {
|
|
106
|
-
element: null,
|
|
107
|
-
tippyOptions: {},
|
|
108
|
-
pluginKey: "bubbleMenu",
|
|
109
|
-
updateDelay: void 0,
|
|
110
|
-
shouldShow: null
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
addProseMirrorPlugins() {
|
|
114
|
-
return this.options.element ? [
|
|
115
|
-
_({
|
|
116
|
-
pluginKey: this.options.pluginKey,
|
|
117
|
-
editor: this.editor,
|
|
118
|
-
element: this.options.element,
|
|
119
|
-
tippyOptions: this.options.tippyOptions,
|
|
120
|
-
updateDelay: this.options.updateDelay,
|
|
121
|
-
shouldShow: this.options.shouldShow
|
|
122
|
-
})
|
|
123
|
-
] : [];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
export {
|
|
127
|
-
_ as BubbleMenuPlugin,
|
|
128
|
-
R as BubbleMenuView
|
|
129
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Node as o, wrappingInputRule as e, mergeAttributes as n } from "../../core/dist/index.js";
|
|
2
|
-
const p = "listItem", s = "textStyle", i = /^\s*([-+*])\s$/, a = o.create({
|
|
3
|
-
name: "bulletList",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
itemTypeName: "listItem",
|
|
7
|
-
HTMLAttributes: {},
|
|
8
|
-
keepMarks: !1,
|
|
9
|
-
keepAttributes: !1
|
|
10
|
-
};
|
|
11
|
-
},
|
|
12
|
-
group: "block list",
|
|
13
|
-
content() {
|
|
14
|
-
return `${this.options.itemTypeName}+`;
|
|
15
|
-
},
|
|
16
|
-
parseHTML() {
|
|
17
|
-
return [
|
|
18
|
-
{ tag: "ul" }
|
|
19
|
-
];
|
|
20
|
-
},
|
|
21
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
22
|
-
return ["ul", n(this.options.HTMLAttributes, t), 0];
|
|
23
|
-
},
|
|
24
|
-
addCommands() {
|
|
25
|
-
return {
|
|
26
|
-
toggleBulletList: () => ({ commands: t, chain: r }) => this.options.keepAttributes ? r().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(p, this.editor.getAttributes(s)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
addKeyboardShortcuts() {
|
|
30
|
-
return {
|
|
31
|
-
"Mod-Shift-8": () => this.editor.commands.toggleBulletList()
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
addInputRules() {
|
|
35
|
-
let t = e({
|
|
36
|
-
find: i,
|
|
37
|
-
type: this.type
|
|
38
|
-
});
|
|
39
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t = e({
|
|
40
|
-
find: i,
|
|
41
|
-
type: this.type,
|
|
42
|
-
keepMarks: this.options.keepMarks,
|
|
43
|
-
keepAttributes: this.options.keepAttributes,
|
|
44
|
-
getAttributes: () => this.editor.getAttributes(s),
|
|
45
|
-
editor: this.editor
|
|
46
|
-
})), [
|
|
47
|
-
t
|
|
48
|
-
];
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
export {
|
|
52
|
-
a as BulletList,
|
|
53
|
-
a as default,
|
|
54
|
-
i as inputRegex
|
|
55
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Extension as l } from "../../core/dist/index.js";
|
|
2
|
-
import { Plugin as h, PluginKey as f } from "../../../prosemirror-state/dist/index.js";
|
|
3
|
-
const x = l.create({
|
|
4
|
-
name: "characterCount",
|
|
5
|
-
addOptions() {
|
|
6
|
-
return {
|
|
7
|
-
limit: null,
|
|
8
|
-
mode: "textSize",
|
|
9
|
-
textCounter: (e) => e.length,
|
|
10
|
-
wordCounter: (e) => e.split(" ").filter((t) => t !== "").length
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
addStorage() {
|
|
14
|
-
return {
|
|
15
|
-
characters: () => 0,
|
|
16
|
-
words: () => 0
|
|
17
|
-
};
|
|
18
|
-
},
|
|
19
|
-
onBeforeCreate() {
|
|
20
|
-
this.storage.characters = (e) => {
|
|
21
|
-
const t = (e == null ? void 0 : e.node) || this.editor.state.doc;
|
|
22
|
-
if (((e == null ? void 0 : e.mode) || this.options.mode) === "textSize") {
|
|
23
|
-
const r = t.textBetween(0, t.content.size, void 0, " ");
|
|
24
|
-
return this.options.textCounter(r);
|
|
25
|
-
}
|
|
26
|
-
return t.nodeSize;
|
|
27
|
-
}, this.storage.words = (e) => {
|
|
28
|
-
const t = (e == null ? void 0 : e.node) || this.editor.state.doc, i = t.textBetween(0, t.content.size, " ", " ");
|
|
29
|
-
return this.options.wordCounter(i);
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
addProseMirrorPlugins() {
|
|
33
|
-
let e = !1;
|
|
34
|
-
return [
|
|
35
|
-
new h({
|
|
36
|
-
key: new f("characterCount"),
|
|
37
|
-
appendTransaction: (t, i, r) => {
|
|
38
|
-
if (e)
|
|
39
|
-
return;
|
|
40
|
-
const n = this.options.limit;
|
|
41
|
-
if (n == null || n === 0) {
|
|
42
|
-
e = !0;
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
const o = this.storage.characters({ node: r.doc });
|
|
46
|
-
if (o > n) {
|
|
47
|
-
const c = o - n, s = 0, a = c;
|
|
48
|
-
console.warn(`[CharacterCount] Initial content exceeded limit of ${n} characters. Content was automatically trimmed.`);
|
|
49
|
-
const d = r.tr.deleteRange(s, a);
|
|
50
|
-
return e = !0, d;
|
|
51
|
-
}
|
|
52
|
-
e = !0;
|
|
53
|
-
},
|
|
54
|
-
filterTransaction: (t, i) => {
|
|
55
|
-
const r = this.options.limit;
|
|
56
|
-
if (!t.docChanged || r === 0 || r === null || r === void 0)
|
|
57
|
-
return !0;
|
|
58
|
-
const n = this.storage.characters({ node: i.doc }), o = this.storage.characters({ node: t.doc });
|
|
59
|
-
if (o <= r || n > r && o > r && o <= n)
|
|
60
|
-
return !0;
|
|
61
|
-
if (n > r && o > r && o > n || !t.getMeta("paste"))
|
|
62
|
-
return !1;
|
|
63
|
-
const s = t.selection.$head.pos, a = o - r, d = s - a, u = s;
|
|
64
|
-
return t.deleteRange(d, u), !(this.storage.characters({ node: t.doc }) > r);
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
export {
|
|
71
|
-
x as CharacterCount,
|
|
72
|
-
x as default
|
|
73
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Mark as t, markPasteRule as r, markInputRule as s, mergeAttributes as d } from "../../core/dist/index.js";
|
|
2
|
-
const n = /(^|[^`])`([^`]+)`(?!`)/, a = /(^|[^`])`([^`]+)`(?!`)/g, u = t.create({
|
|
3
|
-
name: "code",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
excludes: "_",
|
|
10
|
-
code: !0,
|
|
11
|
-
exitable: !0,
|
|
12
|
-
parseHTML() {
|
|
13
|
-
return [
|
|
14
|
-
{ tag: "code" }
|
|
15
|
-
];
|
|
16
|
-
},
|
|
17
|
-
renderHTML({ HTMLAttributes: e }) {
|
|
18
|
-
return ["code", d(this.options.HTMLAttributes, e), 0];
|
|
19
|
-
},
|
|
20
|
-
addCommands() {
|
|
21
|
-
return {
|
|
22
|
-
setCode: () => ({ commands: e }) => e.setMark(this.name),
|
|
23
|
-
toggleCode: () => ({ commands: e }) => e.toggleMark(this.name),
|
|
24
|
-
unsetCode: () => ({ commands: e }) => e.unsetMark(this.name)
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
addKeyboardShortcuts() {
|
|
28
|
-
return {
|
|
29
|
-
"Mod-e": () => this.editor.commands.toggleCode()
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
addInputRules() {
|
|
33
|
-
return [
|
|
34
|
-
s({
|
|
35
|
-
find: n,
|
|
36
|
-
type: this.type
|
|
37
|
-
})
|
|
38
|
-
];
|
|
39
|
-
},
|
|
40
|
-
addPasteRules() {
|
|
41
|
-
return [
|
|
42
|
-
r({
|
|
43
|
-
find: a,
|
|
44
|
-
type: this.type
|
|
45
|
-
})
|
|
46
|
-
];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
export {
|
|
50
|
-
u as Code,
|
|
51
|
-
u as default,
|
|
52
|
-
n as inputRegex,
|
|
53
|
-
a as pasteRegex
|
|
54
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { Node as d, textblockTypeInputRule as c, mergeAttributes as p } from "../../core/dist/index.js";
|
|
2
|
-
import { Plugin as f, PluginKey as g, TextSelection as m, Selection as h } from "../../../prosemirror-state/dist/index.js";
|
|
3
|
-
const x = /^```([a-z]+)?[\s\n]$/, y = /^~~~([a-z]+)?[\s\n]$/, C = d.create({
|
|
4
|
-
name: "codeBlock",
|
|
5
|
-
addOptions() {
|
|
6
|
-
return {
|
|
7
|
-
languageClassPrefix: "language-",
|
|
8
|
-
exitOnTripleEnter: !0,
|
|
9
|
-
exitOnArrowDown: !0,
|
|
10
|
-
defaultLanguage: null,
|
|
11
|
-
HTMLAttributes: {}
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
content: "text*",
|
|
15
|
-
marks: "",
|
|
16
|
-
group: "block",
|
|
17
|
-
code: !0,
|
|
18
|
-
defining: !0,
|
|
19
|
-
addAttributes() {
|
|
20
|
-
return {
|
|
21
|
-
language: {
|
|
22
|
-
default: this.options.defaultLanguage,
|
|
23
|
-
parseHTML: (e) => {
|
|
24
|
-
var t;
|
|
25
|
-
const { languageClassPrefix: s } = this.options, o = [...((t = e.firstElementChild) === null || t === void 0 ? void 0 : t.classList) || []].filter((n) => n.startsWith(s)).map((n) => n.replace(s, ""))[0];
|
|
26
|
-
return o || null;
|
|
27
|
-
},
|
|
28
|
-
rendered: !1
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
parseHTML() {
|
|
33
|
-
return [
|
|
34
|
-
{
|
|
35
|
-
tag: "pre",
|
|
36
|
-
preserveWhitespace: "full"
|
|
37
|
-
}
|
|
38
|
-
];
|
|
39
|
-
},
|
|
40
|
-
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
41
|
-
return [
|
|
42
|
-
"pre",
|
|
43
|
-
p(this.options.HTMLAttributes, t),
|
|
44
|
-
[
|
|
45
|
-
"code",
|
|
46
|
-
{
|
|
47
|
-
class: e.attrs.language ? this.options.languageClassPrefix + e.attrs.language : null
|
|
48
|
-
},
|
|
49
|
-
0
|
|
50
|
-
]
|
|
51
|
-
];
|
|
52
|
-
},
|
|
53
|
-
addCommands() {
|
|
54
|
-
return {
|
|
55
|
-
setCodeBlock: (e) => ({ commands: t }) => t.setNode(this.name, e),
|
|
56
|
-
toggleCodeBlock: (e) => ({ commands: t }) => t.toggleNode(this.name, "paragraph", e)
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
addKeyboardShortcuts() {
|
|
60
|
-
return {
|
|
61
|
-
"Mod-Alt-c": () => this.editor.commands.toggleCodeBlock(),
|
|
62
|
-
// remove code block when at start of document or code block is empty
|
|
63
|
-
Backspace: () => {
|
|
64
|
-
const { empty: e, $anchor: t } = this.editor.state.selection, s = t.pos === 1;
|
|
65
|
-
return !e || t.parent.type.name !== this.name ? !1 : s || !t.parent.textContent.length ? this.editor.commands.clearNodes() : !1;
|
|
66
|
-
},
|
|
67
|
-
// exit node on triple enter
|
|
68
|
-
Enter: ({ editor: e }) => {
|
|
69
|
-
if (!this.options.exitOnTripleEnter)
|
|
70
|
-
return !1;
|
|
71
|
-
const { state: t } = e, { selection: s } = t, { $from: r, empty: a } = s;
|
|
72
|
-
if (!a || r.parent.type !== this.type)
|
|
73
|
-
return !1;
|
|
74
|
-
const o = r.parentOffset === r.parent.nodeSize - 2, n = r.parent.textContent.endsWith(`
|
|
75
|
-
|
|
76
|
-
`);
|
|
77
|
-
return !o || !n ? !1 : e.chain().command(({ tr: i }) => (i.delete(r.pos - 2, r.pos), !0)).exitCode().run();
|
|
78
|
-
},
|
|
79
|
-
// exit node on arrow down
|
|
80
|
-
ArrowDown: ({ editor: e }) => {
|
|
81
|
-
if (!this.options.exitOnArrowDown)
|
|
82
|
-
return !1;
|
|
83
|
-
const { state: t } = e, { selection: s, doc: r } = t, { $from: a, empty: o } = s;
|
|
84
|
-
if (!o || a.parent.type !== this.type || !(a.parentOffset === a.parent.nodeSize - 2))
|
|
85
|
-
return !1;
|
|
86
|
-
const i = a.after();
|
|
87
|
-
return i === void 0 ? !1 : r.nodeAt(i) ? e.commands.command(({ tr: u }) => (u.setSelection(h.near(r.resolve(i))), !0)) : e.commands.exitCode();
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
addInputRules() {
|
|
92
|
-
return [
|
|
93
|
-
c({
|
|
94
|
-
find: x,
|
|
95
|
-
type: this.type,
|
|
96
|
-
getAttributes: (e) => ({
|
|
97
|
-
language: e[1]
|
|
98
|
-
})
|
|
99
|
-
}),
|
|
100
|
-
c({
|
|
101
|
-
find: y,
|
|
102
|
-
type: this.type,
|
|
103
|
-
getAttributes: (e) => ({
|
|
104
|
-
language: e[1]
|
|
105
|
-
})
|
|
106
|
-
})
|
|
107
|
-
];
|
|
108
|
-
},
|
|
109
|
-
addProseMirrorPlugins() {
|
|
110
|
-
return [
|
|
111
|
-
// this plugin creates a code block for pasted content from VS Code
|
|
112
|
-
// we can also detect the copied code language
|
|
113
|
-
new f({
|
|
114
|
-
key: new g("codeBlockVSCodeHandler"),
|
|
115
|
-
props: {
|
|
116
|
-
handlePaste: (e, t) => {
|
|
117
|
-
if (!t.clipboardData || this.editor.isActive(this.type.name))
|
|
118
|
-
return !1;
|
|
119
|
-
const s = t.clipboardData.getData("text/plain"), r = t.clipboardData.getData("vscode-editor-data"), a = r ? JSON.parse(r) : void 0, o = a == null ? void 0 : a.mode;
|
|
120
|
-
if (!s || !o)
|
|
121
|
-
return !1;
|
|
122
|
-
const { tr: n, schema: i } = e.state, l = i.text(s.replace(/\r\n?/g, `
|
|
123
|
-
`));
|
|
124
|
-
return n.replaceSelectionWith(this.type.create({ language: o }, l)), n.selection.$from.parent.type !== this.type && n.setSelection(m.near(n.doc.resolve(Math.max(0, n.selection.from - 2)))), n.setMeta("paste", !0), e.dispatch(n), !0;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
})
|
|
128
|
-
];
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
export {
|
|
132
|
-
C as CodeBlock,
|
|
133
|
-
x as backtickInputRegex,
|
|
134
|
-
C as default,
|
|
135
|
-
y as tildeInputRegex
|
|
136
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Extension as r } from "../../core/dist/index.js";
|
|
2
|
-
import { dropCursor as o } from "../../../prosemirror-dropcursor/dist/index.js";
|
|
3
|
-
const e = r.create({
|
|
4
|
-
name: "dropCursor",
|
|
5
|
-
addOptions() {
|
|
6
|
-
return {
|
|
7
|
-
color: "currentColor",
|
|
8
|
-
width: 1,
|
|
9
|
-
class: void 0
|
|
10
|
-
};
|
|
11
|
-
},
|
|
12
|
-
addProseMirrorPlugins() {
|
|
13
|
-
return [
|
|
14
|
-
o(this.options)
|
|
15
|
-
];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
e as Dropcursor,
|
|
20
|
-
e as default
|
|
21
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Extension as t, callOrReturn as e, getExtensionField as l } from "../../core/dist/index.js";
|
|
2
|
-
import { gapCursor as n } from "../../../prosemirror-gapcursor/dist/index.js";
|
|
3
|
-
const p = t.create({
|
|
4
|
-
name: "gapCursor",
|
|
5
|
-
addProseMirrorPlugins() {
|
|
6
|
-
return [
|
|
7
|
-
n()
|
|
8
|
-
];
|
|
9
|
-
},
|
|
10
|
-
extendNodeSchema(r) {
|
|
11
|
-
var o;
|
|
12
|
-
const a = {
|
|
13
|
-
name: r.name,
|
|
14
|
-
options: r.options,
|
|
15
|
-
storage: r.storage
|
|
16
|
-
};
|
|
17
|
-
return {
|
|
18
|
-
allowGapCursor: (o = e(l(r, "allowGapCursor", a))) !== null && o !== void 0 ? o : null
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
p as Gapcursor,
|
|
24
|
-
p as default
|
|
25
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Node as l, mergeAttributes as c } from "../../core/dist/index.js";
|
|
2
|
-
const M = l.create({
|
|
3
|
-
name: "hardBreak",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
keepMarks: !0,
|
|
7
|
-
HTMLAttributes: {}
|
|
8
|
-
};
|
|
9
|
-
},
|
|
10
|
-
inline: !0,
|
|
11
|
-
group: "inline",
|
|
12
|
-
selectable: !1,
|
|
13
|
-
linebreakReplacement: !0,
|
|
14
|
-
parseHTML() {
|
|
15
|
-
return [
|
|
16
|
-
{ tag: "br" }
|
|
17
|
-
];
|
|
18
|
-
},
|
|
19
|
-
renderHTML({ HTMLAttributes: e }) {
|
|
20
|
-
return ["br", c(this.options.HTMLAttributes, e)];
|
|
21
|
-
},
|
|
22
|
-
renderText() {
|
|
23
|
-
return `
|
|
24
|
-
`;
|
|
25
|
-
},
|
|
26
|
-
addCommands() {
|
|
27
|
-
return {
|
|
28
|
-
setHardBreak: () => ({ commands: e, chain: n, state: s, editor: a }) => e.first([
|
|
29
|
-
() => e.exitCode(),
|
|
30
|
-
() => e.command(() => {
|
|
31
|
-
const { selection: r, storedMarks: i } = s;
|
|
32
|
-
if (r.$from.parent.type.spec.isolating)
|
|
33
|
-
return !1;
|
|
34
|
-
const { keepMarks: o } = this.options, { splittableMarks: d } = a.extensionManager, t = i || r.$to.parentOffset && r.$from.marks();
|
|
35
|
-
return n().insertContent({ type: this.name }).command(({ tr: u, dispatch: m }) => {
|
|
36
|
-
if (m && t && o) {
|
|
37
|
-
const p = t.filter((k) => d.includes(k.type.name));
|
|
38
|
-
u.ensureMarks(p);
|
|
39
|
-
}
|
|
40
|
-
return !0;
|
|
41
|
-
}).run();
|
|
42
|
-
})
|
|
43
|
-
])
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
addKeyboardShortcuts() {
|
|
47
|
-
return {
|
|
48
|
-
"Mod-Enter": () => this.editor.commands.setHardBreak(),
|
|
49
|
-
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
export {
|
|
54
|
-
M as HardBreak,
|
|
55
|
-
M as default
|
|
56
|
-
};
|