@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.bd2ec84 → 6.4.0-pr.revamp.667.ca77f09

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 (154) hide show
  1. package/README.md +172 -40
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +3 -4
  4. package/dist/3d.js +35 -38
  5. package/dist/CurrentPose/index.cjs +1 -1
  6. package/dist/CurrentPose/index.js +2 -2
  7. package/dist/CurrentPoseBar/index.cjs +1 -1
  8. package/dist/CurrentPoseBar/index.js +1 -1
  9. package/dist/JoggingButtons/index.cjs +1 -1
  10. package/dist/JoggingButtons/index.js +1 -1
  11. package/dist/JoggingGizmo/index.cjs +1 -1
  12. package/dist/JoggingGizmo/index.js +2 -2
  13. package/dist/JoggingJointSlider/index.cjs +1 -1
  14. package/dist/JoggingJointSlider/index.js +1 -1
  15. package/dist/RobotControl/index.cjs +1 -1
  16. package/dist/RobotControl/index.js +2 -2
  17. package/dist/RobotControlPanel/index.cjs +1 -1
  18. package/dist/RobotControlPanel/index.d.ts +1 -1
  19. package/dist/RobotControlPanel/index.js +1 -1
  20. package/dist/RobotHeader/index.cjs +1 -1
  21. package/dist/RobotHeader/index.d.ts +3 -5
  22. package/dist/RobotHeader/index.js +6 -7
  23. package/dist/RobotScene/index.cjs +1 -1
  24. package/dist/RobotScene/index.js +3 -3
  25. package/dist/RobotView/index.cjs +1 -1
  26. package/dist/RobotView/index.js +2 -2
  27. package/dist/SafetyBar/IndicatorWithExplanation.d.ts +12 -1
  28. package/dist/SafetyBar/SafetyBar.d.ts +15 -1
  29. package/dist/SafetyBar/index.cjs +1 -1
  30. package/dist/SafetyBar/index.d.ts +0 -1
  31. package/dist/SafetyBar/index.js +3 -4
  32. package/dist/SafetyBar/robotSafetyOf.d.ts +1 -0
  33. package/dist/chunks/{ConnectedMotionGroup-BifrgwV1.js → ConnectedMotionGroup-DNYakgxy.js} +6 -5
  34. package/dist/chunks/ConnectedMotionGroup-IRTsTxwB.cjs +3 -0
  35. package/dist/chunks/{CurrentPose-CMqO8oqX.cjs → CurrentPose-CAq9e9JY.cjs} +1 -1
  36. package/dist/chunks/{CurrentPose-CdD2ZB7B.js → CurrentPose-CgdINEh2.js} +3 -3
  37. package/dist/chunks/{CurrentPoseBar-CX1xFBtm.js → CurrentPoseBar--HkZBGnN.js} +11 -11
  38. package/dist/chunks/{CurrentPoseBar-BTBAwIO4.cjs → CurrentPoseBar-DoOUfRRs.cjs} +1 -1
  39. package/dist/chunks/{JoggingButtons-aijK-3g6.js → JoggingButtons-BNOnpcTH.js} +1 -1
  40. package/dist/chunks/{JoggingButtons-BOHl7hVq.cjs → JoggingButtons-Boaym2hQ.cjs} +1 -1
  41. package/dist/chunks/{JoggingGizmo-CoKYUtXq.cjs → JoggingGizmo-CNFjpWDv.cjs} +1 -1
  42. package/dist/chunks/{JoggingGizmo-DHvrJouR.js → JoggingGizmo-RDiEVQes.js} +1 -1
  43. package/dist/chunks/{JoggingGizmoOrientation-CIvIAIeO.js → JoggingGizmoOrientation-Dzzz2gEz.js} +1 -1
  44. package/dist/chunks/{JoggingGizmoOrientation-DVcagPRJ.cjs → JoggingGizmoOrientation-laUrgY0N.cjs} +1 -1
  45. package/dist/chunks/{JoggingJointSlider-DQtt4-pa.js → JoggingJointSlider-BY-Tof8G.js} +1 -1
  46. package/dist/chunks/{JoggingJointSlider-CTFYKzsU.cjs → JoggingJointSlider-Dm3vILd3.cjs} +1 -1
  47. package/dist/chunks/{JoggingRefusedError-BIkUM6-g.js → JoggingRefusedError-C4D8_YR_.js} +5 -3
  48. package/dist/chunks/JoggingRefusedError-DqyrfUcc.cjs +1 -0
  49. package/dist/chunks/Pose3-BfBNPRDM.cjs +1 -0
  50. package/dist/chunks/{Pose3-B_fLR-Wv.js → Pose3-DWxfC6Dj.js} +1 -2
  51. package/dist/chunks/{Robot-C-IWfxP9.js → Robot-B-VAYuAr.js} +5 -5
  52. package/dist/chunks/{Robot-Cfhjv9Z8.cjs → Robot-DRf8T9Zf.cjs} +1 -1
  53. package/dist/chunks/RobotActivation-CRVxXvlx.cjs +1 -0
  54. package/dist/chunks/RobotActivation-oR-8Y0iq.js +143 -0
  55. package/dist/chunks/RobotControl-Dbe50ZKM.cjs +1 -0
  56. package/dist/chunks/RobotControl-Ms1F7fFe.js +332 -0
  57. package/dist/chunks/RobotControlPanel-B7NxoHsO.cjs +1 -0
  58. package/dist/chunks/RobotControlPanel-CkQlkq8x.js +1029 -0
  59. package/dist/chunks/RobotHeader-CjOaf9s6.cjs +1 -0
  60. package/dist/chunks/RobotHeader-LSuRTDFB.js +395 -0
  61. package/dist/chunks/RobotScene-Au6zpHH1.cjs +1 -0
  62. package/dist/chunks/RobotScene-C6XEgaVR.js +1284 -0
  63. package/dist/chunks/RobotSessionProvider-CoF_tX0O.cjs +1 -0
  64. package/dist/chunks/RobotSessionProvider-DuHi-dtw.js +30 -0
  65. package/dist/chunks/{RobotView-BGYlAWj-.cjs → RobotView-Cg6JfGiY.cjs} +1 -1
  66. package/dist/chunks/{RobotView-D-v8jCM7.js → RobotView-CrAxNkyG.js} +3 -3
  67. package/dist/chunks/{robotSafetyOf-DuKKma1_.js → SafetyBar-C85BAKsL.js} +244 -215
  68. package/dist/chunks/SafetyBar-D2l81Omq.cjs +1 -0
  69. package/dist/chunks/externalizeComponent-CA_sHzyH.cjs +2 -0
  70. package/dist/chunks/{externalizeComponent-4juwPKL5.js → externalizeComponent-CChY_1bN.js} +34 -8
  71. package/dist/chunks/{useSmoothedMotionState-BSSV8aZN.js → hooks-BWoeBWLV.js} +43 -87
  72. package/dist/chunks/hooks-BXe2bNMo.cjs +1 -0
  73. package/dist/chunks/loadRobotSession-BzY9H3F8.cjs +1 -0
  74. package/dist/chunks/{loadRobotSession-GHHtv5dv.js → loadRobotSession-Ts2MumBB.js} +1065 -679
  75. package/dist/chunks/poseText-BxG4Caa-.js +48 -0
  76. package/dist/chunks/poseText-CwplkbDM.cjs +1 -0
  77. package/dist/chunks/useSmoothedMotionState-CCXmMZ0S.cjs +1 -0
  78. package/dist/chunks/useSmoothedMotionState-CELh-YJa.js +50 -0
  79. package/dist/components/VelocitySlider.d.ts +14 -1
  80. package/dist/components/connectionWarning/ConnectionWarning.d.ts +18 -4
  81. package/dist/components/connectionWarning/connectionWarningOf.d.ts +1 -11
  82. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +7 -1
  83. package/dist/components/jogging/JoggingCartesianTab.d.ts +6 -0
  84. package/dist/components/jogging/JoggingJointTab.d.ts +5 -0
  85. package/dist/components/jogging/JoggingJointValueControl.d.ts +7 -1
  86. package/dist/components/jogging/JoggingPanel.d.ts +11 -0
  87. package/dist/components/jogging/JoggingRefusedError.d.ts +8 -3
  88. package/dist/components/jogging/JoggingStore.d.ts +206 -17
  89. package/dist/components/jogging/joggingColors.d.ts +6 -0
  90. package/dist/components/robotControl/CartesianJogTab.d.ts +14 -3
  91. package/dist/components/robotControl/JogArea.d.ts +6 -3
  92. package/dist/components/robotControl/JogDisabledReason.d.ts +15 -0
  93. package/dist/components/robotControl/JointJogTab.d.ts +10 -2
  94. package/dist/components/robotControl/MoveToTab.d.ts +24 -3
  95. package/dist/components/robotControl/PoseField.d.ts +3 -1
  96. package/dist/components/robotControl/RobotControl.d.ts +3 -0
  97. package/dist/components/robotControl/RobotControlPanel.d.ts +91 -22
  98. package/dist/components/robotControl/VelocityRow.d.ts +8 -2
  99. package/dist/components/robotControl/atPose.d.ts +6 -0
  100. package/dist/components/robotControl/poseText.d.ts +13 -1
  101. package/dist/components/robotControl/units.d.ts +10 -2
  102. package/dist/components/robotControl/useRobotControlProps.d.ts +7 -4
  103. package/dist/components/robotControl/velocityText.d.ts +18 -0
  104. package/dist/components/robotHeader/ActivationSwitch.d.ts +13 -2
  105. package/dist/components/robotHeader/RobotHeader.d.ts +25 -4
  106. package/dist/components/robotHeader/robotActivationOf.d.ts +1 -8
  107. package/dist/components/robotScene/RobotScene.d.ts +7 -1
  108. package/dist/components/robots/MotionGroupVisualizer.d.ts +6 -4
  109. package/dist/components/robots/SupportedLinearAxis.d.ts +6 -4
  110. package/dist/components/robots/SupportedRobot.d.ts +7 -5
  111. package/dist/components/robots/useFrameSmoothedMotionState.d.ts +25 -0
  112. package/dist/components/utils/useSmoothedMotionState.d.ts +11 -2
  113. package/dist/core.cjs +1 -1
  114. package/dist/core.d.ts +8 -10
  115. package/dist/core.js +60 -69
  116. package/dist/index.cjs +1 -1
  117. package/dist/index.js +100 -113
  118. package/dist/lib/ConnectedMotionGroup.d.ts +11 -0
  119. package/dist/lib/ControllerStateStream.d.ts +9 -9
  120. package/dist/lib/JoggerConnection.d.ts +48 -13
  121. package/dist/lib/MotionStreamConnection.d.ts +3 -2
  122. package/dist/lib/TrajectoryExecutionStore.d.ts +58 -20
  123. package/dist/lib/controllerStateSource.d.ts +6 -5
  124. package/dist/lib/robotSession/RobotActivation.d.ts +52 -21
  125. package/dist/lib/robotSession/RobotSession.d.ts +27 -8
  126. package/dist/lib/robotSession/RobotTargetPose.d.ts +4 -2
  127. package/dist/lib/robotSession/loadRobotSession.d.ts +1 -1
  128. package/dist/lib/robotSession/robotPose.d.ts +0 -6
  129. package/dist/session.cjs +1 -1
  130. package/dist/session.d.ts +6 -6
  131. package/dist/session.js +30 -38
  132. package/package.json +22 -1
  133. package/dist/chunks/ConnectedMotionGroup-CybwJHkh.cjs +0 -3
  134. package/dist/chunks/JoggingRefusedError-BuCGsVsa.cjs +0 -1
  135. package/dist/chunks/Pose3-Ch4xVeXV.cjs +0 -1
  136. package/dist/chunks/RobotActivation-Bb0oNSBN.cjs +0 -1
  137. package/dist/chunks/RobotActivation-C0rrwpQZ.js +0 -115
  138. package/dist/chunks/RobotControl-Cv6Sr1Ni.js +0 -289
  139. package/dist/chunks/RobotControl-DFnOYMAa.cjs +0 -1
  140. package/dist/chunks/RobotControlPanel-B1_9g9D-.js +0 -850
  141. package/dist/chunks/RobotControlPanel-BpTpRBgy.cjs +0 -1
  142. package/dist/chunks/RobotScene-0ZJzXL50.cjs +0 -1
  143. package/dist/chunks/RobotScene-DpFeFpnx.js +0 -1255
  144. package/dist/chunks/RobotSessionProvider--AekyPqD.cjs +0 -1
  145. package/dist/chunks/RobotSessionProvider-TVaKGzqa.js +0 -25
  146. package/dist/chunks/externalizeComponent-Br_U-QAr.cjs +0 -2
  147. package/dist/chunks/loadRobotSession-DYbeNnTI.cjs +0 -1
  148. package/dist/chunks/poseText-BXUaQWnK.cjs +0 -1
  149. package/dist/chunks/poseText-pg4cxE8R.js +0 -41
  150. package/dist/chunks/robotActivationOf-B4oV10Za.cjs +0 -1
  151. package/dist/chunks/robotActivationOf-EzcT9g07.js +0 -368
  152. package/dist/chunks/robotSafetyOf-Dxm6s7Pp.cjs +0 -1
  153. package/dist/chunks/useSmoothedMotionState-B9WO73k0.cjs +0 -1
  154. package/dist/components/robotHeader/robotSafetyOf.d.ts +0 -11
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("react"),t=s.createContext(null);function u({session:e,children:o}){return r.jsx(t.Provider,{value:e,children:o})}function c(){return n(void 0)}function n(e){const o=i(e);if(!o)throw new Error("No robot session: put the component inside a RobotSessionProvider, or give it a `session`");return o}function i(e){const o=s.useContext(t);return e??o}exports.RobotSessionProvider=u;exports.useOptionalRobotSessionOf=i;exports.useRobotSession=c;exports.useRobotSessionOf=n;
@@ -0,0 +1,30 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useContext as s, createContext as r } from "react";
3
+ const e = r(null);
4
+ function c({
5
+ session: t,
6
+ children: o
7
+ }) {
8
+ return /* @__PURE__ */ n(e.Provider, { value: t, children: o });
9
+ }
10
+ function f() {
11
+ return i(void 0);
12
+ }
13
+ function i(t) {
14
+ const o = u(t);
15
+ if (!o)
16
+ throw new Error(
17
+ "No robot session: put the component inside a RobotSessionProvider, or give it a `session`"
18
+ );
19
+ return o;
20
+ }
21
+ function u(t) {
22
+ const o = s(e);
23
+ return t ?? o;
24
+ }
25
+ export {
26
+ c as R,
27
+ i as a,
28
+ u as b,
29
+ f as u
30
+ };
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),m=require("mobx-react-lite"),v=require("./RobotScene-0ZJzXL50.cjs"),j=require("./RobotSessionProvider--AekyPqD.cjs"),q=require("@mui/material/Box"),C=require("@mui/material/styles"),h=require("@react-three/drei"),w=require("@react-three/fiber"),G=require("./externalizeComponent-Br_U-QAr.cjs"),I=require("./useWebGLRenderer-CtddVDDb.cjs"),k=require("@mui/icons-material/Refresh"),S=require("@mui/icons-material/ReportProblemOutlined"),y=require("@mui/material/Button"),T=require("@mui/material/Stack"),x=require("@mui/material/Typography"),W=require("react-i18next");function A(){const{t:o}=W.useTranslation();return e.jsxs(T,{sx:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",padding:"1rem",gap:"16px",textAlign:"center"},children:[e.jsx(S,{sx:{fontSize:48,color:"text.secondary"}}),e.jsx(x,{variant:"h6",children:o("RobotView.WebGLUnavailable.ti")}),e.jsx(x,{variant:"body2",sx:{color:"text.secondary",maxWidth:420},children:o("RobotView.WebGLUnavailable.pg")}),e.jsx(y,{variant:"outlined",startIcon:e.jsx(k,{}),onClick:()=>window.location.reload(),children:o("RobotView.WebGLUnavailable.Reload.bt")})]})}const L={position:[3.3246,-3.6538,3.2033],fov:25,up:[0,0,1]},R=[0,0,0],z=[100,100],O=[Math.PI/2,0,0],g=G.externalizeComponent(function({orbitTarget:a=R,antialias:c=!0,onContextLost:l,onWebGLUnavailable:u,children:d,sx:n}){var b,f;const r=C.useTheme(),{unavailable:i,makeRenderer:t}=I.useWebGLRenderer({antialias:c,onContextLost:l,onWebGLUnavailable:u}),s=((b=r.palette.backgroundPaperElevation)==null?void 0:b[1])??"#fff",p=(f=r.palette.backgroundPaperElevation)==null?void 0:f[5];return e.jsx(q,{sx:[{position:"relative",width:"100%",height:"100%",minWidth:0,minHeight:0},...Array.isArray(n)?n:[n]],children:i?e.jsx(A,{}):e.jsxs(w.Canvas,{gl:t,frameloop:"demand",flat:!0,shadows:!0,camera:L,resize:{debounce:0,scroll:!1},children:[e.jsx("color",{attach:"background",args:[s]}),e.jsx(h.Grid,{position:R,rotation:O,args:z,cellSize:0,cellThickness:.5,cellColor:"#ffffff",sectionSize:.5,sectionThickness:.5,sectionColor:p,fadeDistance:21,fadeStrength:2,followCamera:!1,infiniteGrid:!0}),e.jsx(h.OrbitControls,{makeDefault:!0,target:a}),d]})})}),V=m.observer(function({session:a,antialias:c,onContextLost:l,onWebGLUnavailable:u,sx:d,children:n,...r}){var s;const i=j.useRobotSessionOf(a),t=(s=i.description.mounting)==null?void 0:s.position;return e.jsx(g,{orbitTarget:[((t==null?void 0:t[0])??0)/1e3,((t==null?void 0:t[1])??0)/1e3,((t==null?void 0:t[2])??0)/1e3],antialias:c,onContextLost:l,onWebGLUnavailable:u,sx:d,children:e.jsx(v.RobotScene,{session:i,...r,children:n})})});exports.RobotCanvas=g;exports.RobotView=V;
1
+ "use strict";const e=require("react/jsx-runtime"),m=require("mobx-react-lite"),v=require("./RobotScene-Au6zpHH1.cjs"),j=require("./RobotSessionProvider-CoF_tX0O.cjs"),q=require("@mui/material/Box"),C=require("@mui/material/styles"),h=require("@react-three/drei"),w=require("@react-three/fiber"),G=require("./externalizeComponent-CA_sHzyH.cjs"),I=require("./useWebGLRenderer-CtddVDDb.cjs"),k=require("@mui/icons-material/Refresh"),S=require("@mui/icons-material/ReportProblemOutlined"),y=require("@mui/material/Button"),T=require("@mui/material/Stack"),x=require("@mui/material/Typography"),W=require("react-i18next");function A(){const{t:o}=W.useTranslation();return e.jsxs(T,{sx:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",padding:"1rem",gap:"16px",textAlign:"center"},children:[e.jsx(S,{sx:{fontSize:48,color:"text.secondary"}}),e.jsx(x,{variant:"h6",children:o("RobotView.WebGLUnavailable.ti")}),e.jsx(x,{variant:"body2",sx:{color:"text.secondary",maxWidth:420},children:o("RobotView.WebGLUnavailable.pg")}),e.jsx(y,{variant:"outlined",startIcon:e.jsx(k,{}),onClick:()=>window.location.reload(),children:o("RobotView.WebGLUnavailable.Reload.bt")})]})}const L={position:[3.3246,-3.6538,3.2033],fov:25,up:[0,0,1]},R=[0,0,0],z=[100,100],O=[Math.PI/2,0,0],g=G.externalizeComponent(function({orbitTarget:a=R,antialias:c=!0,onContextLost:l,onWebGLUnavailable:u,children:d,sx:n}){var b,f;const r=C.useTheme(),{unavailable:i,makeRenderer:t}=I.useWebGLRenderer({antialias:c,onContextLost:l,onWebGLUnavailable:u}),s=((b=r.palette.backgroundPaperElevation)==null?void 0:b[1])??"#fff",p=(f=r.palette.backgroundPaperElevation)==null?void 0:f[5];return e.jsx(q,{sx:[{position:"relative",width:"100%",height:"100%",minWidth:0,minHeight:0},...Array.isArray(n)?n:[n]],children:i?e.jsx(A,{}):e.jsxs(w.Canvas,{gl:t,frameloop:"demand",flat:!0,shadows:!0,camera:L,resize:{debounce:0,scroll:!1},children:[e.jsx("color",{attach:"background",args:[s]}),e.jsx(h.Grid,{position:R,rotation:O,args:z,cellSize:0,cellThickness:.5,cellColor:"#ffffff",sectionSize:.5,sectionThickness:.5,sectionColor:p,fadeDistance:21,fadeStrength:2,followCamera:!1,infiniteGrid:!0}),e.jsx(h.OrbitControls,{makeDefault:!0,target:a}),d]})})}),V=m.observer(function({session:a,antialias:c,onContextLost:l,onWebGLUnavailable:u,sx:d,children:n,...r}){var s;const i=j.useRobotSessionOf(a),t=(s=i.description.mounting)==null?void 0:s.position;return e.jsx(g,{orbitTarget:[((t==null?void 0:t[0])??0)/1e3,((t==null?void 0:t[1])??0)/1e3,((t==null?void 0:t[2])??0)/1e3],antialias:c,onContextLost:l,onWebGLUnavailable:u,sx:d,children:e.jsx(v.RobotScene,{session:i,...r,children:n})})});exports.RobotCanvas=g;exports.RobotView=V;
@@ -1,12 +1,12 @@
1
1
  import { jsxs as b, jsx as o } from "react/jsx-runtime";
2
2
  import { observer as g } from "mobx-react-lite";
3
- import { R as v } from "./RobotScene-DpFeFpnx.js";
4
- import { a as x } from "./RobotSessionProvider-TVaKGzqa.js";
3
+ import { R as v } from "./RobotScene-C6XEgaVR.js";
4
+ import { a as x } from "./RobotSessionProvider-DuHi-dtw.js";
5
5
  import C from "@mui/material/Box";
6
6
  import { useTheme as w } from "@mui/material/styles";
7
7
  import { Grid as G, OrbitControls as k } from "@react-three/drei";
8
8
  import { Canvas as I } from "@react-three/fiber";
9
- import { e as y } from "./externalizeComponent-4juwPKL5.js";
9
+ import { e as y } from "./externalizeComponent-CChY_1bN.js";
10
10
  import { u as S } from "./useWebGLRenderer-BozrbZz-.js";
11
11
  import T from "@mui/icons-material/Refresh";
12
12
  import A from "@mui/icons-material/ReportProblemOutlined";