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
|
@@ -6,7 +6,7 @@ function h(i, s) {
|
|
|
6
6
|
return c.__proto__ = p, c;
|
|
7
7
|
}, h(i, s);
|
|
8
8
|
}
|
|
9
|
-
var m = { error: null }, g = function(i) {
|
|
9
|
+
var m = { error: null }, g = (function(i) {
|
|
10
10
|
var s, c;
|
|
11
11
|
function p() {
|
|
12
12
|
for (var r, o = arguments.length, t = new Array(o), e = 0; e < o; e++) t[e] = arguments[e];
|
|
@@ -26,9 +26,9 @@ var m = { error: null }, g = function(i) {
|
|
|
26
26
|
(t = (e = this.props).onError) == null || t.call(e, r, o);
|
|
27
27
|
}, u.componentDidUpdate = function(r, o) {
|
|
28
28
|
var t, e, n, a, f = this.state.error, l = this.props.resetKeys;
|
|
29
|
-
f !== null && o.error !== null && ((n = r.resetKeys) === void 0 && (n = []), (a = l) === void 0 && (a = []), n.length !== a.length || n.some(function(b, v) {
|
|
29
|
+
f !== null && o.error !== null && ((n = r.resetKeys) === void 0 && (n = []), (a = l) === void 0 && (a = []), n.length !== a.length || n.some((function(b, v) {
|
|
30
30
|
return !Object.is(b, a[v]);
|
|
31
|
-
})) && ((t = (e = this.props).onResetKeysChange) == null || t.call(e, r.resetKeys, l), this.reset());
|
|
31
|
+
}))) && ((t = (e = this.props).onResetKeysChange) == null || t.call(e, r.resetKeys, l), this.reset());
|
|
32
32
|
}, u.render = function() {
|
|
33
33
|
var r = this.state.error, o = this.props, t = o.fallbackRender, e = o.FallbackComponent, n = o.fallback;
|
|
34
34
|
if (r !== null) {
|
|
@@ -40,7 +40,7 @@ var m = { error: null }, g = function(i) {
|
|
|
40
40
|
}
|
|
41
41
|
return this.props.children;
|
|
42
42
|
}, p;
|
|
43
|
-
}(d.Component);
|
|
43
|
+
})(d.Component);
|
|
44
44
|
function k({ children: i, onError: s }) {
|
|
45
45
|
return y(g, { fallback: y("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: s, children: i });
|
|
46
46
|
}
|
|
@@ -4,10 +4,10 @@ import { createEmptyHistoryState as m, registerHistory as l } from "../history/L
|
|
|
4
4
|
import { useMemo as u, useEffect as c } from "react";
|
|
5
5
|
function H({ delay: s, externalHistoryState: i }) {
|
|
6
6
|
const [a] = n();
|
|
7
|
-
return function(t, e, o = 1e3) {
|
|
8
|
-
const r = u(() => e || m(), [e]);
|
|
9
|
-
c(() => l(t, r, o), [o, t, r]);
|
|
10
|
-
}(a, i, s), null;
|
|
7
|
+
return (function(t, e, o = 1e3) {
|
|
8
|
+
const r = u((() => e || m()), [e]);
|
|
9
|
+
c((() => l(t, r, o)), [o, t, r]);
|
|
10
|
+
})(a, i, s), null;
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
13
|
H as HistoryPlugin,
|
|
@@ -4,13 +4,13 @@ import { useLexicalComposerContext as f } from "./LexicalComposerContext.prod.js
|
|
|
4
4
|
import { useEffect as e } from "react";
|
|
5
5
|
function c({ hasStrictIndent: r = !1 }) {
|
|
6
6
|
const [t] = f();
|
|
7
|
-
return e(() => {
|
|
7
|
+
return e((() => {
|
|
8
8
|
if (!t.hasNodes([o, i])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
9
|
-
}, [t]), e(() => {
|
|
9
|
+
}), [t]), e((() => {
|
|
10
10
|
if (r) return n(t);
|
|
11
|
-
}, [t, r]), function(s) {
|
|
12
|
-
e(() => a(s), [s]);
|
|
13
|
-
}(t), null;
|
|
11
|
+
}), [t, r]), (function(s) {
|
|
12
|
+
e((() => a(s)), [s]);
|
|
13
|
+
})(t), null;
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
16
|
c as ListPlugin
|
|
@@ -5,11 +5,11 @@ import { useLayoutEffect as m, useEffect as g } from "react";
|
|
|
5
5
|
const c = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? m : g;
|
|
6
6
|
function w({ ignoreHistoryMergeTagChange: o = !0, ignoreSelectionChange: n = !1, onChange: e }) {
|
|
7
7
|
const [t] = u();
|
|
8
|
-
return c(() => {
|
|
9
|
-
if (e) return t.registerUpdateListener(({ editorState: r, dirtyElements: s, dirtyLeaves: a, prevEditorState: d, tags: i }) => {
|
|
8
|
+
return c((() => {
|
|
9
|
+
if (e) return t.registerUpdateListener((({ editorState: r, dirtyElements: s, dirtyLeaves: a, prevEditorState: d, tags: i }) => {
|
|
10
10
|
n && s.size === 0 && a.size === 0 || o && i.has(f) || d.isEmpty() || e(r, t, i);
|
|
11
|
-
});
|
|
12
|
-
}, [t, o, n, e]), null;
|
|
11
|
+
}));
|
|
12
|
+
}), [t, o, n, e]), null;
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
15
15
|
w as OnChangePlugin
|
|
@@ -13,42 +13,42 @@ function h(r) {
|
|
|
13
13
|
return r.getEditorState().read(j(r.isComposing()));
|
|
14
14
|
}
|
|
15
15
|
function H({ contentEditable: r, placeholder: u = null, ErrorBoundary: a }) {
|
|
16
|
-
const [n] = E(), o = function(e, i) {
|
|
17
|
-
const [t, s] = w(() => e.getDecorators());
|
|
18
|
-
return d(() => e.registerDecoratorListener((c) => {
|
|
19
|
-
R(() => {
|
|
16
|
+
const [n] = E(), o = (function(e, i) {
|
|
17
|
+
const [t, s] = w((() => e.getDecorators()));
|
|
18
|
+
return d((() => e.registerDecoratorListener(((c) => {
|
|
19
|
+
R((() => {
|
|
20
20
|
s(c);
|
|
21
|
-
});
|
|
22
|
-
}), [e]), x(() => {
|
|
21
|
+
}));
|
|
22
|
+
}))), [e]), x((() => {
|
|
23
23
|
s(e.getDecorators());
|
|
24
|
-
}, [e]), C(() => {
|
|
24
|
+
}), [e]), C((() => {
|
|
25
25
|
const c = [], p = Object.keys(t);
|
|
26
26
|
for (let l = 0; l < p.length; l++) {
|
|
27
27
|
const f = p[l], L = m(i, { onError: (S) => e._onError(S), children: m(P, { fallback: null, children: t[f] }) }), g = e.getElementByKey(f);
|
|
28
28
|
g !== null && c.push($(L, g, f));
|
|
29
29
|
}
|
|
30
30
|
return c;
|
|
31
|
-
}, [i, t, e]);
|
|
32
|
-
}(n, a);
|
|
33
|
-
return function(e) {
|
|
34
|
-
d(() => y(M(e), B(e)), [e]);
|
|
35
|
-
}(n), k(v, { children: [r, m(T, { content: u }), o] });
|
|
31
|
+
}), [i, t, e]);
|
|
32
|
+
})(n, a);
|
|
33
|
+
return (function(e) {
|
|
34
|
+
d((() => y(M(e), B(e))), [e]);
|
|
35
|
+
})(n), k(v, { children: [r, m(T, { content: u }), o] });
|
|
36
36
|
}
|
|
37
37
|
function T({ content: r }) {
|
|
38
|
-
const [u] = E(), a = function(o) {
|
|
39
|
-
const [e, i] = w(() => h(o));
|
|
40
|
-
return d(() => {
|
|
38
|
+
const [u] = E(), a = (function(o) {
|
|
39
|
+
const [e, i] = w((() => h(o)));
|
|
40
|
+
return d((() => {
|
|
41
41
|
function t() {
|
|
42
42
|
const s = h(o);
|
|
43
43
|
i(s);
|
|
44
44
|
}
|
|
45
|
-
return t(), y(o.registerUpdateListener(() => {
|
|
45
|
+
return t(), y(o.registerUpdateListener((() => {
|
|
46
46
|
t();
|
|
47
|
-
}), o.registerEditableListener(() => {
|
|
47
|
+
})), o.registerEditableListener((() => {
|
|
48
48
|
t();
|
|
49
|
-
}));
|
|
50
|
-
}, [o]), e;
|
|
51
|
-
}(u), n = b();
|
|
49
|
+
})));
|
|
50
|
+
}), [o]), e;
|
|
51
|
+
})(u), n = b();
|
|
52
52
|
return a ? typeof r == "function" ? r(n) : r : null;
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
@@ -6,15 +6,15 @@ function p(e) {
|
|
|
6
6
|
return { initialValueFn: () => e.isEditable(), subscribe: (t) => e.registerEditableListener(t) };
|
|
7
7
|
}
|
|
8
8
|
function F() {
|
|
9
|
-
return function(e) {
|
|
10
|
-
const [t] = l(), n = d(() => e(t), [t, e]), [r, o] = f(() => n.initialValueFn()), i = m(r);
|
|
11
|
-
return E(() => {
|
|
9
|
+
return (function(e) {
|
|
10
|
+
const [t] = l(), n = d((() => e(t)), [t, e]), [r, o] = f((() => n.initialValueFn())), i = m(r);
|
|
11
|
+
return E((() => {
|
|
12
12
|
const { initialValueFn: c, subscribe: a } = n, u = c();
|
|
13
|
-
return i.current !== u && (i.current = u, o(u)), a((s) => {
|
|
13
|
+
return i.current !== u && (i.current = u, o(u)), a(((s) => {
|
|
14
14
|
i.current = s, o(s);
|
|
15
|
-
});
|
|
16
|
-
}, [n, e]), r;
|
|
17
|
-
}(p);
|
|
15
|
+
}));
|
|
16
|
+
}), [n, e]), r;
|
|
17
|
+
})(p);
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
20
|
F as useLexicalEditable
|
|
@@ -52,7 +52,7 @@ class M extends z {
|
|
|
52
52
|
}
|
|
53
53
|
collapseAtStart() {
|
|
54
54
|
const e = h();
|
|
55
|
-
return this.getChildren().forEach((t) => e.append(t)), this.replace(e), !0;
|
|
55
|
+
return this.getChildren().forEach(((t) => e.append(t))), this.replace(e), !0;
|
|
56
56
|
}
|
|
57
57
|
canMergeWhenEmpty() {
|
|
58
58
|
return !0;
|
|
@@ -128,7 +128,7 @@ class _ extends z {
|
|
|
128
128
|
}
|
|
129
129
|
collapseAtStart() {
|
|
130
130
|
const e = this.isEmpty() ? h() : C(this.getTag());
|
|
131
|
-
return this.getChildren().forEach((t) => e.append(t)), this.replace(e), !0;
|
|
131
|
+
return this.getChildren().forEach(((t) => e.append(t))), this.replace(e), !0;
|
|
132
132
|
}
|
|
133
133
|
extractWithChild() {
|
|
134
134
|
return !0;
|
|
@@ -165,7 +165,7 @@ function W(n) {
|
|
|
165
165
|
for (let s = 0; s < r.length; s++) {
|
|
166
166
|
const o = r[s], l = o.getKey();
|
|
167
167
|
if (t.has(l)) continue;
|
|
168
|
-
const c = B(o, (N) => q(N) && !N.isInline());
|
|
168
|
+
const c = B(o, ((N) => q(N) && !N.isInline()));
|
|
169
169
|
if (c === null) continue;
|
|
170
170
|
const f = c.getKey();
|
|
171
171
|
c.canIndent() && !t.has(f) && (t.add(f), n(c));
|
|
@@ -180,19 +180,19 @@ function O(n) {
|
|
|
180
180
|
for (const e of ["lowercase", "uppercase", "capitalize"]) n.hasFormat(e) && n.toggleFormat(e);
|
|
181
181
|
}
|
|
182
182
|
function Qe(n) {
|
|
183
|
-
return U(n.registerCommand(Ke, (e) => {
|
|
183
|
+
return U(n.registerCommand(Ke, ((e) => {
|
|
184
184
|
const t = i();
|
|
185
185
|
return !!d(t) && (t.clear(), !0);
|
|
186
|
-
}, a), n.registerCommand(A, (e) => {
|
|
186
|
+
}), a), n.registerCommand(A, ((e) => {
|
|
187
187
|
const t = i();
|
|
188
188
|
return u(t) ? (t.deleteCharacter(e), !0) : !!d(t) && (t.deleteNodes(), !0);
|
|
189
|
-
}, a), n.registerCommand(Fe, (e) => {
|
|
189
|
+
}), a), n.registerCommand(Fe, ((e) => {
|
|
190
190
|
const t = i();
|
|
191
191
|
return !!u(t) && (t.deleteWord(e), !0);
|
|
192
|
-
}, a), n.registerCommand(we, (e) => {
|
|
192
|
+
}), a), n.registerCommand(we, ((e) => {
|
|
193
193
|
const t = i();
|
|
194
194
|
return !!u(t) && (t.deleteLine(e), !0);
|
|
195
|
-
}, a), n.registerCommand($e, (e) => {
|
|
195
|
+
}), a), n.registerCommand($e, ((e) => {
|
|
196
196
|
const t = i();
|
|
197
197
|
if (typeof e == "string") t !== null && t.insertText(e);
|
|
198
198
|
else {
|
|
@@ -205,34 +205,34 @@ function Qe(n) {
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
return !0;
|
|
208
|
-
}, a), n.registerCommand(xe, () => {
|
|
208
|
+
}), a), n.registerCommand(xe, (() => {
|
|
209
209
|
const e = i();
|
|
210
210
|
return !!u(e) && (e.removeText(), !0);
|
|
211
|
-
}, a), n.registerCommand(Pe, (e) => {
|
|
211
|
+
}), a), n.registerCommand(Pe, ((e) => {
|
|
212
212
|
const t = i();
|
|
213
213
|
return !!u(t) && (t.formatText(e), !0);
|
|
214
|
-
}, a), n.registerCommand(Ie, (e) => {
|
|
214
|
+
}), a), n.registerCommand(Ie, ((e) => {
|
|
215
215
|
const t = i();
|
|
216
216
|
if (!u(t) && !d(t)) return !1;
|
|
217
217
|
const r = t.getNodes();
|
|
218
218
|
for (const s of r) {
|
|
219
|
-
const o = B(s, (l) => q(l) && !l.isInline());
|
|
219
|
+
const o = B(s, ((l) => q(l) && !l.isInline()));
|
|
220
220
|
o !== null && o.setFormat(e);
|
|
221
221
|
}
|
|
222
222
|
return !0;
|
|
223
|
-
}, a), n.registerCommand(x, (e) => {
|
|
223
|
+
}), a), n.registerCommand(x, ((e) => {
|
|
224
224
|
const t = i();
|
|
225
225
|
return !!u(t) && (t.insertLineBreak(e), !0);
|
|
226
|
-
}, a), n.registerCommand($, () => {
|
|
226
|
+
}), a), n.registerCommand($, (() => {
|
|
227
227
|
const e = i();
|
|
228
228
|
return !!u(e) && (e.insertParagraph(), !0);
|
|
229
|
-
}, a), n.registerCommand(ye, () => (Re([Se()]), !0), a), n.registerCommand(ve, () => W((e) => {
|
|
229
|
+
}), a), n.registerCommand(ye, (() => (Re([Se()]), !0)), a), n.registerCommand(ve, (() => W(((e) => {
|
|
230
230
|
const t = e.getIndent();
|
|
231
231
|
e.setIndent(t + 1);
|
|
232
|
-
}), a), n.registerCommand(w, () => W((e) => {
|
|
232
|
+
}))), a), n.registerCommand(w, (() => W(((e) => {
|
|
233
233
|
const t = e.getIndent();
|
|
234
234
|
t > 0 && e.setIndent(Math.max(0, t - 1));
|
|
235
|
-
}), a), n.registerCommand(Te, (e) => {
|
|
235
|
+
}))), a), n.registerCommand(Te, ((e) => {
|
|
236
236
|
const t = i();
|
|
237
237
|
if (d(t)) {
|
|
238
238
|
const r = t.getNodes();
|
|
@@ -242,21 +242,21 @@ function Qe(n) {
|
|
|
242
242
|
if (!e.shiftKey && E(r) && !r.isIsolated() && !r.isInline()) return r.selectPrevious(), e.preventDefault(), !0;
|
|
243
243
|
}
|
|
244
244
|
return !1;
|
|
245
|
-
}, a), n.registerCommand(Ae, (e) => {
|
|
245
|
+
}), a), n.registerCommand(Ae, ((e) => {
|
|
246
246
|
const t = i();
|
|
247
247
|
if (d(t)) {
|
|
248
248
|
const r = t.getNodes();
|
|
249
249
|
if (r.length > 0) return r[0].selectNext(0, 0), !0;
|
|
250
250
|
} else if (u(t)) {
|
|
251
|
-
if (function(s) {
|
|
251
|
+
if ((function(s) {
|
|
252
252
|
const o = s.focus;
|
|
253
253
|
return o.key === "root" && o.offset === Oe().getChildrenSize();
|
|
254
|
-
}(t)) return e.preventDefault(), !0;
|
|
254
|
+
})(t)) return e.preventDefault(), !0;
|
|
255
255
|
const r = F(t.focus, !1);
|
|
256
256
|
if (!e.shiftKey && E(r) && !r.isIsolated() && !r.isInline()) return r.selectNext(), e.preventDefault(), !0;
|
|
257
257
|
}
|
|
258
258
|
return !1;
|
|
259
|
-
}, a), n.registerCommand(_e, (e) => {
|
|
259
|
+
}), a), n.registerCommand(_e, ((e) => {
|
|
260
260
|
const t = i();
|
|
261
261
|
if (d(t)) {
|
|
262
262
|
const r = t.getNodes();
|
|
@@ -268,7 +268,7 @@ function Qe(n) {
|
|
|
268
268
|
return e.preventDefault(), P(t, r, !0), !0;
|
|
269
269
|
}
|
|
270
270
|
return !1;
|
|
271
|
-
}, a), n.registerCommand(Me, (e) => {
|
|
271
|
+
}), a), n.registerCommand(Me, ((e) => {
|
|
272
272
|
const t = i();
|
|
273
273
|
if (d(t)) {
|
|
274
274
|
const s = t.getNodes();
|
|
@@ -277,11 +277,11 @@ function Qe(n) {
|
|
|
277
277
|
if (!u(t)) return !1;
|
|
278
278
|
const r = e.shiftKey;
|
|
279
279
|
return !!I(t, !1) && (e.preventDefault(), P(t, r, !1), !0);
|
|
280
|
-
}, a), n.registerCommand(De, (e) => {
|
|
280
|
+
}), a), n.registerCommand(De, ((e) => {
|
|
281
281
|
if (J(e.target)) return !1;
|
|
282
282
|
const t = i();
|
|
283
283
|
if (u(t)) {
|
|
284
|
-
if (function(r) {
|
|
284
|
+
if ((function(r) {
|
|
285
285
|
if (!r.isCollapsed()) return !1;
|
|
286
286
|
const { anchor: s } = r;
|
|
287
287
|
if (s.offset !== 0) return !1;
|
|
@@ -289,15 +289,15 @@ function Qe(n) {
|
|
|
289
289
|
if (Ee(o)) return !1;
|
|
290
290
|
const l = j(o);
|
|
291
291
|
return l.getIndent() > 0 && (l.is(o) || o.is(l.getFirstDescendant()));
|
|
292
|
-
}(t)) return e.preventDefault(), n.dispatchCommand(w, void 0);
|
|
292
|
+
})(t)) return e.preventDefault(), n.dispatchCommand(w, void 0);
|
|
293
293
|
if (L && navigator.language === "ko-KR") return !1;
|
|
294
294
|
} else if (!d(t)) return !1;
|
|
295
295
|
return e.preventDefault(), n.dispatchCommand(A, !0);
|
|
296
|
-
}, a), n.registerCommand(Ne, (e) => {
|
|
296
|
+
}), a), n.registerCommand(Ne, ((e) => {
|
|
297
297
|
if (J(e.target)) return !1;
|
|
298
298
|
const t = i();
|
|
299
299
|
return !(!u(t) && !d(t)) && (e.preventDefault(), n.dispatchCommand(A, !1));
|
|
300
|
-
}, a), n.registerCommand(he, (e) => {
|
|
300
|
+
}), a), n.registerCommand(he, ((e) => {
|
|
301
301
|
const t = i();
|
|
302
302
|
if (!u(t)) return !1;
|
|
303
303
|
if (O(t), e !== null) {
|
|
@@ -305,10 +305,10 @@ function Qe(n) {
|
|
|
305
305
|
if (e.preventDefault(), e.shiftKey) return n.dispatchCommand(x, !1);
|
|
306
306
|
}
|
|
307
307
|
return n.dispatchCommand($, void 0);
|
|
308
|
-
}, a), n.registerCommand(Ce, () => {
|
|
308
|
+
}), a), n.registerCommand(Ce, (() => {
|
|
309
309
|
const e = i();
|
|
310
310
|
return !!u(e) && (n.blur(), !0);
|
|
311
|
-
}, a), n.registerCommand(de, (e) => {
|
|
311
|
+
}), a), n.registerCommand(de, ((e) => {
|
|
312
312
|
const [, t] = D(e);
|
|
313
313
|
if (t.length > 0) {
|
|
314
314
|
const s = K(e.clientX, e.clientY);
|
|
@@ -330,10 +330,10 @@ function Qe(n) {
|
|
|
330
330
|
}
|
|
331
331
|
const r = i();
|
|
332
332
|
return !!u(r);
|
|
333
|
-
}, a), n.registerCommand(le, (e) => {
|
|
333
|
+
}), a), n.registerCommand(le, ((e) => {
|
|
334
334
|
const [t] = D(e), r = i();
|
|
335
335
|
return !(t && !u(r));
|
|
336
|
-
}, a), n.registerCommand(ce, (e) => {
|
|
336
|
+
}), a), n.registerCommand(ce, ((e) => {
|
|
337
337
|
const [t] = D(e), r = i();
|
|
338
338
|
if (t && !u(r)) return !1;
|
|
339
339
|
const s = K(e.clientX, e.clientY);
|
|
@@ -342,26 +342,26 @@ function Qe(n) {
|
|
|
342
342
|
E(o) && e.preventDefault();
|
|
343
343
|
}
|
|
344
344
|
return !0;
|
|
345
|
-
}, a), n.registerCommand(ie, () => (ue(), !0), a), n.registerCommand(oe, (e) => (S(n, g(e, ClipboardEvent) ? e : null), !0), a), n.registerCommand(ae, (e) => (async function(t, r) {
|
|
346
|
-
await S(r, g(t, ClipboardEvent) ? t : null), r.update(() => {
|
|
345
|
+
}), a), n.registerCommand(ie, (() => (ue(), !0)), a), n.registerCommand(oe, ((e) => (S(n, g(e, ClipboardEvent) ? e : null), !0)), a), n.registerCommand(ae, ((e) => ((async function(t, r) {
|
|
346
|
+
await S(r, g(t, ClipboardEvent) ? t : null), r.update((() => {
|
|
347
347
|
const s = i();
|
|
348
|
-
u(s) ? s.removeText() : d(s) && s.getNodes().forEach((o) => o.remove());
|
|
349
|
-
});
|
|
350
|
-
}(e, n), !0), a), n.registerCommand(ee, (e) => {
|
|
348
|
+
u(s) ? s.removeText() : d(s) && s.getNodes().forEach(((o) => o.remove()));
|
|
349
|
+
}));
|
|
350
|
+
})(e, n), !0)), a), n.registerCommand(ee, ((e) => {
|
|
351
351
|
const [, t, r] = D(e);
|
|
352
|
-
return t.length > 0 && !r ? (n.dispatchCommand(b, t), !0) : ne(e.target) && re(e.target) ? !1 : i() !== null && (function(s, o) {
|
|
353
|
-
s.preventDefault(), o.update(() => {
|
|
352
|
+
return t.length > 0 && !r ? (n.dispatchCommand(b, t), !0) : ne(e.target) && re(e.target) ? !1 : i() !== null && ((function(s, o) {
|
|
353
|
+
s.preventDefault(), o.update((() => {
|
|
354
354
|
const l = i(), c = g(s, InputEvent) || g(s, KeyboardEvent) ? null : s.clipboardData;
|
|
355
355
|
c != null && l !== null && R(c, l, o);
|
|
356
|
-
}, { tag: se });
|
|
357
|
-
}(e, n), !0);
|
|
358
|
-
}, a), n.registerCommand(Z, (e) => {
|
|
356
|
+
}), { tag: se });
|
|
357
|
+
})(e, n), !0);
|
|
358
|
+
}), a), n.registerCommand(Z, ((e) => {
|
|
359
359
|
const t = i();
|
|
360
360
|
return u(t) && O(t), !1;
|
|
361
|
-
}, a), n.registerCommand(V, (e) => {
|
|
361
|
+
}), a), n.registerCommand(V, ((e) => {
|
|
362
362
|
const t = i();
|
|
363
363
|
return u(t) && O(t), !1;
|
|
364
|
-
}, a));
|
|
364
|
+
}), a));
|
|
365
365
|
}
|
|
366
366
|
export {
|
|
367
367
|
C as $createHeadingNode,
|
|
@@ -288,14 +288,14 @@ function J(l) {
|
|
|
288
288
|
return null;
|
|
289
289
|
}
|
|
290
290
|
function B(l) {
|
|
291
|
-
const [[t, e, o, r], [n, s, i, a]] = ["anchor", "focus"].map((h) => {
|
|
291
|
+
const [[t, e, o, r], [n, s, i, a]] = ["anchor", "focus"].map(((h) => {
|
|
292
292
|
const c = l[h].getNode(), u = M(c, S);
|
|
293
293
|
S(u) || m(238, h, c.getKey(), c.getType());
|
|
294
294
|
const d = u.getParent();
|
|
295
295
|
v(d) || m(239, h);
|
|
296
296
|
const _ = d.getParent();
|
|
297
297
|
return et(_) || m(240, h), [c, u, d, _];
|
|
298
|
-
});
|
|
298
|
+
}));
|
|
299
299
|
return r.is(a) || m(241), { anchorCell: e, anchorNode: t, anchorRow: o, anchorTable: r, focusCell: s, focusNode: n, focusRow: i, focusTable: a };
|
|
300
300
|
}
|
|
301
301
|
class $ {
|
|
@@ -338,10 +338,10 @@ class $ {
|
|
|
338
338
|
}
|
|
339
339
|
hasFormat(t) {
|
|
340
340
|
let e = 0;
|
|
341
|
-
this.getNodes().filter(S).forEach((r) => {
|
|
341
|
+
this.getNodes().filter(S).forEach(((r) => {
|
|
342
342
|
const n = r.getFirstChild();
|
|
343
343
|
ot(n) && (e |= n.getTextFormat());
|
|
344
|
-
});
|
|
344
|
+
}));
|
|
345
345
|
const o = lt[t];
|
|
346
346
|
return !!(e & o);
|
|
347
347
|
}
|
|
@@ -376,15 +376,15 @@ class $ {
|
|
|
376
376
|
let w = null;
|
|
377
377
|
for (let f = u; f <= d; f++) for (let g = h; g <= c; g++) {
|
|
378
378
|
const { cell: C } = s[f][g], N = C.getParent();
|
|
379
|
-
v(N) || m(160), N !== w && (_.set(N.getKey(), N), w = N), _.has(C.getKey()) || pt(C, (D) => {
|
|
379
|
+
v(N) || m(160), N !== w && (_.set(N.getKey(), N), w = N), _.has(C.getKey()) || pt(C, ((D) => {
|
|
380
380
|
_.set(D.getKey(), D);
|
|
381
|
-
});
|
|
381
|
+
}));
|
|
382
382
|
}
|
|
383
383
|
const p = Array.from(_.values());
|
|
384
384
|
return nt() || (this._cachedNodes = p), p;
|
|
385
385
|
}
|
|
386
386
|
getTextContent() {
|
|
387
|
-
const t = this.getNodes().filter((o) => S(o));
|
|
387
|
+
const t = this.getNodes().filter(((o) => S(o)));
|
|
388
388
|
let e = "";
|
|
389
389
|
for (let o = 0; o < t.length; o++) {
|
|
390
390
|
const r = t[o], n = r.__parent, s = (t[o + 1] || {}).__parent;
|
|
@@ -480,16 +480,16 @@ class F extends k {
|
|
|
480
480
|
return o;
|
|
481
481
|
}
|
|
482
482
|
updateTableWrapper(t, e, o, r) {
|
|
483
|
-
this.__frozenColumnCount !== (t ? t.__frozenColumnCount : 0) && function(n, s, i, a) {
|
|
483
|
+
this.__frozenColumnCount !== (t ? t.__frozenColumnCount : 0) && (function(n, s, i, a) {
|
|
484
484
|
a > 0 ? (b(n, i.theme.tableFrozenColumn), s.setAttribute("data-lexical-frozen-column", "true")) : (A(n, i.theme.tableFrozenColumn), s.removeAttribute("data-lexical-frozen-column"));
|
|
485
|
-
}(e, o, r, this.__frozenColumnCount), this.__frozenRowCount !== (t ? t.__frozenRowCount : 0) && function(n, s, i, a) {
|
|
485
|
+
})(e, o, r, this.__frozenColumnCount), this.__frozenRowCount !== (t ? t.__frozenRowCount : 0) && (function(n, s, i, a) {
|
|
486
486
|
a > 0 ? (b(n, i.theme.tableFrozenRow), s.setAttribute("data-lexical-frozen-row", "true")) : (A(n, i.theme.tableFrozenRow), s.removeAttribute("data-lexical-frozen-row"));
|
|
487
|
-
}(e, o, r, this.__frozenRowCount);
|
|
487
|
+
})(e, o, r, this.__frozenRowCount);
|
|
488
488
|
}
|
|
489
489
|
updateTableElement(t, e, o) {
|
|
490
|
-
this.__style !== (t ? t.__style : "") && (e.style.cssText = this.__style), this.__rowStriping !== (!!t && t.__rowStriping) && function(r, n, s) {
|
|
490
|
+
this.__style !== (t ? t.__style : "") && (e.style.cssText = this.__style), this.__rowStriping !== (!!t && t.__rowStriping) && (function(r, n, s) {
|
|
491
491
|
s ? (b(r, n.theme.tableRowStriping), r.setAttribute("data-lexical-row-striping", "true")) : (A(r, n.theme.tableRowStriping), r.removeAttribute("data-lexical-row-striping"));
|
|
492
|
-
}(e, o, this.__rowStriping), function(r, n, s, i) {
|
|
492
|
+
})(e, o, this.__rowStriping), (function(r, n, s, i) {
|
|
493
493
|
const a = r.querySelector("colgroup");
|
|
494
494
|
if (!a) return;
|
|
495
495
|
const h = [];
|
|
@@ -498,7 +498,7 @@ class F extends k {
|
|
|
498
498
|
d && (u.style.width = `${d}px`), h.push(u);
|
|
499
499
|
}
|
|
500
500
|
a.replaceChildren(...h);
|
|
501
|
-
}(e, 0, this.getColumnCount(), this.getColWidths()), q(e, o, this.getFormatType());
|
|
501
|
+
})(e, 0, this.getColumnCount(), this.getColWidths()), q(e, o, this.getFormatType());
|
|
502
502
|
}
|
|
503
503
|
updateDOM(t, e, o) {
|
|
504
504
|
const r = this.getDOMSlot(e).element;
|
|
@@ -528,7 +528,7 @@ class F extends k {
|
|
|
528
528
|
}
|
|
529
529
|
const a = r.querySelector(":scope > colgroup");
|
|
530
530
|
if (a) {
|
|
531
|
-
const c = Array.from(r.querySelectorAll(":scope > colgroup > col")).filter((u, d) => i.has(d));
|
|
531
|
+
const c = Array.from(r.querySelectorAll(":scope > colgroup > col")).filter(((u, d) => i.has(d)));
|
|
532
532
|
a.replaceChildren(...c);
|
|
533
533
|
}
|
|
534
534
|
const h = r.querySelectorAll(":scope > tr");
|
|
@@ -612,9 +612,9 @@ class F extends k {
|
|
|
612
612
|
const t = this.getFirstChild();
|
|
613
613
|
if (!t) return 0;
|
|
614
614
|
let e = 0;
|
|
615
|
-
return t.getChildren().forEach((o) => {
|
|
615
|
+
return t.getChildren().forEach(((o) => {
|
|
616
616
|
S(o) && (e += o.getColSpan());
|
|
617
|
-
}), e;
|
|
617
|
+
})), e;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function St(l) {
|
|
@@ -41,7 +41,7 @@ function S(t, n) {
|
|
|
41
41
|
return null;
|
|
42
42
|
}
|
|
43
43
|
function x(t) {
|
|
44
|
-
const n = y(t, (e) => a(e) && !e.isInline());
|
|
44
|
+
const n = y(t, ((e) => a(e) && !e.isInline()));
|
|
45
45
|
return a(n) || g(4, t.__key), n;
|
|
46
46
|
}
|
|
47
47
|
const y = (t, n) => {
|
|
@@ -58,7 +58,7 @@ function I(t, n) {
|
|
|
58
58
|
let s = !(v || !w) && void 0;
|
|
59
59
|
function P(t) {
|
|
60
60
|
let n = 1;
|
|
61
|
-
if (function() {
|
|
61
|
+
if ((function() {
|
|
62
62
|
if (s === void 0) {
|
|
63
63
|
const e = document.createElement("div");
|
|
64
64
|
e.style.cssText = "position: absolute; opacity: 0; width: 100px; left: -1000px;", document.body.appendChild(e);
|
|
@@ -66,7 +66,7 @@ function P(t) {
|
|
|
66
66
|
e.style.setProperty("zoom", "2"), s = e.getBoundingClientRect().width === o.width, document.body.removeChild(e);
|
|
67
67
|
}
|
|
68
68
|
return s;
|
|
69
|
-
}()) for (; t; ) n *= Number(window.getComputedStyle(t).getPropertyValue("zoom")), t = t.parentElement;
|
|
69
|
+
})()) for (; t; ) n *= Number(window.getComputedStyle(t).getPropertyValue("zoom")), t = t.parentElement;
|
|
70
70
|
return n;
|
|
71
71
|
}
|
|
72
72
|
function R(t, n) {
|
|
@@ -10,13 +10,13 @@ import { createCollapsibleScope as M, Root as $, Trigger as ee, Content as oe }
|
|
|
10
10
|
import { useId as re } from "../../react-id/dist/index.js";
|
|
11
11
|
import { useDirection as te } from "../../react-direction/dist/index.js";
|
|
12
12
|
import { jsx as n } from "react/jsx-runtime";
|
|
13
|
-
var d = "Accordion", ne = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [
|
|
13
|
+
var d = "Accordion", ne = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [E, ce, ie] = W(d), [b] = Q(d, [
|
|
14
14
|
ie,
|
|
15
15
|
M
|
|
16
|
-
]),
|
|
16
|
+
]), S = M(), V = s.forwardRef(
|
|
17
17
|
(o, c) => {
|
|
18
18
|
const { type: e, ...t } = o, i = t, r = t;
|
|
19
|
-
return /* @__PURE__ */ n(
|
|
19
|
+
return /* @__PURE__ */ n(E.Provider, { scope: o.__scopeAccordion, children: e === "multiple" ? /* @__PURE__ */ n(de, { ...r, ref: c }) : /* @__PURE__ */ n(se, { ...i, ref: c }) });
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
V.displayName = d;
|
|
@@ -80,18 +80,18 @@ var [H, ae] = b(d), [K, le] = b(
|
|
|
80
80
|
);
|
|
81
81
|
}), [pe, I] = b(d), L = s.forwardRef(
|
|
82
82
|
(o, c) => {
|
|
83
|
-
const { __scopeAccordion: e, disabled: t, dir: i, orientation: r = "vertical", ...l } = o, a = s.useRef(null), p = X(a, c), m = ce(e), u = te(i) === "ltr", h = Z(o.onKeyDown, (
|
|
84
|
-
if (!ne.includes(
|
|
85
|
-
const F =
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
let f =
|
|
83
|
+
const { __scopeAccordion: e, disabled: t, dir: i, orientation: r = "vertical", ...l } = o, a = s.useRef(null), p = X(a, c), m = ce(e), u = te(i) === "ltr", h = Z(o.onKeyDown, (C) => {
|
|
84
|
+
if (!ne.includes(C.key)) return;
|
|
85
|
+
const F = C.target, x = m().filter((N) => !N.ref.current?.disabled), A = x.findIndex((N) => N.ref.current === F), D = x.length;
|
|
86
|
+
if (A === -1) return;
|
|
87
|
+
C.preventDefault();
|
|
88
|
+
let f = A;
|
|
89
89
|
const _ = 0, w = D - 1, R = () => {
|
|
90
|
-
f =
|
|
90
|
+
f = A + 1, f > w && (f = _);
|
|
91
91
|
}, P = () => {
|
|
92
|
-
f =
|
|
92
|
+
f = A - 1, f < _ && (f = w);
|
|
93
93
|
};
|
|
94
|
-
switch (
|
|
94
|
+
switch (C.key) {
|
|
95
95
|
case "Home":
|
|
96
96
|
f = _;
|
|
97
97
|
break;
|
|
@@ -121,7 +121,7 @@ var [H, ae] = b(d), [K, le] = b(
|
|
|
121
121
|
disabled: t,
|
|
122
122
|
direction: i,
|
|
123
123
|
orientation: r,
|
|
124
|
-
children: /* @__PURE__ */ n(
|
|
124
|
+
children: /* @__PURE__ */ n(E.Slot, { scope: e, children: /* @__PURE__ */ n(
|
|
125
125
|
T.div,
|
|
126
126
|
{
|
|
127
127
|
...l,
|
|
@@ -135,7 +135,7 @@ var [H, ae] = b(d), [K, le] = b(
|
|
|
135
135
|
}
|
|
136
136
|
), g = "AccordionItem", [fe, k] = b(g), z = s.forwardRef(
|
|
137
137
|
(o, c) => {
|
|
138
|
-
const { __scopeAccordion: e, value: t, ...i } = o, r = I(g, e), l = ae(g, e), a =
|
|
138
|
+
const { __scopeAccordion: e, value: t, ...i } = o, r = I(g, e), l = ae(g, e), a = S(e), p = re(), m = t && l.value.includes(t) || !1, v = r.disabled || o.disabled;
|
|
139
139
|
return /* @__PURE__ */ n(
|
|
140
140
|
fe,
|
|
141
141
|
{
|
|
@@ -179,10 +179,10 @@ var G = "AccordionHeader", U = s.forwardRef(
|
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
U.displayName = G;
|
|
182
|
-
var
|
|
182
|
+
var y = "AccordionTrigger", j = s.forwardRef(
|
|
183
183
|
(o, c) => {
|
|
184
|
-
const { __scopeAccordion: e, ...t } = o, i = I(d, e), r = k(
|
|
185
|
-
return /* @__PURE__ */ n(
|
|
184
|
+
const { __scopeAccordion: e, ...t } = o, i = I(d, e), r = k(y, e), l = le(y, e), a = S(e);
|
|
185
|
+
return /* @__PURE__ */ n(E.ItemSlot, { scope: e, children: /* @__PURE__ */ n(
|
|
186
186
|
ee,
|
|
187
187
|
{
|
|
188
188
|
"aria-disabled": r.open && !l.collapsible || void 0,
|
|
@@ -195,10 +195,10 @@ var S = "AccordionTrigger", j = s.forwardRef(
|
|
|
195
195
|
) });
|
|
196
196
|
}
|
|
197
197
|
);
|
|
198
|
-
j.displayName =
|
|
198
|
+
j.displayName = y;
|
|
199
199
|
var Y = "AccordionContent", q = s.forwardRef(
|
|
200
200
|
(o, c) => {
|
|
201
|
-
const { __scopeAccordion: e, ...t } = o, i = I(d, e), r = k(Y, e), l =
|
|
201
|
+
const { __scopeAccordion: e, ...t } = o, i = I(d, e), r = k(Y, e), l = S(e);
|
|
202
202
|
return /* @__PURE__ */ n(
|
|
203
203
|
oe,
|
|
204
204
|
{
|
|
@@ -221,7 +221,7 @@ q.displayName = Y;
|
|
|
221
221
|
function B(o) {
|
|
222
222
|
return o ? "open" : "closed";
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var we = V, Re = z, Pe = U, Ne = j, ye = q;
|
|
225
225
|
export {
|
|
226
226
|
V as Accordion,
|
|
227
227
|
q as AccordionContent,
|
|
@@ -229,9 +229,8 @@ export {
|
|
|
229
229
|
z as AccordionItem,
|
|
230
230
|
j as AccordionTrigger,
|
|
231
231
|
ye as Content,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
we as createAccordionScope
|
|
232
|
+
Pe as Header,
|
|
233
|
+
Re as Item,
|
|
234
|
+
we as Root,
|
|
235
|
+
Ne as Trigger
|
|
237
236
|
};
|