@wellesley/store 1.0.13 → 1.0.16

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.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1 +1 @@
1
- import{createSlice as v,createSelector as u,combineSlices as ee,configureStore as te}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{api as G}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@latest";const se={data:null,isPending:!1,isSuccess:!1},ne=v({name:"userNoHTML",initialState:se,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),C={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},ie=v({name:"auth",initialState:C,reducers:{logout:()=>C,setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),x={data:null,isError:!1,isPending:!1,isSuccess:!1},re=v({name:"user",initialState:x,reducers:{reset:e=>{Object.assign(e,x)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var s;null!=(s=e.data)&&s.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var s;return null==(s=e.data)?void 0:s.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var s;return t===(null==(s=e.data)?void 0:s.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}});function oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B,A={};function ae(){return B||(B=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],s=[],n=[],i=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const s=t.indexOf(e);t.splice(s,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,s);const r=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const s=t.indexOf(e);t.splice(s,1)}};e.subscribeActionBefore=(e,t)=>r({action:e,listener:t},n),e.subscribeActionAfter=(e,t)=>r({action:e,listener:t},i),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{n.length=0},e.unsubscribeAfter=()=>{s.length=0},e.unsubscribeActionsAfter=()=>{i.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const a=(e,t)=>{const s=e.filter((({action:e})=>e!==t));e.length=0,e.concat(s)};e.unsubscribeActionBefore=e=>{a(n,e)},e.unsubscribeActionAfter=e=>{a(i,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let s=t.length-1;s>=0;s--){const n=t[s];"object"==typeof e&&n(e)}},l=(e,t)=>{for(let s=t.length-1;s>=0;s--){const n=t[s];"object"==typeof e&&n.action===e.type&&n.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),l(o,n);const r=e(o);return c(o,s),l(o,i),r},e.default=e.subscribeActionMiddleware}(A)),A}var ce=ae();const ue=oe(ce),k=e=>e,N=u(k,(e=>e.data)),le=u(k,(e=>e.error)),de=u(k,(e=>e.isPending)),w=u(N,(e=>null==e?void 0:e.configuration)),O=u(w,(e=>({IMAGE:null==e?void 0:e.media_attachments.image_extensions,VIDEO:null==e?void 0:e.media_attachments.video_extensions,AUDIO:null==e?void 0:e.media_attachments.audio_extensions,DOCUMENT:null==e?void 0:e.media_attachments.doc_extensions}))),pe=u([O,(e,t)=>t],((e,t)=>e[t])),_e=u(O,(e=>Object.keys(e).reduce(((t,s)=>[...t,...e[s]||[]]),[]))),he=u(w,(e=>(null==e?void 0:e.posts.max_media_attachments)||0)),ge=u(w,(e=>(null==e?void 0:e.posts.max_characters)||0)),me=u(w,(e=>(null==e?void 0:e.posts.max_pins)||0)),fe=u(N,(e=>null==e?void 0:e.rules)),be={data:null,isPending:!1},Se=v({name:"instanceInfo",initialState:be,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:N,selectPostPinsLimit:me,selectInstanceInfoError:le,selectInstanceInfoPending:de,selectPostSizeLimit:ge,selectConfiguration:w,selectAttachmentsLimit:he,selectSupportedExtensions:O,selectFullExtensionsList:_e,selectPlatformRules:fe,selectSupportedExtensionsFor:pe,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),ye={data:null,isPending:!1,isSuccess:!1},ve=v({name:"profileSettings",initialState:ye,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),S="8.48.0",l=globalThis;function T(e,t,s){const n=l,i=n.__SENTRY__=n.__SENTRY__||{},o=i[S]=i[S]||{};return o[e]||(o[e]=t())}const J=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,we="Sentry Logger ",R=["debug","info","warn","error","log","assert","trace"],U={};function Ee(e){if(!("console"in l))return e();const t=l.console,s={},n=Object.keys(U);n.forEach((e=>{const n=U[e];s[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=s[e]}))}}function Pe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return J?R.forEach((s=>{t[s]=(...t)=>{e&&Ee((()=>{l.console[s](`${we}[${s}]:`,...t)}))}})):R.forEach((e=>{t[e]=()=>{}})),t}const P=T("logger",Pe);function D(){return M(l),l}function M(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||S,t[S]=t[S]||{}}const Ae=Object.prototype.toString;function Ie(e,t){return Ae.call(e)===`[object ${t}]`}function Le(e){return Ie(e,"Object")}function ke(e){return!(!e||!e.then||"function"!=typeof e.then)}function Ne(e,t,s){try{Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0})}catch{J&&P.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const K=1e3;function z(){return Date.now()/K}function Oe(){const{performance:e}=l;if(!e||!e.now)return z;const t=Date.now()-e.now(),s=null==e.timeOrigin?t:e.timeOrigin;return()=>(s+e.now())/K}const Te=Oe();function m(){const e=l,t=e.crypto||e.msCrypto;let s=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(s=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&s())>>e/4).toString(16)))}function De(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Te(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:m()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function j(){return m()}function q(){return m().substring(16)}function W(e,t,s=2){if(!t||"object"!=typeof t||s<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const n={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=W(n[e],t[e],s-1));return n}(()=>{const{performance:e}=l;if(!e||!e.now)return;const t=36e5,s=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+s-n):t,o=i<t,r=e.timing&&e.timing.navigationStart,a="number"==typeof r?Math.abs(r+s-n):t;(o||a<t)&&(i<=a&&e.timeOrigin)})();const I="_sentrySpan";function $(e,t){t?Ne(e,I,t):delete e[I]}function V(e){return e[I]}const Me=100;class F{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:j(),spanId:q()}}clone(){const e=new F;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,$(e,V(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&De(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[s,n]=t instanceof y?[t.getScopeData(),t.getRequestSession()]:Le(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:r,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=s||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},r&&Object.keys(r).length&&(this._user=r),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,$(this,void 0),this._attachments=[],this.setPropagationContext({traceId:j()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const s="number"==typeof t?t:Me;if(s<=0)return this;const n={timestamp:z(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>s?i.slice(-s):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:V(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=W(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:q(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const s=t&&t.event_id?t.event_id:m();if(!this._client)return P.warn("No client configured on scope - will not capture exception!"),s;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:s},this),s}captureMessage(e,t,s){const n=s&&s.event_id?s.event_id:m();if(!this._client)return P.warn("No client configured on scope - will not capture message!"),n;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...s,event_id:n},this),n}captureEvent(e,t){const s=t&&t.event_id?t.event_id:m();return this._client?(this._client.captureEvent(e,{...t,event_id:s},this),s):(P.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const y=F;function Fe(){return T("defaultCurrentScope",(()=>new y))}function Ce(){return T("defaultIsolationScope",(()=>new y))}class xe{constructor(e,t){let s,n;s=e||new y,n=t||new y,this._stack=[{scope:s}],this._isolationScope=n}withScope(e){const t=this._pushScope();let s;try{s=e(t)}catch(e){throw this._popScope(),e}return ke(s)?s.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function f(){const e=M(D());return e.stack=e.stack||new xe(Fe(),Ce())}function Be(e){return f().withScope(e)}function Re(e,t){const s=f();return s.withScope((()=>(s.getStackTop().scope=e,t(e))))}function H(e){return f().withScope((()=>e(f().getIsolationScope())))}function Ue(){return{withIsolationScope:H,withScope:Be,withSetScope:Re,withSetIsolationScope:(e,t)=>H(t),getCurrentScope:()=>f().getScope(),getIsolationScope:()=>f().getIsolationScope()}}function X(e){const t=M(e);return t.acs?t.acs:Ue()}function Q(){return X(D()).getCurrentScope()}function je(){return X(D()).getIsolationScope()}function qe(e,t){return Q().captureException(e,void 0)}function $e(e,t){const s={captureContext:t};return Q().captureMessage(e,void 0,s)}function Ve(e,t){je().setExtra(e,t)}const He=(...e)=>{let t="";for(const s of e){if(s instanceof Error){const e=s;return Ve("exceptionMessage",t),void qe(e)}if("object"!=typeof s)t+=s;else try{t+=" "+JSON.stringify(s)}catch{t+=" "+s}}$e(t)},Ye=()=>"object"!=typeof window,Y=["debug","info","warn","error"],Ge=(e,t)=>{const s=Y.indexOf(e);return Y.indexOf(t)>=s},E=(e,t,s,...n)=>{Ge(t,e)&&console.log(`[${e}] ${s}`,...n)},Je=(e=!Ye()&&(null==window?void 0:window.localStorage.getItem("logger_lvl"))||"warn")=>{let t=e;return{debug:(e,...s)=>E("debug",t,e,...s),info:(e,...s)=>E("info",t,e,...s),warn:(e,...s)=>E("warn",t,e,...s),error:(e,...s)=>(He(e,...s),E("error",t,e,...s)),setLevel:e=>{t=e},getLevel:()=>t}},L=Je(),Z="reduxStore";sessionStorage.setItem("test","11"),localStorage.setItem("test","1");const Ke=e=>{e.subscribe((()=>(e=>{try{const t=JSON.stringify(e);localStorage.setItem(Z,t),L.debug("Saved state to local storage",t)}catch(e){L.warn("persistState save error",e)}})(e.getState())))},ze=()=>{try{const e=localStorage.getItem(Z);return null===e?void 0:JSON.parse(e)}catch(e){return void L.warn("persistState load error",e)}};var We={USER:"teamcity",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/a9beceb47246ff20/apps",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/packages/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.6/bin:/home/teamcity/.rvm/gems/ruby-3.3.6@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.6/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-17-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v20.16.0/bin",TURBO_HASH:"72f6aeaf94d9dd99",NODE:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.13",npm_lifecycle_event:"build",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",npm_command:"run-script",INIT_CWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/store"};const Xe=ee(G,ie,re,ne,Se,ve),Qe=e=>te({devTools:{name:We.APP_NAME},reducer:Xe,preloadedState:{...e,...ze()},middleware:e=>e().concat(G.middleware,ue)});let b;const tt=e=>b||(b=Qe(e),Ke(b),b);export{Qe as createStore,tt as getStore,Xe as rootReducer};
1
+ import{createSlice as v,createSelector as u,combineSlices as ee,configureStore as te}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{api as G}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@latest";const se={data:null,isPending:!1,isSuccess:!1},ne=v({name:"userNoHTML",initialState:se,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),C={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},ie=v({name:"auth",initialState:C,reducers:{logout:()=>C,setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),x={data:null,isError:!1,isPending:!1,isSuccess:!1},re=v({name:"user",initialState:x,reducers:{reset:e=>{Object.assign(e,x)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var s;null!=(s=e.data)&&s.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var s;return null==(s=e.data)?void 0:s.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var s;return t===(null==(s=e.data)?void 0:s.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}});function oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B,A={};function ae(){return B||(B=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],s=[],n=[],i=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const s=t.indexOf(e);t.splice(s,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,s);const r=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const s=t.indexOf(e);t.splice(s,1)}};e.subscribeActionBefore=(e,t)=>r({action:e,listener:t},n),e.subscribeActionAfter=(e,t)=>r({action:e,listener:t},i),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{n.length=0},e.unsubscribeAfter=()=>{s.length=0},e.unsubscribeActionsAfter=()=>{i.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const a=(e,t)=>{const s=e.filter((({action:e})=>e!==t));e.length=0,e.concat(s)};e.unsubscribeActionBefore=e=>{a(n,e)},e.unsubscribeActionAfter=e=>{a(i,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let s=t.length-1;s>=0;s--){const n=t[s];"object"==typeof e&&n(e)}},l=(e,t)=>{for(let s=t.length-1;s>=0;s--){const n=t[s];"object"==typeof e&&n.action===e.type&&n.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),l(o,n);const r=e(o);return c(o,s),l(o,i),r},e.default=e.subscribeActionMiddleware}(A)),A}var ce=ae();const ue=oe(ce),k=e=>e,N=u(k,(e=>e.data)),le=u(k,(e=>e.error)),de=u(k,(e=>e.isPending)),w=u(N,(e=>null==e?void 0:e.configuration)),O=u(w,(e=>({IMAGE:null==e?void 0:e.media_attachments.image_extensions,VIDEO:null==e?void 0:e.media_attachments.video_extensions,AUDIO:null==e?void 0:e.media_attachments.audio_extensions,DOCUMENT:null==e?void 0:e.media_attachments.doc_extensions}))),pe=u([O,(e,t)=>t],((e,t)=>e[t])),_e=u(O,(e=>Object.keys(e).reduce(((t,s)=>[...t,...e[s]||[]]),[]))),he=u(w,(e=>(null==e?void 0:e.posts.max_media_attachments)||0)),ge=u(w,(e=>(null==e?void 0:e.posts.max_characters)||0)),me=u(w,(e=>(null==e?void 0:e.posts.max_pins)||0)),fe=u(N,(e=>null==e?void 0:e.rules)),be={data:null,isPending:!1},Se=v({name:"instanceInfo",initialState:be,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:N,selectPostPinsLimit:me,selectInstanceInfoError:le,selectInstanceInfoPending:de,selectPostSizeLimit:ge,selectConfiguration:w,selectAttachmentsLimit:he,selectSupportedExtensions:O,selectFullExtensionsList:_e,selectPlatformRules:fe,selectSupportedExtensionsFor:pe,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),ye={data:null,isPending:!1,isSuccess:!1},ve=v({name:"profileSettings",initialState:ye,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),S="8.48.0",l=globalThis;function T(e,t,s){const n=l,i=n.__SENTRY__=n.__SENTRY__||{},o=i[S]=i[S]||{};return o[e]||(o[e]=t())}const J=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,we="Sentry Logger ",R=["debug","info","warn","error","log","assert","trace"],U={};function Ee(e){if(!("console"in l))return e();const t=l.console,s={},n=Object.keys(U);n.forEach((e=>{const n=U[e];s[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=s[e]}))}}function Pe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return J?R.forEach((s=>{t[s]=(...t)=>{e&&Ee((()=>{l.console[s](`${we}[${s}]:`,...t)}))}})):R.forEach((e=>{t[e]=()=>{}})),t}const P=T("logger",Pe);function D(){return M(l),l}function M(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||S,t[S]=t[S]||{}}const Ae=Object.prototype.toString;function Ie(e,t){return Ae.call(e)===`[object ${t}]`}function Le(e){return Ie(e,"Object")}function ke(e){return!(!e||!e.then||"function"!=typeof e.then)}function Ne(e,t,s){try{Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0})}catch{J&&P.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const K=1e3;function z(){return Date.now()/K}function Oe(){const{performance:e}=l;if(!e||!e.now)return z;const t=Date.now()-e.now(),s=null==e.timeOrigin?t:e.timeOrigin;return()=>(s+e.now())/K}const Te=Oe();function m(){const e=l,t=e.crypto||e.msCrypto;let s=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(s=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&s())>>e/4).toString(16)))}function De(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Te(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:m()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function j(){return m()}function q(){return m().substring(16)}function W(e,t,s=2){if(!t||"object"!=typeof t||s<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const n={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=W(n[e],t[e],s-1));return n}(()=>{const{performance:e}=l;if(!e||!e.now)return;const t=36e5,s=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+s-n):t,o=i<t,r=e.timing&&e.timing.navigationStart,a="number"==typeof r?Math.abs(r+s-n):t;(o||a<t)&&(i<=a&&e.timeOrigin)})();const I="_sentrySpan";function $(e,t){t?Ne(e,I,t):delete e[I]}function V(e){return e[I]}const Me=100;class F{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:j(),spanId:q()}}clone(){const e=new F;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,$(e,V(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&De(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[s,n]=t instanceof y?[t.getScopeData(),t.getRequestSession()]:Le(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:r,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=s||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},r&&Object.keys(r).length&&(this._user=r),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,$(this,void 0),this._attachments=[],this.setPropagationContext({traceId:j()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const s="number"==typeof t?t:Me;if(s<=0)return this;const n={timestamp:z(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>s?i.slice(-s):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:V(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=W(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:q(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const s=t&&t.event_id?t.event_id:m();if(!this._client)return P.warn("No client configured on scope - will not capture exception!"),s;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:s},this),s}captureMessage(e,t,s){const n=s&&s.event_id?s.event_id:m();if(!this._client)return P.warn("No client configured on scope - will not capture message!"),n;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...s,event_id:n},this),n}captureEvent(e,t){const s=t&&t.event_id?t.event_id:m();return this._client?(this._client.captureEvent(e,{...t,event_id:s},this),s):(P.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const y=F;function Fe(){return T("defaultCurrentScope",(()=>new y))}function Ce(){return T("defaultIsolationScope",(()=>new y))}class xe{constructor(e,t){let s,n;s=e||new y,n=t||new y,this._stack=[{scope:s}],this._isolationScope=n}withScope(e){const t=this._pushScope();let s;try{s=e(t)}catch(e){throw this._popScope(),e}return ke(s)?s.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function f(){const e=M(D());return e.stack=e.stack||new xe(Fe(),Ce())}function Be(e){return f().withScope(e)}function Re(e,t){const s=f();return s.withScope((()=>(s.getStackTop().scope=e,t(e))))}function H(e){return f().withScope((()=>e(f().getIsolationScope())))}function Ue(){return{withIsolationScope:H,withScope:Be,withSetScope:Re,withSetIsolationScope:(e,t)=>H(t),getCurrentScope:()=>f().getScope(),getIsolationScope:()=>f().getIsolationScope()}}function X(e){const t=M(e);return t.acs?t.acs:Ue()}function Q(){return X(D()).getCurrentScope()}function je(){return X(D()).getIsolationScope()}function qe(e,t){return Q().captureException(e,void 0)}function $e(e,t){const s={captureContext:t};return Q().captureMessage(e,void 0,s)}function Ve(e,t){je().setExtra(e,t)}const He=(...e)=>{let t="";for(const s of e){if(s instanceof Error){const e=s;return Ve("exceptionMessage",t),void qe(e)}if("object"!=typeof s)t+=s;else try{t+=" "+JSON.stringify(s)}catch{t+=" "+s}}$e(t)},Ye=()=>"object"!=typeof window,Y=["debug","info","warn","error"],Ge=(e,t)=>{const s=Y.indexOf(e);return Y.indexOf(t)>=s},E=(e,t,s,...n)=>{Ge(t,e)&&console.log(`[${e}] ${s}`,...n)},Je=(e=!Ye()&&(null==window?void 0:window.localStorage.getItem("logger_lvl"))||"warn")=>{let t=e;return{debug:(e,...s)=>E("debug",t,e,...s),info:(e,...s)=>E("info",t,e,...s),warn:(e,...s)=>E("warn",t,e,...s),error:(e,...s)=>(He(e,...s),E("error",t,e,...s)),setLevel:e=>{t=e},getLevel:()=>t}},L=Je(),Z="reduxStore";sessionStorage.setItem("test","1111"),localStorage.setItem("test","1");const Ke=e=>{e.subscribe((()=>(e=>{try{const t=JSON.stringify(e);localStorage.setItem(Z,t),L.debug("Saved state to local storage",t)}catch(e){L.warn("persistState save error",e)}})(e.getState())))},ze=()=>{try{const e=localStorage.getItem(Z);return null===e?void 0:JSON.parse(e)}catch(e){return void L.warn("persistState load error",e)}};var We={USER:"teamcity",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/a9beceb47246ff20/apps",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/packages/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.6/bin:/home/teamcity/.rvm/gems/ruby-3.3.6@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.6/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-17-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v20.16.0/bin",TURBO_HASH:"3c8473552d70e9d6",NODE:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.16",npm_lifecycle_event:"build",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",npm_command:"run-script",INIT_CWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/store"};const Xe=ee(G,ie,re,ne,Se,ve),Qe=e=>te({devTools:{name:We.APP_NAME},reducer:Xe,preloadedState:{...e,...ze()},middleware:e=>e().concat(G.middleware,ue)});let b;const tt=e=>b||(b=Qe(e),Ke(b),b);export{Qe as createStore,tt as getStore,Xe as rootReducer};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.13",
2
+ "version": "1.0.16",
3
3
  "name": "@wellesley/store",
4
4
  "main": "index.mjs",
5
5
  "files": [