@pascal-app/core 0.3.2 → 0.3.3

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.
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  export declare const MaterialPreset: z.ZodEnum<{
3
- custom: "custom";
4
3
  white: "white";
5
4
  brick: "brick";
6
5
  concrete: "concrete";
@@ -10,6 +9,7 @@ export declare const MaterialPreset: z.ZodEnum<{
10
9
  plaster: "plaster";
11
10
  tile: "tile";
12
11
  marble: "marble";
12
+ custom: "custom";
13
13
  }>;
14
14
  export type MaterialPreset = z.infer<typeof MaterialPreset>;
15
15
  export declare const MaterialProperties: z.ZodObject<{
@@ -27,7 +27,6 @@ export declare const MaterialProperties: z.ZodObject<{
27
27
  export type MaterialProperties = z.infer<typeof MaterialProperties>;
28
28
  export declare const MaterialSchema: z.ZodObject<{
29
29
  preset: z.ZodOptional<z.ZodEnum<{
30
- custom: "custom";
31
30
  white: "white";
32
31
  brick: "brick";
33
32
  concrete: "concrete";
@@ -37,6 +36,7 @@ export declare const MaterialSchema: z.ZodObject<{
37
36
  plaster: "plaster";
38
37
  tile: "tile";
39
38
  marble: "marble";
39
+ custom: "custom";
40
40
  }>>;
41
41
  properties: z.ZodOptional<z.ZodObject<{
42
42
  color: z.ZodDefault<z.ZodString>;
@@ -20,7 +20,6 @@ export declare const CeilingNode: z.ZodObject<{
20
20
  children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodTemplateLiteral<`item_${string}`>>>>;
21
21
  material: z.ZodOptional<z.ZodObject<{
22
22
  preset: z.ZodOptional<z.ZodEnum<{
23
- custom: "custom";
24
23
  white: "white";
25
24
  brick: "brick";
26
25
  concrete: "concrete";
@@ -30,6 +29,7 @@ export declare const CeilingNode: z.ZodObject<{
30
29
  plaster: "plaster";
31
30
  tile: "tile";
32
31
  marble: "marble";
32
+ custom: "custom";
33
33
  }>>;
34
34
  properties: z.ZodOptional<z.ZodObject<{
35
35
  color: z.ZodDefault<z.ZodString>;
@@ -32,7 +32,6 @@ export declare const DoorNode: z.ZodObject<{
32
32
  type: z.ZodDefault<z.ZodLiteral<"door">>;
33
33
  material: z.ZodOptional<z.ZodObject<{
34
34
  preset: z.ZodOptional<z.ZodEnum<{
35
- custom: "custom";
36
35
  white: "white";
37
36
  brick: "brick";
38
37
  concrete: "concrete";
@@ -42,6 +41,7 @@ export declare const DoorNode: z.ZodObject<{
42
41
  plaster: "plaster";
43
42
  tile: "tile";
44
43
  marble: "marble";
44
+ custom: "custom";
45
45
  }>>;
46
46
  properties: z.ZodOptional<z.ZodObject<{
47
47
  color: z.ZodDefault<z.ZodString>;
@@ -146,9 +146,9 @@ declare const assetSchema: z.ZodObject<{
146
146
  src: z.ZodString;
147
147
  dimensions: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
148
148
  attachTo: z.ZodOptional<z.ZodEnum<{
149
+ ceiling: "ceiling";
149
150
  wall: "wall";
150
151
  "wall-side": "wall-side";
151
- ceiling: "ceiling";
152
152
  }>>;
153
153
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
154
  offset: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
@@ -241,9 +241,9 @@ export declare const ItemNode: z.ZodObject<{
241
241
  src: z.ZodString;
242
242
  dimensions: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
243
243
  attachTo: z.ZodOptional<z.ZodEnum<{
244
+ ceiling: "ceiling";
244
245
  wall: "wall";
245
246
  "wall-side": "wall-side";
246
- ceiling: "ceiling";
247
247
  }>>;
248
248
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
249
  offset: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
@@ -29,7 +29,6 @@ export declare const RoofSegmentNode: z.ZodObject<{
29
29
  type: z.ZodDefault<z.ZodLiteral<"roof-segment">>;
30
30
  material: z.ZodOptional<z.ZodObject<{
31
31
  preset: z.ZodOptional<z.ZodEnum<{
32
- custom: "custom";
33
32
  white: "white";
34
33
  brick: "brick";
35
34
  concrete: "concrete";
@@ -39,6 +38,7 @@ export declare const RoofSegmentNode: z.ZodObject<{
39
38
  plaster: "plaster";
40
39
  tile: "tile";
41
40
  marble: "marble";
41
+ custom: "custom";
42
42
  }>>;
43
43
  properties: z.ZodOptional<z.ZodObject<{
44
44
  color: z.ZodDefault<z.ZodString>;
@@ -19,7 +19,6 @@ export declare const RoofNode: z.ZodObject<{
19
19
  type: z.ZodDefault<z.ZodLiteral<"roof">>;
20
20
  material: z.ZodOptional<z.ZodObject<{
21
21
  preset: z.ZodOptional<z.ZodEnum<{
22
- custom: "custom";
23
22
  white: "white";
24
23
  brick: "brick";
25
24
  concrete: "concrete";
@@ -29,6 +28,7 @@ export declare const RoofNode: z.ZodObject<{
29
28
  plaster: "plaster";
30
29
  tile: "tile";
31
30
  marble: "marble";
31
+ custom: "custom";
32
32
  }>>;
33
33
  properties: z.ZodOptional<z.ZodObject<{
34
34
  color: z.ZodDefault<z.ZodString>;
@@ -79,9 +79,9 @@ export declare const SiteNode: z.ZodObject<{
79
79
  src: z.ZodString;
80
80
  dimensions: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
81
81
  attachTo: z.ZodOptional<z.ZodEnum<{
82
+ ceiling: "ceiling";
82
83
  wall: "wall";
83
84
  "wall-side": "wall-side";
84
- ceiling: "ceiling";
85
85
  }>>;
86
86
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
87
  offset: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
@@ -19,7 +19,6 @@ export declare const SlabNode: z.ZodObject<{
19
19
  type: z.ZodDefault<z.ZodLiteral<"slab">>;
20
20
  material: z.ZodOptional<z.ZodObject<{
21
21
  preset: z.ZodOptional<z.ZodEnum<{
22
- custom: "custom";
23
22
  white: "white";
24
23
  brick: "brick";
25
24
  concrete: "concrete";
@@ -29,6 +28,7 @@ export declare const SlabNode: z.ZodObject<{
29
28
  plaster: "plaster";
30
29
  tile: "tile";
31
30
  marble: "marble";
31
+ custom: "custom";
32
32
  }>>;
33
33
  properties: z.ZodOptional<z.ZodObject<{
34
34
  color: z.ZodDefault<z.ZodString>;
@@ -20,7 +20,6 @@ export declare const WallNode: z.ZodObject<{
20
20
  children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodTemplateLiteral<`item_${string}`>>>>;
21
21
  material: z.ZodOptional<z.ZodObject<{
22
22
  preset: z.ZodOptional<z.ZodEnum<{
23
- custom: "custom";
24
23
  white: "white";
25
24
  brick: "brick";
26
25
  concrete: "concrete";
@@ -30,6 +29,7 @@ export declare const WallNode: z.ZodObject<{
30
29
  plaster: "plaster";
31
30
  tile: "tile";
32
31
  marble: "marble";
32
+ custom: "custom";
33
33
  }>>;
34
34
  properties: z.ZodOptional<z.ZodObject<{
35
35
  color: z.ZodDefault<z.ZodString>;
@@ -19,7 +19,6 @@ export declare const WindowNode: z.ZodObject<{
19
19
  type: z.ZodDefault<z.ZodLiteral<"window">>;
20
20
  material: z.ZodOptional<z.ZodObject<{
21
21
  preset: z.ZodOptional<z.ZodEnum<{
22
- custom: "custom";
23
22
  white: "white";
24
23
  brick: "brick";
25
24
  concrete: "concrete";
@@ -29,6 +28,7 @@ export declare const WindowNode: z.ZodObject<{
29
28
  plaster: "plaster";
30
29
  tile: "tile";
31
30
  marble: "marble";
31
+ custom: "custom";
32
32
  }>>;
33
33
  properties: z.ZodOptional<z.ZodObject<{
34
34
  color: z.ZodDefault<z.ZodString>;
@@ -79,9 +79,9 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
79
  src: z.ZodString;
80
80
  dimensions: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
81
81
  attachTo: z.ZodOptional<z.ZodEnum<{
82
+ ceiling: "ceiling";
82
83
  wall: "wall";
83
84
  "wall-side": "wall-side";
84
- ceiling: "ceiling";
85
85
  }>>;
86
86
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
87
  offset: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
@@ -198,7 +198,6 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
198
198
  children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodTemplateLiteral<`item_${string}`>>>>;
199
199
  material: z.ZodOptional<z.ZodObject<{
200
200
  preset: z.ZodOptional<z.ZodEnum<{
201
- custom: "custom";
202
201
  white: "white";
203
202
  brick: "brick";
204
203
  concrete: "concrete";
@@ -208,6 +207,7 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
208
207
  plaster: "plaster";
209
208
  tile: "tile";
210
209
  marble: "marble";
210
+ custom: "custom";
211
211
  }>>;
212
212
  properties: z.ZodOptional<z.ZodObject<{
213
213
  color: z.ZodDefault<z.ZodString>;
@@ -278,9 +278,9 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
278
278
  src: z.ZodString;
279
279
  dimensions: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
280
280
  attachTo: z.ZodOptional<z.ZodEnum<{
281
+ ceiling: "ceiling";
281
282
  wall: "wall";
282
283
  "wall-side": "wall-side";
283
- ceiling: "ceiling";
284
284
  }>>;
285
285
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
286
286
  offset: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
@@ -374,7 +374,6 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
374
374
  type: z.ZodDefault<z.ZodLiteral<"slab">>;
375
375
  material: z.ZodOptional<z.ZodObject<{
376
376
  preset: z.ZodOptional<z.ZodEnum<{
377
- custom: "custom";
378
377
  white: "white";
379
378
  brick: "brick";
380
379
  concrete: "concrete";
@@ -384,6 +383,7 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
384
383
  plaster: "plaster";
385
384
  tile: "tile";
386
385
  marble: "marble";
386
+ custom: "custom";
387
387
  }>>;
388
388
  properties: z.ZodOptional<z.ZodObject<{
389
389
  color: z.ZodDefault<z.ZodString>;
@@ -427,7 +427,6 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
427
427
  children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodTemplateLiteral<`item_${string}`>>>>;
428
428
  material: z.ZodOptional<z.ZodObject<{
429
429
  preset: z.ZodOptional<z.ZodEnum<{
430
- custom: "custom";
431
430
  white: "white";
432
431
  brick: "brick";
433
432
  concrete: "concrete";
@@ -437,6 +436,7 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
437
436
  plaster: "plaster";
438
437
  tile: "tile";
439
438
  marble: "marble";
439
+ custom: "custom";
440
440
  }>>;
441
441
  properties: z.ZodOptional<z.ZodObject<{
442
442
  color: z.ZodDefault<z.ZodString>;
@@ -479,7 +479,6 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
479
479
  type: z.ZodDefault<z.ZodLiteral<"roof">>;
480
480
  material: z.ZodOptional<z.ZodObject<{
481
481
  preset: z.ZodOptional<z.ZodEnum<{
482
- custom: "custom";
483
482
  white: "white";
484
483
  brick: "brick";
485
484
  concrete: "concrete";
@@ -489,6 +488,7 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
489
488
  plaster: "plaster";
490
489
  tile: "tile";
491
490
  marble: "marble";
491
+ custom: "custom";
492
492
  }>>;
493
493
  properties: z.ZodOptional<z.ZodObject<{
494
494
  color: z.ZodDefault<z.ZodString>;
@@ -531,7 +531,6 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
531
531
  type: z.ZodDefault<z.ZodLiteral<"roof-segment">>;
532
532
  material: z.ZodOptional<z.ZodObject<{
533
533
  preset: z.ZodOptional<z.ZodEnum<{
534
- custom: "custom";
535
534
  white: "white";
536
535
  brick: "brick";
537
536
  concrete: "concrete";
@@ -541,6 +540,7 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
541
540
  plaster: "plaster";
542
541
  tile: "tile";
543
542
  marble: "marble";
543
+ custom: "custom";
544
544
  }>>;
545
545
  properties: z.ZodOptional<z.ZodObject<{
546
546
  color: z.ZodDefault<z.ZodString>;
@@ -645,7 +645,6 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
645
645
  type: z.ZodDefault<z.ZodLiteral<"window">>;
646
646
  material: z.ZodOptional<z.ZodObject<{
647
647
  preset: z.ZodOptional<z.ZodEnum<{
648
- custom: "custom";
649
648
  white: "white";
650
649
  brick: "brick";
651
650
  concrete: "concrete";
@@ -655,6 +654,7 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
655
654
  plaster: "plaster";
656
655
  tile: "tile";
657
656
  marble: "marble";
657
+ custom: "custom";
658
658
  }>>;
659
659
  properties: z.ZodOptional<z.ZodObject<{
660
660
  color: z.ZodDefault<z.ZodString>;
@@ -712,7 +712,6 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
712
712
  type: z.ZodDefault<z.ZodLiteral<"door">>;
713
713
  material: z.ZodOptional<z.ZodObject<{
714
714
  preset: z.ZodOptional<z.ZodEnum<{
715
- custom: "custom";
716
715
  white: "white";
717
716
  brick: "brick";
718
717
  concrete: "concrete";
@@ -722,6 +721,7 @@ export declare const AnyNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
722
721
  plaster: "plaster";
723
722
  tile: "tile";
724
723
  marble: "marble";
724
+ custom: "custom";
725
725
  }>>;
726
726
  properties: z.ZodOptional<z.ZodObject<{
727
727
  color: z.ZodDefault<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pascal-app/core",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Core library for Pascal 3D building editor",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",