@seatmap.pro/renderer 0.1.0 → 1.53.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seatmap.pro/renderer",
3
- "version": "0.1.0",
3
+ "version": "1.53.0",
4
4
  "description": "Seatmap renderer library for booking and admin interfaces by Seatmap.pro",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -39,23 +39,25 @@
39
39
  "default": "./lib/index.js"
40
40
  },
41
41
  "scripts": {
42
- "postinstall": "npx update-browserslist-db@latest || true",
43
- "prebuild": "npx update-browserslist-db@latest || true",
44
42
  "start": "vite",
45
43
  "build:vite": "vite build",
44
+ "postinstall": "npx update-browserslist-db@latest || true",
45
+ "update-version": "node scripts/update-version.js",
46
+ "prebuild": "yarn update-version && npx update-browserslist-db@latest || true",
47
+ "build:playground": "rimraf dist-playground && vite build --config vite.config.demo.js && node scripts/obfuscate-demo.js",
48
+ "preview:playground": "vite preview --config vite.config.demo.js",
46
49
  "obfuscate-booking": "javascript-obfuscator ./dist/seatmap-booking-renderer.js --output ./dist/seatmap-booking-renderer.js --self-defending true",
47
50
  "obfuscate-admin": "javascript-obfuscator ./dist/seatmap-admin-renderer.js --output ./dist/seatmap-admin-renderer.js --self-defending true",
48
51
  "build": "yarn build-source && yarn docs && yarn obfuscate-booking && yarn obfuscate-admin",
49
52
  "build-source": "yarn type-check && rimraf ./dist && webpack",
50
53
  "type-check": "tsc --noEmit",
51
- "declaration": "rimraf temp && tsc --declaration --declarationDir ./temp/declaration --emitDeclarationOnly",
52
54
  "docs": "rimraf docs && typedoc",
53
- "build-lib": "tsup",
54
- "build-demo-standalone": "rimraf ./dist-demo && NODE_OPTIONS=--openssl-legacy-provider webpack --config webpack.config.demo-build.js && node cleanup-demo-build.js",
55
+ "build-lib": "yarn update-version && tsup",
55
56
  "test": "jest",
56
57
  "test:watch": "jest --watch",
57
58
  "test:coverage": "jest --coverage",
58
- "generate-schema": "typescript-json-schema tsconfig.json IBookingRendererSettings --out ./src/booking-renderer/schema.json"
59
+ "generate-schema": "ts-json-schema-generator --path 'src/booking-renderer/SeatmapBookingRenderer.ts' --tsconfig 'tsconfig.json' --type 'IBookingRendererSettings' --no-type-check --no-top-ref --out ./src/booking-renderer/schema.json",
60
+ "build-demo-standalone": "yarn update-version && rimraf ./dist-demo && NODE_OPTIONS=--openssl-legacy-provider webpack --config webpack.config.demo-build.js && node scripts/cleanup-demo-build.js"
59
61
  },
60
62
  "devDependencies": {
61
63
  "@babel/core": "^7.27.1",
@@ -115,7 +117,6 @@
115
117
  "typedoc": "^0.28.4",
116
118
  "typedoc-plugin-markdown": "^4.6.3",
117
119
  "typescript": "5.8.3",
118
- "typescript-json-schema": "^0.65.1",
119
120
  "vite": "^5.2.0",
120
121
  "vite-plugin-dts": "^3.7.3",
121
122
  "vite-plugin-glsl": "^1.2.1",
package/README.md DELETED
@@ -1,74 +0,0 @@
1
- # @seatmap.pro/renderer
2
-
3
- A powerful and flexible interactive seat map renderer for event ticketing systems.
4
-
5
- ## Overview
6
-
7
- The Seatmap.pro Renderer is a high-performance JavaScript library for rendering interactive venue seating charts. It provides a complete solution for displaying, selecting, and managing seats for events, concerts, theaters, sports venues, and more.
8
-
9
- ## Features
10
-
11
- - Interactive seat selection and deselection
12
- - Support for general admission areas
13
- - Customizable seat and section styling
14
- - Zoom and pan functionality
15
- - Mobile-friendly with touch support
16
- - High performance rendering using Canvas/WebGL
17
- - Comprehensive event system for integration with ticketing platforms
18
- - Accessibility features
19
-
20
- ## Installation
21
-
22
- ```bash
23
- npm install @seatmap.pro/renderer
24
- ```
25
-
26
- or
27
-
28
- ```bash
29
- yarn add @seatmap.pro/renderer
30
- ```
31
-
32
- ## Basic Usage
33
-
34
- ```javascript
35
- import { SeatmapBookingRenderer } from '@seatmap.pro/renderer';
36
-
37
- // Create a new renderer instance
38
- const renderer = new SeatmapBookingRenderer({
39
- container: document.getElementById('seatmap-container'),
40
- onSeatSelect: (seat) => {
41
- console.log('Seat selected:', seat);
42
- },
43
- onSchemaDataLoaded: () => {
44
- console.log('Schema data loaded successfully');
45
- }
46
- });
47
-
48
- // Load event data
49
- renderer.loadEvent(eventId);
50
- ```
51
-
52
- ## Documentation
53
-
54
- For detailed documentation, visit our:
55
-
56
- - [Knowledge Base](https://seatmap.pro/knowledge-base/) - Complete documentation for all Seatmap.pro components
57
- - [Renderer Specification](https://seatmap.pro/knowledge-base/renderer/spec/) - Detailed API reference for the renderer
58
- - [API Documentation](https://seatmap.pro/knowledge-base/api/v2/) - Additional API documentation
59
-
60
- ## Examples
61
-
62
- Check out our [examples page](https://seatmap.pro/knowledge-base/renderer/sdk/) for implementation samples.
63
-
64
- ## Product Website
65
-
66
- For more information, pricing, and demos, visit [https://seatmap.pro](https://seatmap.pro).
67
-
68
- ## License
69
-
70
- This package is licensed under a commercial license. Please contact [support@seatmap.pro](mailto:support@seatmap.pro) for licensing information.
71
-
72
- ## Support
73
-
74
- For support, please contact [support@seatmap.pro](mailto:support@seatmap.pro) or visit our [support portal](https://support.seatmap.pro).