@rainbow-robotics/preview-host 1.3.6-dev.8 → 1.3.6
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/assets/{AmrCapabilityControl.DylvnUEO.js → AmrCapabilityControl.BrB4gWci.js} +1 -1
- package/dist/assets/RbLocalizationProvider.CMEaJz_8.js +311 -0
- package/dist/assets/__federation_expose_App.BtK24QCB.js +1350 -0
- package/dist/assets/__federation_fn_import.DdkEuT6t.js +23 -0
- package/dist/assets/__federation_shared_@emotion/{styled.CajkAQAy.js → styled.ETfwMsQo.js} +1 -1
- package/dist/assets/__federation_shared_@tanstack/{react-query.DZtZx7JL.js → react-query.fVz8BOIk.js} +1 -1
- package/dist/assets/{cssMode.Dtrsp9Hl.js → cssMode.EEbNlNtF.js} +1 -1
- package/dist/assets/{emotion-styled-base.browser.esm.BLoY4bbE.js → emotion-styled-base.browser.esm.BIcjgOzg.js} +1 -1
- package/dist/assets/{freemarker2.CyJpVLMx.js → freemarker2.CnBD5I4p.js} +1 -1
- package/dist/assets/{handlebars.CsnXKzpH.js → handlebars.COGiavr-.js} +1 -1
- package/dist/assets/{html.Cs-v4IId.js → html.BigkG63T.js} +1 -1
- package/dist/assets/{htmlMode.BkLJ-g13.js → htmlMode.BFqQcR9K.js} +1 -1
- package/dist/assets/{index.B34TfqNB.js → index.1gxtOcyM.js} +1 -1
- package/dist/assets/index.BFyW4OKK.js +1 -0
- package/dist/assets/{MapInfo.CrdLZcke.js → index.D7QGPpBS.js} +6 -11
- package/dist/assets/{javascript.CnXk03IN.js → javascript.CmJH3eOS.js} +1 -1
- package/dist/assets/{jsonMode.DHUETSBC.js → jsonMode.XZLue_kY.js} +1 -1
- package/dist/assets/{liquid.ycj1GnlX.js → liquid.kUSJggwm.js} +1 -1
- package/dist/assets/{lspLanguageFeatures.qBXuaIUh.js → lspLanguageFeatures.DgJgA_Mi.js} +1 -1
- package/dist/assets/{mdx.DQv9SiE_.js → mdx.DuUa6LG4.js} +1 -1
- package/dist/assets/{python.CGG4dQnL.js → python.4mFHFFoP.js} +1 -1
- package/dist/assets/{razor.BfFBX4H4.js → razor.CVLwv3TS.js} +1 -1
- package/dist/assets/remoteEntry.js +1 -1
- package/dist/assets/{tsMode.BRgsBy91.js → tsMode.CXJykgGy.js} +1 -1
- package/dist/assets/{typescript.BTl_2OW3.js → typescript.DgyEkW4L.js} +1 -1
- package/dist/assets/useFileDownload.BFL8lywd.js +4753 -0
- package/dist/assets/{xml.CCn6EavV.js → xml.BEm17y6w.js} +1 -1
- package/dist/assets/{yaml.D2ikp_I-.js → yaml.CEKLGBGL.js} +1 -1
- package/dist/imgs/nexus/forms/gripper/gripper_23.png +0 -0
- package/dist/index.html +7 -8
- package/dist/plugin-shared/plugin-ui_react.js +1 -1
- package/package.json +1 -1
- package/dist/assets/RbLocalizationProvider.929YVAAi.js +0 -301
- package/dist/assets/__federation_expose_App.MoFBQejr.js +0 -1288
- package/dist/assets/__federation_fn_import.ByOnqCI5.js +0 -24
- package/dist/assets/index.BHxdk7pU.js +0 -1
- package/dist/assets/index.BkLy899B.js +0 -1
- package/dist/assets/useJsonFileDownload.DzAbJDyG.js +0 -4773
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as s,a as e,b as r,c as t,B as l,C as n,D as T,d as i,e as d,f as p,E,g,h as O,i as S,j as y,k as P,H as D,L as u,M as A,l as M,m as R,N as c,n as b,O as m,o as N,P as _,p as w,q as C,R as F,r as L,s as v,S as I,t as k,u as U,v as f,T as B,w as H,x as V,y as h,z as x,F as Y,G as Z,I as J,J as K,K as j,Q as G,U as W,V as q,W as z,X as Q,Y as X,Z as $,_ as aa,$ as oa,a0 as sa,a1 as ea,a2 as ra,a3 as ta,a4 as la,a5 as na,a6 as Ta,a7 as ia,a8 as da,a9 as pa,aa as Ea}from"./useJsonFileDownload.DzAbJDyG.js";import{M as Oa,a as Sa,b as ya,S as Pa}from"./MapInfo.CrdLZcke.js";export{s as AMRNodeFromTo,e as AreaPlugin,r as ArrowHelper2,t as AssetLoader,l as BottomStatusBar,n as CameraStreamsPanel,T as DEFAULT_ASSET_TRANSFORM,i as DEFAULT_EDITOR_CAMERA,d as DEFAULT_TOPOLOGY_FORMAT_VERSION,p as DockControl,E as EDITOR_CAMERA_POSITION_KEY,g as EDITOR_MODE,O as Editor,S as Eraser,y as EraserTab,P as EventHandler,D as HUDStatusPanel,u as LeftToolBar,Oa as MapInfo,A as MapLoadDialog,M as MapNameHUD,Sa as MappingTab,R as MarkerControl,ya as MonitorSensorsTab,c as NODE_TYPE,b as NodeManager,m as ObstacleMapPanel,N as Overview,_ as PaintJointPathPlugin,w as PathDrawer,C as PduInfo,F as RightToolBar,L as RobotControlPanel,v as RobotManager,I as SelectedLinkOverlay,k as SelectedNodeOverlay,U as SelectedZoneOverlay,f as Selector,Pa as SystemResources,B as TaskInformation,H as ToolPlugin,V as TopologyActionFooter,h as TopologyAdd,x as TopologyControl,Y as TopologyEdit,Z as TopologyLink,J as TopologyLinkTabPanel,K as TopologyNodeAddSection,j as TopologyNodeEditSection,G as TopologyNodeTabPanel,W as TopologyNodes,q as TopologyOverviewTabPanel,z as TopologyZone,Q as TopologyZoneTabPanel,X as TrajectoryDrawer,$ as URDFViewer,aa as URDFViewerComponent,oa as Viewport,sa as WorldStudio,ea as ikDiagnostics,ra as isHexColor,ta as makeHexColor,la as useBottomStatusBar,na as useEditorKeyboardShortcut,Ta as useEditorState,ia as useEditorTool,da as useEditorViewportOptions,pa as useJsonFileDownload,Ea as useOverlayPosition};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i,cw as z,V,b0 as q,c as k,bh as F,cR as K,eh as S,g0 as Y,da as _,ee as y,cG as Q,gB as c}from"./RbLocalizationProvider.929YVAAi.js";import{importShared as x}from"./__federation_fn_import.ByOnqCI5.js";const M=()=>!0,T=()=>typeof window<"u"&&window.__RB_ROBOT_HOST__||void 0||void 0,Se=()=>M()&&!!T(),X=()=>M()&&!T(),Ee=(e,t)=>e?.find(s=>s.point===t),Re=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]},Te=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]||e?.en},Ie=e=>e.toLocaleLowerCase()==="rainbowrobotics";var Z=(e=>(e[e.SUPERVISOR=0]="SUPERVISOR",e[e.ADMIN=1]="ADMIN",e[e.MANAGER=2]="MANAGER",e[e.OPERATOR=3]="OPERATOR",e[e.USER=4]="USER",e[e.GUEST=999999]="GUEST",e))(Z||{});const J={SUPERVISOR:0,ADMIN:1,MANAGER:2,OPERATOR:3,USER:4,GUEST:999999},P={id:"GUEST",username:"게스트",role:0,sid:""};function N(e){try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(atob(t))}catch{return null}}function ee(e){if(!e)return P;const t=N(e);if(!t)return P;const s=J[t.role]??999999;return{id:t.user_id,username:t.user_id,role:s,sid:t.sid}}function b(e){if(!e)return null;const t=N(e);return t?t.exp*1e3:null}function O(){return ee(a())}const o={isAutoLogin:"isAutoLogin",accessToken:"access_token",refreshToken:"refresh_token"};function h(){localStorage.removeItem(o.accessToken),localStorage.removeItem(o.refreshToken),sessionStorage.removeItem(o.accessToken),sessionStorage.removeItem(o.refreshToken)}function m(){return localStorage.getItem(o.isAutoLogin)==="true"}function Le(e){localStorage.setItem(o.isAutoLogin,e?"true":"false")}function a(){return m()?localStorage.getItem(o.accessToken):sessionStorage.getItem(o.accessToken)}function I(){return m()?localStorage.getItem(o.refreshToken):sessionStorage.getItem(o.refreshToken)}function te(e,t,s){s?(localStorage.setItem(o.isAutoLogin,"true"),localStorage.setItem(o.accessToken,e),localStorage.setItem(o.refreshToken,t)):(localStorage.setItem(o.isAutoLogin,"false"),sessionStorage.setItem(o.accessToken,e),sessionStorage.setItem(o.refreshToken,t))}const{createContext:se,useCallback:ne,useContext:oe,useEffect:C,useState:re}=await x("react"),G=se({isLoggedIn:!1,setLoggedIn:()=>{}});let E=null;function D(e){E?.(e)}function ke({children:e}){const[t,s]=re(!!a()),n=ne(r=>{s(r)},[]);return C(()=>(E=n,()=>{E=null}),[n]),i(G.Provider,{value:{isLoggedIn:t,setLoggedIn:n},children:e})}function ae(){const{isLoggedIn:e,setLoggedIn:t}=oe(G),s=O(),n=a(),r=I(),f=m();return C(()=>{e&&(!n||!r)&&t(!1)},[e,n,r,t]),{isLoggedIn:e,setLoggedIn:t,user:s,accessToken:n,refreshToken:r,isAutoLogin:f,isAtLeast:p=>s.role<=p,hasRole:p=>s.role===p}}const ie=({className:e,open:t,onOpenChange:s,onConfirm:n})=>{const{t:r}=z(),f=()=>{s(!1),n()};return i(F,{className:k(e,"w-100 max-w-full border-none p-0"),enableDimClose:!1,hideCloseButton:!0,open:t,onOpenChange:s,header:{title:r("login.modal.title.sessionExpired")},footer:i(V,{className:k("w-full gap-1","[&_button]:h-8 [&_button]:w-20"),justifyContent:"end",children:i(q,{variant:"brand",size:"sm",onClick:f,children:r("login.modal.button.sessionExpiredConfirm")})}),children:i("div",{className:"px-4 pt-3 pb-0",children:i("span",{className:"text-fg-default typo-compact-sm-normal",children:r("login.modal.desc.sessionExpired")})})})},_e="/muscat/app/log",R="/muscat/app/login",{useMutation:ce}=await x("@tanstack/react-query"),ue="/logout",$=async e=>he.post(ue,{sid:e}),ye=()=>{const{setLoggedIn:e,user:t}=ae(),s=K();return ce({mutationFn:async()=>{if(t?.sid)return $(t.sid)},onSettled:()=>{h(),e(!1),s(R)}})},le=`http://${window.location.hostname}:undefined`,fe=1e4,de=5e4,U=5e3;let j=null,H=null;function Pe(e){j=e}function be(e){H=e}let A=!1,w=0;const v=()=>{if(window.location.pathname===R)return;const e=async()=>{const t=O();if(t?.sid)try{await $(t.sid)}catch{}h(),D(!1),H?.(R)};Y.openModal({component:ie,props:{onConfirm:e,onClose:e},options:{componentName:"SessionExpiredModal"}})};async function W(){if(A||Date.now()-w<fe)return null;const e=I();if(!e)return v(),null;A=!0;try{const t=await S.post(`${le}/common/refresh`,{refresh_token:e}),{access_token:s,refresh_token:n}=t.data;return te(s,n,m()),D(!0),j?.("auth",{token:s,autoLogin:m()?"true":"false"}),w=Date.now(),B(),s}catch(t){console.log("Token refresh failed:",t);const s=S.isAxiosError(t)?t.response?.status:null;if(s===403||s===401||s===409)return h(),v(),null;throw t}finally{A=!1}}let g=null;function ge(){g&&(clearTimeout(g),g=null)}function B(){ge();const e=b(a());if(!e)return;const t=Math.max(e-Date.now()-de,U);g=setTimeout(async()=>{try{I()&&await W()}catch{if(a()){const s=b(a());if(s&&s>Date.now()){const n=Math.min(U*2,s-Date.now());n>0&&(g=setTimeout(B,n))}}}},t)}const u={onRequest({config:e}){if(e.url?.endsWith("/login")||e.url?.endsWith("/logout")||e.url?.endsWith("/refresh")||/^https?:\/\//i.test(e.url??"")&&!e.url?.startsWith(e.baseURL??""))return e;const n=a();return n&&e.headers&&(e.headers.Authorization=`Bearer ${n}`),e},onResponse({response:e}){return e?.data},async onResponseError({error:e}){const t=e.config;if(!t)return Promise.reject(e);if(t.url?.endsWith("/login")||t.url?.endsWith("/logout")||t.url?.endsWith("/refresh"))return h(),Promise.reject(e);if(e.response?.status===401&&!t._retry){t._retry=!0;try{const d=await W();return d?(t.headers.Authorization=`Bearer ${d}`,S(t)):Promise.reject(e)}catch(d){return Promise.reject(d)}}const n=e?.response?.data,r=_("useSimulator")!=="false"&&!!_("useSimulator"),f=typeof n=="object"&&"message"in n&&typeof n.message=="string"?n.message:y("common.toast.apiError.content"),L=e.status??e.response?.status;return([502,504].includes(L)||e.code==="ERR_NETWORK")&&!r||X()||t.skipErrorToast||Q.openToast({title:e.config.url?`[API Error] ${e.config.url}`:y("common.toast.apiError.title"),content:f,type:"basic",variant:"warning"}),Promise.reject(e)}},me=3e3,l=`http://${T()||window.location.hostname}:${me}`,he=c({baseURL:`${l}/common`},u),Ue=c({baseURL:`${l}/manipulate`},u),we=c({baseURL:`${l}/log`},u),ve=c({baseURL:`${l}/amr`},u),xe=c({baseURL:`${l}/rby1`},u);c({baseURL:`${l}/deploy`},u);export{ke as A,Z as J,_e as L,l as M,J as R,Re as a,ve as b,he as c,Te as d,R as e,Ee as f,T as g,ye as h,M as i,Pe as j,W as k,we as l,Ue as m,ge as n,be as o,Se as p,Ie as q,xe as r,te as s,B as t,ae as u,m as v,Le as w,h as x,a as y};
|