@seamly/web-ui 25.5.0 → 25.5.1
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/build/dist/lib/index.debug.js +256 -136
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +3 -3
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +274 -155
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +3 -3
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +97 -53
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/package.json +22 -22
- package/src/javascripts/core/api/asyncapi.types.ts +1 -2
- package/src/javascripts/core/domains/store/store.types.ts +1 -4
- package/src/javascripts/core/domains/translations/components/options-button.tsx +2 -1
- package/src/javascripts/core/domains/translations/components/options-dialog/index.tsx +3 -0
- package/src/javascripts/core/ui/components/conversation/conversation.tsx +1 -2
- package/src/javascripts/core/ui/components/options/options-frame.tsx +3 -1
- package/src/javascripts/core/ui/hooks/use-click-outside.ts +6 -2
- package/src/javascripts/style-guide/states.ts +32 -18
|
@@ -2757,17 +2757,17 @@ __webpack_require__(8237);
|
|
|
2757
2757
|
/******/ });
|
|
2758
2758
|
/************************************************************************/
|
|
2759
2759
|
/******/ // The module cache
|
|
2760
|
-
/******/
|
|
2760
|
+
/******/ const __webpack_module_cache__ = {};
|
|
2761
2761
|
/******/
|
|
2762
2762
|
/******/ // The require function
|
|
2763
2763
|
/******/ function __webpack_require__(moduleId) {
|
|
2764
2764
|
/******/ // Check if module is in cache
|
|
2765
|
-
/******/
|
|
2765
|
+
/******/ const cachedModule = __webpack_module_cache__[moduleId];
|
|
2766
2766
|
/******/ if (cachedModule !== undefined) {
|
|
2767
2767
|
/******/ return cachedModule.exports;
|
|
2768
2768
|
/******/ }
|
|
2769
2769
|
/******/ // Create a new module (and put it into the cache)
|
|
2770
|
-
/******/
|
|
2770
|
+
/******/ const module = __webpack_module_cache__[moduleId] = {
|
|
2771
2771
|
/******/ // no module.id needed
|
|
2772
2772
|
/******/ // no module.loaded needed
|
|
2773
2773
|
/******/ exports: {}
|
|
@@ -2783,11 +2783,26 @@ __webpack_require__(8237);
|
|
|
2783
2783
|
/************************************************************************/
|
|
2784
2784
|
/******/ /* webpack/runtime/define property getters */
|
|
2785
2785
|
/******/ (() => {
|
|
2786
|
-
/******/ // define getter functions for harmony exports
|
|
2786
|
+
/******/ // define getter/value functions for harmony exports
|
|
2787
2787
|
/******/ __webpack_require__.d = (exports, definition) => {
|
|
2788
|
-
/******/
|
|
2789
|
-
/******/
|
|
2790
|
-
/******/
|
|
2788
|
+
/******/ if(Array.isArray(definition)) {
|
|
2789
|
+
/******/ var i = 0;
|
|
2790
|
+
/******/ while(i < definition.length) {
|
|
2791
|
+
/******/ var key = definition[i++];
|
|
2792
|
+
/******/ var binding = definition[i++];
|
|
2793
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
2794
|
+
/******/ if(binding === 0) {
|
|
2795
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
2796
|
+
/******/ } else {
|
|
2797
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
2798
|
+
/******/ }
|
|
2799
|
+
/******/ } else if(binding === 0) { i++; }
|
|
2800
|
+
/******/ }
|
|
2801
|
+
/******/ } else {
|
|
2802
|
+
/******/ for(var key in definition) {
|
|
2803
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
2804
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
2805
|
+
/******/ }
|
|
2791
2806
|
/******/ }
|
|
2792
2807
|
/******/ }
|
|
2793
2808
|
/******/ };
|
|
@@ -2814,7 +2829,7 @@ __webpack_require__(8237);
|
|
|
2814
2829
|
/******/ (() => {
|
|
2815
2830
|
/******/ // define __esModule on exports
|
|
2816
2831
|
/******/ __webpack_require__.r = (exports) => {
|
|
2817
|
-
/******/ if(
|
|
2832
|
+
/******/ if(Symbol.toStringTag) {
|
|
2818
2833
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2819
2834
|
/******/ }
|
|
2820
2835
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -2822,7 +2837,7 @@ __webpack_require__(8237);
|
|
|
2822
2837
|
/******/ })();
|
|
2823
2838
|
/******/
|
|
2824
2839
|
/************************************************************************/
|
|
2825
|
-
|
|
2840
|
+
let __webpack_exports__ = {};
|
|
2826
2841
|
// ESM COMPAT FLAG
|
|
2827
2842
|
__webpack_require__.r(__webpack_exports__);
|
|
2828
2843
|
|
|
@@ -3732,7 +3747,7 @@ const deletedFileDownloadAgentMessage = {
|
|
|
3732
3747
|
id: (0,web_ui_namespaceObject.randomId)()
|
|
3733
3748
|
}
|
|
3734
3749
|
};
|
|
3735
|
-
const
|
|
3750
|
+
const userImageMessage = {
|
|
3736
3751
|
type: 'message',
|
|
3737
3752
|
payload: {
|
|
3738
3753
|
...messageBodyUploadImage,
|
|
@@ -3741,16 +3756,26 @@ const fileDownloadUserMessageImage = {
|
|
|
3741
3756
|
id: (0,web_ui_namespaceObject.randomId)()
|
|
3742
3757
|
}
|
|
3743
3758
|
};
|
|
3744
|
-
sessionStorage.setItem(`image-${
|
|
3745
|
-
const
|
|
3746
|
-
|
|
3759
|
+
sessionStorage.setItem(`image-${userImageMessage.payload.id}`, userImageMessage.payload.body.url);
|
|
3760
|
+
const fileDownloadUserMessage = {
|
|
3761
|
+
type: 'message',
|
|
3747
3762
|
payload: {
|
|
3748
|
-
...
|
|
3749
|
-
|
|
3763
|
+
...messageBodyUploadUrl,
|
|
3764
|
+
fromClient: true,
|
|
3765
|
+
participant: 'client',
|
|
3766
|
+
id: (0,web_ui_namespaceObject.randomId)()
|
|
3767
|
+
}
|
|
3768
|
+
};
|
|
3769
|
+
const deletedFileDownloadUserMessage = {
|
|
3770
|
+
...fileDownloadUserMessage,
|
|
3771
|
+
payload: {
|
|
3772
|
+
...fileDownloadUserMessage.payload,
|
|
3750
3773
|
body: {
|
|
3751
|
-
...
|
|
3752
|
-
|
|
3753
|
-
|
|
3774
|
+
...fileDownloadUserMessage.payload.body,
|
|
3775
|
+
isDeleted: true,
|
|
3776
|
+
url: undefined
|
|
3777
|
+
},
|
|
3778
|
+
id: (0,web_ui_namespaceObject.randomId)()
|
|
3754
3779
|
}
|
|
3755
3780
|
};
|
|
3756
3781
|
const uploadBusy = {
|
|
@@ -3958,7 +3983,7 @@ const standardState = {
|
|
|
3958
3983
|
...choicePromptMessage.payload,
|
|
3959
3984
|
id: `${choicePromptMessage.payload.id}XXX`
|
|
3960
3985
|
}
|
|
3961
|
-
}, longTextMessage, participantTransferMessage, userMessage, textMessageBoldItalicUnderline, userMessageWithLinks, newTopicDivider, imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox,
|
|
3986
|
+
}, longTextMessage, participantTransferMessage, userMessage, textMessageBoldItalicUnderline, userMessageWithLinks, newTopicDivider, imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, userImageMessage, fileDownloadUserMessage, deletedFileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage]
|
|
3962
3987
|
},
|
|
3963
3988
|
userMessages: {
|
|
3964
3989
|
category: categoryKeys.messages,
|
|
@@ -3966,7 +3991,7 @@ const standardState = {
|
|
|
3966
3991
|
description: '',
|
|
3967
3992
|
...baseState,
|
|
3968
3993
|
participantInfo,
|
|
3969
|
-
events: [userMessage, userMessageLong,
|
|
3994
|
+
events: [userMessage, userMessageLong, userImageMessage, fileDownloadUserMessage, deletedFileDownloadUserMessage, userMessageWithLinks]
|
|
3970
3995
|
},
|
|
3971
3996
|
withParticipants: {
|
|
3972
3997
|
category: categoryKeys.messages,
|
|
@@ -4003,7 +4028,7 @@ const standardState = {
|
|
|
4003
4028
|
description: '',
|
|
4004
4029
|
...baseState,
|
|
4005
4030
|
participantInfo,
|
|
4006
|
-
events: [imageMessage, videoMessage, imageMessageWithLightbox, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage,
|
|
4031
|
+
events: [imageMessage, videoMessage, imageMessageWithLightbox, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userImageMessage, fileDownloadUserMessage, deletedFileDownloadUserMessage]
|
|
4007
4032
|
},
|
|
4008
4033
|
systemMessages: {
|
|
4009
4034
|
category: categoryKeys.messages,
|
|
@@ -4914,7 +4939,7 @@ const standardState = {
|
|
|
4914
4939
|
...choicePromptMessage.payload,
|
|
4915
4940
|
id: `${choicePromptMessage.payload.id}XXX`
|
|
4916
4941
|
}
|
|
4917
|
-
}, longTextMessage, userMessage, textMessageBoldItalicUnderline, newTopicDivider, newTranslationDividerStartTwo, newTranslationDividerStop, imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox,
|
|
4942
|
+
}, longTextMessage, userMessage, textMessageBoldItalicUnderline, newTopicDivider, newTranslationDividerStartTwo, newTranslationDividerStop, imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, userImageMessage, fileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage, newTranslationDividerStop].map(addTranslationData),
|
|
4918
4943
|
translations: {
|
|
4919
4944
|
...translationsSlice,
|
|
4920
4945
|
currentLocale: 'nl',
|
|
@@ -4928,7 +4953,7 @@ const standardState = {
|
|
|
4928
4953
|
id: `${choicePromptMessage.payload.id}XXX`
|
|
4929
4954
|
}
|
|
4930
4955
|
}, longTextMessage, userMessage, textMessageBoldItalicUnderline, newTopicDivider].map(p => p.payload.id),
|
|
4931
|
-
[newTranslationDividerStartTwo.payload.id]: [imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox,
|
|
4956
|
+
[newTranslationDividerStartTwo.payload.id]: [imageMessage, fileDownloadAgentMessageById, fileDownloadAgentMessageByUrl, fileDownloadAgentMessageImage, deletedFileDownloadAgentMessage, userMessageLong, videoMessage, textMessageWithLinks, textMessageWithLongLink, imageMessageWithLightbox, userImageMessage, fileDownloadUserMessage, textMesageWithBullets, textMesageWithOrderedList, choicePromptMessage].map(p => p.payload.id)
|
|
4932
4957
|
},
|
|
4933
4958
|
languages: [{
|
|
4934
4959
|
locale: 'nl',
|
|
@@ -5918,7 +5943,7 @@ function createAction(type, prepareAction) {
|
|
|
5918
5943
|
}
|
|
5919
5944
|
actionCreator.toString = () => `${type}`;
|
|
5920
5945
|
actionCreator.type = type;
|
|
5921
|
-
actionCreator.match = (action) =>
|
|
5946
|
+
actionCreator.match = (action) => redux_toolkit_modern_isAction(action) && action.type === type;
|
|
5922
5947
|
return actionCreator;
|
|
5923
5948
|
}
|
|
5924
5949
|
function isActionCreator(action) {
|
|
@@ -5936,7 +5961,7 @@ function isValidKey(key) {
|
|
|
5936
5961
|
function getMessage(type) {
|
|
5937
5962
|
const splitType = type ? `${type}`.split("/") : [];
|
|
5938
5963
|
const actionName = splitType[splitType.length - 1] || "actionCreator";
|
|
5939
|
-
return `Detected an action creator with type "${type || "unknown"}" being dispatched.
|
|
5964
|
+
return `Detected an action creator with type "${type || "unknown"}" being dispatched.
|
|
5940
5965
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${actionName}())\` instead of \`dispatch(${actionName})\`. This is necessary even if the action has no payload.`;
|
|
5941
5966
|
}
|
|
5942
5967
|
function createActionCreatorInvariantMiddleware(options = {}) {
|
|
@@ -6187,6 +6212,20 @@ var createQueueWithTimer = (timeout) => {
|
|
|
6187
6212
|
setTimeout(notify, timeout);
|
|
6188
6213
|
};
|
|
6189
6214
|
};
|
|
6215
|
+
var createRafWithFallbackTimer = (raf, timeout) => {
|
|
6216
|
+
return (notify) => {
|
|
6217
|
+
let called = false;
|
|
6218
|
+
const callback = () => {
|
|
6219
|
+
if (called) return;
|
|
6220
|
+
called = true;
|
|
6221
|
+
cancelAnimationFrame(rafId);
|
|
6222
|
+
clearTimeout(timerId);
|
|
6223
|
+
notify();
|
|
6224
|
+
};
|
|
6225
|
+
const rafId = raf(callback);
|
|
6226
|
+
const timerId = setTimeout(callback, timeout);
|
|
6227
|
+
};
|
|
6228
|
+
};
|
|
6190
6229
|
var autoBatchEnhancer = (options = {
|
|
6191
6230
|
type: "raf"
|
|
6192
6231
|
}) => (next) => (...args) => {
|
|
@@ -6197,7 +6236,7 @@ var autoBatchEnhancer = (options = {
|
|
|
6197
6236
|
const listeners = /* @__PURE__ */ new Set();
|
|
6198
6237
|
const queueCallback = options.type === "tick" ? queueMicrotask : options.type === "raf" ? (
|
|
6199
6238
|
// requestAnimationFrame won't exist in SSR environments. Fall back to a vague approximation just to keep from erroring.
|
|
6200
|
-
typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10)
|
|
6239
|
+
typeof window !== "undefined" && window.requestAnimationFrame ? createRafWithFallbackTimer(window.requestAnimationFrame, 100) : createQueueWithTimer(10)
|
|
6201
6240
|
) : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
|
|
6202
6241
|
const notifyListeners = () => {
|
|
6203
6242
|
notificationQueued = false;
|
|
@@ -6500,12 +6539,14 @@ var nanoid = (size = 21) => {
|
|
|
6500
6539
|
};
|
|
6501
6540
|
|
|
6502
6541
|
// src/createAsyncThunk.ts
|
|
6503
|
-
var commonProperties = ["name", "message", "stack", "code"];
|
|
6542
|
+
var commonProperties = (/* unused pure expression or super */ null && (["name", "message", "stack", "code"]));
|
|
6504
6543
|
var RejectWithValue = class {
|
|
6505
6544
|
constructor(payload, meta) {
|
|
6506
6545
|
this.payload = payload;
|
|
6507
6546
|
this.meta = meta;
|
|
6508
6547
|
}
|
|
6548
|
+
payload;
|
|
6549
|
+
meta;
|
|
6509
6550
|
/*
|
|
6510
6551
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
6511
6552
|
does not exist at runtime
|
|
@@ -6517,6 +6558,8 @@ var FulfillWithMeta = class {
|
|
|
6517
6558
|
this.payload = payload;
|
|
6518
6559
|
this.meta = meta;
|
|
6519
6560
|
}
|
|
6561
|
+
payload;
|
|
6562
|
+
meta;
|
|
6520
6563
|
/*
|
|
6521
6564
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
6522
6565
|
does not exist at runtime
|
|
@@ -6538,7 +6581,7 @@ var miniSerializeError = (value) => {
|
|
|
6538
6581
|
};
|
|
6539
6582
|
};
|
|
6540
6583
|
var externalAbortMessage = "External signal was aborted";
|
|
6541
|
-
var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
6584
|
+
var createAsyncThunk = /* @__PURE__ */ (/* unused pure expression or super */ null && ((() => {
|
|
6542
6585
|
function createAsyncThunk2(typePrefix, payloadCreator, options) {
|
|
6543
6586
|
const fulfilled = createAction(typePrefix + "/fulfilled", (payload, requestId, arg, meta) => ({
|
|
6544
6587
|
payload,
|
|
@@ -6592,7 +6635,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
6592
6635
|
});
|
|
6593
6636
|
}
|
|
6594
6637
|
}
|
|
6595
|
-
const promise = async function() {
|
|
6638
|
+
const promise = (async function() {
|
|
6596
6639
|
let finalAction;
|
|
6597
6640
|
try {
|
|
6598
6641
|
let conditionResult = options?.condition?.(arg, {
|
|
@@ -6633,12 +6676,12 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
6633
6676
|
requestId,
|
|
6634
6677
|
signal: abortController.signal,
|
|
6635
6678
|
abort,
|
|
6636
|
-
rejectWithValue: (value, meta) => {
|
|
6679
|
+
rejectWithValue: ((value, meta) => {
|
|
6637
6680
|
return new RejectWithValue(value, meta);
|
|
6638
|
-
},
|
|
6639
|
-
fulfillWithValue: (value, meta) => {
|
|
6681
|
+
}),
|
|
6682
|
+
fulfillWithValue: ((value, meta) => {
|
|
6640
6683
|
return new FulfillWithMeta(value, meta);
|
|
6641
|
-
}
|
|
6684
|
+
})
|
|
6642
6685
|
})).then((result) => {
|
|
6643
6686
|
if (result instanceof RejectWithValue) {
|
|
6644
6687
|
throw result;
|
|
@@ -6660,7 +6703,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
6660
6703
|
dispatch(finalAction);
|
|
6661
6704
|
}
|
|
6662
6705
|
return finalAction;
|
|
6663
|
-
}();
|
|
6706
|
+
})();
|
|
6664
6707
|
return Object.assign(promise, {
|
|
6665
6708
|
abort,
|
|
6666
6709
|
requestId,
|
|
@@ -6681,7 +6724,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
6681
6724
|
}
|
|
6682
6725
|
createAsyncThunk2.withTypes = () => createAsyncThunk2;
|
|
6683
6726
|
return createAsyncThunk2;
|
|
6684
|
-
})();
|
|
6727
|
+
})()));
|
|
6685
6728
|
function unwrapResult(action) {
|
|
6686
6729
|
if (action.meta && action.meta.rejectedWithValue) {
|
|
6687
6730
|
throw action.payload;
|
|
@@ -6696,16 +6739,16 @@ function isThenable(value) {
|
|
|
6696
6739
|
}
|
|
6697
6740
|
|
|
6698
6741
|
// src/createSlice.ts
|
|
6699
|
-
var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
6700
|
-
var asyncThunkCreator = {
|
|
6742
|
+
var asyncThunkSymbol = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("rtk-slice-createasyncthunk")));
|
|
6743
|
+
var asyncThunkCreator = (/* unused pure expression or super */ null && ({
|
|
6701
6744
|
[asyncThunkSymbol]: createAsyncThunk
|
|
6702
|
-
};
|
|
6703
|
-
var ReducerType = /* @__PURE__ */ ((ReducerType2) => {
|
|
6745
|
+
}));
|
|
6746
|
+
var ReducerType = /* @__PURE__ */ (/* unused pure expression or super */ null && (((ReducerType2) => {
|
|
6704
6747
|
ReducerType2["reducer"] = "reducer";
|
|
6705
6748
|
ReducerType2["reducerWithPrepare"] = "reducerWithPrepare";
|
|
6706
6749
|
ReducerType2["asyncThunk"] = "asyncThunk";
|
|
6707
6750
|
return ReducerType2;
|
|
6708
|
-
})(ReducerType || {});
|
|
6751
|
+
})(ReducerType || {})));
|
|
6709
6752
|
function getType(slice, actionKey) {
|
|
6710
6753
|
return `${slice}/${actionKey}`;
|
|
6711
6754
|
}
|
|
@@ -7414,6 +7457,7 @@ var TaskAbortError = class {
|
|
|
7414
7457
|
this.code = code;
|
|
7415
7458
|
this.message = `${task} ${cancelled} (reason: ${code})`;
|
|
7416
7459
|
}
|
|
7460
|
+
code;
|
|
7417
7461
|
name = "TaskAbortError";
|
|
7418
7462
|
message;
|
|
7419
7463
|
};
|
|
@@ -7493,7 +7537,7 @@ var createDelay = (signal) => {
|
|
|
7493
7537
|
var {
|
|
7494
7538
|
assign: redux_toolkit_modern_assign
|
|
7495
7539
|
} = Object;
|
|
7496
|
-
var INTERNAL_NIL_TOKEN = {};
|
|
7540
|
+
var INTERNAL_NIL_TOKEN = (/* unused pure expression or super */ null && ({}));
|
|
7497
7541
|
var alm = "listenerMiddleware";
|
|
7498
7542
|
var createFork = (parentAbortSignal, parentBlockingPromises) => {
|
|
7499
7543
|
const linkControllers = (controller) => addAbortSignalListener(parentAbortSignal, () => controller.abort(parentAbortSignal.reason));
|
|
@@ -7553,7 +7597,7 @@ var createTakePattern = (startListening, signal) => {
|
|
|
7553
7597
|
unsubscribe();
|
|
7554
7598
|
}
|
|
7555
7599
|
};
|
|
7556
|
-
return (predicate, timeout) => catchRejection(take(predicate, timeout));
|
|
7600
|
+
return ((predicate, timeout) => catchRejection(take(predicate, timeout)));
|
|
7557
7601
|
};
|
|
7558
7602
|
var getListenerEntryPropsFrom = (options) => {
|
|
7559
7603
|
let {
|
|
@@ -7581,7 +7625,7 @@ var getListenerEntryPropsFrom = (options) => {
|
|
|
7581
7625
|
effect
|
|
7582
7626
|
};
|
|
7583
7627
|
};
|
|
7584
|
-
var createListenerEntry = /* @__PURE__ */ redux_toolkit_modern_assign((options) => {
|
|
7628
|
+
var createListenerEntry = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign((options) => {
|
|
7585
7629
|
const {
|
|
7586
7630
|
type,
|
|
7587
7631
|
predicate,
|
|
@@ -7600,7 +7644,7 @@ var createListenerEntry = /* @__PURE__ */ redux_toolkit_modern_assign((options)
|
|
|
7600
7644
|
return entry;
|
|
7601
7645
|
}, {
|
|
7602
7646
|
withTypes: () => createListenerEntry
|
|
7603
|
-
});
|
|
7647
|
+
})));
|
|
7604
7648
|
var findListenerEntry = (listenerMap, options) => {
|
|
7605
7649
|
const {
|
|
7606
7650
|
type,
|
|
@@ -7634,13 +7678,13 @@ var safelyNotifyError = (errorHandler, errorToNotify, errorInfo) => {
|
|
|
7634
7678
|
}, 0);
|
|
7635
7679
|
}
|
|
7636
7680
|
};
|
|
7637
|
-
var addListener = /* @__PURE__ */ redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/add`), {
|
|
7681
|
+
var addListener = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/add`), {
|
|
7638
7682
|
withTypes: () => addListener
|
|
7639
|
-
});
|
|
7683
|
+
})));
|
|
7640
7684
|
var clearAllListeners = /* @__PURE__ */ (/* unused pure expression or super */ null && (createAction(`${alm}/removeAll`)));
|
|
7641
|
-
var removeListener = /* @__PURE__ */ redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
|
|
7685
|
+
var removeListener = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
|
|
7642
7686
|
withTypes: () => removeListener
|
|
7643
|
-
});
|
|
7687
|
+
})));
|
|
7644
7688
|
var defaultErrorHandler = (...args) => {
|
|
7645
7689
|
console.error(`${alm}/error`, ...args);
|
|
7646
7690
|
};
|
|
@@ -7674,10 +7718,10 @@ var createListenerMiddleware = (middlewareOptions = {}) => {
|
|
|
7674
7718
|
}
|
|
7675
7719
|
};
|
|
7676
7720
|
};
|
|
7677
|
-
const startListening = (options) => {
|
|
7721
|
+
const startListening = ((options) => {
|
|
7678
7722
|
const entry = findListenerEntry(listenerMap, options) ?? createListenerEntry(options);
|
|
7679
7723
|
return insertEntry(entry);
|
|
7680
|
-
};
|
|
7724
|
+
});
|
|
7681
7725
|
redux_toolkit_modern_assign(startListening, {
|
|
7682
7726
|
withTypes: () => startListening
|
|
7683
7727
|
});
|
|
@@ -7852,9 +7896,9 @@ var createDynamicMiddleware = () => {
|
|
|
7852
7896
|
|
|
7853
7897
|
var isSliceLike = (maybeSliceLike) => "reducerPath" in maybeSliceLike && typeof maybeSliceLike.reducerPath === "string";
|
|
7854
7898
|
var getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOrMap) ? [[sliceOrMap.reducerPath, sliceOrMap.reducer]] : Object.entries(sliceOrMap));
|
|
7855
|
-
var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
|
|
7899
|
+
var ORIGINAL_STATE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("rtk-state-proxy-original")));
|
|
7856
7900
|
var isStateProxy = (value) => !!value && !!value[ORIGINAL_STATE];
|
|
7857
|
-
var stateProxyMap = /* @__PURE__ */ new WeakMap();
|
|
7901
|
+
var stateProxyMap = /* @__PURE__ */ (/* unused pure expression or super */ null && (new WeakMap()));
|
|
7858
7902
|
var createStateProxy = (state, reducerMap, initialStateCache) => getOrInsertComputed(stateProxyMap, state, () => new Proxy(state, {
|
|
7859
7903
|
get: (target, prop, receiver) => {
|
|
7860
7904
|
if (prop === ORIGINAL_STATE) return target;
|
|
@@ -7883,7 +7927,7 @@ var original = (state) => {
|
|
|
7883
7927
|
}
|
|
7884
7928
|
return state[ORIGINAL_STATE];
|
|
7885
7929
|
};
|
|
7886
|
-
var emptyObject = {};
|
|
7930
|
+
var emptyObject = (/* unused pure expression or super */ null && ({}));
|
|
7887
7931
|
var noopReducer = (state = emptyObject) => state;
|
|
7888
7932
|
function combineSlices(...slices) {
|
|
7889
7933
|
const reducerMap = Object.fromEntries(getReducers(slices));
|