@wandelbots/wandelbots-js-react-components 1.8.0 → 1.9.0
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/README.md +30 -16
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts +1 -1
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -1
- package/dist/components/CopyableText.d.ts +5 -0
- package/dist/components/CopyableText.d.ts.map +1 -0
- package/dist/components/LoadingButton.d.ts +1 -1
- package/dist/components/LoadingButton.stories.d.ts +1 -1
- package/dist/components/LoadingButton.stories.d.ts.map +1 -1
- package/dist/components/ThemeSelect.d.ts.map +1 -1
- package/dist/components/VelocitySlider.d.ts.map +1 -1
- package/dist/components/VelocitySlider.stories.d.ts +2 -2
- package/dist/components/VelocitySlider.stories.d.ts.map +1 -1
- package/dist/components/jogging/JoggingCartesianAxisControl.stories.d.ts +1 -1
- package/dist/components/jogging/JoggingCartesianAxisControl.stories.d.ts.map +1 -1
- package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingCartesianValues.d.ts +1 -1
- package/dist/components/jogging/JoggingCartesianValues.d.ts.map +1 -1
- package/dist/components/jogging/JoggingJointLimitDetector.d.ts +2 -2
- package/dist/components/jogging/JoggingJointLimitDetector.d.ts.map +1 -1
- package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +1 -1
- package/dist/components/jogging/JoggingJointRotationControl.stories.d.ts +2 -2
- package/dist/components/jogging/JoggingJointRotationControl.stories.d.ts.map +1 -1
- package/dist/components/jogging/JoggingJointValues.d.ts +1 -1
- package/dist/components/jogging/JoggingJointValues.d.ts.map +1 -1
- package/dist/components/jogging/JoggingOptions.d.ts.map +1 -1
- package/dist/components/jogging/JoggingPanel.d.ts +8 -1
- package/dist/components/jogging/JoggingPanel.d.ts.map +1 -1
- package/dist/components/jogging/JoggingPanel.stories.d.ts +2 -2
- package/dist/components/jogging/JoggingPanel.stories.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +14 -1
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
- package/dist/components/jogging/JoggingVelocitySlider.d.ts.map +1 -1
- package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts +2 -2
- package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -1
- package/dist/components/wandelscript-editor/WandelscriptEditor.stories.d.ts +2 -2
- package/dist/components/wandelscript-editor/WandelscriptEditor.stories.d.ts.map +1 -1
- package/dist/externalizeComponent.d.ts +7 -0
- package/dist/externalizeComponent.d.ts.map +1 -0
- package/dist/index.cjs +29 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +49 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11681 -12331
- package/dist/index.js.map +1 -1
- package/dist/themes/color.d.ts +1 -1
- package/dist/themes/color.d.ts.map +1 -1
- package/dist/themes/novaTheme.stories.d.ts +5 -0
- package/dist/themes/novaTheme.stories.d.ts.map +1 -0
- package/dist/themes/theming.d.ts +49 -0
- package/dist/themes/theming.d.ts.map +1 -0
- package/package.json +20 -13
- package/src/components/3d-viewport/SafetyZonesRenderer.tsx +2 -2
- package/src/components/CopyableText.tsx +30 -0
- package/src/components/LoadingButton.stories.tsx +19 -26
- package/src/components/ThemeSelect.tsx +3 -4
- package/src/components/VelocitySlider.stories.tsx +10 -15
- package/src/components/VelocitySlider.tsx +7 -2
- package/src/components/jogging/JoggingCartesianAxisControl.stories.tsx +21 -21
- package/src/components/jogging/JoggingCartesianAxisControl.tsx +1 -1
- package/src/components/jogging/JoggingCartesianTab.tsx +37 -44
- package/src/components/jogging/JoggingCartesianValues.tsx +37 -33
- package/src/components/jogging/JoggingJointLimitDetector.tsx +10 -7
- package/src/components/jogging/JoggingJointRotationControl.stories.tsx +31 -19
- package/src/components/jogging/JoggingJointRotationControl.tsx +44 -30
- package/src/components/jogging/JoggingJointValues.tsx +35 -33
- package/src/components/jogging/JoggingOptions.tsx +130 -80
- package/src/components/jogging/JoggingPanel.stories.tsx +20 -17
- package/src/components/jogging/JoggingPanel.tsx +29 -31
- package/src/components/jogging/JoggingStore.tsx +69 -18
- package/src/components/jogging/JoggingVelocitySlider.tsx +24 -22
- package/src/components/wandelscript-editor/WandelscriptEditor.stories.tsx +7 -7
- package/src/components/wandelscript-editor/WandelscriptEditor.tsx +48 -23
- package/src/externalizeComponent.tsx +37 -0
- package/src/i18n/locales/de/translations.json +2 -1
- package/src/i18n/locales/en/translations.json +2 -1
- package/src/icons/orientation-coord-system.svg +3 -0
- package/src/icons/orientation-tool.svg +3 -0
- package/src/index.ts +39 -9
- package/src/themes/color.tsx +29 -19
- package/src/themes/novaTheme.stories.tsx +77 -0
- package/src/themes/themeTypes.d.ts +11 -0
- package/src/themes/theming.ts +174 -0
- package/dist/themes/theme.d.ts +0 -144
- package/dist/themes/theme.d.ts.map +0 -1
- package/dist/themes/wbTheme.d.ts +0 -73
- package/dist/themes/wbTheme.d.ts.map +0 -1
- package/dist/themes/wbTheme.stories.d.ts +0 -7
- package/dist/themes/wbTheme.stories.d.ts.map +0 -1
- package/src/themes/theme.ts +0 -150
- package/src/themes/wbTheme.stories.tsx +0 -64
- package/src/themes/wbTheme.ts +0 -186
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://npmjs.org/package/@wandelbots/wandelbots-js-react-components) [](https://bundlephobia.com/package/@wandelbots/wandelbots-js-react-components) [](https://github.com/wandelbotsgmbh/wandelbots-js-react-components/actions/workflows/release.yml)
|
|
4
4
|
|
|
5
|
-
A growing collection of ready-made React UI components based on MaterialUI and React Three Fiber for use with the Wandelbots platform.
|
|
5
|
+
A growing collection of ready-made React UI components based on MaterialUI and React Three Fiber for use with the Wandelbots platform.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @wandelbots/wandelbots-js-react-components
|
|
@@ -24,6 +24,7 @@ import { WandelscriptEditor, ... } from '@wandelbots/wandelbots-js-react-compone
|
|
|
24
24
|
<ul>
|
|
25
25
|
<li><a href="#wandelscript">Wandelscript</a></li>
|
|
26
26
|
<ul>
|
|
27
|
+
<li><a href="#joggingpanel">JoggingPanel</a></li>
|
|
27
28
|
<li><a href="#wandelscripteditor">WandelscriptEditor</a></li>
|
|
28
29
|
</ul>
|
|
29
30
|
<li><a href="#viewport">3D Viewport</a></li>
|
|
@@ -39,6 +40,23 @@ import { WandelscriptEditor, ... } from '@wandelbots/wandelbots-js-react-compone
|
|
|
39
40
|
|
|
40
41
|
### Wandelscript
|
|
41
42
|
|
|
43
|
+
#### JoggingPanel
|
|
44
|
+
|
|
45
|
+
The JoggingPanel is a high-level user interface for manually moving a robot using the Wandelbots stack. It needs only a `NovaClient` instance from [wandelbots-js](https://github.com/wandelbotsgmbh/wandelbots-js) and the id of a motion group to connect to.
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
type JoggingPanelProps = {
|
|
49
|
+
/** Connection to a Nova instance to use for jogging */
|
|
50
|
+
nova: NovaClient
|
|
51
|
+
/** Id of the motion group to move e.g. 0@ur5e **/
|
|
52
|
+
motionGroupId: string
|
|
53
|
+
/** Callback with the jogging panel's state store for further customization/config */
|
|
54
|
+
onSetup: (store: JoggingStore) => void
|
|
55
|
+
/** Any children will go at the bottom of the panel under the default components */
|
|
56
|
+
children?: React.ReactNode
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
42
60
|
#### WandelscriptEditor
|
|
43
61
|
|
|
44
62
|
The WandelscriptEditor provides an interface for editing snippets of Wandelscript code with the appropriate syntax highlighting. It uses the [Monaco](https://microsoft.github.io/monaco-editor/) editor under the hood.
|
|
@@ -48,7 +66,10 @@ type WandelscriptEditorProps = {
|
|
|
48
66
|
/** The current Wandelscript content of the code editor (controlled component) */
|
|
49
67
|
code?: string
|
|
50
68
|
/** What to do when the user edits the code */
|
|
51
|
-
onChange?: (
|
|
69
|
+
onChange?: (
|
|
70
|
+
code: string | undefined,
|
|
71
|
+
ev: editor.IModelContentChangedEvent,
|
|
72
|
+
) => void
|
|
52
73
|
/** Callback to further configure monaco on startup if needed */
|
|
53
74
|
monacoSetup?: (monaco: Monaco) => void
|
|
54
75
|
}
|
|
@@ -72,9 +93,7 @@ In case you want to use the application offline, you can download the models and
|
|
|
72
93
|
|
|
73
94
|
```tsx
|
|
74
95
|
<Robot
|
|
75
|
-
getModel={() =>
|
|
76
|
-
`public/${connectedMotionGroup.modelFromController}.glb`
|
|
77
|
-
}
|
|
96
|
+
getModel={() => `public/${connectedMotionGroup.modelFromController}.glb`}
|
|
78
97
|
connectedMotionGroup={connectedMotionGroup}
|
|
79
98
|
/>
|
|
80
99
|
```
|
|
@@ -93,14 +112,10 @@ The `SupportedRobot` can be used to display a robot model without the need for a
|
|
|
93
112
|
|
|
94
113
|
```tsx
|
|
95
114
|
<SupportedRobot
|
|
96
|
-
rapidlyChangingMotionState={
|
|
97
|
-
rapidlyChangingMotionState
|
|
98
|
-
}
|
|
115
|
+
rapidlyChangingMotionState={rapidlyChangingMotionState}
|
|
99
116
|
dhParameters={dhParameters as any}
|
|
100
117
|
modelFromController={modelFromController || ""}
|
|
101
|
-
getModel={() =>
|
|
102
|
-
`./robot-pad/models/${modelFromController}.glb`
|
|
103
|
-
}
|
|
118
|
+
getModel={() => `./robot-pad/models/${modelFromController}.glb`}
|
|
104
119
|
/>
|
|
105
120
|
```
|
|
106
121
|
|
|
@@ -114,7 +129,7 @@ export type SupportedRobotProps = {
|
|
|
114
129
|
} & GroupProps
|
|
115
130
|
```
|
|
116
131
|
|
|
117
|
-
####
|
|
132
|
+
#### Lighting
|
|
118
133
|
|
|
119
134
|
The `PresetEnvironment` component adds a default lighting setup to the 3D viewport.
|
|
120
135
|
|
|
@@ -122,22 +137,21 @@ The `PresetEnvironment` component adds a default lighting setup to the 3D viewpo
|
|
|
122
137
|
<PresetEnvironment>
|
|
123
138
|
```
|
|
124
139
|
|
|
125
|
-
#### Safety
|
|
140
|
+
#### Safety
|
|
126
141
|
|
|
127
142
|
The `SafetyZonesRenderer` component visualizes the safety zones of the controller.
|
|
128
143
|
|
|
129
144
|
```tsx
|
|
130
|
-
<SafetyZonesRenderer safetyZones={connectedMotionGroup.safetyZones||[]}/>
|
|
145
|
+
<SafetyZonesRenderer safetyZones={connectedMotionGroup.safetyZones || []} />
|
|
131
146
|
```
|
|
132
147
|
|
|
133
|
-
|
|
134
148
|
## Contributing
|
|
135
149
|
|
|
136
150
|
To set up wandelbots-js-react-components for development, first clone the repo and run:
|
|
137
151
|
|
|
138
152
|
```bash
|
|
139
153
|
npm install
|
|
140
|
-
```
|
|
154
|
+
```
|
|
141
155
|
|
|
142
156
|
Then you can run the storybook to develop the components:
|
|
143
157
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SafetySetupSafetyZone } from "@wandelbots/wandelbots-js";
|
|
1
|
+
import type { SafetySetupSafetyZone } from "@wandelbots/wandelbots-js";
|
|
2
2
|
import { type GroupProps } from "@react-three/fiber";
|
|
3
3
|
export type SafetyZonesRendererProps = {
|
|
4
4
|
safetyZones: SafetySetupSafetyZone[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafetyZonesRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/SafetyZonesRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"SafetyZonesRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/SafetyZonesRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAItE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,qBAAqB,EAAE,CAAA;CACrC,GAAG,UAAU,CAAA;AAEd,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAyC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyableText.d.ts","sourceRoot":"","sources":["../../src/components/CopyableText.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;YAMX,MAAM;WACP,MAAM;kDAmBlB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Button with a loading state to indicate a task is being processed */
|
|
2
2
|
export declare const LoadingButton: import("react").ForwardRefExoticComponent<Omit<import("@mui/lab").LoadingButtonOwnProps & Omit<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes">, "classes"> & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "
|
|
4
|
+
}, "color" | "disabled" | "className" | "style" | "classes" | "children" | "size" | "sx" | "tabIndex" | "variant" | "fullWidth" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loading" | "href" | "disableElevation" | "endIcon" | "startIcon" | "loadingIndicator" | "loadingPosition">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
//# sourceMappingURL=LoadingButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingButton.stories.d.ts","sourceRoot":"","sources":["../../src/components/LoadingButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"LoadingButton.stories.d.ts","sourceRoot":"","sources":["../../src/components/LoadingButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AA2B/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAsBpC,CAAA;AACD,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,aAAa,CAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeSelect.d.ts","sourceRoot":"","sources":["../../src/components/ThemeSelect.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeSelect.d.ts","sourceRoot":"","sources":["../../src/components/ThemeSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAA0B,MAAM,eAAe,CAAA;AAG9D,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAA;CACrC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAA;AAEvC,eAAO,MAAM,WAAW,0BAA2B,gBAAgB,4CAsClE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VelocitySlider.d.ts","sourceRoot":"","sources":["../../src/components/VelocitySlider.tsx"],"names":[],"mappings":"AAKA,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CAC7C,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,cAAc,WAAoB,mBAAmB;;
|
|
1
|
+
{"version":3,"file":"VelocitySlider.d.ts","sourceRoot":"","sources":["../../src/components/VelocitySlider.tsx"],"names":[],"mappings":"AAKA,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CAC7C,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,cAAc,WAAoB,mBAAmB;;CAyChE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { VelocitySlider } from "
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { VelocitySlider } from "../index";
|
|
3
3
|
declare const meta: Meta<typeof VelocitySlider>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Default: StoryObj<typeof VelocitySlider>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VelocitySlider.stories.d.ts","sourceRoot":"","sources":["../../src/components/VelocitySlider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"VelocitySlider.stories.d.ts","sourceRoot":"","sources":["../../src/components/VelocitySlider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAGzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAmBrC,CAAA;AACD,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,cAAc,CAAM,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { JoggingCartesianAxisControl } from "./JoggingCartesianAxisControl";
|
|
3
3
|
declare const meta: Meta<typeof JoggingCartesianAxisControl>;
|
|
4
4
|
export default meta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingCartesianAxisControl.stories.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianAxisControl.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"JoggingCartesianAxisControl.stories.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianAxisControl.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAK3E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,2BAA2B,CA+BlD,CAAA;AACD,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,2BAA2B,CAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingCartesianTab.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianTab.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAA;AAa3E,eAAO,MAAM,mBAAmB,eAClB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;
|
|
1
|
+
{"version":3,"file":"JoggingCartesianTab.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianTab.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAA;AAa3E,eAAO,MAAM,mBAAmB,eAClB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;CAqOpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingCartesianValues.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianValues.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"JoggingCartesianValues.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianValues.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD,eAAO,MAAM,sBAAsB,eACrB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;CAuCpC,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { JoggingStore } from "./JoggingStore";
|
|
1
|
+
import type { JoggingStore } from "./JoggingStore";
|
|
2
2
|
/**
|
|
3
3
|
* Monitors the active robot motion state and displays a message if
|
|
4
4
|
* any joint limits are reached.
|
|
5
5
|
*/
|
|
6
|
-
export declare const JoggingJointLimitDetector: ({ store }: {
|
|
6
|
+
export declare const JoggingJointLimitDetector: ({ store, }: {
|
|
7
7
|
store: JoggingStore;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
//# sourceMappingURL=JoggingJointLimitDetector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingJointLimitDetector.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointLimitDetector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JoggingJointLimitDetector.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointLimitDetector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,eAEnC;IACD,KAAK,EAAE,YAAY,CAAA;CACpB,mDAsCA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingJointRotationControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointRotationControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAQvC,KAAK,gCAAgC,GAAG;IACtC,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,KAAK,IAAI,CAAA;IAC5C,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"JoggingJointRotationControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointRotationControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAQvC,KAAK,gCAAgC,GAAG;IACtC,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,KAAK,IAAI,CAAA;IAC5C,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;IAEtC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAA;AAEtC,eAAO,MAAM,2BAA2B,oGASnC,gCAAgC;;CAsLpC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { JoggingJointRotationControl } from "
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { JoggingJointRotationControl } from "../../index";
|
|
3
3
|
declare const meta: Meta<typeof JoggingJointRotationControl>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Default: StoryObj<typeof JoggingJointRotationControl>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingJointRotationControl.stories.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointRotationControl.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"JoggingJointRotationControl.stories.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointRotationControl.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAIzD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,2BAA2B,CAyClD,CAAA;AACD,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,2BAA2B,CAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingJointValues.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointValues.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"JoggingJointValues.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointValues.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIlD,eAAO,MAAM,kBAAkB,eACjB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;CAqCpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingOptions.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingOptions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JoggingOptions.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingOptions.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAqB,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAKrE,eAAO,MAAM,cAAc,eAAwB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;CAmIxE,CAAA"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JoggingStore } from "./JoggingStore";
|
|
2
|
+
import type { NovaClient } from "@wandelbots/wandelbots-js";
|
|
2
3
|
export type JoggingPanelProps = {
|
|
4
|
+
/** Connection to a Nova instance to use for jogging */
|
|
3
5
|
nova: NovaClient;
|
|
6
|
+
/** Id of the motion group to move e.g. 0@ur5e **/
|
|
4
7
|
motionGroupId: string;
|
|
8
|
+
/** Callback with the jogging panel's state store for further customization/config */
|
|
9
|
+
onSetup?: (store: JoggingStore) => void;
|
|
10
|
+
/** Any children will go at the bottom of the panel under the default components */
|
|
11
|
+
children?: React.ReactNode;
|
|
5
12
|
};
|
|
6
13
|
export declare const JoggingPanel: ((props: JoggingPanelProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
7
14
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingPanel.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JoggingPanel.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingPanel.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,uDAAuD;IACvD,IAAI,EAAE,UAAU,CAAA;IAChB,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAA;IACrB,qFAAqF;IACrF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IACvC,mFAAmF;IACnF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,YAAY,WAAoB,iBAAiB;;CAsG5D,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { JoggingPanel } from "
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { JoggingPanel } from "../../index";
|
|
3
3
|
declare const meta: Meta<typeof JoggingPanel>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Default: StoryObj<typeof JoggingPanel>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"JoggingPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAoBnC,CAAA;AACD,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,YAAY,CAAM,CAAA"}
|
|
@@ -21,13 +21,20 @@ export declare class JoggingStore {
|
|
|
21
21
|
readonly coordSystems: CoordinateSystem[];
|
|
22
22
|
readonly tcps: RobotTcp[];
|
|
23
23
|
selectedTabId: "cartesian" | "joint" | "debug";
|
|
24
|
-
|
|
24
|
+
/** Locks to prevent UI interactions during certain operations */
|
|
25
|
+
locks: Set<string>;
|
|
25
26
|
/**
|
|
26
27
|
* Id of selected coordinate system from among those defined on the API side
|
|
27
28
|
*/
|
|
28
29
|
selectedCoordSystemId: string;
|
|
29
30
|
/** Id of selected tool center point from among the options available on the robot */
|
|
30
31
|
selectedTcpId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the user is jogging in the coordinate system or tool orientation.
|
|
34
|
+
* When in tool orientation, the robot moves in a direction relative to the
|
|
35
|
+
* attached tool rotation.
|
|
36
|
+
*/
|
|
37
|
+
selectedOrientation: "coordsys" | "tool";
|
|
31
38
|
/**
|
|
32
39
|
* Id of selected increment amount for jogging. Options are defined by robot pad.
|
|
33
40
|
* When non-continuous, jogging moves the robot by a fixed number of mm or degrees
|
|
@@ -63,10 +70,12 @@ export declare class JoggingStore {
|
|
|
63
70
|
dispose(): void;
|
|
64
71
|
loadFromLocalStorage(): void;
|
|
65
72
|
saveToLocalStorage(): void;
|
|
73
|
+
get isLocked(): boolean;
|
|
66
74
|
get localStorageSave(): {
|
|
67
75
|
selectedTabId: "cartesian" | "joint" | "debug";
|
|
68
76
|
selectedCoordSystemId: string;
|
|
69
77
|
selectedTcpId: string;
|
|
78
|
+
selectedOrientation: "coordsys" | "tool";
|
|
70
79
|
selectedIncrementId: string;
|
|
71
80
|
selectedCartesianMotionType: "rotate" | "translate";
|
|
72
81
|
};
|
|
@@ -113,6 +122,7 @@ export declare class JoggingStore {
|
|
|
113
122
|
get tabIndex(): number;
|
|
114
123
|
get coordSystemsById(): import("lodash").Dictionary<CoordinateSystem>;
|
|
115
124
|
get selectedCoordSystem(): CoordinateSystem;
|
|
125
|
+
get activeCoordSystemId(): string;
|
|
116
126
|
get tcpsById(): import("lodash").Dictionary<RobotTcp>;
|
|
117
127
|
get selectedDiscreteIncrement(): {
|
|
118
128
|
id: string;
|
|
@@ -132,10 +142,13 @@ export declare class JoggingStore {
|
|
|
132
142
|
onTabChange(_event: React.SyntheticEvent, newValue: number): void;
|
|
133
143
|
setSelectedCoordSystemId(id: string): void;
|
|
134
144
|
setSelectedTcpId(id: string): void;
|
|
145
|
+
setSelectedOrientation(orientation: "coordsys" | "tool"): void;
|
|
135
146
|
setSelectedIncrementId(id: IncrementOptionId): void;
|
|
136
147
|
setIncrementJoggingInProgress(inProgress: boolean): void;
|
|
137
148
|
setVelocityFromSlider(velocity: number): void;
|
|
138
149
|
setSelectedCartesianMotionType(type: "translate" | "rotate"): void;
|
|
150
|
+
/** Lock the UI until the given async callback resolves */
|
|
151
|
+
withMotionLock(fn: () => Promise<void>): Promise<void>;
|
|
139
152
|
}
|
|
140
153
|
export {};
|
|
141
154
|
//# sourceMappingURL=JoggingStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingStore.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingStore.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAC1E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"JoggingStore.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingStore.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAC1E,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,QAAQ,EACT,MAAM,2BAA2B,CAAA;AAGlC,QAAA,MAAM,wBAAwB;;;;GAK7B,CAAA;AAED,QAAA,MAAM,gBAAgB;;;;;;IAGZ,CAAA;AAEV,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAC/E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAC/D,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,IAAI,CAAC,CAAA;AAErD,qBAAa,YAAY;IAuFrB,QAAQ,CAAC,MAAM,EAAE,gBAAgB;IACjC,QAAQ,CAAC,eAAe,EAAE,wBAAwB;IAClD,QAAQ,CAAC,YAAY,EAAE,gBAAgB,EAAE;IACzC,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE;IAzF3B,aAAa,EAAE,WAAW,GAAG,OAAO,GAAG,OAAO,CAAc;IAE5D,iEAAiE;IACjE,KAAK,cAAoB;IAEzB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAU;IAEvC,qFAAqF;IACrF,aAAa,EAAE,MAAM,CAAK;IAE1B;;;;OAIG;IACH,mBAAmB,EAAE,UAAU,GAAG,MAAM,CAAa;IAErD;;;;OAIG;IACH,mBAAmB,EAAE,iBAAiB,CAAe;IAErD;;;OAGG;IACH,2BAA2B,EAAE,WAAW,GAAG,QAAQ,CAAc;IAEjE,qEAAqE;IACrE,0BAA0B,UAAQ;IAElC,6EAA6E;IAC7E,2BAA2B,EAAE,MAAM,CAAK;IACxC,oFAAoF;IACpF,yBAAyB,EAAE,MAAM,CAAI;IAErC,iFAAiF;IACjF,8BAA8B,EAAE,MAAM,CAAI;IAC1C,iFAAiF;IACjF,8BAA8B,EAAE,MAAM,CAAM;IAE5C,8EAA8E;IAC9E,4BAA4B,EAAE,MAAM,CAAI;IACxC,8EAA8E;IAC9E,4BAA4B,EAAE,MAAM,CAAK;IAEzC,SAAS,EAAE,iBAAiB,EAAE,CAAK;IAEnC;;;OAGG;WACU,OAAO,CAAC,MAAM,EAAE,gBAAgB;gBA6BlC,MAAM,EAAE,gBAAgB,EACxB,eAAe,EAAE,wBAAwB,EACzC,YAAY,EAAE,gBAAgB,EAAE,EAChC,IAAI,EAAE,QAAQ,EAAE;IAuB3B,OAAO;IAOP,oBAAoB;IA6BpB,kBAAkB;IAOlB,IAAI,QAAQ,YAEX;IAED,IAAI,gBAAgB;;;;;;;MASnB;IAED,IAAI,IAAI;;;;;;OAWP;IAED,IAAI,gBAAgB;;;;;;SAEnB;IAED,IAAI,wBAAwB;;;;QAE3B;IAED,IAAI,oBAAoB;;;;;;OAEvB;IAED,IAAI,QAAQ;;;;;;OAEX;IAED,IAAI,UAAU;;;;;;MAEb;IAED,IAAI,QAAQ,WAEX;IAED,IAAI,gBAAgB,kDAEnB;IAED,IAAI,mBAAmB,qBAEtB;IAED,IAAI,mBAAmB,WAItB;IAED,IAAI,QAAQ,0CAEX;IAED,IAAI,yBAAyB;;;;kBAI5B;IAED,qEAAqE;IACrE,IAAI,0BAA0B,WAE7B;IAED,IAAI,sBAAsB,WAIzB;IAED,IAAI,yBAAyB,WAI5B;IAED,IAAI,yBAAyB,WAI5B;IAED;;;OAGG;IACH,IAAI,iBAAiB,2BASpB;IAED,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,EAAE,QAAQ,EAAE,MAAM;IAK1D,wBAAwB,CAAC,EAAE,EAAE,MAAM;IAInC,gBAAgB,CAAC,EAAE,EAAE,MAAM;IAI3B,sBAAsB,CAAC,WAAW,EAAE,UAAU,GAAG,MAAM;IAIvD,sBAAsB,CAAC,EAAE,EAAE,iBAAiB;IAI5C,6BAA6B,CAAC,UAAU,EAAE,OAAO;IAIjD,qBAAqB,CAAC,QAAQ,EAAE,MAAM;IAQtC,8BAA8B,CAAC,IAAI,EAAE,WAAW,GAAG,QAAQ;IAI3D,0DAA0D;IACpD,cAAc,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC;CAU7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingVelocitySlider.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingVelocitySlider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIlD,eAAO,MAAM,qBAAqB,eACpB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;
|
|
1
|
+
{"version":3,"file":"JoggingVelocitySlider.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingVelocitySlider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIlD,eAAO,MAAM,qBAAqB,eACpB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;CAkDpC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type Monaco } from "@monaco-editor/react";
|
|
2
|
-
import { editor } from "monaco-editor";
|
|
2
|
+
import type { editor } from "monaco-editor";
|
|
3
3
|
type WandelscriptEditorProps = {
|
|
4
4
|
/** The current Wandelscript content of the code editor (controlled component) */
|
|
5
5
|
code?: string;
|
|
6
6
|
/** What to do when the user edits the code */
|
|
7
7
|
onChange?: (code: string | undefined, ev: editor.IModelContentChangedEvent) => void;
|
|
8
|
-
/**
|
|
8
|
+
/** Options for monaco editor */
|
|
9
9
|
monacoOptions?: editor.IEditorOptions;
|
|
10
10
|
/** Callback to further configure monaco on startup if needed */
|
|
11
11
|
monacoSetup?: (monaco: Monaco) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WandelscriptEditor.d.ts","sourceRoot":"","sources":["../../../src/components/wandelscript-editor/WandelscriptEditor.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAa,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"WandelscriptEditor.d.ts","sourceRoot":"","sources":["../../../src/components/wandelscript-editor/WandelscriptEditor.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAa,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAarE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,KAAK,uBAAuB,GAAG;IAC7B,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CACT,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,EAAE,EAAE,MAAM,CAAC,yBAAyB,KACjC,IAAI,CAAA;IACT,gCAAgC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC,cAAc,CAAA;IACrC,gEAAgE;IAChE,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC,CAAA;AAED,yFAAyF;AACzF,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,mDAkGhE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { WandelscriptEditor } from "
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { WandelscriptEditor } from "../../index";
|
|
3
3
|
declare const meta: Meta<typeof WandelscriptEditor>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Editor: StoryObj<typeof WandelscriptEditor>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WandelscriptEditor.stories.d.ts","sourceRoot":"","sources":["../../../src/components/wandelscript-editor/WandelscriptEditor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"WandelscriptEditor.stories.d.ts","sourceRoot":"","sources":["../../../src/components/wandelscript-editor/WandelscriptEditor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAEzC,CAAA;AACD,eAAe,IAAI,CAAA;AA2BnB,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,OAAO,kBAAkB,CAWtD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Our components require a certain context that may or may not
|
|
3
|
+
* be provided by the user application; this wrapper ensures
|
|
4
|
+
* they can be used either way.
|
|
5
|
+
*/
|
|
6
|
+
export declare function externalizeComponent<T>(Component: (props: T) => React.ReactNode): (props: T) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=externalizeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"externalizeComponent.d.ts","sourceRoot":"","sources":["../src/externalizeComponent.tsx"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,WAEzB,CAAC,6CAKjB"}
|