@polycyphers/bim 0.1.0 → 0.1.2
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/EULA.md +2 -0
- package/README.md +17 -5
- package/dist/BimStudio.d.ts +7 -1
- package/dist/VersionHistory.d.ts +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1557 -1096
- package/dist/licensing.d.ts +8 -6
- package/dist/packageVersion.d.ts +1 -1
- package/dist/studioState.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +19 -9
- package/package.json +9 -4
package/dist/types.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ export interface Programme {
|
|
|
13
13
|
source: string;
|
|
14
14
|
}
|
|
15
15
|
export interface ProjectInput {
|
|
16
|
+
valueOrigins?: {
|
|
17
|
+
userGivenPaths: string[];
|
|
18
|
+
};
|
|
16
19
|
isDraft?: boolean;
|
|
17
20
|
footprint: {
|
|
18
21
|
diagonals?: {
|
|
@@ -83,15 +86,7 @@ export interface Snapshot {
|
|
|
83
86
|
input: ProjectInput;
|
|
84
87
|
proposals: Proposal[];
|
|
85
88
|
selectedProposalId: string | null;
|
|
86
|
-
reconciliation:
|
|
87
|
-
values?: ValueReport;
|
|
88
|
-
status: string;
|
|
89
|
-
solutions: {
|
|
90
|
-
areaM2: number;
|
|
91
|
-
perimeterM: number;
|
|
92
|
-
}[];
|
|
93
|
-
findings: unknown[];
|
|
94
|
-
};
|
|
89
|
+
reconciliation: FootprintReview;
|
|
95
90
|
}
|
|
96
91
|
export interface Bundle {
|
|
97
92
|
version: number;
|
|
@@ -173,3 +168,18 @@ export interface SavedArtifact {
|
|
|
173
168
|
}[];
|
|
174
169
|
createdAtUtc: string;
|
|
175
170
|
}
|
|
171
|
+
export interface ProjectVersionInfo {
|
|
172
|
+
version: number;
|
|
173
|
+
createdAtUtc: string;
|
|
174
|
+
operationId: string;
|
|
175
|
+
selectedProposalId: string | null;
|
|
176
|
+
note?: string | null;
|
|
177
|
+
}
|
|
178
|
+
export interface ProjectComparison {
|
|
179
|
+
leftVersion: number;
|
|
180
|
+
rightVersion: number;
|
|
181
|
+
changedInputs: string[];
|
|
182
|
+
areaDeltaM2: number | null;
|
|
183
|
+
leftProposalId: string | null;
|
|
184
|
+
rightProposalId: string | null;
|
|
185
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polycyphers/bim",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"files": [
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "node scripts/prepare-build.mjs && tsc --emitDeclarationOnly && vite build",
|
|
27
27
|
"prepack": "npm run build",
|
|
28
|
-
"test": "node --test tests
|
|
29
|
-
"verify:package": "npm run build && npm test && node scripts/verify-package.mjs"
|
|
28
|
+
"test": "node --experimental-strip-types --test tests/*.test.mjs && vitest run",
|
|
29
|
+
"verify:package": "npm run build && npm test && node scripts/verify-package.mjs",
|
|
30
|
+
"test:dom": "vitest run"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"react": ">=18 <20",
|
|
@@ -37,13 +38,17 @@
|
|
|
37
38
|
"dompurify": "3.4.17"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
41
|
+
"@testing-library/jest-dom": "7.0.1",
|
|
42
|
+
"@testing-library/react": "16.3.3",
|
|
40
43
|
"@types/react": "19.2.14",
|
|
41
44
|
"@types/react-dom": "19.2.3",
|
|
42
45
|
"@vitejs/plugin-react": "6.0.5",
|
|
46
|
+
"jsdom": "30.1.3",
|
|
43
47
|
"react": "19.2.8",
|
|
44
48
|
"react-dom": "19.2.8",
|
|
45
49
|
"typescript": "5.9.3",
|
|
46
|
-
"vite": "8.3.5"
|
|
50
|
+
"vite": "8.3.5",
|
|
51
|
+
"vitest": "5.0.5"
|
|
47
52
|
},
|
|
48
53
|
"description": "Commercial React sketch-to-layout and BIM studio for the canonical Polycyphers BIM API",
|
|
49
54
|
"private": false,
|