laif-ds 0.2.20 → 0.2.22
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/index.js +5 -3
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-select.js +92 -109
- package/dist/components/ui/app-stepper.js +212 -0
- package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
- package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
- package/dist/components/ui/message-input.js +23 -23
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/stepper.js +387 -0
- package/dist/index.d.ts +55 -6
- package/dist/index.js +30 -28
- package/dist/lib/audio-utils.js +2 -2
- package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
- package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
- package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +70 -69
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
- package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
- package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
- package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
- package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
- package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
- package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
- package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
- package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
- package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
- package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
- package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
- package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
- package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
- package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
- package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
- package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +24 -25
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +7 -8
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +19 -20
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
- package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
- package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/classnames/index.js +2 -2
- package/dist/node_modules/cmdk/dist/index.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.js +14 -14
- package/dist/node_modules/dayjs/locale/it.js +4 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
- package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
- package/dist/node_modules/decimal.js-light/decimal.js +2 -2
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
- package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +3 -3
- package/dist/node_modules/immer/dist/immer.js +213 -216
- package/dist/node_modules/lexical/Lexical.prod.js +212 -212
- package/dist/node_modules/lodash/_baseCreate.js +2 -2
- package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
- package/dist/node_modules/lodash/_defineProperty.js +2 -2
- package/dist/node_modules/lodash/_isMasked.js +2 -2
- package/dist/node_modules/lodash/_nodeUtil.js +4 -4
- package/dist/node_modules/lodash/isArguments.js +2 -2
- package/dist/node_modules/lodash/isBuffer.js +2 -2
- package/dist/node_modules/lodash/lodash.js +16 -16
- package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
- package/dist/node_modules/prismjs/components/prism-java.js +2 -2
- package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
- package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
- package/dist/node_modules/prismjs/prism.js +8 -8
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
- package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
- package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
- package/dist/node_modules/react-window/dist/index.esm.js +2 -2
- package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
- package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
- package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
- package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
- package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
- package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
- package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
- package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
- package/dist/node_modules/recharts/es6/util/types.js +22 -332
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
- package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
- package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
- package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
- package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
- package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
- package/dist/node_modules/shiki/dist/langs.js +225 -220
- package/dist/node_modules/shiki/dist/themes.js +60 -60
- package/dist/node_modules/sonner/dist/index.js +309 -305
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
- package/dist/node_modules/vaul/dist/index.js +1 -1
- package/dist/node_modules/vfile-message/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +3 -2
- package/dist/_virtual/isEqual.js +0 -8
- package/dist/_virtual/isEqual2.js +0 -5
- package/dist/_virtual/isEqualWith.js +0 -5
- package/dist/_virtual/isPlainObject.js +0 -5
- package/dist/_virtual/noop.js +0 -5
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
- package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
- package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
- package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
- package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
- package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
|
@@ -1,75 +1,76 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
2
|
+
const j = ["top", "right", "bottom", "left"], m = Math.min, p = Math.max, C = Math.round, L = Math.floor, E = (t) => ({
|
|
3
3
|
x: t,
|
|
4
4
|
y: t
|
|
5
|
-
}),
|
|
5
|
+
}), h = {
|
|
6
6
|
left: "right",
|
|
7
7
|
right: "left",
|
|
8
8
|
bottom: "top",
|
|
9
9
|
top: "bottom"
|
|
10
|
-
},
|
|
10
|
+
}, x = {
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function R(t, e, n) {
|
|
15
|
+
return p(t, m(e, n));
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return typeof t == "function" ? t(
|
|
17
|
+
function T(t, e) {
|
|
18
|
+
return typeof t == "function" ? t(e) : t;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function g(t) {
|
|
21
21
|
return t.split("-")[0];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function a(t) {
|
|
24
24
|
return t.split("-")[1];
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function b(t) {
|
|
27
27
|
return t === "x" ? "y" : "x";
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function d(t) {
|
|
30
30
|
return t === "y" ? "height" : "width";
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
const A = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
33
|
+
function P(t) {
|
|
34
|
+
return A.has(g(t)) ? "y" : "x";
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
36
|
+
function y(t) {
|
|
37
|
+
return b(P(t));
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
const r =
|
|
41
|
-
let c =
|
|
42
|
-
return
|
|
39
|
+
function k(t, e, n) {
|
|
40
|
+
n === void 0 && (n = !1);
|
|
41
|
+
const r = a(t), i = y(t), o = d(i);
|
|
42
|
+
let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
43
|
+
return e.reference[o] > e.floating[o] && (c = f(c)), [c, f(c)];
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
return [s(t),
|
|
45
|
+
function q(t) {
|
|
46
|
+
const e = f(t);
|
|
47
|
+
return [s(t), e, s(e)];
|
|
47
48
|
}
|
|
48
49
|
function s(t) {
|
|
49
|
-
return t.replace(/start|end/g, (
|
|
50
|
+
return t.replace(/start|end/g, (e) => x[e]);
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
const u = ["left", "right"], l = ["right", "left"], M = ["top", "bottom"], O = ["bottom", "top"];
|
|
53
|
+
function S(t, e, n) {
|
|
53
54
|
switch (t) {
|
|
54
55
|
case "top":
|
|
55
56
|
case "bottom":
|
|
56
|
-
return
|
|
57
|
+
return n ? e ? l : u : e ? u : l;
|
|
57
58
|
case "left":
|
|
58
59
|
case "right":
|
|
59
|
-
return
|
|
60
|
+
return e ? M : O;
|
|
60
61
|
default:
|
|
61
62
|
return [];
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
let
|
|
67
|
-
return
|
|
65
|
+
function z(t, e, n, r) {
|
|
66
|
+
const i = a(t);
|
|
67
|
+
let o = S(g(t), n === "start", r);
|
|
68
|
+
return i && (o = o.map((c) => c + "-" + i), e && (o = o.concat(o.map(s)))), o;
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
return t.replace(/left|right|bottom|top/g, (
|
|
70
|
+
function f(t) {
|
|
71
|
+
return t.replace(/left|right|bottom|top/g, (e) => h[e]);
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function w(t) {
|
|
73
74
|
return {
|
|
74
75
|
top: 0,
|
|
75
76
|
right: 0,
|
|
@@ -78,53 +79,53 @@ function y(t) {
|
|
|
78
79
|
...t
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
return typeof t != "number" ?
|
|
82
|
+
function B(t) {
|
|
83
|
+
return typeof t != "number" ? w(t) : {
|
|
83
84
|
top: t,
|
|
84
85
|
right: t,
|
|
85
86
|
bottom: t,
|
|
86
87
|
left: t
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function D(t) {
|
|
90
91
|
const {
|
|
91
|
-
x:
|
|
92
|
-
y:
|
|
92
|
+
x: e,
|
|
93
|
+
y: n,
|
|
93
94
|
width: r,
|
|
94
|
-
height:
|
|
95
|
+
height: i
|
|
95
96
|
} = t;
|
|
96
97
|
return {
|
|
97
98
|
width: r,
|
|
98
|
-
height:
|
|
99
|
-
top:
|
|
100
|
-
left:
|
|
101
|
-
right:
|
|
102
|
-
bottom:
|
|
103
|
-
x:
|
|
104
|
-
y:
|
|
99
|
+
height: i,
|
|
100
|
+
top: n,
|
|
101
|
+
left: e,
|
|
102
|
+
right: e + r,
|
|
103
|
+
bottom: n + i,
|
|
104
|
+
x: e,
|
|
105
|
+
y: n
|
|
105
106
|
};
|
|
106
107
|
}
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
109
|
+
R as clamp,
|
|
110
|
+
E as createCoords,
|
|
111
|
+
T as evaluate,
|
|
112
|
+
w as expandPaddingObject,
|
|
113
|
+
L as floor,
|
|
114
|
+
a as getAlignment,
|
|
115
|
+
y as getAlignmentAxis,
|
|
116
|
+
k as getAlignmentSides,
|
|
117
|
+
d as getAxisLength,
|
|
118
|
+
q as getExpandedPlacements,
|
|
118
119
|
s as getOppositeAlignmentPlacement,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
120
|
+
b as getOppositeAxis,
|
|
121
|
+
z as getOppositeAxisPlacements,
|
|
122
|
+
f as getOppositePlacement,
|
|
123
|
+
B as getPaddingObject,
|
|
124
|
+
g as getSide,
|
|
125
|
+
P as getSideAxis,
|
|
126
|
+
p as max,
|
|
127
|
+
m as min,
|
|
128
|
+
D as rectToClientRect,
|
|
129
|
+
C as round,
|
|
130
|
+
j as sides
|
|
130
131
|
};
|
|
@@ -25,9 +25,9 @@ function G(t, e, n) {
|
|
|
25
25
|
}
|
|
26
26
|
const r = t.getData("text/html"), d = t.getData("text/plain");
|
|
27
27
|
if (r && d !== r) try {
|
|
28
|
-
const s = new DOMParser().parseFromString(function(l) {
|
|
28
|
+
const s = new DOMParser().parseFromString((function(l) {
|
|
29
29
|
return window.trustedTypes && window.trustedTypes.createPolicy ? window.trustedTypes.createPolicy("lexical", { createHTML: (o) => o }).createHTML(l) : l;
|
|
30
|
-
}(r), "text/html");
|
|
30
|
+
})(r), "text/html");
|
|
31
31
|
return w(n, y(n, s), e);
|
|
32
32
|
} catch {
|
|
33
33
|
}
|
|
@@ -57,14 +57,14 @@ function S(t, e, n, i = []) {
|
|
|
57
57
|
let o = F(n);
|
|
58
58
|
o = N(o) && e !== null ? O(e, o) : o, a = o;
|
|
59
59
|
}
|
|
60
|
-
const s = g(a) ? a.getChildren() : [], l = function(o) {
|
|
60
|
+
const s = g(a) ? a.getChildren() : [], l = (function(o) {
|
|
61
61
|
const c = o.exportJSON(), u = o.constructor;
|
|
62
62
|
if (c.type !== u.getType() && x(58, u.name), g(o)) {
|
|
63
63
|
const m = c.children;
|
|
64
64
|
Array.isArray(m) || x(59, u.name);
|
|
65
65
|
}
|
|
66
66
|
return c;
|
|
67
|
-
}(a);
|
|
67
|
+
})(a);
|
|
68
68
|
if (N(a)) {
|
|
69
69
|
const o = a.__text;
|
|
70
70
|
o.length > 0 ? l.text = o : r = !1;
|
|
@@ -97,22 +97,22 @@ function z(t) {
|
|
|
97
97
|
let f = null;
|
|
98
98
|
async function K(t, e, n) {
|
|
99
99
|
if (f !== null) return !1;
|
|
100
|
-
if (e !== null) return new Promise((o, c) => {
|
|
101
|
-
t.update(() => {
|
|
100
|
+
if (e !== null) return new Promise(((o, c) => {
|
|
101
|
+
t.update((() => {
|
|
102
102
|
o(C(t, e, n));
|
|
103
|
-
});
|
|
104
|
-
});
|
|
103
|
+
}));
|
|
104
|
+
}));
|
|
105
105
|
const i = t.getRootElement(), r = t._window || window, d = window.document, a = T(r);
|
|
106
106
|
if (i === null || a === null) return !1;
|
|
107
107
|
const s = d.createElement("span");
|
|
108
108
|
s.style.cssText = "position: fixed; top: -1000px;", s.append(d.createTextNode("#")), i.append(s);
|
|
109
109
|
const l = new Range();
|
|
110
|
-
return l.setStart(s, 0), l.setEnd(s, 1), a.removeAllRanges(), a.addRange(l), new Promise((o, c) => {
|
|
111
|
-
const u = t.registerCommand(_, (m) => (R(m, ClipboardEvent) && (u(), f !== null && (window.clearTimeout(f), f = null), o(C(t, m, n))), !0), A);
|
|
112
|
-
f = window.setTimeout(() => {
|
|
110
|
+
return l.setStart(s, 0), l.setEnd(s, 1), a.removeAllRanges(), a.addRange(l), new Promise(((o, c) => {
|
|
111
|
+
const u = t.registerCommand(_, ((m) => (R(m, ClipboardEvent) && (u(), f !== null && (window.clearTimeout(f), f = null), o(C(t, m, n))), !0)), A);
|
|
112
|
+
f = window.setTimeout((() => {
|
|
113
113
|
u(), f = null, o(!1);
|
|
114
|
-
}, 50), d.execCommand("copy"), s.remove();
|
|
115
|
-
});
|
|
114
|
+
}), 50), d.execCommand("copy"), s.remove();
|
|
115
|
+
}));
|
|
116
116
|
}
|
|
117
117
|
function C(t, e, n) {
|
|
118
118
|
if (n === void 0) {
|
|
@@ -116,7 +116,7 @@ class f extends R {
|
|
|
116
116
|
}
|
|
117
117
|
collapseAtStart() {
|
|
118
118
|
const e = T();
|
|
119
|
-
return this.getChildren().forEach((t) => e.append(t)), this.replace(e), !0;
|
|
119
|
+
return this.getChildren().forEach(((t) => e.append(t))), this.replace(e), !0;
|
|
120
120
|
}
|
|
121
121
|
setLanguage(e) {
|
|
122
122
|
const t = this.getWritable();
|
|
@@ -140,14 +140,14 @@ function C(n) {
|
|
|
140
140
|
}
|
|
141
141
|
function X(n) {
|
|
142
142
|
const e = n, t = H(e);
|
|
143
|
-
return t || function(r) {
|
|
143
|
+
return t || (function(r) {
|
|
144
144
|
let i = r.parentElement;
|
|
145
145
|
for (; i !== null; ) {
|
|
146
146
|
if (H(i)) return !0;
|
|
147
147
|
i = i.parentElement;
|
|
148
148
|
}
|
|
149
149
|
return !1;
|
|
150
|
-
}(e) ? { node: t ? h() : null } : { node: null };
|
|
150
|
+
})(e) ? { node: t ? h() : null } : { node: null };
|
|
151
151
|
}
|
|
152
152
|
function G() {
|
|
153
153
|
return { node: h() };
|
|
@@ -19,7 +19,7 @@ function h(g) {
|
|
|
19
19
|
const u = r.args;
|
|
20
20
|
if (u) {
|
|
21
21
|
const [c, m, p, l, S, y] = u;
|
|
22
|
-
g.update(() => {
|
|
22
|
+
g.update((() => {
|
|
23
23
|
const i = T();
|
|
24
24
|
if (v(i)) {
|
|
25
25
|
const w = i.anchor;
|
|
@@ -31,7 +31,7 @@ function h(g) {
|
|
|
31
31
|
}
|
|
32
32
|
a.stopImmediatePropagation();
|
|
33
33
|
}
|
|
34
|
-
});
|
|
34
|
+
}));
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -7,7 +7,7 @@ function B(t, s, d, f, m) {
|
|
|
7
7
|
const n = s._selection, r = t._selection;
|
|
8
8
|
if (m) return V;
|
|
9
9
|
if (!(T(n) && T(r) && r.isCollapsed() && n.isCollapsed())) return c;
|
|
10
|
-
const o = function(p, u, C) {
|
|
10
|
+
const o = (function(p, u, C) {
|
|
11
11
|
const O = p._nodeMap, S = [];
|
|
12
12
|
for (const M of u) {
|
|
13
13
|
const R = O.get(M);
|
|
@@ -19,7 +19,7 @@ function B(t, s, d, f, m) {
|
|
|
19
19
|
I === void 0 || Q(I) || S.push(I);
|
|
20
20
|
}
|
|
21
21
|
return S;
|
|
22
|
-
}(s, d, f);
|
|
22
|
+
})(s, d, f);
|
|
23
23
|
if (o.length === 0) return c;
|
|
24
24
|
if (o.length > 1) {
|
|
25
25
|
const p = s._nodeMap, u = p.get(n.anchor.key), C = p.get(r.anchor.key);
|
|
@@ -44,10 +44,10 @@ function F(t, s) {
|
|
|
44
44
|
if (!l && g && i.has(P)) return E;
|
|
45
45
|
if (m === null) return z;
|
|
46
46
|
const k = n._selection;
|
|
47
|
-
return o.size > 0 || a.size > 0 ? l === !1 && _ !== c && _ === f && e < d + s && g || o.size === 1 && function(y, p, u) {
|
|
47
|
+
return o.size > 0 || a.size > 0 ? l === !1 && _ !== c && _ === f && e < d + s && g || o.size === 1 && (function(y, p, u) {
|
|
48
48
|
const C = p._nodeMap.get(y), O = u._nodeMap.get(y), S = p._selection, M = u._selection;
|
|
49
|
-
return !(T(S) && T(M) && S.anchor.type === "element" && S.focus.type === "element" && M.anchor.type === "text" && M.focus.type === "text" || !N(C) || !N(O) || C.__parent !== O.__parent) && JSON.stringify(p.read(() => C.exportJSON())) === JSON.stringify(u.read(() => O.exportJSON()));
|
|
50
|
-
}(Array.from(o)[0], m, n) ? E : z : k !== null ? E : v;
|
|
49
|
+
return !(T(S) && T(M) && S.anchor.type === "element" && S.focus.type === "element" && M.anchor.type === "text" && M.focus.type === "text" || !N(C) || !N(O) || C.__parent !== O.__parent) && JSON.stringify(p.read((() => C.exportJSON()))) === JSON.stringify(u.read((() => O.exportJSON())));
|
|
50
|
+
})(Array.from(o)[0], m, n) ? E : z : k !== null ? E : v;
|
|
51
51
|
})();
|
|
52
52
|
return d = e, f = _, h;
|
|
53
53
|
};
|
|
@@ -57,13 +57,13 @@ function Y(t) {
|
|
|
57
57
|
}
|
|
58
58
|
function X(t, s, d) {
|
|
59
59
|
const f = F(t, d);
|
|
60
|
-
return G(t.registerCommand(j, () => (function(n, r) {
|
|
60
|
+
return G(t.registerCommand(j, (() => ((function(n, r) {
|
|
61
61
|
const o = r.redoStack, a = r.undoStack;
|
|
62
62
|
if (a.length !== 0) {
|
|
63
63
|
const i = r.current, e = a.pop();
|
|
64
64
|
i !== null && (o.push(i), n.dispatchCommand(A, !0)), a.length === 0 && n.dispatchCommand(D, !1), r.current = e || null, e && e.editor.setEditorState(e.editorState, { tag: H });
|
|
65
65
|
}
|
|
66
|
-
}(t, s), !0), x), t.registerCommand($, () => (function(n, r) {
|
|
66
|
+
})(t, s), !0)), x), t.registerCommand($, (() => ((function(n, r) {
|
|
67
67
|
const o = r.redoStack, a = r.undoStack;
|
|
68
68
|
if (o.length !== 0) {
|
|
69
69
|
const i = r.current;
|
|
@@ -71,14 +71,14 @@ function X(t, s, d) {
|
|
|
71
71
|
const e = o.pop();
|
|
72
72
|
o.length === 0 && n.dispatchCommand(A, !1), r.current = e || null, e && e.editor.setEditorState(e.editorState, { tag: H });
|
|
73
73
|
}
|
|
74
|
-
}(t, s), !0), x), t.registerCommand(U, () => (Y(s), !1), x), t.registerCommand(J, () => (Y(s), t.dispatchCommand(A, !1), t.dispatchCommand(D, !1), !0), x), t.registerUpdateListener(({ editorState: n, prevEditorState: r, dirtyLeaves: o, dirtyElements: a, tags: i }) => {
|
|
74
|
+
})(t, s), !0)), x), t.registerCommand(U, (() => (Y(s), !1)), x), t.registerCommand(J, (() => (Y(s), t.dispatchCommand(A, !1), t.dispatchCommand(D, !1), !0)), x), t.registerUpdateListener((({ editorState: n, prevEditorState: r, dirtyLeaves: o, dirtyElements: a, tags: i }) => {
|
|
75
75
|
const e = s.current, _ = s.redoStack, h = s.undoStack, g = e === null ? null : e.editorState;
|
|
76
76
|
if (e !== null && n === g) return;
|
|
77
77
|
const l = f(r, n, e, o, a, i);
|
|
78
78
|
if (l === z) _.length !== 0 && (s.redoStack = [], t.dispatchCommand(A, !1)), e !== null && (h.push({ ...e }), t.dispatchCommand(D, !0));
|
|
79
79
|
else if (l === v) return;
|
|
80
80
|
s.current = { editor: t, editorState: n };
|
|
81
|
-
}));
|
|
81
|
+
})));
|
|
82
82
|
}
|
|
83
83
|
function Z() {
|
|
84
84
|
return { current: null, redoStack: [], undoStack: [] };
|
|
@@ -12,14 +12,14 @@ function I(l, o) {
|
|
|
12
12
|
n !== null && (r = r.concat(n));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
return function(a) {
|
|
15
|
+
return (function(a) {
|
|
16
16
|
for (const e of a) e.getNextSibling() instanceof $ && e.insertAfter(v());
|
|
17
17
|
for (const e of a) {
|
|
18
18
|
const n = e.getChildren();
|
|
19
19
|
for (const f of n) e.insertBefore(f);
|
|
20
20
|
e.remove();
|
|
21
21
|
}
|
|
22
|
-
}(s), r;
|
|
22
|
+
})(s), r;
|
|
23
23
|
}
|
|
24
24
|
function z(l, o) {
|
|
25
25
|
if (typeof document > "u" || typeof window > "u" && global.window === void 0) throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");
|
|
@@ -59,7 +59,7 @@ function T(l, o, c, r, s = /* @__PURE__ */ new Map(), a) {
|
|
|
59
59
|
let e = [];
|
|
60
60
|
if (F.has(l.nodeName)) return e;
|
|
61
61
|
let n = null;
|
|
62
|
-
const f = function(t, p) {
|
|
62
|
+
const f = (function(t, p) {
|
|
63
63
|
const { nodeName: A } = t, x = p._htmlConversions.get(A.toLowerCase());
|
|
64
64
|
let g = null;
|
|
65
65
|
if (x !== void 0) for (const M of x) {
|
|
@@ -67,7 +67,7 @@ function T(l, o, c, r, s = /* @__PURE__ */ new Map(), a) {
|
|
|
67
67
|
w !== null && (g === null || (g.priority || 0) <= (w.priority || 0)) && (g = w);
|
|
68
68
|
}
|
|
69
69
|
return g !== null ? g.conversion : null;
|
|
70
|
-
}(l, o), h = f ? f(l) : null;
|
|
70
|
+
})(l, o), h = f ? f(l) : null;
|
|
71
71
|
let d = null;
|
|
72
72
|
if (h !== null) {
|
|
73
73
|
d = h.after;
|
|
@@ -85,9 +85,9 @@ function T(l, o, c, r, s = /* @__PURE__ */ new Map(), a) {
|
|
|
85
85
|
return d != null && (u = d(u)), C(l) && (u = H(l, u, i ? () => {
|
|
86
86
|
const t = new $();
|
|
87
87
|
return c.push(t), t;
|
|
88
|
-
} : B)), n == null ? u.length > 0 ? e = e.concat(u) : C(l) && function(t) {
|
|
88
|
+
} : B)), n == null ? u.length > 0 ? e = e.concat(u) : C(l) && (function(t) {
|
|
89
89
|
return t.nextSibling == null || t.previousSibling == null ? !1 : S(t.nextSibling) && S(t.previousSibling);
|
|
90
|
-
}(l) && (e = e.concat(v())) : N(n) && n.append(...u), e;
|
|
90
|
+
})(l) && (e = e.concat(v())) : N(n) && n.append(...u), e;
|
|
91
91
|
}
|
|
92
92
|
function H(l, o, c) {
|
|
93
93
|
const r = l.style.textAlign, s = [];
|