@wellesley/instanceinfo 1.0.680 → 1.0.681
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/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createAction as Va,createSelector as tt,createSlice as E0}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{api as S0}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.
|
|
1
|
+
import{createAction as Va,createSelector as tt,createSlice as E0}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{api as S0}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.808";import C0,{forwardRef as Ya,createElement as hi}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{toast as Ma}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.152";const L0=t=>{if("object"!=typeof t||null===t)return!1;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n||null===Object.getPrototypeOf(t)},B0=t=>L0(t)&&"type"in t&&"string"==typeof t.type,P=t=>{const n=n=>({type:t,payload:n});return n.toString=()=>`${t}`,n.type=t,n.match=n=>B0(n)&&n.type===t,n};P("remoteReady"),P("askLogin"),P("reselectUser"),P("requestLogout"),P("setConfirmLeavePage"),P("requestChangePath"),P("wsSubscribe"),P("wsUnSubscribe"),P("hostStoreConnect"),P("remoteLogin"),P("remoteLogout"),P("wsOnMessage"),P("setRouterPath"),P("setDeviceType"),P("setDeviceWidth"),P("setUserError"),P("setUserIsError"),P("setUserPending"),P("setUserSuccess"),P("setUserData"),P("updateAccountData"),P("updateUser"),P("addNotification"),P("markNotification"),P("setNotificationsError"),P("setNotificationsList"),P("setNotificationsPending"),P("setNotificationsTotalCount"),P("setNotificationsUnreadCount"),P("acceptAllFollowRequests"),P("resetNotificationsState"),P("undoNotification");const Ha=P("setInstanceInfo"),pi=P("setInstanceInfoPending"),Qa=P("setInstanceInfoError");P("setPlatformSettings"),P("setProfileSettings"),P("setGroupData"),P("setGroupLoading"),Va("requestMicroFrontendFetch"),Va("sendMicroFrontendFetchResponse");const gi=t=>t,Tn=tt(gi,(t=>t.data)),z0=tt(gi,(t=>t.error)),P0=tt(gi,(t=>t.isPending)),F0=tt(Tn,(t=>null==t?void 0:t.rules)),T0=tt(Tn,(t=>null==t?void 0:t.contact_account)),D0=tt(Tn,(t=>(null==t?void 0:t.stats)&&Object.fromEntries(Object.entries(t.stats).map((([t,n])=>[t,n??0]))))),q0={data:null,isPending:!1},lv=E0({name:"instanceInfo",initialState:q0,reducers:{},extraReducers:t=>{t.addCase(Ha,((t,{payload:n})=>{t.data=n})).addCase(pi,((t,{payload:n})=>{t.isPending=n})).addCase(Qa,((t,{payload:n})=>{t.error=n}))},selectors:{selectInstanceInfo:Tn,selectInstanceInfoError:z0,selectInstanceInfoPending:P0,selectPlatformRules:F0,selectInstanceContacts:T0,selectInstanceStats:D0,selectRegistrations:t=>{var n;return null==(n=t.data)?void 0:n.configuration.registrations}}});var Ua,Fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lt={exports:{}},M0=Lt.exports;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Lodash <https://lodash.com/>
|