laif-ds 0.2.21 → 0.2.23
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/index4.js +5 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-select.js +92 -109
- 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/textarea.js +18 -15
- package/dist/index.d.ts +6 -7
- 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/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-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-scroll-area/dist/index.js +2 -2
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +2 -2
- 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/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/index2.js +3 -3
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- 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/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/vfile-message/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
- 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/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
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { isAction as B } from "../../../redux/dist/redux.js";
|
|
3
3
|
import { isPlainObject as ee } from "../../../redux/dist/redux.js";
|
|
4
|
-
import { produce as
|
|
4
|
+
import { produce as j, isDraftable as M, isDraft as I } from "../../../immer/dist/immer.js";
|
|
5
5
|
import { current as te, freeze as ne } from "../../../immer/dist/immer.js";
|
|
6
|
-
function
|
|
7
|
-
function
|
|
6
|
+
function S(e, t) {
|
|
7
|
+
function i(...r) {
|
|
8
8
|
if (t) {
|
|
9
|
-
let
|
|
10
|
-
if (!
|
|
11
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
9
|
+
let c = t(...r);
|
|
10
|
+
if (!c)
|
|
11
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(0) : "prepareAction did not return an object");
|
|
12
12
|
return {
|
|
13
13
|
type: e,
|
|
14
|
-
payload:
|
|
15
|
-
..."meta" in
|
|
16
|
-
meta:
|
|
14
|
+
payload: c.payload,
|
|
15
|
+
..."meta" in c && {
|
|
16
|
+
meta: c.meta
|
|
17
17
|
},
|
|
18
|
-
..."error" in
|
|
19
|
-
error:
|
|
18
|
+
..."error" in c && {
|
|
19
|
+
error: c.error
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
}
|
|
@@ -25,90 +25,98 @@ function V(e, t) {
|
|
|
25
25
|
payload: r[0]
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return i.toString = () => `${e}`, i.type = e, i.match = (r) => B(r) && r.type === e, i;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
30
|
+
function T(e) {
|
|
31
|
+
return M(e) ? j(e, () => {
|
|
32
32
|
}) : e;
|
|
33
33
|
}
|
|
34
|
-
function m(e, t,
|
|
35
|
-
return e.has(t) ? e.get(t) : e.set(t,
|
|
34
|
+
function m(e, t, i) {
|
|
35
|
+
return e.has(t) ? e.get(t) : e.set(t, i(t)).get(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const t = {},
|
|
37
|
+
function k(e) {
|
|
38
|
+
const t = {}, i = [];
|
|
39
39
|
let r;
|
|
40
|
-
const
|
|
41
|
-
addCase(
|
|
40
|
+
const c = {
|
|
41
|
+
addCase(n, o) {
|
|
42
42
|
if (process.env.NODE_ENV !== "production") {
|
|
43
|
-
if (
|
|
44
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
43
|
+
if (i.length > 0)
|
|
44
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
|
|
45
45
|
if (r)
|
|
46
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
46
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
|
|
47
47
|
}
|
|
48
|
-
const l = typeof
|
|
48
|
+
const l = typeof n == "string" ? n : n.type;
|
|
49
49
|
if (!l)
|
|
50
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
50
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(28) : "`builder.addCase` cannot be called with an empty action type");
|
|
51
51
|
if (l in t)
|
|
52
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
53
|
-
return t[l] =
|
|
52
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);
|
|
53
|
+
return t[l] = o, c;
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
addAsyncThunk(n, o) {
|
|
56
56
|
if (process.env.NODE_ENV !== "production" && r)
|
|
57
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
58
|
-
return o.push({
|
|
59
|
-
matcher:
|
|
60
|
-
reducer:
|
|
61
|
-
}),
|
|
57
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
|
|
58
|
+
return o.pending && (t[n.pending.type] = o.pending), o.rejected && (t[n.rejected.type] = o.rejected), o.fulfilled && (t[n.fulfilled.type] = o.fulfilled), o.settled && i.push({
|
|
59
|
+
matcher: n.settled,
|
|
60
|
+
reducer: o.settled
|
|
61
|
+
}), c;
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
addMatcher(n, o) {
|
|
64
64
|
if (process.env.NODE_ENV !== "production" && r)
|
|
65
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
66
|
-
return
|
|
65
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
|
|
66
|
+
return i.push({
|
|
67
|
+
matcher: n,
|
|
68
|
+
reducer: o
|
|
69
|
+
}), c;
|
|
70
|
+
},
|
|
71
|
+
addDefaultCase(n) {
|
|
72
|
+
if (process.env.NODE_ENV !== "production" && r)
|
|
73
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(31) : "`builder.addDefaultCase` can only be called once");
|
|
74
|
+
return r = n, c;
|
|
67
75
|
}
|
|
68
76
|
};
|
|
69
|
-
return e(
|
|
77
|
+
return e(c), [t, i, r];
|
|
70
78
|
}
|
|
71
|
-
function
|
|
79
|
+
function A(e) {
|
|
72
80
|
return typeof e == "function";
|
|
73
81
|
}
|
|
74
|
-
function
|
|
82
|
+
function $(e, t) {
|
|
75
83
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
76
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
77
|
-
let [
|
|
78
|
-
if (
|
|
79
|
-
|
|
84
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
85
|
+
let [i, r, c] = k(t), n;
|
|
86
|
+
if (A(e))
|
|
87
|
+
n = () => T(e());
|
|
80
88
|
else {
|
|
81
|
-
const l =
|
|
82
|
-
|
|
89
|
+
const l = T(e);
|
|
90
|
+
n = () => l;
|
|
83
91
|
}
|
|
84
|
-
function
|
|
85
|
-
let h = [
|
|
86
|
-
matcher:
|
|
87
|
-
}) =>
|
|
88
|
-
reducer:
|
|
89
|
-
}) =>
|
|
90
|
-
return h.filter((
|
|
92
|
+
function o(l = n(), u) {
|
|
93
|
+
let h = [i[u.type], ...r.filter(({
|
|
94
|
+
matcher: d
|
|
95
|
+
}) => d(u)).map(({
|
|
96
|
+
reducer: d
|
|
97
|
+
}) => d)];
|
|
98
|
+
return h.filter((d) => !!d).length === 0 && (h = [c]), h.reduce((d, N) => {
|
|
91
99
|
if (N)
|
|
92
|
-
if (I(
|
|
93
|
-
const b = N(
|
|
94
|
-
return b === void 0 ?
|
|
100
|
+
if (I(d)) {
|
|
101
|
+
const b = N(d, u);
|
|
102
|
+
return b === void 0 ? d : b;
|
|
95
103
|
} else {
|
|
96
|
-
if (
|
|
97
|
-
return
|
|
104
|
+
if (M(d))
|
|
105
|
+
return j(d, (D) => N(D, u));
|
|
98
106
|
{
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
-
if (
|
|
102
|
-
return
|
|
107
|
+
const D = N(d, u);
|
|
108
|
+
if (D === void 0) {
|
|
109
|
+
if (d === null)
|
|
110
|
+
return d;
|
|
103
111
|
throw Error("A case reducer on a non-draftable value must not return undefined");
|
|
104
112
|
}
|
|
105
|
-
return
|
|
113
|
+
return D;
|
|
106
114
|
}
|
|
107
115
|
}
|
|
108
|
-
return
|
|
116
|
+
return d;
|
|
109
117
|
}, l);
|
|
110
118
|
}
|
|
111
|
-
return
|
|
119
|
+
return o.getInitialState = n, o;
|
|
112
120
|
}
|
|
113
121
|
var z = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
114
122
|
function Y(e, t) {
|
|
@@ -120,145 +128,145 @@ function q({
|
|
|
120
128
|
const t = e?.asyncThunk?.[z];
|
|
121
129
|
return function(r) {
|
|
122
130
|
const {
|
|
123
|
-
name:
|
|
124
|
-
reducerPath:
|
|
131
|
+
name: c,
|
|
132
|
+
reducerPath: n = c
|
|
125
133
|
} = r;
|
|
126
|
-
if (!
|
|
127
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
134
|
+
if (!c)
|
|
135
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(11) : "`name` is a required option for createSlice");
|
|
128
136
|
typeof process < "u" && process.env.NODE_ENV === "development" && r.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
|
|
129
|
-
const
|
|
137
|
+
const o = (typeof r.reducers == "function" ? r.reducers(U()) : r.reducers) || {}, l = Object.keys(o), u = {
|
|
130
138
|
sliceCaseReducersByName: {},
|
|
131
139
|
sliceCaseReducersByType: {},
|
|
132
140
|
actionCreators: {},
|
|
133
141
|
sliceMatchers: []
|
|
134
142
|
}, h = {
|
|
135
|
-
addCase(
|
|
136
|
-
const
|
|
137
|
-
if (!
|
|
138
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
139
|
-
if (
|
|
140
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
141
|
-
return
|
|
143
|
+
addCase(a, s) {
|
|
144
|
+
const p = typeof a == "string" ? a : a.type;
|
|
145
|
+
if (!p)
|
|
146
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(12) : "`context.addCase` cannot be called with an empty action type");
|
|
147
|
+
if (p in u.sliceCaseReducersByType)
|
|
148
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + p);
|
|
149
|
+
return u.sliceCaseReducersByType[p] = s, h;
|
|
142
150
|
},
|
|
143
|
-
addMatcher(
|
|
144
|
-
return
|
|
145
|
-
matcher:
|
|
146
|
-
reducer:
|
|
151
|
+
addMatcher(a, s) {
|
|
152
|
+
return u.sliceMatchers.push({
|
|
153
|
+
matcher: a,
|
|
154
|
+
reducer: s
|
|
147
155
|
}), h;
|
|
148
156
|
},
|
|
149
|
-
exposeAction(
|
|
150
|
-
return
|
|
157
|
+
exposeAction(a, s) {
|
|
158
|
+
return u.actionCreators[a] = s, h;
|
|
151
159
|
},
|
|
152
|
-
exposeCaseReducer(
|
|
153
|
-
return
|
|
160
|
+
exposeCaseReducer(a, s) {
|
|
161
|
+
return u.sliceCaseReducersByName[a] = s, h;
|
|
154
162
|
}
|
|
155
163
|
};
|
|
156
|
-
l.forEach((
|
|
157
|
-
const
|
|
158
|
-
reducerName:
|
|
159
|
-
type: Y(
|
|
164
|
+
l.forEach((a) => {
|
|
165
|
+
const s = o[a], p = {
|
|
166
|
+
reducerName: a,
|
|
167
|
+
type: Y(c, a),
|
|
160
168
|
createNotation: typeof r.reducers == "function"
|
|
161
169
|
};
|
|
162
|
-
G(
|
|
170
|
+
G(s) ? J(p, s, h, t) : W(p, s, h);
|
|
163
171
|
});
|
|
164
|
-
function
|
|
172
|
+
function d() {
|
|
165
173
|
if (process.env.NODE_ENV !== "production" && typeof r.extraReducers == "object")
|
|
166
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
167
|
-
const [
|
|
168
|
-
...
|
|
169
|
-
...
|
|
174
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
175
|
+
const [a = {}, s = [], p = void 0] = typeof r.extraReducers == "function" ? k(r.extraReducers) : [r.extraReducers], w = {
|
|
176
|
+
...a,
|
|
177
|
+
...u.sliceCaseReducersByType
|
|
170
178
|
};
|
|
171
|
-
return
|
|
172
|
-
for (let E in
|
|
173
|
-
|
|
174
|
-
for (let E of
|
|
175
|
-
|
|
176
|
-
for (let E of
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
return $(r.initialState, (y) => {
|
|
180
|
+
for (let E in w)
|
|
181
|
+
y.addCase(E, w[E]);
|
|
182
|
+
for (let E of u.sliceMatchers)
|
|
183
|
+
y.addMatcher(E.matcher, E.reducer);
|
|
184
|
+
for (let E of s)
|
|
185
|
+
y.addMatcher(E.matcher, E.reducer);
|
|
186
|
+
p && y.addDefaultCase(p);
|
|
179
187
|
});
|
|
180
188
|
}
|
|
181
|
-
const N = (
|
|
182
|
-
let
|
|
183
|
-
function
|
|
184
|
-
return
|
|
189
|
+
const N = (a) => a, D = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new WeakMap();
|
|
190
|
+
let C;
|
|
191
|
+
function g(a, s) {
|
|
192
|
+
return C || (C = d()), C(a, s);
|
|
185
193
|
}
|
|
186
194
|
function _() {
|
|
187
|
-
return
|
|
195
|
+
return C || (C = d()), C.getInitialState();
|
|
188
196
|
}
|
|
189
|
-
function
|
|
190
|
-
function
|
|
191
|
-
let E =
|
|
197
|
+
function R(a, s = !1) {
|
|
198
|
+
function p(y) {
|
|
199
|
+
let E = y[a];
|
|
192
200
|
if (typeof E > "u") {
|
|
193
|
-
if (
|
|
194
|
-
E = m(b,
|
|
201
|
+
if (s)
|
|
202
|
+
E = m(b, p, _);
|
|
195
203
|
else if (process.env.NODE_ENV !== "production")
|
|
196
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
204
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
197
205
|
}
|
|
198
206
|
return E;
|
|
199
207
|
}
|
|
200
|
-
function y
|
|
201
|
-
const E = m(
|
|
202
|
-
return m(E,
|
|
203
|
-
const
|
|
204
|
-
for (const [
|
|
205
|
-
|
|
206
|
-
return
|
|
208
|
+
function w(y = N) {
|
|
209
|
+
const E = m(D, s, () => /* @__PURE__ */ new WeakMap());
|
|
210
|
+
return m(E, y, () => {
|
|
211
|
+
const V = {};
|
|
212
|
+
for (const [x, P] of Object.entries(r.selectors ?? {}))
|
|
213
|
+
V[x] = F(P, y, () => m(b, y, _), s);
|
|
214
|
+
return V;
|
|
207
215
|
});
|
|
208
216
|
}
|
|
209
217
|
return {
|
|
210
|
-
reducerPath:
|
|
211
|
-
getSelectors:
|
|
218
|
+
reducerPath: a,
|
|
219
|
+
getSelectors: w,
|
|
212
220
|
get selectors() {
|
|
213
|
-
return
|
|
221
|
+
return w(p);
|
|
214
222
|
},
|
|
215
|
-
selectSlice:
|
|
223
|
+
selectSlice: p
|
|
216
224
|
};
|
|
217
225
|
}
|
|
218
226
|
const O = {
|
|
219
|
-
name:
|
|
220
|
-
reducer:
|
|
221
|
-
actions:
|
|
222
|
-
caseReducers:
|
|
227
|
+
name: c,
|
|
228
|
+
reducer: g,
|
|
229
|
+
actions: u.actionCreators,
|
|
230
|
+
caseReducers: u.sliceCaseReducersByName,
|
|
223
231
|
getInitialState: _,
|
|
224
|
-
...
|
|
225
|
-
injectInto(
|
|
226
|
-
reducerPath:
|
|
227
|
-
...
|
|
232
|
+
...R(n),
|
|
233
|
+
injectInto(a, {
|
|
234
|
+
reducerPath: s,
|
|
235
|
+
...p
|
|
228
236
|
} = {}) {
|
|
229
|
-
const
|
|
230
|
-
return
|
|
231
|
-
reducerPath:
|
|
232
|
-
reducer:
|
|
233
|
-
},
|
|
237
|
+
const w = s ?? n;
|
|
238
|
+
return a.inject({
|
|
239
|
+
reducerPath: w,
|
|
240
|
+
reducer: g
|
|
241
|
+
}, p), {
|
|
234
242
|
...O,
|
|
235
|
-
...
|
|
243
|
+
...R(w, !0)
|
|
236
244
|
};
|
|
237
245
|
}
|
|
238
246
|
};
|
|
239
247
|
return O;
|
|
240
248
|
};
|
|
241
249
|
}
|
|
242
|
-
function F(e, t,
|
|
243
|
-
function n
|
|
244
|
-
let l = t(
|
|
250
|
+
function F(e, t, i, r) {
|
|
251
|
+
function c(n, ...o) {
|
|
252
|
+
let l = t(n);
|
|
245
253
|
if (typeof l > "u") {
|
|
246
254
|
if (r)
|
|
247
|
-
l =
|
|
255
|
+
l = i();
|
|
248
256
|
else if (process.env.NODE_ENV !== "production")
|
|
249
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
257
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(16) : "selectState returned undefined for an uninjected slice reducer");
|
|
250
258
|
}
|
|
251
|
-
return e(l, ...
|
|
259
|
+
return e(l, ...o);
|
|
252
260
|
}
|
|
253
|
-
return
|
|
261
|
+
return c.unwrapped = e, c;
|
|
254
262
|
}
|
|
255
263
|
var Q = /* @__PURE__ */ q();
|
|
256
264
|
function U() {
|
|
257
|
-
function e(t,
|
|
265
|
+
function e(t, i) {
|
|
258
266
|
return {
|
|
259
267
|
_reducerDefinitionType: "asyncThunk",
|
|
260
268
|
payloadCreator: t,
|
|
261
|
-
...
|
|
269
|
+
...i
|
|
262
270
|
};
|
|
263
271
|
}
|
|
264
272
|
return e.withTypes = () => e, {
|
|
@@ -266,19 +274,19 @@ function U() {
|
|
|
266
274
|
return Object.assign({
|
|
267
275
|
// hack so the wrapping function has the same name as the original
|
|
268
276
|
// we need to create a wrapper so the `reducerDefinitionType` is not assigned to the original
|
|
269
|
-
[t.name](...
|
|
270
|
-
return t(...
|
|
277
|
+
[t.name](...i) {
|
|
278
|
+
return t(...i);
|
|
271
279
|
}
|
|
272
280
|
}[t.name], {
|
|
273
281
|
_reducerDefinitionType: "reducer"
|
|
274
282
|
/* reducer */
|
|
275
283
|
});
|
|
276
284
|
},
|
|
277
|
-
preparedReducer(t,
|
|
285
|
+
preparedReducer(t, i) {
|
|
278
286
|
return {
|
|
279
287
|
_reducerDefinitionType: "reducerWithPrepare",
|
|
280
288
|
prepare: t,
|
|
281
|
-
reducer:
|
|
289
|
+
reducer: i
|
|
282
290
|
};
|
|
283
291
|
},
|
|
284
292
|
asyncThunk: e
|
|
@@ -287,16 +295,16 @@ function U() {
|
|
|
287
295
|
function W({
|
|
288
296
|
type: e,
|
|
289
297
|
reducerName: t,
|
|
290
|
-
createNotation:
|
|
291
|
-
}, r,
|
|
292
|
-
let
|
|
298
|
+
createNotation: i
|
|
299
|
+
}, r, c) {
|
|
300
|
+
let n, o;
|
|
293
301
|
if ("reducer" in r) {
|
|
294
|
-
if (
|
|
295
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
296
|
-
|
|
302
|
+
if (i && !H(r))
|
|
303
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
304
|
+
n = r.reducer, o = r.prepare;
|
|
297
305
|
} else
|
|
298
|
-
|
|
299
|
-
|
|
306
|
+
n = r;
|
|
307
|
+
c.addCase(e, n).exposeCaseReducer(t, n).exposeAction(t, o ? S(e, o) : S(e));
|
|
300
308
|
}
|
|
301
309
|
function G(e) {
|
|
302
310
|
return e._reducerDefinitionType === "asyncThunk";
|
|
@@ -307,37 +315,37 @@ function H(e) {
|
|
|
307
315
|
function J({
|
|
308
316
|
type: e,
|
|
309
317
|
reducerName: t
|
|
310
|
-
},
|
|
311
|
-
if (!
|
|
312
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
318
|
+
}, i, r, c) {
|
|
319
|
+
if (!c)
|
|
320
|
+
throw new Error(process.env.NODE_ENV === "production" ? f(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
|
|
313
321
|
const {
|
|
314
|
-
payloadCreator:
|
|
315
|
-
fulfilled:
|
|
322
|
+
payloadCreator: n,
|
|
323
|
+
fulfilled: o,
|
|
316
324
|
pending: l,
|
|
317
|
-
rejected:
|
|
325
|
+
rejected: u,
|
|
318
326
|
settled: h,
|
|
319
|
-
options:
|
|
320
|
-
} =
|
|
321
|
-
r.exposeAction(t, N),
|
|
322
|
-
fulfilled:
|
|
327
|
+
options: d
|
|
328
|
+
} = i, N = c(e, n, d);
|
|
329
|
+
r.exposeAction(t, N), o && r.addCase(N.fulfilled, o), l && r.addCase(N.pending, l), u && r.addCase(N.rejected, u), h && r.addMatcher(N.settled, h), r.exposeCaseReducer(t, {
|
|
330
|
+
fulfilled: o || v,
|
|
323
331
|
pending: l || v,
|
|
324
|
-
rejected:
|
|
332
|
+
rejected: u || v,
|
|
325
333
|
settled: h || v
|
|
326
334
|
});
|
|
327
335
|
}
|
|
328
336
|
function v() {
|
|
329
337
|
}
|
|
330
|
-
function
|
|
338
|
+
function f(e) {
|
|
331
339
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
332
340
|
}
|
|
333
341
|
export {
|
|
334
342
|
q as buildCreateSlice,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
343
|
+
S as createAction,
|
|
344
|
+
j as createNextState,
|
|
345
|
+
$ as createReducer,
|
|
338
346
|
Q as createSlice,
|
|
339
347
|
te as current,
|
|
340
|
-
|
|
348
|
+
f as formatProdErrorMessage,
|
|
341
349
|
ne as freeze,
|
|
342
350
|
B as isAction,
|
|
343
351
|
I as isDraft,
|