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
|
@@ -183,7 +183,7 @@ function Oe(n) {
|
|
|
183
183
|
else if (n.is(s)) t.insertAfter(n), e.isEmpty() && t.remove();
|
|
184
184
|
else {
|
|
185
185
|
const i = e.getListType(), o = m(), a = p(i);
|
|
186
|
-
o.append(a), n.getPreviousSiblings().forEach((d) => a.append(d));
|
|
186
|
+
o.append(a), n.getPreviousSiblings().forEach(((d) => a.append(d)));
|
|
187
187
|
const l = m(), c = p(i);
|
|
188
188
|
l.append(c), N(c, n.getNextSiblings()), t.insertBefore(o), t.insertAfter(l), t.replace(n);
|
|
189
189
|
}
|
|
@@ -213,7 +213,7 @@ function xe() {
|
|
|
213
213
|
} else i.insertAfter(a);
|
|
214
214
|
a.append(...o);
|
|
215
215
|
}
|
|
216
|
-
return function(a) {
|
|
216
|
+
return (function(a) {
|
|
217
217
|
let l = a;
|
|
218
218
|
for (; l.getNextSibling() == null && l.getPreviousSibling() == null; ) {
|
|
219
219
|
const c = l.getParent();
|
|
@@ -221,7 +221,7 @@ function xe() {
|
|
|
221
221
|
l = c;
|
|
222
222
|
}
|
|
223
223
|
l.remove();
|
|
224
|
-
}(e), !0;
|
|
224
|
+
})(e), !0;
|
|
225
225
|
}
|
|
226
226
|
function F(...n) {
|
|
227
227
|
const e = [];
|
|
@@ -244,9 +244,9 @@ class O extends se {
|
|
|
244
244
|
}
|
|
245
245
|
updateListItemDOM(e, t, r) {
|
|
246
246
|
const s = this.getParent();
|
|
247
|
-
u(s) && s.getListType() === "check" && function(a, l, c, d) {
|
|
247
|
+
u(s) && s.getListType() === "check" && (function(a, l, c, d) {
|
|
248
248
|
u(l.getFirstChild()) ? (a.removeAttribute("role"), a.removeAttribute("tabIndex"), a.removeAttribute("aria-checked")) : (a.setAttribute("role", "checkbox"), a.setAttribute("tabIndex", "-1"), c && l.__checked === c.__checked || a.setAttribute("aria-checked", l.getChecked() ? "true" : "false"));
|
|
249
|
-
}(t, this, e), t.value = this.__value, function(a, l, c) {
|
|
249
|
+
})(t, this, e), t.value = this.__value, (function(a, l, c) {
|
|
250
250
|
const d = [], h = [], f = l.list, x = f ? f.listitem : void 0;
|
|
251
251
|
let _;
|
|
252
252
|
if (f && f.nested && (_ = f.nested.listitem), x !== void 0 && d.push(...F(x)), f) {
|
|
@@ -255,16 +255,16 @@ class O extends se {
|
|
|
255
255
|
}
|
|
256
256
|
if (_ !== void 0) {
|
|
257
257
|
const k = F(_);
|
|
258
|
-
c.getChildren().some((b) => u(b)) ? d.push(...k) : h.push(...k);
|
|
258
|
+
c.getChildren().some(((b) => u(b))) ? d.push(...k) : h.push(...k);
|
|
259
259
|
}
|
|
260
260
|
h.length > 0 && ee(a, ...h), d.length > 0 && te(a, ...d);
|
|
261
|
-
}(t, r.theme, this);
|
|
261
|
+
})(t, r.theme, this);
|
|
262
262
|
const i = e ? e.__style : "", o = this.__style;
|
|
263
|
-
i !== o && (o === "" ? t.removeAttribute("style") : t.style.cssText = o), function(a, l, c) {
|
|
263
|
+
i !== o && (o === "" ? t.removeAttribute("style") : t.style.cssText = o), (function(a, l, c) {
|
|
264
264
|
const d = z(l.__textStyle);
|
|
265
265
|
for (const h in d) a.style.setProperty(`--listitem-marker-${h}`, d[h]);
|
|
266
266
|
if (c) for (const h in z(c.__textStyle)) h in d || a.style.removeProperty(`--listitem-marker-${h}`);
|
|
267
|
-
}(t, this, e);
|
|
267
|
+
})(t, this, e);
|
|
268
268
|
}
|
|
269
269
|
updateDOM(e, t, r) {
|
|
270
270
|
const s = t;
|
|
@@ -321,9 +321,9 @@ class O extends se {
|
|
|
321
321
|
}
|
|
322
322
|
r.insertAfter(e), e.insertAfter(s);
|
|
323
323
|
}
|
|
324
|
-
return t && (v(e) || y(139), this.getChildren().forEach((s) => {
|
|
324
|
+
return t && (v(e) || y(139), this.getChildren().forEach(((s) => {
|
|
325
325
|
e.append(s);
|
|
326
|
-
})), this.remove(), r.getChildrenSize() === 0 && r.remove(), e;
|
|
326
|
+
}))), this.remove(), r.getChildrenSize() === 0 && r.remove(), e;
|
|
327
327
|
}
|
|
328
328
|
insertAfter(e, t = !0) {
|
|
329
329
|
const r = this.getParentOrThrow();
|
|
@@ -331,7 +331,7 @@ class O extends se {
|
|
|
331
331
|
const s = this.getNextSiblings();
|
|
332
332
|
if (r.insertAfter(e, t), s.length !== 0) {
|
|
333
333
|
const i = p(r.getListType());
|
|
334
|
-
s.forEach((o) => i.append(o)), e.insertAfter(i, t);
|
|
334
|
+
s.forEach(((o) => i.append(o))), e.insertAfter(i, t);
|
|
335
335
|
}
|
|
336
336
|
return e;
|
|
337
337
|
}
|
|
@@ -345,7 +345,7 @@ class O extends se {
|
|
|
345
345
|
}
|
|
346
346
|
collapseAtStart(e) {
|
|
347
347
|
const t = M();
|
|
348
|
-
this.getChildren().forEach((o) => t.append(o));
|
|
348
|
+
this.getChildren().forEach(((o) => t.append(o)));
|
|
349
349
|
const r = this.getParentOrThrow(), s = r.getParentOrThrow(), i = g(s);
|
|
350
350
|
if (r.getChildrenSize() === 1) if (i) r.remove(), s.select();
|
|
351
351
|
else {
|
|
@@ -469,14 +469,14 @@ class E extends se {
|
|
|
469
469
|
}
|
|
470
470
|
static transform() {
|
|
471
471
|
return (e) => {
|
|
472
|
-
u(e) || y(163), function(t) {
|
|
472
|
+
u(e) || y(163), (function(t) {
|
|
473
473
|
const r = t.getNextSibling();
|
|
474
474
|
u(r) && t.getListType() === r.getListType() && J(t, r);
|
|
475
|
-
}(e), function(t) {
|
|
475
|
+
})(e), (function(t) {
|
|
476
476
|
const r = t.getListType() !== "check";
|
|
477
477
|
let s = t.getStart();
|
|
478
478
|
for (const i of t.getChildren()) g(i) && (i.getValue() !== s && i.setValue(s), r && i.getLatest().__checked != null && i.setChecked(void 0), u(i.getFirstChild()) || s++);
|
|
479
|
-
}(e);
|
|
479
|
+
})(e);
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
static importDOM() {
|
|
@@ -537,9 +537,9 @@ function Pe(n) {
|
|
|
537
537
|
if (g(r)) {
|
|
538
538
|
e.push(r);
|
|
539
539
|
const s = r.getChildren();
|
|
540
|
-
s.length > 1 && s.forEach((i) => {
|
|
540
|
+
s.length > 1 && s.forEach(((i) => {
|
|
541
541
|
u(i) && e.push(Y(i));
|
|
542
|
-
});
|
|
542
|
+
}));
|
|
543
543
|
} else e.push(Y(r));
|
|
544
544
|
}
|
|
545
545
|
return e;
|
|
@@ -547,11 +547,11 @@ function Pe(n) {
|
|
|
547
547
|
function X(n) {
|
|
548
548
|
const e = n.nodeName.toLowerCase();
|
|
549
549
|
let t = null;
|
|
550
|
-
return e === "ol" ? t = p("number", n.start) : e === "ul" && (t = function(r) {
|
|
550
|
+
return e === "ol" ? t = p("number", n.start) : e === "ul" && (t = (function(r) {
|
|
551
551
|
if (r.getAttribute("__lexicallisttype") === "check" || r.classList.contains("contains-task-list")) return !0;
|
|
552
552
|
for (const s of r.childNodes) if (S(s) && s.hasAttribute("aria-checked")) return !0;
|
|
553
553
|
return !1;
|
|
554
|
-
}(n) ? p("check") : p("bullet")), { after: Pe, node: t };
|
|
554
|
+
})(n) ? p("check") : p("bullet")), { after: Pe, node: t };
|
|
555
555
|
}
|
|
556
556
|
const j = { ol: "number", ul: "bullet" };
|
|
557
557
|
function p(n = "number", e = 1) {
|
|
@@ -562,24 +562,24 @@ function u(n) {
|
|
|
562
562
|
}
|
|
563
563
|
const Ee = D("INSERT_CHECK_LIST_COMMAND");
|
|
564
564
|
function we(n) {
|
|
565
|
-
return re(n.registerCommand(Ee, () => ($("check"), !0), C), n.registerCommand(Ne, (e) => Z(e, n, !1), C), n.registerCommand(Te, (e) => Z(e, n, !0), C), n.registerCommand(ye, () => {
|
|
565
|
+
return re(n.registerCommand(Ee, (() => ($("check"), !0)), C), n.registerCommand(Ne, ((e) => Z(e, n, !1)), C), n.registerCommand(Te, ((e) => Z(e, n, !0)), C), n.registerCommand(ye, (() => {
|
|
566
566
|
if (K() != null) {
|
|
567
567
|
const e = n.getRootElement();
|
|
568
568
|
return e?.focus(), !0;
|
|
569
569
|
}
|
|
570
570
|
return !1;
|
|
571
|
-
}, C), n.registerCommand(Ce, (e) => {
|
|
571
|
+
}), C), n.registerCommand(Ce, ((e) => {
|
|
572
572
|
const t = K();
|
|
573
|
-
return !(t == null || !n.isEditable()) && (n.update(() => {
|
|
573
|
+
return !(t == null || !n.isEditable()) && (n.update((() => {
|
|
574
574
|
const r = W(t);
|
|
575
575
|
g(r) && (e.preventDefault(), r.toggleChecked());
|
|
576
|
-
}), !0);
|
|
577
|
-
}, C), n.registerCommand(_e, (e) => n.getEditorState().read(() => {
|
|
576
|
+
})), !0);
|
|
577
|
+
}), C), n.registerCommand(_e, ((e) => n.getEditorState().read((() => {
|
|
578
578
|
const t = P();
|
|
579
579
|
if (L(t) && t.isCollapsed()) {
|
|
580
580
|
const { anchor: r } = t, s = r.type === "element";
|
|
581
581
|
if (s || r.offset === 0) {
|
|
582
|
-
const i = r.getNode(), o = ne(i, (a) => v(a) && !a.isInline());
|
|
582
|
+
const i = r.getNode(), o = ne(i, ((a) => v(a) && !a.isInline()));
|
|
583
583
|
if (g(o)) {
|
|
584
584
|
const a = o.getParent();
|
|
585
585
|
if (u(a) && a.getListType() === "check" && (s || o.getFirstDescendant() === i)) {
|
|
@@ -590,9 +590,9 @@ function we(n) {
|
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
return !1;
|
|
593
|
-
}), C), n.registerRootListener((e, t) => {
|
|
593
|
+
}))), C), n.registerRootListener(((e, t) => {
|
|
594
594
|
e !== null && (e.addEventListener("click", q), e.addEventListener("pointerdown", Q)), t !== null && (t.removeEventListener("click", q), t.removeEventListener("pointerdown", Q));
|
|
595
|
-
}));
|
|
595
|
+
})));
|
|
596
596
|
}
|
|
597
597
|
function ce(n, e) {
|
|
598
598
|
const t = n.target;
|
|
@@ -605,20 +605,20 @@ function ce(n, e) {
|
|
|
605
605
|
(t.dir === "rtl" ? o < i.right && o > i.right - l : o > i.left && o < i.left + l) && e();
|
|
606
606
|
}
|
|
607
607
|
function q(n) {
|
|
608
|
-
ce(n, () => {
|
|
608
|
+
ce(n, (() => {
|
|
609
609
|
if (S(n.target)) {
|
|
610
610
|
const e = n.target, t = Se(e);
|
|
611
|
-
t != null && t.isEditable() && t.update(() => {
|
|
611
|
+
t != null && t.isEditable() && t.update((() => {
|
|
612
612
|
const r = W(e);
|
|
613
613
|
g(r) && (e.focus(), r.toggleChecked());
|
|
614
|
-
});
|
|
614
|
+
}));
|
|
615
615
|
}
|
|
616
|
-
});
|
|
616
|
+
}));
|
|
617
617
|
}
|
|
618
618
|
function Q(n) {
|
|
619
|
-
ce(n, () => {
|
|
619
|
+
ce(n, (() => {
|
|
620
620
|
n.preventDefault();
|
|
621
|
-
});
|
|
621
|
+
}));
|
|
622
622
|
}
|
|
623
623
|
function K() {
|
|
624
624
|
const n = document.activeElement;
|
|
@@ -626,10 +626,10 @@ function K() {
|
|
|
626
626
|
}
|
|
627
627
|
function Z(n, e, t) {
|
|
628
628
|
const r = K();
|
|
629
|
-
return r != null && e.update(() => {
|
|
629
|
+
return r != null && e.update((() => {
|
|
630
630
|
const s = W(r);
|
|
631
631
|
if (!g(s)) return;
|
|
632
|
-
const i = function(o, a) {
|
|
632
|
+
const i = (function(o, a) {
|
|
633
633
|
let l = a ? o.getPreviousSibling() : o.getNextSibling(), c = o;
|
|
634
634
|
for (; l == null && g(c); ) c = c.getParentOrThrow().getParent(), c != null && (l = a ? c.getPreviousSibling() : c.getNextSibling());
|
|
635
635
|
for (; g(l); ) {
|
|
@@ -638,19 +638,19 @@ function Z(n, e, t) {
|
|
|
638
638
|
l = a ? d.getLastChild() : d.getFirstChild();
|
|
639
639
|
}
|
|
640
640
|
return null;
|
|
641
|
-
}(s, t);
|
|
641
|
+
})(s, t);
|
|
642
642
|
if (i != null) {
|
|
643
643
|
i.selectStart();
|
|
644
644
|
const o = e.getElementByKey(i.__key);
|
|
645
|
-
o != null && (n.preventDefault(), setTimeout(() => {
|
|
645
|
+
o != null && (n.preventDefault(), setTimeout((() => {
|
|
646
646
|
o.focus();
|
|
647
|
-
}, 0));
|
|
647
|
+
}), 0));
|
|
648
648
|
}
|
|
649
|
-
}), !1;
|
|
649
|
+
})), !1;
|
|
650
650
|
}
|
|
651
651
|
const Ae = D("INSERT_UNORDERED_LIST_COMMAND"), Fe = D("INSERT_ORDERED_LIST_COMMAND"), Me = D("REMOVE_LIST_COMMAND");
|
|
652
652
|
function $e(n) {
|
|
653
|
-
return re(n.registerCommand(Fe, () => ($("number"), !0), C), n.registerCommand(Ae, () => ($("bullet"), !0), C), n.registerCommand(Me, () => (ve(), !0), C), n.registerCommand(me, () => xe(), C), n.registerNodeTransform(O, (e) => {
|
|
653
|
+
return re(n.registerCommand(Fe, (() => ($("number"), !0)), C), n.registerCommand(Ae, (() => ($("bullet"), !0)), C), n.registerCommand(Me, (() => (ve(), !0)), C), n.registerCommand(me, (() => xe()), C), n.registerNodeTransform(O, ((e) => {
|
|
654
654
|
const t = e.getFirstChild();
|
|
655
655
|
if (t) {
|
|
656
656
|
if (pe(t)) {
|
|
@@ -661,24 +661,24 @@ function $e(n) {
|
|
|
661
661
|
const r = P();
|
|
662
662
|
L(r) && (r.style !== e.getTextStyle() || r.format !== e.getTextFormat()) && r.isCollapsed() && e.is(r.anchor.getNode()) && e.setTextStyle(r.style).setTextFormat(r.format);
|
|
663
663
|
}
|
|
664
|
-
}), n.registerNodeTransform(fe, (e) => {
|
|
664
|
+
})), n.registerNodeTransform(fe, ((e) => {
|
|
665
665
|
const t = e.getParent();
|
|
666
666
|
if (g(t) && e.is(t.getFirstChild())) {
|
|
667
667
|
const r = e.getStyle(), s = e.getFormat();
|
|
668
668
|
r === t.getTextStyle() && s === t.getTextFormat() || t.setTextStyle(r).setTextFormat(s);
|
|
669
669
|
}
|
|
670
|
-
}));
|
|
670
|
+
})));
|
|
671
671
|
}
|
|
672
672
|
function Ke(n) {
|
|
673
673
|
const e = (t) => {
|
|
674
674
|
const r = t.getParent();
|
|
675
675
|
if (u(t.getFirstChild()) || !u(r)) return;
|
|
676
|
-
const s = ne(t, (i) => g(i) && u(i.getParent()) && g(i.getPreviousSibling()));
|
|
676
|
+
const s = ne(t, ((i) => g(i) && u(i.getParent()) && g(i.getPreviousSibling())));
|
|
677
677
|
if (s === null && t.getIndent() > 0) t.setIndent(0);
|
|
678
678
|
else if (g(s)) {
|
|
679
679
|
const i = s.getPreviousSibling();
|
|
680
680
|
if (g(i)) {
|
|
681
|
-
const o = function(l) {
|
|
681
|
+
const o = (function(l) {
|
|
682
682
|
let c = l, d = c.getFirstChild();
|
|
683
683
|
for (; u(d); ) {
|
|
684
684
|
const h = d.getLastChild();
|
|
@@ -686,7 +686,7 @@ function Ke(n) {
|
|
|
686
686
|
c = h, d = c.getFirstChild();
|
|
687
687
|
}
|
|
688
688
|
return c;
|
|
689
|
-
}(i), a = o.getParent();
|
|
689
|
+
})(i), a = o.getParent();
|
|
690
690
|
if (u(a)) {
|
|
691
691
|
const l = R(a);
|
|
692
692
|
l + 1 < R(r) && t.setIndent(l);
|
|
@@ -694,7 +694,7 @@ function Ke(n) {
|
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
|
-
return n.registerNodeTransform(E, (t) => {
|
|
697
|
+
return n.registerNodeTransform(E, ((t) => {
|
|
698
698
|
const r = [t];
|
|
699
699
|
for (; r.length > 0; ) {
|
|
700
700
|
const s = r.shift();
|
|
@@ -706,7 +706,7 @@ function Ke(n) {
|
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
});
|
|
709
|
+
}));
|
|
710
710
|
}
|
|
711
711
|
export {
|
|
712
712
|
m as $createListItemNode,
|
|
@@ -14,7 +14,7 @@ function gt(t, e) {
|
|
|
14
14
|
return r;
|
|
15
15
|
}
|
|
16
16
|
function H(t) {
|
|
17
|
-
const e = gt(t, (r) => r.type);
|
|
17
|
+
const e = gt(t, ((r) => r.type));
|
|
18
18
|
return { element: e.element || [], multilineElement: e["multiline-element"] || [], textFormat: e["text-format"] || [], textMatch: e["text-match"] || [] };
|
|
19
19
|
}
|
|
20
20
|
const v = /[!-/:-@[-`{-~\s]/, pt = /^\s{0,3}$/;
|
|
@@ -26,7 +26,7 @@ function b(t) {
|
|
|
26
26
|
function mt(t, e, r, s) {
|
|
27
27
|
for (const n of e) {
|
|
28
28
|
if (!n.export) continue;
|
|
29
|
-
const f = n.export(t, (o) => C(o, r, s));
|
|
29
|
+
const f = n.export(t, ((o) => C(o, r, s)));
|
|
30
30
|
if (f != null) return f;
|
|
31
31
|
}
|
|
32
32
|
return I(t) ? C(t, r, s) : B(t) ? t.getTextContent() : null;
|
|
@@ -37,7 +37,7 @@ function C(t, e, r, s, n) {
|
|
|
37
37
|
t: for (const a of o) {
|
|
38
38
|
for (const u of r) {
|
|
39
39
|
if (!u.export) continue;
|
|
40
|
-
const c = u.export(a, (i) => C(i, e, r, s, [...n, ...s]), (i, g) => F(i, g, e, s, n));
|
|
40
|
+
const c = u.export(a, ((i) => C(i, e, r, s, [...n, ...s])), ((i, g) => F(i, g, e, s, n)));
|
|
41
41
|
if (c != null) {
|
|
42
42
|
f.push(c);
|
|
43
43
|
continue t;
|
|
@@ -49,15 +49,15 @@ function C(t, e, r, s, n) {
|
|
|
49
49
|
return f.join("");
|
|
50
50
|
}
|
|
51
51
|
function F(t, e, r, s, n) {
|
|
52
|
-
let f = t.getFormat() === 0 ? e : function(l) {
|
|
53
|
-
return l.replace(/^\s+|\s+$/g, (d) => [...d].map((p) => "&#" + p.codePointAt(0) + ";").join(""));
|
|
54
|
-
}(e);
|
|
52
|
+
let f = t.getFormat() === 0 ? e : (function(l) {
|
|
53
|
+
return l.replace(/^\s+|\s+$/g, ((d) => [...d].map(((p) => "&#" + p.codePointAt(0) + ";")).join("")));
|
|
54
|
+
})(e);
|
|
55
55
|
t.hasFormat("code") || (f = f.replace(/([*_`~\\])/g, "\\$1"));
|
|
56
56
|
let o = "", a = "", u = "";
|
|
57
57
|
const c = M(t, !0), i = M(t, !1), g = /* @__PURE__ */ new Set();
|
|
58
58
|
for (const l of r) {
|
|
59
59
|
const d = l.format[0], p = l.tag;
|
|
60
|
-
S(t, d) && !g.has(d) && (g.add(d), S(c, d) && s.find((m) => m.tag === p) || (s.push({ format: d, tag: p }), o += p));
|
|
60
|
+
S(t, d) && !g.has(d) && (g.add(d), S(c, d) && s.find(((m) => m.tag === p)) || (s.push({ format: d, tag: p }), o += p));
|
|
61
61
|
}
|
|
62
62
|
for (let l = 0; l < s.length; l++) {
|
|
63
63
|
const d = S(t, s[l].format), p = S(i, s[l].format);
|
|
@@ -65,7 +65,7 @@ function F(t, e, r, s, n) {
|
|
|
65
65
|
const m = [...s];
|
|
66
66
|
for (; m.length > l; ) {
|
|
67
67
|
const h = m.pop();
|
|
68
|
-
n && h && n.find((T) => T.tag === h.tag) || (h && typeof h.tag == "string" && (d ? p || (u += h.tag) : a += h.tag), s.pop());
|
|
68
|
+
n && h && n.find(((T) => T.tag === h.tag)) || (h && typeof h.tag == "string" && (d ? p || (u += h.tag) : a += h.tag), s.pop());
|
|
69
69
|
}
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
@@ -93,7 +93,7 @@ function S(t, e) {
|
|
|
93
93
|
return N(t) && t.hasFormat(e);
|
|
94
94
|
}
|
|
95
95
|
function ht(t, e) {
|
|
96
|
-
const r = function(n, f) {
|
|
96
|
+
const r = (function(n, f) {
|
|
97
97
|
const o = n.match(f.openTagsRegExp);
|
|
98
98
|
if (o == null) return null;
|
|
99
99
|
for (const a of o) {
|
|
@@ -107,7 +107,7 @@ function ht(t, e) {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
|
-
}(t.getTextContent(), e);
|
|
110
|
+
})(t.getTextContent(), e);
|
|
111
111
|
if (!r) return null;
|
|
112
112
|
const s = r.index || 0;
|
|
113
113
|
return { endIndex: s + r[0].length, match: r, startIndex: s, transformer: e.transformersByTag[r[1]] };
|
|
@@ -116,7 +116,7 @@ function E(t) {
|
|
|
116
116
|
return N(t) && !t.hasFormat("code");
|
|
117
117
|
}
|
|
118
118
|
function x(t, e, r) {
|
|
119
|
-
let s = ht(t, e), n = function(o, a) {
|
|
119
|
+
let s = ht(t, e), n = (function(o, a) {
|
|
120
120
|
const u = o;
|
|
121
121
|
let c, i, g, l;
|
|
122
122
|
for (const d of a) {
|
|
@@ -127,28 +127,28 @@ function x(t, e, r) {
|
|
|
127
127
|
h !== !1 && (c === void 0 || i === void 0 || m < c && h > i) && (c = m, i = h, g = d, l = p);
|
|
128
128
|
}
|
|
129
129
|
return c === void 0 || i === void 0 || g === void 0 || l === void 0 ? null : { endIndex: i, match: l, startIndex: c, transformer: g };
|
|
130
|
-
}(t, r);
|
|
130
|
+
})(t, r);
|
|
131
131
|
if (s && n && (s.startIndex <= n.startIndex && s.endIndex >= n.endIndex ? n = null : s = null), s) {
|
|
132
|
-
const o = function(a, u, c, i, g) {
|
|
132
|
+
const o = (function(a, u, c, i, g) {
|
|
133
133
|
const l = a.getTextContent();
|
|
134
134
|
let d, p, m;
|
|
135
135
|
if (g[0] === l ? d = a : u === 0 ? [d, p] = a.splitText(c) : [m, d, p] = a.splitText(u, c), d.setTextContent(g[2]), i) for (const h of i.format) d.hasFormat(h) || d.toggleFormat(h);
|
|
136
136
|
return { nodeAfter: p, nodeBefore: m, transformedNode: d };
|
|
137
|
-
}(t, s.startIndex, s.endIndex, s.transformer, s.match);
|
|
137
|
+
})(t, s.startIndex, s.endIndex, s.transformer, s.match);
|
|
138
138
|
E(o.nodeAfter) && x(o.nodeAfter, e, r), E(o.nodeBefore) && x(o.nodeBefore, e, r), E(o.transformedNode) && x(o.transformedNode, e, r);
|
|
139
139
|
} else if (n) {
|
|
140
|
-
const o = function(a, u, c, i, g) {
|
|
140
|
+
const o = (function(a, u, c, i, g) {
|
|
141
141
|
let l, d, p;
|
|
142
142
|
return u === 0 ? [l, d] = a.splitText(c) : [p, l, d] = a.splitText(u, c), i.replace ? { nodeAfter: d, nodeBefore: p, transformedNode: i.replace(l, g) || void 0 } : null;
|
|
143
|
-
}(t, n.startIndex, n.endIndex, n.transformer, n.match);
|
|
143
|
+
})(t, n.startIndex, n.endIndex, n.transformer, n.match);
|
|
144
144
|
if (!o) return;
|
|
145
145
|
E(o.nodeAfter) && x(o.nodeAfter, e, r), E(o.nodeBefore) && x(o.nodeBefore, e, r), E(o.transformedNode) && x(o.transformedNode, e, r);
|
|
146
146
|
}
|
|
147
|
-
const f = t.getTextContent().replace(/\\([*_`~\\])/g, "$1").replace(/&#(\d+);/g, (o, a) => String.fromCodePoint(a));
|
|
147
|
+
const f = t.getTextContent().replace(/\\([*_`~\\])/g, "$1").replace(/&#(\d+);/g, ((o, a) => String.fromCodePoint(a)));
|
|
148
148
|
t.setTextContent(f);
|
|
149
149
|
}
|
|
150
150
|
function xt(t, e = !1) {
|
|
151
|
-
const r = H(t), s = function(n) {
|
|
151
|
+
const r = H(t), s = (function(n) {
|
|
152
152
|
const f = {}, o = {}, a = [], u = "(?<![\\\\])";
|
|
153
153
|
for (const c of n) {
|
|
154
154
|
const { tag: i } = c;
|
|
@@ -157,7 +157,7 @@ function xt(t, e = !1) {
|
|
|
157
157
|
a.push(g), i.length === 1 ? o[i] = new RegExp(`(?<![\\\\${g}])(${g})((\\\\${g})?.*?[^${g}\\s](\\\\${g})?)((?<!\\\\)|(?<=\\\\\\\\))(${g})(?![\\\\${g}])`) : o[i] = new RegExp(`(?<!\\\\)(${g})((\\\\${g})?.*?[^\\s](\\\\${g})?)((?<!\\\\)|(?<=\\\\\\\\))(${g})(?!\\\\)`);
|
|
158
158
|
}
|
|
159
159
|
return { fullMatchRegExpByTag: o, openTagsRegExp: new RegExp(`${u}(${a.join("|")})`, "g"), transformersByTag: f };
|
|
160
|
-
}(r.textFormat);
|
|
160
|
+
})(r.textFormat);
|
|
161
161
|
return (n, f) => {
|
|
162
162
|
const o = n.split(`
|
|
163
163
|
`), a = o.length, u = f || O();
|
|
@@ -241,11 +241,11 @@ const U = /^(\s*)(\d{1,})\.\s/, z = /^(\s*)[-*+]\s/, Nt = /^(\s*)(?:-\s)?\s?(\[(
|
|
|
241
241
|
c.append(a), e.replace(c);
|
|
242
242
|
}
|
|
243
243
|
a.append(...r), n || a.select(0, 0);
|
|
244
|
-
const u = function(c) {
|
|
244
|
+
const u = (function(c) {
|
|
245
245
|
const i = c.match(/\t/g), g = c.match(/ /g);
|
|
246
246
|
let l = 0;
|
|
247
247
|
return i && (l += i.length), g && (l += Math.floor(g.length / 4)), l;
|
|
248
|
-
}(s[1]);
|
|
248
|
+
})(s[1]);
|
|
249
249
|
u && a.setIndent(u);
|
|
250
250
|
}, A = (t, e, r) => {
|
|
251
251
|
const s = [], n = t.getChildren();
|
|
@@ -267,10 +267,10 @@ const U = /^(\s*)(\d{1,})\.\s/, z = /^(\s*)[-*+]\s/, Nt = /^(\s*)(?:-\s)?\s?(\[(
|
|
|
267
267
|
if (!ot(t)) return null;
|
|
268
268
|
const r = Number(t.getTag().slice(1));
|
|
269
269
|
return "#".repeat(r) + " " + e(t);
|
|
270
|
-
}, regExp: _, replace: X((t) => {
|
|
270
|
+
}, regExp: _, replace: X(((t) => {
|
|
271
271
|
const e = "h" + t[1].length;
|
|
272
272
|
return st(e);
|
|
273
|
-
}), type: "element" }, Ct = { dependencies: [nt], export: (t, e) => {
|
|
273
|
+
})), type: "element" }, Ct = { dependencies: [nt], export: (t, e) => {
|
|
274
274
|
if (!L(t)) return null;
|
|
275
275
|
const r = e(t).split(`
|
|
276
276
|
`), s = [];
|
|
@@ -302,7 +302,7 @@ const U = /^(\s*)(\d{1,})\.\s/, z = /^(\s*)[-*+]\s/, Nt = /^(\s*)(?:-\s)?\s?(\[(
|
|
|
302
302
|
}
|
|
303
303
|
const u = y(a);
|
|
304
304
|
o.append(u), t.append(o);
|
|
305
|
-
} else e && X((u) => R(u ? u[1] : void 0))(t, e, r, f);
|
|
305
|
+
} else e && X(((u) => R(u ? u[1] : void 0)))(t, e, r, f);
|
|
306
306
|
}, type: "multiline-element" }, bt = { dependencies: [w, P], export: (t, e) => $(t) ? A(t, e, 0) : null, regExp: z, replace: W("bullet"), type: "element" }, _t = { dependencies: [w, P], export: (t, e) => $(t) ? A(t, e, 0) : null, regExp: U, replace: W("number"), type: "element" }, yt = { format: ["code"], tag: "`", type: "text-format" }, At = { format: ["highlight"], tag: "==", type: "text-format" }, vt = { format: ["bold", "italic"], tag: "***", type: "text-format" }, Ft = { format: ["bold", "italic"], intraword: !1, tag: "___", type: "text-format" }, Mt = { format: ["bold"], tag: "**", type: "text-format" }, Ot = { format: ["bold"], intraword: !1, tag: "__", type: "text-format" }, Dt = { format: ["strikethrough"], tag: "~~", type: "text-format" }, Bt = { format: ["italic"], tag: "*", type: "text-format" }, kt = { format: ["italic"], intraword: !1, tag: "_", type: "text-format" }, wt = { dependencies: [ct], export: (t, e, r) => {
|
|
307
307
|
if (!ut(t) || dt(t)) return null;
|
|
308
308
|
const s = t.getTitle(), n = e(t);
|
|
@@ -312,7 +312,7 @@ const U = /^(\s*)(\d{1,})\.\s/, z = /^(\s*)[-*+]\s/, Nt = /^(\s*)(?:-\s)?\s?(\[(
|
|
|
312
312
|
return o.setFormat(t.getFormat()), f.append(o), t.replace(f), o;
|
|
313
313
|
}, trigger: ")", type: "text-match" }, Pt = [It, Ct, bt, _t], jt = [Lt], Ht = [yt, vt, Ft, Mt, Ot, At, Bt, kt, Dt], Ut = [wt], q = [...Pt, ...jt, ...Ht, ...Ut];
|
|
314
314
|
function qt(t, e = q, r, s = !1, n = !1) {
|
|
315
|
-
const f = s ? t : function(o, a = !1) {
|
|
315
|
+
const f = s ? t : (function(o, a = !1) {
|
|
316
316
|
const u = o.split(`
|
|
317
317
|
`);
|
|
318
318
|
let c = !1;
|
|
@@ -323,12 +323,12 @@ function qt(t, e = q, r, s = !1, n = !1) {
|
|
|
323
323
|
}
|
|
324
324
|
return i.join(`
|
|
325
325
|
`);
|
|
326
|
-
}(t, n);
|
|
326
|
+
})(t, n);
|
|
327
327
|
return xt(e, s)(f, r);
|
|
328
328
|
}
|
|
329
329
|
function Jt(t = q, e, r = !1) {
|
|
330
|
-
return function(n, f = !1) {
|
|
331
|
-
const o = H(n), a = [...o.multilineElement, ...o.element], u = !f, c = o.textFormat.filter((i) => i.format.length === 1).sort((i, g) => Number(i.format.includes("code")) - Number(g.format.includes("code")));
|
|
330
|
+
return (function(n, f = !1) {
|
|
331
|
+
const o = H(n), a = [...o.multilineElement, ...o.element], u = !f, c = o.textFormat.filter(((i) => i.format.length === 1)).sort(((i, g) => Number(i.format.includes("code")) - Number(g.format.includes("code"))));
|
|
332
332
|
return (i) => {
|
|
333
333
|
const g = [], l = (i || O()).getChildren();
|
|
334
334
|
for (let d = 0; d < l.length; d++) {
|
|
@@ -339,7 +339,7 @@ function Jt(t = q, e, r = !1) {
|
|
|
339
339
|
return g.join(`
|
|
340
340
|
`);
|
|
341
341
|
};
|
|
342
|
-
}(t, r)(e);
|
|
342
|
+
})(t, r)(e);
|
|
343
343
|
}
|
|
344
344
|
export {
|
|
345
345
|
qt as $convertFromMarkdownString,
|
|
@@ -4,7 +4,7 @@ import { useLexicalComposerContext as o } from "./LexicalComposerContext.prod.js
|
|
|
4
4
|
import { useEffect as r } from "react";
|
|
5
5
|
function n() {
|
|
6
6
|
const [e] = o();
|
|
7
|
-
return r(() => t(e), [e]), null;
|
|
7
|
+
return r((() => t(e)), [e]), null;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
10
|
n as CheckListPlugin
|
|
@@ -5,12 +5,12 @@ import { useLayoutEffect as m, useEffect as f } from "react";
|
|
|
5
5
|
const p = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? m : f;
|
|
6
6
|
function w({ onClear: e }) {
|
|
7
7
|
const [o] = r();
|
|
8
|
-
return p(() => o.registerCommand(i, (C) => (o.update(() => {
|
|
8
|
+
return p((() => o.registerCommand(i, ((C) => (o.update((() => {
|
|
9
9
|
if (e == null) {
|
|
10
10
|
const n = s(), t = l(), a = u();
|
|
11
11
|
n.clear(), n.append(a), t !== null && a.select(), c(t) && (t.format = 0);
|
|
12
12
|
} else e();
|
|
13
|
-
}), !0), d), [o, e]), null;
|
|
13
|
+
})), !0)), d)), [o, e]), null;
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
16
|
w as ClearEditorPlugin
|
|
@@ -5,11 +5,11 @@ import { useMemo as L, useLayoutEffect as R, useEffect as $ } from "react";
|
|
|
5
5
|
import { jsx as P } from "react/jsx-runtime";
|
|
6
6
|
const u = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, T = u ? R : $, i = { tag: y };
|
|
7
7
|
function N({ initialConfig: r, children: p }) {
|
|
8
|
-
const c = L(() => {
|
|
8
|
+
const c = L((() => {
|
|
9
9
|
const { theme: o, namespace: s, nodes: f, onError: E, editorState: h, html: b } = r, g = v(null, o), a = x({ editable: r.editable, html: b, namespace: s, nodes: f, onError: (e) => E(e, a), theme: o });
|
|
10
|
-
return function(e, t) {
|
|
10
|
+
return (function(e, t) {
|
|
11
11
|
if (t !== null) {
|
|
12
|
-
if (t === void 0) e.update(() => {
|
|
12
|
+
if (t === void 0) e.update((() => {
|
|
13
13
|
const n = m();
|
|
14
14
|
if (n.isEmpty()) {
|
|
15
15
|
const l = C();
|
|
@@ -17,7 +17,7 @@ function N({ initialConfig: r, children: p }) {
|
|
|
17
17
|
const d = u ? document.activeElement : null;
|
|
18
18
|
(S() !== null || d !== null && d === e.getRootElement()) && l.select();
|
|
19
19
|
}
|
|
20
|
-
}, i);
|
|
20
|
+
}), i);
|
|
21
21
|
else if (t !== null) switch (typeof t) {
|
|
22
22
|
case "string": {
|
|
23
23
|
const n = e.parseEditorState(t);
|
|
@@ -28,17 +28,17 @@ function N({ initialConfig: r, children: p }) {
|
|
|
28
28
|
e.setEditorState(t, i);
|
|
29
29
|
break;
|
|
30
30
|
case "function":
|
|
31
|
-
e.update(() => {
|
|
31
|
+
e.update((() => {
|
|
32
32
|
m().isEmpty() && t(e);
|
|
33
|
-
}, i);
|
|
33
|
+
}), i);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
}(a, h), [a, g];
|
|
37
|
-
}, []);
|
|
38
|
-
return T(() => {
|
|
36
|
+
})(a, h), [a, g];
|
|
37
|
+
}), []);
|
|
38
|
+
return T((() => {
|
|
39
39
|
const o = r.editable, [s] = c;
|
|
40
40
|
s.setEditable(o === void 0 || o);
|
|
41
|
-
}, []), P(w.Provider, { value: c, children: p });
|
|
41
|
+
}), []), P(w.Provider, { value: c, children: p });
|
|
42
42
|
}
|
|
43
43
|
export {
|
|
44
44
|
N as LexicalComposer
|
|
@@ -8,12 +8,12 @@ function u(n, e) {
|
|
|
8
8
|
}
|
|
9
9
|
function f() {
|
|
10
10
|
const n = l(a);
|
|
11
|
-
return n == null && function(e, ...r) {
|
|
11
|
+
return n == null && (function(e, ...r) {
|
|
12
12
|
const o = new URL("https://lexical.dev/docs/error"), t = new URLSearchParams();
|
|
13
13
|
t.append("code", e);
|
|
14
14
|
for (const i of r) t.append("v", i);
|
|
15
15
|
throw o.search = t.toString(), Error(`Minified Lexical error #${e}; visit ${o.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
16
|
-
}(8), n;
|
|
16
|
+
})(8), n;
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
19
|
a as LexicalComposerContext,
|
|
@@ -6,18 +6,18 @@ import { $canShowPlaceholderCurry as $ } from "../text/LexicalText.prod.js";
|
|
|
6
6
|
import { mergeRegister as G } from "../utils/LexicalUtils.prod.js";
|
|
7
7
|
const L = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? h : F;
|
|
8
8
|
function H({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: l, ariaControls: d, ariaDescribedBy: n, ariaErrorMessage: o, ariaExpanded: a, ariaInvalid: u, ariaLabel: f, ariaLabelledBy: s, ariaMultiline: b, ariaOwns: k, ariaRequired: D, autoCapitalize: R, className: j, id: q, role: E = "textbox", spellCheck: z = !0, style: A, tabIndex: I, "data-testid": M, ...S }, v) {
|
|
9
|
-
const [r, w] = p(e.isEditable()), x = O((i) => {
|
|
9
|
+
const [r, w] = p(e.isEditable()), x = O(((i) => {
|
|
10
10
|
i && i.ownerDocument && i.ownerDocument.defaultView ? e.setRootElement(i) : e.setRootElement(null);
|
|
11
|
-
}, [e]), B = P(() => /* @__PURE__ */ function(...i) {
|
|
11
|
+
}), [e]), B = P((() => /* @__PURE__ */ (function(...i) {
|
|
12
12
|
return (g) => {
|
|
13
|
-
i.forEach((c) => {
|
|
13
|
+
i.forEach(((c) => {
|
|
14
14
|
typeof c == "function" ? c(g) : c != null && (c.current = g);
|
|
15
|
-
});
|
|
15
|
+
}));
|
|
16
16
|
};
|
|
17
|
-
}(v, x), [x, v]);
|
|
18
|
-
return L(() => (w(e.isEditable()), e.registerEditableListener((i) => {
|
|
17
|
+
})(v, x)), [x, v]);
|
|
18
|
+
return L((() => (w(e.isEditable()), e.registerEditableListener(((i) => {
|
|
19
19
|
w(i);
|
|
20
|
-
})), [e]), m("div", { "aria-activedescendant": r ? t : void 0, "aria-autocomplete": r ? l : "none", "aria-controls": r ? d : void 0, "aria-describedby": n, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": r && E === "combobox" ? !!a : void 0, ...u != null ? { "aria-invalid": u } : {}, "aria-label": f, "aria-labelledby": s, "aria-multiline": b, "aria-owns": r ? k : void 0, "aria-readonly": !r || void 0, "aria-required": D, autoCapitalize: R, className: j, contentEditable: r, "data-testid": M, id: q, ref: B, role: r ? E : void 0, spellCheck: z, style: A, tabIndex: I, ...S });
|
|
20
|
+
})))), [e]), m("div", { "aria-activedescendant": r ? t : void 0, "aria-autocomplete": r ? l : "none", "aria-controls": r ? d : void 0, "aria-describedby": n, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": r && E === "combobox" ? !!a : void 0, ...u != null ? { "aria-invalid": u } : {}, "aria-label": f, "aria-labelledby": s, "aria-multiline": b, "aria-owns": r ? k : void 0, "aria-readonly": !r || void 0, "aria-required": D, autoCapitalize: R, className: j, contentEditable: r, "data-testid": M, id: q, ref: B, role: r ? E : void 0, spellCheck: z, style: A, tabIndex: I, ...S });
|
|
21
21
|
}
|
|
22
22
|
const J = C(H);
|
|
23
23
|
function y(e) {
|
|
@@ -29,23 +29,23 @@ function K(e, t) {
|
|
|
29
29
|
return U(V, { children: [m(J, { editor: n, ...d, ref: t }), l != null && m(Q, { editor: n, content: l })] });
|
|
30
30
|
}
|
|
31
31
|
function Q({ content: e, editor: t }) {
|
|
32
|
-
const l = function(a) {
|
|
33
|
-
const [u, f] = p(() => y(a));
|
|
34
|
-
return L(() => {
|
|
32
|
+
const l = (function(a) {
|
|
33
|
+
const [u, f] = p((() => y(a)));
|
|
34
|
+
return L((() => {
|
|
35
35
|
function s() {
|
|
36
36
|
const b = y(a);
|
|
37
37
|
f(b);
|
|
38
38
|
}
|
|
39
|
-
return s(), G(a.registerUpdateListener(() => {
|
|
39
|
+
return s(), G(a.registerUpdateListener((() => {
|
|
40
40
|
s();
|
|
41
|
-
}), a.registerEditableListener(() => {
|
|
41
|
+
})), a.registerEditableListener((() => {
|
|
42
42
|
s();
|
|
43
|
-
}));
|
|
44
|
-
}, [a]), u;
|
|
45
|
-
}(t), [d, n] = p(t.isEditable());
|
|
46
|
-
if (h(() => (n(t.isEditable()), t.registerEditableListener((a) => {
|
|
43
|
+
})));
|
|
44
|
+
}), [a]), u;
|
|
45
|
+
})(t), [d, n] = p(t.isEditable());
|
|
46
|
+
if (h((() => (n(t.isEditable()), t.registerEditableListener(((a) => {
|
|
47
47
|
n(a);
|
|
48
|
-
})), [t]), !l) return null;
|
|
48
|
+
})))), [t]), !l) return null;
|
|
49
49
|
let o = null;
|
|
50
50
|
return typeof e == "function" ? o = e(d) : e !== null && (o = e), o === null ? null : m("div", { "aria-hidden": !0, children: o });
|
|
51
51
|
}
|