@wandelbots/wandelbots-js-react-components 1.4.1 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "files": [
6
6
  "dist",
@@ -106,6 +106,9 @@ export function SupportedRobot({
106
106
  case "FANUC_ARC_Mate_120iD":
107
107
  Robot = FANUC_ARC_Mate_120iD
108
108
  break
109
+ case "FANUC_ARC_Mate_120iD35":
110
+ Robot = FANUC_ARC_Mate_120iD
111
+ break
109
112
  case "FANUC_ARC_Mate_100iD":
110
113
  Robot = FANUC_ARC_Mate_100iD
111
114
  break
@@ -13,6 +13,8 @@ type WandelscriptEditorProps = {
13
13
  /** What to do when the user edits the code */
14
14
  onChange?: (code: string|undefined, ev: editor.IModelContentChangedEvent) => void
15
15
  /** Callback to further configure monaco on startup if needed */
16
+ monacoOptions?: editor.IEditorOptions
17
+ /** Callback to further configure monaco on startup if needed */
16
18
  monacoSetup?: (monaco: Monaco) => void
17
19
  }
18
20
 
@@ -64,27 +66,15 @@ export const WandelscriptEditor = (props: WandelscriptEditorProps) => {
64
66
  inherit: true,
65
67
  rules: [],
66
68
  colors: {
67
- // "editor.background": colors.backgroundDefault,
68
- // "editorLineNumber.foreground": "#797979",
69
- // "editorLineNumber.activeForeground": "#e9e9e9",
69
+ "editor.background": "#262F42",
70
+ "editorLineNumber.foreground": "#797979",
71
+ "editorLineNumber.activeForeground": "#e9e9e9",
70
72
  },
71
73
  })
72
74
 
73
75
  if (props.monacoSetup) {
74
76
  props.monacoSetup(monaco)
75
77
  }
76
-
77
-
78
- // Define some custom keybindings
79
- // monaco.editor.addCommand({
80
- // id: "save",
81
- // run: () => props.onSave ? props.onSave(monaco.editor.getModels()[0]!.getValue()) : null,
82
- // })
83
-
84
- // monaco.editor.addKeybindingRule({
85
- // keybinding: monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS,
86
- // command: "save",
87
- // })
88
78
  }
89
79
 
90
80
  useEffect(() => {
@@ -107,7 +97,7 @@ export const WandelscriptEditor = (props: WandelscriptEditorProps) => {
107
97
  minimap: { enabled: false },
108
98
  wordWrap: "on",
109
99
  automaticLayout: true,
110
- // ...props.monacoOptions,
100
+ ...props.monacoOptions,
111
101
  }}
112
102
  />
113
103
  )
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./components/wandelscript-editor/WandelscriptEditor"
1
2
  export * from "./components/robots/SupportedRobot"
2
3
  export * from "./components/robots/Robot"
3
4
  export * from "./components/robots/AxisConfig"