@zonetrix/shared 2.1.0 → 2.2.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/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
type SeatState = "available" | "reserved" | "selected" | "unavailable" | "hidden";
|
|
5
5
|
type SeatShape = "circle" | "square" | "rounded-square";
|
|
6
|
-
type Tool = "select" | "seat" | "row" | "section" | "
|
|
6
|
+
type Tool = "select" | "seat" | "row" | "section" | "object";
|
|
7
7
|
type EditorMode = "edit" | "read";
|
|
8
|
+
type ObjectType = "stage" | "table" | "wall" | "barrier" | "dj-booth" | "bar" | "entry-exit" | "custom";
|
|
8
9
|
/**
|
|
9
10
|
* Seat data structure used in the editor and viewer
|
|
10
11
|
*/
|
|
@@ -50,6 +51,12 @@ interface StageConfig {
|
|
|
50
51
|
color?: string;
|
|
51
52
|
floorId?: string;
|
|
52
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Object configuration (extends StageConfig with object type support)
|
|
56
|
+
*/
|
|
57
|
+
interface ObjectConfig extends StageConfig {
|
|
58
|
+
objectType?: ObjectType;
|
|
59
|
+
}
|
|
53
60
|
/**
|
|
54
61
|
* Floor configuration for multi-floor venues
|
|
55
62
|
*/
|
|
@@ -247,4 +254,4 @@ declare function importConfigFromJSON(jsonString: string): SeatMapConfig;
|
|
|
247
254
|
*/
|
|
248
255
|
declare function downloadConfigAsFile(config: SeatMapConfig, filename?: string): void;
|
|
249
256
|
|
|
250
|
-
export { type AlignmentGuide, type BookingSelection, type CanvasConfig, type CanvasState, type ColorSettings, DEFAULT_COLORS, type EditorMode, type RowPricing, type SeatData, type SeatMapConfig, type SeatMapMetadata, type SeatShape, type SeatState, type SectionConfig, type SerializedSeat, type SerializedSection, type SerializedStage, type StageConfig, type Tool, type ValidationResult, applySeatStateOverrides, calculateAvailableSeats, calculateCapacity, calculateSeatPrice, cloneConfig, createDefaultConfig, downloadConfigAsFile, exportConfigAsJSON, formatDate, generateId, getSelectedSeats, importConfigFromJSON, updateConfigTimestamp, validateSeatMapConfig };
|
|
257
|
+
export { type AlignmentGuide, type BookingSelection, type CanvasConfig, type CanvasState, type ColorSettings, DEFAULT_COLORS, type EditorMode, type ObjectConfig, type ObjectType, type RowPricing, type SeatData, type SeatMapConfig, type SeatMapMetadata, type SeatShape, type SeatState, type SectionConfig, type SerializedSeat, type SerializedSection, type SerializedStage, type StageConfig, type Tool, type ValidationResult, applySeatStateOverrides, calculateAvailableSeats, calculateCapacity, calculateSeatPrice, cloneConfig, createDefaultConfig, downloadConfigAsFile, exportConfigAsJSON, formatDate, generateId, getSelectedSeats, importConfigFromJSON, updateConfigTimestamp, validateSeatMapConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
type SeatState = "available" | "reserved" | "selected" | "unavailable" | "hidden";
|
|
5
5
|
type SeatShape = "circle" | "square" | "rounded-square";
|
|
6
|
-
type Tool = "select" | "seat" | "row" | "section" | "
|
|
6
|
+
type Tool = "select" | "seat" | "row" | "section" | "object";
|
|
7
7
|
type EditorMode = "edit" | "read";
|
|
8
|
+
type ObjectType = "stage" | "table" | "wall" | "barrier" | "dj-booth" | "bar" | "entry-exit" | "custom";
|
|
8
9
|
/**
|
|
9
10
|
* Seat data structure used in the editor and viewer
|
|
10
11
|
*/
|
|
@@ -50,6 +51,12 @@ interface StageConfig {
|
|
|
50
51
|
color?: string;
|
|
51
52
|
floorId?: string;
|
|
52
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Object configuration (extends StageConfig with object type support)
|
|
56
|
+
*/
|
|
57
|
+
interface ObjectConfig extends StageConfig {
|
|
58
|
+
objectType?: ObjectType;
|
|
59
|
+
}
|
|
53
60
|
/**
|
|
54
61
|
* Floor configuration for multi-floor venues
|
|
55
62
|
*/
|
|
@@ -247,4 +254,4 @@ declare function importConfigFromJSON(jsonString: string): SeatMapConfig;
|
|
|
247
254
|
*/
|
|
248
255
|
declare function downloadConfigAsFile(config: SeatMapConfig, filename?: string): void;
|
|
249
256
|
|
|
250
|
-
export { type AlignmentGuide, type BookingSelection, type CanvasConfig, type CanvasState, type ColorSettings, DEFAULT_COLORS, type EditorMode, type RowPricing, type SeatData, type SeatMapConfig, type SeatMapMetadata, type SeatShape, type SeatState, type SectionConfig, type SerializedSeat, type SerializedSection, type SerializedStage, type StageConfig, type Tool, type ValidationResult, applySeatStateOverrides, calculateAvailableSeats, calculateCapacity, calculateSeatPrice, cloneConfig, createDefaultConfig, downloadConfigAsFile, exportConfigAsJSON, formatDate, generateId, getSelectedSeats, importConfigFromJSON, updateConfigTimestamp, validateSeatMapConfig };
|
|
257
|
+
export { type AlignmentGuide, type BookingSelection, type CanvasConfig, type CanvasState, type ColorSettings, DEFAULT_COLORS, type EditorMode, type ObjectConfig, type ObjectType, type RowPricing, type SeatData, type SeatMapConfig, type SeatMapMetadata, type SeatShape, type SeatState, type SectionConfig, type SerializedSeat, type SerializedSection, type SerializedStage, type StageConfig, type Tool, type ValidationResult, applySeatStateOverrides, calculateAvailableSeats, calculateCapacity, calculateSeatPrice, cloneConfig, createDefaultConfig, downloadConfigAsFile, exportConfigAsJSON, formatDate, generateId, getSelectedSeats, importConfigFromJSON, updateConfigTimestamp, validateSeatMapConfig };
|