@buerli.io/react-cad 0.5.0-beta.4 → 0.6.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/build/components/UI/CAD/Messages/Messages.d.ts +1 -1
- package/build/components/UI/CAD/Messages/msgStore.d.ts +1 -0
- package/build/components/UI/CAD/PluginBounds.d.ts +8 -0
- package/build/components/UI/CAD/PluginTooltip.d.ts +5 -0
- package/build/components/UI/CAD/Solids/ColorPicker.d.ts +1 -1
- package/build/components/UI/CAD/hooks/useMenuItems.d.ts +1 -1
- package/build/components/UI/CAD/plugins/ProductManagement/ProdTable.d.ts +5 -9
- package/build/components/UI/CAD/plugins/ProductManagement/types.d.ts +5 -0
- package/build/components/UI/CAD/plugins/ProductManagement/useMenuItems.d.ts +1 -1
- package/build/components/UI/editors/ExpressionEditor/ExpressionEditor.d.ts +1 -1
- package/build/components/UI/editors/NumberEditor/NumOrExpr.d.ts +2 -0
- package/build/components/UI/editors/useParam.d.ts +3 -1
- package/build/index.cjs.js +1680 -1096
- package/build/index.js +1706 -1122
- package/build/plugins/HLConstraints/components/LimitedValue.d.ts +1 -8
- package/build/plugins/HLConstraints/components/Limits.d.ts +1 -1
- package/build/types.d.ts +3 -0
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import 'antd/dist/antd.css';
|
|
3
3
|
import { DrawingID } from '@buerli.io/core';
|
|
4
4
|
export declare const MessageList: React.FC<{
|
|
5
|
-
|
|
5
|
+
isOpen: boolean;
|
|
6
6
|
}>;
|
|
7
7
|
export declare const Messages: React.FC<{
|
|
8
8
|
drawingId: DrawingID;
|
|
@@ -11,6 +11,7 @@ declare type StoreT = {
|
|
|
11
11
|
declare function createApi(set: SetState<StoreT>): {
|
|
12
12
|
setMsg: (msgId: string, msg: MessageT) => void;
|
|
13
13
|
deleteMsg: (msgId: string) => void;
|
|
14
|
+
deleteAllMsgs: () => void;
|
|
14
15
|
setShown: () => void;
|
|
15
16
|
};
|
|
16
17
|
export declare const useMsgStore: import("zustand").UseBoundStore<import("zustand").StoreApi<StoreT>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type PBContextProps = {
|
|
3
|
+
pluginBoundsRef: React.MutableRefObject<HTMLDivElement>;
|
|
4
|
+
};
|
|
5
|
+
export declare const PBContext: React.Context<PBContextProps>;
|
|
6
|
+
export declare const PluginBounds: React.FC<{
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
3
2
|
import 'antd/dist/antd.css';
|
|
3
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
4
4
|
import { MenuItems } from '../common/Menu';
|
|
5
5
|
export declare function useMenuItems(drawingId: DrawingID, featureId: ObjectID, isActive: boolean, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawingID, ObjectID, PluginID } from '@buerli.io/core';
|
|
3
|
-
export declare
|
|
4
|
-
prodId: ObjectID;
|
|
5
|
-
key: ObjectID;
|
|
6
|
-
notCreated?: boolean;
|
|
7
|
-
type?: 'asm' | 'part';
|
|
8
|
-
}[];
|
|
9
|
-
export declare const ProdTable: React.FC<{
|
|
3
|
+
export declare const ProdList: React.FC<{
|
|
10
4
|
drawingId: DrawingID;
|
|
11
5
|
pluginId: PluginID;
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
prodIds: ObjectID[];
|
|
7
|
+
type: 'part' | 'asm';
|
|
8
|
+
createMode: boolean;
|
|
9
|
+
setCreateMode: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
10
|
}>;
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import 'antd/dist/antd.css';
|
|
3
3
|
import { DrawingID, ObjectID, PluginID } from '@buerli.io/core';
|
|
4
4
|
import { MenuItems } from '../../common/Menu';
|
|
5
|
-
export declare function useMenuItems(drawingId: DrawingID, prodId: ObjectID, setEditName: React.Dispatch<React.SetStateAction<boolean
|
|
5
|
+
export declare function useMenuItems(drawingId: DrawingID, pluginId: PluginID, prodId: ObjectID, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MemberParam } from '../../../../types';
|
|
3
2
|
import { ExprMemToModify } from '@buerli.io/classcad';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
4
|
export declare const ExpressionEditor: React.FC<{
|
|
5
5
|
name: string;
|
|
6
6
|
expression: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawingID } from '@buerli.io/core';
|
|
3
|
+
export declare function isDegValue(expr: string): boolean;
|
|
3
4
|
export declare const NumOrExpr: React.FC<{
|
|
4
5
|
drawingId: DrawingID;
|
|
5
6
|
valOrExpr: number | string;
|
|
6
7
|
onChange: any;
|
|
7
8
|
defaults: number | string;
|
|
9
|
+
angle?: boolean;
|
|
8
10
|
allowExpr?: boolean;
|
|
9
11
|
prefix?: string;
|
|
10
12
|
}>;
|
|
@@ -12,7 +12,9 @@ import { MemberParam } from '../../../types';
|
|
|
12
12
|
* @param validation - Custom validation (used in useMateParam, useRefsParam. - these params has an array in userValue, so we need to apply validateF for each element from array).
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
export declare function useParam<T>(param: Omit<MemberParam<T>, 'serverValue' | 'validator' | 'setValidator'>, getServValue?: (x: T) => T, validation?: {
|
|
15
|
+
export declare function useParam<T>(param: Omit<MemberParam<T>, 'serverValue' | 'validator' | 'setValidator' | 'options'>, getServValue?: (x: T) => T, validation?: {
|
|
16
16
|
validator: () => string[];
|
|
17
17
|
setValidator: (...args: any[]) => void;
|
|
18
|
+
}, options?: {
|
|
19
|
+
[key: string]: any;
|
|
18
20
|
}): MemberParam<T>;
|