@processandtools/rp-article-designer 1.0.34 → 1.0.36

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 (26) hide show
  1. package/dist/components/article_designer/ArticleDesigner.d.ts +2 -2
  2. package/dist/components/article_designer/Designer.d.ts +3 -4
  3. package/dist/components/article_designer/{Highlighter.d.ts → helpers/Highlighter.d.ts} +2 -2
  4. package/dist/construction_principle/{back_panel/BackPanelHelper.d.ts → cabBack/CabBackHelper.d.ts} +1 -1
  5. package/dist/construction_principle/cabin/{ShelfHelper.d.ts → CabinHelper.d.ts} +1 -1
  6. package/dist/construction_principle/dto/angl-type-config.d.ts +14 -0
  7. package/dist/construction_principle/dto/{cp.types.d.ts → cp-dispatcher.types.d.ts} +11 -16
  8. package/dist/contexts/dimension/DimensionContext.d.ts +6 -0
  9. package/dist/contexts/dimension/DimensionProvider.d.ts +6 -0
  10. package/dist/contexts/dimension/useDimensions.d.ts +1 -0
  11. package/dist/helpers/CpDispatcher.d.ts +5 -2
  12. package/dist/helpers/ZoneCalculations.d.ts +4 -16
  13. package/dist/helpers/angls/UseElemHelper.d.ts +1 -1
  14. package/dist/helpers/angls/UseZoneHelper.d.ts +5 -7
  15. package/dist/helpers/processLindivFixed.d.ts +14 -0
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.ts +3 -0
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/types/Elem.types.d.ts +6 -0
  22. package/dist/types/data.types.d.ts +5 -4
  23. package/dist/types/divider.types.d.ts +11 -1
  24. package/package.json +3 -1
  25. package/dist/components/article_designer/ArticleWithController.d.ts +0 -16
  26. /package/dist/construction_principle/{back_panel → cabBack}/cabback.types.d.ts +0 -0
@@ -1,5 +1,11 @@
1
1
  import { ZoneProps } from './zone.types';
2
2
  import { ElemHelperType } from './helper.types';
3
+ export declare enum ElemPartType {
4
+ SidePanel = "S",
5
+ Door = "D",
6
+ Back = "B",
7
+ Shelf = "H"
8
+ }
3
9
  export interface ElemProps extends ZoneProps {
4
10
  helper: {
5
11
  front: ElemHelperType | null;
@@ -7,12 +7,13 @@ import { MaterialTypes } from '../construction_principle/material/material.types
7
7
  import { SurfaceTypes } from '../construction_principle/surface/surface.types';
8
8
  import { CabinTypes } from '../construction_principle/cabin/cabin.types';
9
9
  import { DoorTypes } from '../construction_principle/door/door.types';
10
- import { CabbackTypes } from '../construction_principle/back_panel/cabback.types';
11
- import { CPTypeCode } from '../construction_principle/dto/cp.types';
10
+ import { CabbackTypes } from '../construction_principle/cabBack/cabback.types';
11
+ import { DividerType } from './divider.types';
12
+ import { ElemPartType } from './Elem.types';
12
13
  export interface AngleElem {
13
14
  NAME: string;
14
15
  TREEID: string;
15
- PARTTYPE: CPTypeCode;
16
+ PARTTYPE: ElemPartType;
16
17
  CPNAME: string;
17
18
  STARTTRIM: string;
18
19
  ENDTRIM: string;
@@ -37,7 +38,7 @@ export interface AnglZone {
37
38
  TOPSHELF: string;
38
39
  BOTSHELF: string;
39
40
  DIVIDER: string;
40
- DIVTYPE: 'A' | 'B' | 'C' | 'D' | 'F' | 'P' | 'S' | 'T' | 'V';
41
+ DIVTYPE: DividerType;
41
42
  HORDEFTYPE: '2' | 'A' | 'D' | 'P' | 'W';
42
43
  [key: string]: unknown;
43
44
  }
@@ -2,7 +2,17 @@ import { AnglZone } from './data.types';
2
2
  import { DimensionProps } from './zone.types';
3
3
  export type DivisionDirection = 'A' | 'D' | 'H' | 'I' | 'V';
4
4
  export type HorizontalDefType = '2' | 'A' | 'D' | 'P' | 'W';
5
- export type DividerType = 'A' | 'B' | 'C' | 'D' | 'F' | 'P' | 'S' | 'T' | 'V';
5
+ export declare enum DividerType {
6
+ adjShelf = "A",
7
+ fixShelf = "F",
8
+ topShelf = "T",
9
+ botShelf = "B",
10
+ virtual = "V",
11
+ sidePanel = "S",
12
+ addPanel = "D",
13
+ partition = "P",
14
+ backPanel = "C"
15
+ }
6
16
  type DividerProps = Pick<AnglZone, 'NAME' | 'TREEID' | 'DIVDIR' | 'DIVTYPE' | 'HORDEFTYPE' | 'LINDIV1' | 'DIVELEM1' | 'DIVIDER'>;
7
17
  export declare const DividerTypeConst: {
8
18
  readonly LINEAR_DIVISION: "linear-division";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@processandtools/rp-article-designer",
3
3
  "private": false,
4
- "version": "1.0.34",
4
+ "version": "1.0.36",
5
5
  "author": "Otman Abid Lmerabetine",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -33,6 +33,7 @@
33
33
  "LICENSE"
34
34
  ],
35
35
  "scripts": {
36
+ "postinstall": "patch-package",
36
37
  "dev": "vite",
37
38
  "build": "tsc -b && vite build",
38
39
  "build:lib": "vite build --mode production",
@@ -76,6 +77,7 @@
76
77
  "eslint-plugin-react-refresh": "^0.4.24",
77
78
  "globals": "^16.5.0",
78
79
  "javascript-obfuscator": "^5.1.0",
80
+ "patch-package": "^8.0.1",
79
81
  "typescript": "~5.9.3",
80
82
  "typescript-eslint": "^8.46.4",
81
83
  "vite": "^7.2.4",
@@ -1,16 +0,0 @@
1
- import { VIEW } from '../../types/view.types';
2
- import { ArticleGroupTypes } from '../../types/article-group.types';
3
- export interface ArticleWithControllerProps {
4
- article: ArticleGroupTypes;
5
- articleId: string;
6
- position: [number, number, number];
7
- isSelected: boolean;
8
- onSelect: () => void;
9
- view: VIEW;
10
- debugMode: boolean;
11
- }
12
- /**
13
- * Wrapper component that provides shared context for both the article designer
14
- * and the variable controller, ensuring they work on the same variable state
15
- */
16
- export declare const ArticleWithController: import('react').NamedExoticComponent<ArticleWithControllerProps>;