@visns-studio/visns-components 5.15.7 → 5.15.9

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/README.md CHANGED
@@ -9,11 +9,11 @@ A comprehensive React component library used by the VISNS Studio team for CRM an
9
9
 
10
10
  VISNS Components is a React-based UI component library that provides a set of reusable, consistent, and customizable components for building web applications. It includes components for authentication, data grids, forms, navigation, and more, designed to work seamlessly together.
11
11
 
12
- ## Recent Updates (v5.15.4)
12
+ ## Recent Updates (v5.15.6)
13
13
 
14
14
  ### Latest Enhancements
15
15
 
16
- - **CameraPlacement Module**: New interactive camera placement tool with Verkada database integration, FOV visualization, grid-based camera selection, save/load functionality, and professional export capabilities
16
+ - **CameraPlacement Module**: Enhanced interactive camera placement tool with improved UI consistency, better icon visibility, drag-and-drop image upload, professional export capabilities, and complete Verkada database integration
17
17
  - **Complete StandardModal Migration**: All components now use StandardModal instead of reactjs-popup for consistent modal behavior across the entire library
18
18
  - **HTML Content Support**: Terms and conditions now properly parse HTML content from TinyMCE editors with clean rendering
19
19
  - **Improved Typography**: Refined font sizing in Terms and Conditions to match page typography hierarchy
@@ -2453,7 +2453,7 @@ The CustomFetch component includes these features:
2453
2453
  - **Authentication Handling**: Silently handles unauthenticated errors without showing toast notifications
2454
2454
 
2455
2455
  #### CameraPlacement
2456
- Interactive camera placement and visualization tool for security system design. Features a comprehensive Verkada camera database, FOV triangle visualization, and project save/load functionality.
2456
+ Interactive camera placement and visualization tool for security system design. Features a comprehensive Verkada camera database, FOV triangle visualization, and professional export capabilities with enhanced UI consistency.
2457
2457
 
2458
2458
  ```jsx
2459
2459
  import { CameraPlacement } from 'visns-components';
@@ -2462,34 +2462,46 @@ import { CameraPlacement } from 'visns-components';
2462
2462
  ```
2463
2463
 
2464
2464
  **Key Features:**
2465
- - **Dual Mode Support**: Switch between Mapbox map integration and image-based placement
2465
+ - **Enhanced User Interface**: Modern icon-based controls with tooltips, consistent color theming using project CSS variables
2466
+ - **Dual Mode Support**: Switch between Mapbox map integration and image-based placement with seamless transitions
2467
+ - **Drag & Drop Upload**: Direct image upload via drag-and-drop interface with visual feedback and file validation
2466
2468
  - **Verkada Database**: Complete catalog of Verkada cameras with specifications, FOV, and environmental ratings
2467
2469
  - **Grid-Based Selection**: Visual camera selection modal with categorized camera cards showing specs and icons
2468
2470
  - **FOV Visualization**: Intelligent field-of-view triangles with inverse distance scaling for realistic coverage display
2469
2471
  - **Interactive Placement**: Drag-and-drop camera positioning with rotation handles for directional adjustment
2470
- - **Save/Load Projects**: Export/import camera placements as JSON files for project continuity
2471
- - **Export Functionality**: Generate high-quality PNG exports with side-by-side camera reference lists
2472
- - **SweetAlert Integration**: Professional modal dialogs for confirmations and notifications
2472
+ - **Save/Load Projects**: Export/import camera placements as JSON files with project metadata and timestamps
2473
+ - **Professional Exports**: Generate high-quality PNG reports with side-by-side camera specifications and installation details
2474
+ - **SweetAlert Integration**: Professional modal dialogs for confirmations, error handling, and success notifications
2475
+
2476
+ **Recent Improvements (v5.15.6):**
2477
+ - **Icon Visibility**: Fixed save button icon visibility with improved color contrast and explicit styling
2478
+ - **UI Consistency**: All buttons now use project-standard color variables for consistent theming
2479
+ - **Tooltips**: CSS-based tooltips for all control buttons with descriptive text
2480
+ - **Error Prevention**: Rotation handle interactions no longer trigger accidental camera placement
2481
+ - **Confirmation Dialogs**: Delete confirmations now show camera names for better user context
2482
+ - **SCSS Structure**: Completely refactored styling with proper nesting and maintainable code structure
2473
2483
 
2474
2484
  **Camera Database:**
2475
2485
  - **29+ Camera Models**: Complete Verkada lineup including dome, bullet, PTZ, multisensor, fisheye, mini, and video intercom cameras
2476
- - **Detailed Specifications**: Resolution, FOV, IR range, sensor size, environment rating, and feature lists
2477
- - **Smart Categorization**: Organized by camera type with visual icons and environment compatibility
2478
- - **Advanced Models**: Support for optical zoom, telephoto lenses, 4K resolution, and specialized features
2486
+ - **Detailed Specifications**: Resolution, FOV, IR range, sensor size, environment rating, and comprehensive feature lists
2487
+ - **Smart Categorization**: Organized by camera type with visual icons and environment compatibility indicators
2488
+ - **Advanced Models**: Support for optical zoom, telephoto lenses, 4K resolution, and specialized security features
2489
+ - **Real-time Updates**: Live camera specification display in sidebar with direction controls and coordinate tracking
2479
2490
 
2480
2491
  **Technical Capabilities:**
2481
- - **Map Integration**: Mapbox GL JS with geocoding search and satellite imagery
2482
- - **Image Upload**: Support for floor plans and site diagrams with HTML5 file API
2483
- - **FOV Calculations**: Dynamic triangle sizing based on camera specifications with mathematical precision
2484
- - **Export Quality**: HTML2Canvas integration for professional-grade layout exports
2485
- - **State Management**: React hooks-based architecture with real-time updates
2492
+ - **Map Integration**: Mapbox GL JS with geocoding search, satellite imagery, and custom marker styling
2493
+ - **Image Processing**: Support for floor plans and site diagrams with HTML5 file API and FileReader integration
2494
+ - **FOV Calculations**: Dynamic triangle sizing based on camera specifications with mathematical precision and visual scaling
2495
+ - **Export Quality**: HTML2Canvas integration for professional-grade layout exports with custom report generation
2496
+ - **State Management**: React hooks-based architecture with real-time updates and persistent state handling
2497
+ - **Event Handling**: Advanced mouse/touch interactions for camera positioning, rotation, and tooltip management
2486
2498
 
2487
2499
  **Use Cases:**
2488
- - Security system design and planning
2489
- - Camera coverage analysis and optimization
2490
- - Client presentations with visual layouts
2491
- - Installation planning and documentation
2492
- - Site survey and assessment tools
2500
+ - Security system design and planning with professional documentation
2501
+ - Camera coverage analysis and optimization with visual feedback
2502
+ - Client presentations with high-quality visual layouts and specification sheets
2503
+ - Installation planning and documentation with detailed camera specifications
2504
+ - Site survey and assessment tools with save/load project functionality
2493
2505
 
2494
2506
  #### Download
2495
2507
 
package/package.json CHANGED
@@ -12,7 +12,8 @@
12
12
  "@nivo/core": "^0.99.0",
13
13
  "@nivo/line": "^0.99.0",
14
14
  "@nivo/pie": "^0.99.0",
15
- "@tanstack/react-query": "^5.84.1",
15
+ "@react-pdf/renderer": "^4.3.0",
16
+ "@tanstack/react-query": "^5.84.2",
16
17
  "@tinymce/miniature": "^6.0.0",
17
18
  "@tinymce/tinymce-react": "^6.3.0",
18
19
  "@uiw/react-color": "^2.7.3",
@@ -63,7 +64,7 @@
63
64
  "reactjs-popup": "^2.0.6",
64
65
  "style-loader": "^4.0.0",
65
66
  "swapy": "^1.0.5",
66
- "sweetalert2": "^11.22.2",
67
+ "sweetalert2": "^11.22.3",
67
68
  "tesseract.js": "^6.0.1",
68
69
  "truncate": "^3.0.0",
69
70
  "uuid": "^11.1.0",
@@ -82,10 +83,10 @@
82
83
  "copy-webpack-plugin": "^13.0.0",
83
84
  "css-loader": "^7.1.2",
84
85
  "css-minimizer-webpack-plugin": "^7.0.2",
85
- "mini-css-extract-plugin": "^2.9.2",
86
+ "mini-css-extract-plugin": "^2.9.4",
86
87
  "react": "^18.3.1",
87
88
  "react-dom": "^18.3.1",
88
- "sass": "^1.89.2",
89
+ "sass": "^1.90.0",
89
90
  "sass-loader": "^16.0.5"
90
91
  },
91
92
  "peerDependencies": {
@@ -93,7 +94,7 @@
93
94
  "react-dom": "^17.0.0 || ^18.0.0"
94
95
  },
95
96
  "name": "@visns-studio/visns-components",
96
- "version": "5.15.7",
97
+ "version": "5.15.9",
97
98
  "description": "Various packages to assist in the development of our Custom Applications.",
98
99
  "main": "src/index.js",
99
100
  "files": [