@processandtools/rp-article-designer 1.0.13 → 1.0.15

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 (118) hide show
  1. package/dist/components/article_designer/ArticleDesigner.d.ts +10 -0
  2. package/dist/components/article_designer/Designer.d.ts +4 -0
  3. package/dist/components/article_designer/Zone.d.ts +2 -0
  4. package/dist/components/article_designer/zoneElems/Back.d.ts +2 -0
  5. package/dist/components/article_designer/zoneElems/Bottom.d.ts +2 -0
  6. package/dist/components/article_designer/zoneElems/Divider.d.ts +13 -0
  7. package/dist/components/article_designer/zoneElems/Front.d.ts +2 -0
  8. package/dist/components/article_designer/zoneElems/Left.d.ts +2 -0
  9. package/dist/components/article_designer/zoneElems/Right.d.ts +2 -0
  10. package/dist/components/article_designer/zoneElems/Top.d.ts +2 -0
  11. package/dist/components/article_designer/zoneElems/sub_construction/LinearDividerRender.d.ts +13 -0
  12. package/dist/components/article_designer/zoneElems/sub_construction/SubArticleRender.d.ts +9 -0
  13. package/dist/components/elements_manager/PD_2D.d.ts +17 -0
  14. package/dist/components/elements_manager/PD_3D.d.ts +14 -0
  15. package/dist/components/ui/Canvas2D.d.ts +7 -0
  16. package/dist/components/ui/Canvas3D.d.ts +5 -0
  17. package/dist/components/ui/CanvasManager.d.ts +4 -0
  18. package/dist/components/ui/DimensionControl.d.ts +1 -0
  19. package/dist/components/ui/LoadingIndicator.d.ts +16 -0
  20. package/dist/components/ui/PerformanceMonitor.d.ts +1 -0
  21. package/dist/components/ui/UnifiedCanvas.d.ts +6 -0
  22. package/dist/components/ui/controls/VarController.d.ts +1 -0
  23. package/dist/components/ui/test/CustomShaderMaterial.d.ts +1 -0
  24. package/dist/components/ui/test/DataFieldsViewer.d.ts +8 -0
  25. package/dist/components/ui/test/ExtrudGeo.d.ts +1 -0
  26. package/dist/components/ui/test/GeneralTester.d.ts +1 -0
  27. package/dist/components/ui/test/MyParser.d.ts +1 -0
  28. package/dist/components/ui/test/PropertiesPanel.d.ts +1 -0
  29. package/dist/components/ui/test/TestDescriptorComparison.d.ts +6 -0
  30. package/dist/components/ui/test/TestDescriptorHooks.d.ts +6 -0
  31. package/dist/components/ui/test/TestDescriptorManager.d.ts +6 -0
  32. package/dist/components/ui/test/TestImageRender.d.ts +1 -0
  33. package/dist/components/ui/test/Test_KMS.d.ts +1 -0
  34. package/dist/components/ui/test/Test_MatSurfFetching.d.ts +1 -0
  35. package/dist/conditions/helpers/ComparisonMap.d.ts +2 -0
  36. package/dist/conditions/helpers/ConditionTreeEvaluator.d.ts +6 -0
  37. package/dist/conditions/helpers/KeyMap.d.ts +1 -0
  38. package/dist/conditions/types/condition.types.d.ts +39 -0
  39. package/dist/constants/Constants.d.ts +24 -0
  40. package/dist/constants/RalColors.d.ts +8 -0
  41. package/dist/construction_principle/cabin/CabinHelper.d.ts +52 -0
  42. package/dist/construction_principle/cabin/cabin.types.d.ts +4 -0
  43. package/dist/construction_principle/kms/KmsHelper.d.ts +50 -0
  44. package/dist/construction_principle/kms/KmsRenderSelector.d.ts +1 -0
  45. package/dist/construction_principle/kms/kms.types.d.ts +7 -0
  46. package/dist/construction_principle/material/MatHelper.d.ts +15 -0
  47. package/dist/construction_principle/material/material.types.d.ts +8 -0
  48. package/dist/construction_principle/render/RenderHelper.d.ts +7 -0
  49. package/dist/construction_principle/render/render.types.d.ts +4 -0
  50. package/dist/construction_principle/side_panel/CSideHelper.d.ts +52 -0
  51. package/dist/construction_principle/side_panel/cside.types.d.ts +4 -0
  52. package/dist/construction_principle/surface/SurfHelper.d.ts +15 -0
  53. package/dist/construction_principle/surface/surface.types.d.ts +8 -0
  54. package/dist/contexts/article/ArticleContext.d.ts +2 -3
  55. package/dist/contexts/article/ArticleProvider.d.ts +7 -0
  56. package/dist/contexts/article-data/DataContext.d.ts +2 -1
  57. package/dist/contexts/article-data/DataProvider.d.ts +2 -0
  58. package/dist/contexts/descriptor/DescriptorContext.d.ts +2 -3
  59. package/dist/contexts/descriptor/DescriptorProvider.d.ts +7 -0
  60. package/dist/contexts/mat-surf/MatSurfContext.d.ts +25 -0
  61. package/dist/contexts/mat-surf/MatSurfProvider.d.ts +9 -0
  62. package/dist/contexts/texture/TextureConfig.d.ts +15 -0
  63. package/dist/descriptor/Descriptor.d.ts +1 -0
  64. package/dist/descriptor/helper/DescriptorEvaluator.d.ts +2 -3
  65. package/dist/descriptor/helper/descriptor-type-guards.d.ts +6 -0
  66. package/dist/descriptor/services/DescriptorManager.d.ts +0 -1
  67. package/dist/descriptor/types/descriptor-data.types.d.ts +15 -0
  68. package/dist/descriptor/types/descriptor.types.d.ts +31 -0
  69. package/dist/helpers/CheckUrlExists.d.ts +1 -0
  70. package/dist/helpers/CpDispatcher.d.ts +53 -0
  71. package/dist/helpers/ExpressionResolver.d.ts +0 -1
  72. package/dist/helpers/GroupWrapper.d.ts +10 -0
  73. package/dist/helpers/LinDivHelper.d.ts +3 -0
  74. package/dist/helpers/LinDivPatternTransform.d.ts +2 -0
  75. package/dist/helpers/LindivResolver.d.ts +0 -1
  76. package/dist/helpers/MitreCalc.d.ts +11 -0
  77. package/dist/helpers/PositionHelper.d.ts +10 -0
  78. package/dist/helpers/VariableHelper.d.ts +2 -0
  79. package/dist/helpers/WallTransform.d.ts +6 -0
  80. package/dist/helpers/WallTransformGeo.d.ts +6 -0
  81. package/dist/helpers/ZoneCalculations.d.ts +425 -0
  82. package/dist/helpers/angls/UseClieHelper.d.ts +3 -0
  83. package/dist/helpers/angls/UseElemHelper.d.ts +79 -0
  84. package/dist/helpers/angls/UseGrtxHelper.d.ts +3 -0
  85. package/dist/helpers/angls/UsePrimHelper.d.ts +8 -0
  86. package/dist/helpers/angls/UseZoneHelper.d.ts +119 -0
  87. package/dist/hooks/useAPI.d.ts +5 -0
  88. package/dist/hooks/useData.d.ts +1 -1
  89. package/dist/hooks/useDescriptor.d.ts +0 -1
  90. package/dist/hooks/useDescriptorManager.d.ts +0 -1
  91. package/dist/hooks/useMaterialLoader.d.ts +8 -0
  92. package/dist/hooks/useZoneSelection.d.ts +12 -0
  93. package/dist/hooks/zoneDescriptor.d.ts +1 -2
  94. package/dist/index.cjs +1 -1
  95. package/dist/index.d.ts +1 -1
  96. package/dist/index.js +1 -1
  97. package/dist/services/ApiFactory.d.ts +20 -0
  98. package/dist/services/GenericApi.d.ts +25 -0
  99. package/dist/types/Elem.types.d.ts +10 -0
  100. package/dist/types/canvas.types.d.ts +7 -0
  101. package/dist/types/cp.types.d.ts +13 -0
  102. package/dist/types/data.types.d.ts +126 -0
  103. package/dist/types/divider.types.d.ts +2 -3
  104. package/dist/types/geometry.types.d.ts +19 -0
  105. package/dist/types/helper.types.d.ts +4 -0
  106. package/dist/types/pd.types.d.ts +7 -0
  107. package/dist/types/primitives.types.d.ts +18 -0
  108. package/dist/types/shape.types.d.ts +35 -0
  109. package/dist/types/wall.types.d.ts +8 -0
  110. package/dist/types/zone.types.d.ts +40 -0
  111. package/dist/variables/TestVariable.d.ts +1 -0
  112. package/dist/variables/TestVariableProvider.d.ts +1 -0
  113. package/dist/variables/VariableContext.d.ts +2 -0
  114. package/dist/variables/VariableProvider.d.ts +13 -0
  115. package/dist/variables/VariableResolver.d.ts +1 -2
  116. package/dist/variables/useVariables.d.ts +3 -3
  117. package/package.json +22 -34
  118. package/dist/textures/default.jpg +0 -0
@@ -0,0 +1,20 @@
1
+ import { ConditionTreeResponse } from '../conditions/types/condition.types';
2
+ import { GenericAPI } from './GenericApi';
3
+ import { DescriptorResponse } from '../descriptor/types/descriptor.types';
4
+ import { ArticleData } from '../types/data.types';
5
+ import { MaterialTypes } from '../construction_principle/material/material.types';
6
+ import { SurfaceTypes } from '../construction_principle/surface/surface.types';
7
+ declare class APIFactory {
8
+ private baseUrl;
9
+ constructor(baseUrl?: string);
10
+ conditionTree(): GenericAPI<ConditionTreeResponse>;
11
+ descriptor(): GenericAPI<DescriptorResponse<import('../descriptor/types/descriptor-data.types.ts').DescriptorTypeValue>>;
12
+ materialData(): GenericAPI<MaterialTypes>;
13
+ surfaceData(): GenericAPI<SurfaceTypes>;
14
+ articleData(): GenericAPI<ArticleData>;
15
+ descriptorData(): GenericAPI<DescriptorResponse<import('../descriptor/types/descriptor-data.types.ts').DescriptorTypeValue>>;
16
+ linDivData(): GenericAPI<string>;
17
+ otherData(): GenericAPI<string>;
18
+ }
19
+ export declare const api: APIFactory;
20
+ export { APIFactory };
@@ -0,0 +1,25 @@
1
+ export declare class GenericAPI<T> {
2
+ private endpoint;
3
+ private baseUrl;
4
+ constructor(endpoint: string, baseUrl?: string);
5
+ /**
6
+ * Fetch by ID
7
+ */
8
+ fetchById(id: string | number): Promise<T>;
9
+ /**
10
+ * Fetch all (list)
11
+ */
12
+ fetchAll(): Promise<T[]>;
13
+ /**
14
+ * Create (POST)
15
+ */
16
+ create(data: Partial<T>): Promise<T>;
17
+ /**
18
+ * Update (PUT)
19
+ */
20
+ update(id: string | number, data: Partial<T>): Promise<T>;
21
+ /**
22
+ * Delete
23
+ */
24
+ delete(id: string | number): Promise<void>;
25
+ }
@@ -0,0 +1,10 @@
1
+ import { ZoneProps } from './zone.types';
2
+ import { ElemHelperType } from './helper.types';
3
+ export interface ElemProps extends ZoneProps {
4
+ helper: {
5
+ front: ElemHelperType | null;
6
+ left: ElemHelperType | null;
7
+ right: ElemHelperType | null;
8
+ back: ElemHelperType | null;
9
+ };
10
+ }
@@ -0,0 +1,7 @@
1
+ import { VIEW } from './view.types';
2
+ export interface CanvasProps {
3
+ width: number;
4
+ height: number;
5
+ view?: VIEW;
6
+ articleName?: string;
7
+ }
@@ -0,0 +1,13 @@
1
+ export declare enum CPTypeCode {
2
+ SidePanel = "S",
3
+ Door = "D",
4
+ Back = "B",
5
+ Shelf = "H"
6
+ }
7
+ export declare enum CPTypeName {
8
+ SidePanel = "side_panel",
9
+ Door = "door",
10
+ Back = "back",
11
+ Shelf = "shelf"
12
+ }
13
+ export declare const CP_TYPE_MAP: Record<CPTypeCode, CPTypeName>;
@@ -0,0 +1,126 @@
1
+ import { ReactNode } from 'react';
2
+ import { DescriptorResponse } from '../descriptor/types/descriptor.types';
3
+ import { ImosVariable } from '../variables/variable.types';
4
+ import { CsideTypes } from '../construction_principle/side_panel/cside.types';
5
+ import { KmsTypes } from '../construction_principle/kms/kms.types';
6
+ import { MaterialTypes } from '../construction_principle/material/material.types';
7
+ import { SurfaceTypes } from '../construction_principle/surface/surface.types';
8
+ import { CabinTypes } from '../construction_principle/cabin/cabin.types';
9
+ import { CPTypeCode } from './cp.types';
10
+ export interface AngleElem {
11
+ NAME: string;
12
+ TREEID: string;
13
+ PARTTYPE: CPTypeCode;
14
+ CPNAME: string;
15
+ STARTTRIM: string;
16
+ ENDTRIM: string;
17
+ TOPTRIM: string;
18
+ BOTTRIM: string;
19
+ MANINFO: string;
20
+ STARTOFFS: number;
21
+ ENDOFFS: number;
22
+ TOPOFFS: number;
23
+ BOTOFFS: number;
24
+ INSETFOR: string;
25
+ INSET: number;
26
+ [key: string]: unknown;
27
+ }
28
+ export interface AnglZone {
29
+ NAME: string;
30
+ TREEID: string;
31
+ DIVDIR: 'A' | 'D' | 'H' | 'I' | 'V';
32
+ LINDIV1: string;
33
+ LINDIV2: string;
34
+ DIVELEM1: number;
35
+ TOPSHELF: string;
36
+ BOTSHELF: string;
37
+ DIVIDER: string;
38
+ DIVTYPE: 'A' | 'B' | 'C' | 'D' | 'F' | 'P' | 'S' | 'T' | 'V';
39
+ HORDEFTYPE: '2' | 'A' | 'D' | 'P' | 'W';
40
+ [key: string]: unknown;
41
+ }
42
+ export interface AnglPrim {
43
+ NAME: string;
44
+ CONTOUR: string;
45
+ SIZEX: number;
46
+ SIZEY: number;
47
+ SIZEZ: number;
48
+ DIMCALCFX: string;
49
+ DIMCALCFY: string;
50
+ DIMCALCFZ: string;
51
+ [key: string]: unknown;
52
+ }
53
+ export interface AnglClie {
54
+ NAME: string;
55
+ TREEID: string;
56
+ TAGNAME: string;
57
+ TAGVALUE: string;
58
+ DATATYPE: number;
59
+ INORDER: string;
60
+ [key: string]: unknown;
61
+ }
62
+ export interface AnglGrtx {
63
+ NAME: string;
64
+ TREEID: string;
65
+ NUM: number;
66
+ TEXT: string;
67
+ }
68
+ export interface DataContextType {
69
+ anglElems: AngleElem[];
70
+ anglZones: AnglZone[];
71
+ anglPrims: AnglPrim[];
72
+ anglClies: AnglClie[];
73
+ anglGrtxs: AnglGrtx[];
74
+ csides: CsideTypes[];
75
+ kmsList: KmsTypes[];
76
+ cabins: CabinTypes[];
77
+ variables: ImosVariable[];
78
+ selectedElem: string | null;
79
+ setSelectedElem: (elemId: string | null) => void;
80
+ hoveredElem: string | null;
81
+ setHoveredElem: (elemId: string | null) => void;
82
+ updateAnglPrim: (articleName: string, property: keyof AnglPrim, newValue: unknown) => void;
83
+ updateAnglElem: (articleName: string, treeid: string, property: keyof AngleElem, newValue: unknown) => void;
84
+ updateAnglZone: (articleName: string, treeid: string, property: keyof AnglZone, newValue: unknown) => void;
85
+ updateAnglClie: (articleName: string, treeid: string, tagname: string, newValue: string, datatype: number) => void;
86
+ updateVariable: (name: string, newValue: string) => void;
87
+ getArticleData: (articleName: string) => {
88
+ anglElems: AngleElem[];
89
+ anglZones: AnglZone[];
90
+ anglPrims: AnglPrim[];
91
+ anglClies: AnglClie[];
92
+ anglGrtxs: AnglGrtx[];
93
+ csides: CsideTypes[];
94
+ cabins: CabinTypes[];
95
+ variables: ImosVariable[];
96
+ };
97
+ allData: {
98
+ anglelem: AngleElem[];
99
+ anglzone: AnglZone[];
100
+ anglprim: AnglPrim[];
101
+ anglclie: AnglClie[];
102
+ anglgrtx: AnglGrtx[];
103
+ cside: CsideTypes[];
104
+ kms: KmsTypes[];
105
+ cabin: CabinTypes[];
106
+ };
107
+ }
108
+ export interface ArticleData {
109
+ anglzone: AnglZone[];
110
+ anglelem: AngleElem[];
111
+ anglprim: AnglPrim[];
112
+ anglclie: AnglClie[];
113
+ anglgrtx: AnglGrtx[];
114
+ descriptors: DescriptorResponse[];
115
+ variables: ImosVariable[];
116
+ cside?: CsideTypes[];
117
+ kms?: KmsTypes[];
118
+ cabin?: CabinTypes[];
119
+ materials?: MaterialTypes[];
120
+ surfaces?: SurfaceTypes[];
121
+ }
122
+ export interface DataProviderProps {
123
+ data: ArticleData;
124
+ children: ReactNode;
125
+ names?: string[];
126
+ }
@@ -1,6 +1,5 @@
1
- import { AnglZone } from './data.types.tsx';
2
- import { DimensionProps } from './zone.types.tsx';
3
-
1
+ import { AnglZone } from './data.types';
2
+ import { DimensionProps } from './zone.types';
4
3
  export type DivisionDirection = 'A' | 'D' | 'H' | 'I' | 'V';
5
4
  export type HorizontalDefType = '2' | 'A' | 'D' | 'P' | 'W';
6
5
  export type DividerType = 'A' | 'B' | 'C' | 'D' | 'F' | 'P' | 'S' | 'T' | 'V';
@@ -0,0 +1,19 @@
1
+ import { Dimensions } from './primitives.types';
2
+ export interface Geometry {
3
+ type: 'line' | 'box' | 'cylinder' | 'custom';
4
+ dimensions?: Dimensions;
5
+ metadata?: unknown;
6
+ }
7
+ export interface LineGeometry extends Geometry {
8
+ type: 'line';
9
+ dimensions: Required<Pick<Dimensions, 'height' | 'thickness'>> & Pick<Dimensions, 'width'>;
10
+ }
11
+ export interface BoxGeometry extends Geometry {
12
+ type: 'box';
13
+ dimensions: Required<Pick<Dimensions, 'width' | 'height' | 'depth'>>;
14
+ }
15
+ export interface CylinderGeometry extends Geometry {
16
+ type: 'cylinder';
17
+ dimensions: Required<Pick<Dimensions, 'radius' | 'height'>>;
18
+ }
19
+ export type GeometryTypes = LineGeometry | BoxGeometry | CylinderGeometry;
@@ -0,0 +1,4 @@
1
+ import { useElemHelper } from '../helpers/angls/UseElemHelper';
2
+ import { useZoneHelper } from '../helpers/angls/UseZoneHelper';
3
+ export type ElemHelperType = ReturnType<typeof useElemHelper>;
4
+ export type ZoneHelperType = ReturnType<typeof useZoneHelper>;
@@ -0,0 +1,7 @@
1
+ export interface PDProps {
2
+ length: number;
3
+ width: number;
4
+ thk: number;
5
+ material?: string;
6
+ opacity?: number;
7
+ }
@@ -0,0 +1,18 @@
1
+ export interface Point {
2
+ x: number;
3
+ y: number;
4
+ z: number;
5
+ }
6
+ export interface Dimensions {
7
+ width?: number;
8
+ height?: number;
9
+ depth?: number;
10
+ radius?: number;
11
+ length?: number;
12
+ thickness?: number;
13
+ }
14
+ export interface Rotation {
15
+ x: number;
16
+ y: number;
17
+ z: number;
18
+ }
@@ -0,0 +1,35 @@
1
+ import { BoxGeometry, CylinderGeometry, Geometry, LineGeometry } from './geometry.types';
2
+ import { Point, Rotation } from './primitives.types';
3
+ export interface Shape {
4
+ shapeType: string;
5
+ geometry: Geometry;
6
+ position?: Point;
7
+ rotation?: Rotation;
8
+ metadata?: unknown;
9
+ }
10
+ export interface WallShape extends Shape {
11
+ shapeType: 'wall';
12
+ geometry: LineGeometry;
13
+ startPoint: Point;
14
+ endPoint: Point;
15
+ }
16
+ export interface CabinetShape extends Shape {
17
+ shapeType: 'cabinet';
18
+ geometry: BoxGeometry;
19
+ position: Point;
20
+ rotation?: Rotation;
21
+ style?: string;
22
+ material?: string;
23
+ }
24
+ export interface DoorShape extends Shape {
25
+ shapeType: 'door';
26
+ geometry: BoxGeometry;
27
+ position: Point;
28
+ openingDirection: 'left' | 'right' | 'inward' | 'outward';
29
+ }
30
+ export interface ColumnShape extends Shape {
31
+ shapeType: 'column';
32
+ geometry: CylinderGeometry;
33
+ position: Point;
34
+ }
35
+ export type ShapeTypes = WallShape | CabinetShape | DoorShape | ColumnShape;
@@ -0,0 +1,8 @@
1
+ import { ShapeTypes, WallShape } from './shape.types';
2
+ export interface WallProps {
3
+ shape: WallShape;
4
+ }
5
+ export interface IArticleInstance {
6
+ shapeType: ShapeTypes;
7
+ articleName: string;
8
+ }
@@ -0,0 +1,40 @@
1
+ import { VIEW } from './view.types';
2
+ export interface ZoneProps {
3
+ view?: VIEW;
4
+ TREEID: string;
5
+ dimension: {
6
+ width: number;
7
+ height: number;
8
+ depth: number;
9
+ };
10
+ }
11
+ export interface DimensionProps {
12
+ width: number;
13
+ height: number;
14
+ depth: number;
15
+ }
16
+ export interface PositionedChild {
17
+ x: number;
18
+ y: number;
19
+ z: number;
20
+ zone_dims: DimensionProps;
21
+ TREEID: string;
22
+ }
23
+ export interface DividerPosition {
24
+ x: number;
25
+ y: number;
26
+ z: number;
27
+ width: number;
28
+ height: number;
29
+ depth: number;
30
+ }
31
+ export interface PositionHelperResult {
32
+ childPositions: PositionedChild[];
33
+ dividerType: 'width' | 'depth' | 'height' | 'article' | 'independent';
34
+ }
35
+ export interface ChildrenDimsResult {
36
+ isReversed?: boolean;
37
+ divisionType: 'width' | 'depth' | 'height' | 'article' | 'independent';
38
+ zone_dimensions: DimensionProps[];
39
+ divided_length_list: number[];
40
+ }
@@ -0,0 +1 @@
1
+ export default function TestVariable(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function TestVariableProvider(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { VariableContextValue } from './VariableProvider';
2
+ export declare const VariableContext: import('react').Context<VariableContextValue | undefined>;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { VariableTree } from './VariableResolver';
3
+ import { ImosVariable } from './variable.types';
4
+ export interface VariableProviderProps {
5
+ children: ReactNode;
6
+ imosVariables: ImosVariable[];
7
+ articleValues?: Record<string, string | number>;
8
+ }
9
+ export interface VariableContextValue {
10
+ tree: VariableTree;
11
+ setVarValue: (name: string, value: string | number) => void;
12
+ }
13
+ export declare function VariableProvider({ children, imosVariables, articleValues }: VariableProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { ImosVariable } from './variable.types.ts';
2
-
1
+ import { ImosVariable } from './variable.types';
3
2
  export type VariableTree = Map<string, ImosVariable>;
4
3
  /**
5
4
  * Create variable tree - just convert array to Map
@@ -3,9 +3,9 @@
3
3
  * Provides utilities to work with the variable tree
4
4
  */
5
5
  export declare function useVariables(): {
6
- tree: any;
7
- getValue: (name: string) => string | number;
6
+ tree: import('./VariableResolver.ts').VariableTree;
7
+ getValue: (name: string) => string | number | undefined;
8
8
  resolveString: (str: string) => string;
9
9
  hasVariables: (str: string) => boolean;
10
- setVarValue: any;
10
+ setVarValue: (name: string, value: string | number) => void;
11
11
  };
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@processandtools/rp-article-designer",
3
- "version": "1.0.13",
4
- "description": "3D Article Designer component library for furniture visualization using React Three Fiber",
3
+ "private": false,
4
+ "version": "1.0.15",
5
5
  "author": "Otman Abid Lmerabetine",
6
6
  "license": "MIT",
7
+ "type": "module",
8
+ "main": "./dist/index.cjs",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
7
11
  "keywords": [
8
12
  "react",
9
13
  "three",
@@ -16,10 +20,6 @@
16
20
  "react-three-fiber",
17
21
  "imos"
18
22
  ],
19
- "type": "module",
20
- "main": "./dist/index.cjs",
21
- "module": "./dist/index.js",
22
- "types": "./dist/index.d.ts",
23
23
  "exports": {
24
24
  ".": {
25
25
  "types": "./dist/index.d.ts",
@@ -33,8 +33,7 @@
33
33
  "LICENSE"
34
34
  ],
35
35
  "scripts": {
36
- "dev": "vite --host",
37
-
36
+ "dev": "vite",
38
37
  "build": "tsc -b && vite build",
39
38
  "build:lib": "vite build --mode production",
40
39
  "build:protected": "vite build --mode production && npx javascript-obfuscator dist --output dist",
@@ -54,40 +53,29 @@
54
53
  "three": ">=0.150.0"
55
54
  },
56
55
  "dependencies": {
57
- "imos-linear-division": "^0.1.3"
56
+ "@react-three/drei": ">=6.0.0",
57
+ "@react-three/fiber": ">=6.0.0",
58
+ "imos-linear-division": "^0.1.3",
59
+ "leva": ">=0.10.0",
60
+ "react": ">=16.0.0",
61
+ "react-dom": ">=16.0.0",
62
+ "react-use": "^17.6.0",
63
+ "three": ">=0.150.0"
58
64
  },
59
65
  "devDependencies": {
60
- "@react-three/postprocessing": "^3.0.4",
61
66
  "@eslint/js": "^9.39.1",
62
- "@react-three/drei": "^10.7.7",
63
- "@react-three/fiber": "^9.4.0",
64
- "@types/node": "^24.10.0",
65
- "@types/react": "^19.2.2",
66
- "@types/react-dom": "^19.2.2",
67
- "@types/three": "^0.181.0",
68
- "@vitejs/plugin-react": "^5.1.0",
69
- "d3-selection": "^3.0.0",
70
- "d3-zoom": "^3.0.0",
67
+ "@types/node": "^24.10.1",
68
+ "@types/react": "^19.2.5",
69
+ "@types/react-dom": "^19.2.3",
70
+ "@vitejs/plugin-react": "^5.1.1",
71
71
  "eslint": "^9.39.1",
72
72
  "eslint-plugin-react-hooks": "^7.0.1",
73
73
  "eslint-plugin-react-refresh": "^0.4.24",
74
74
  "globals": "^16.5.0",
75
75
  "javascript-obfuscator": "^5.1.0",
76
- "react": "^19.2.0",
77
- "react-dom": "^19.2.0",
78
- "react-use": "^17.6.0",
79
- "terser": "^5.44.1",
80
- "three": "^0.181.1",
81
76
  "typescript": "~5.9.3",
82
- "typescript-eslint": "^8.46.3",
83
- "vite": "^7.2.2",
84
- "vite-plugin-dts": "^3.9.1"
85
- },
86
- "publishConfig": {
87
- "access": "public"
88
- },
89
- "repository": {
90
- "type": "git",
91
- "url": "https://github.com/processandtools/rp-article-designer.git"
77
+ "typescript-eslint": "^8.46.4",
78
+ "vite": "^7.2.4",
79
+ "vite-plugin-dts": "^4.5.4"
92
80
  }
93
81
  }
Binary file