@nuitee/booking-widget 1.0.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 ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@nuitee/booking-widget",
3
+ "version": "1.0.0",
4
+ "description": "A beautiful, customizable booking widget modal that can be embedded in any website. Supports vanilla JavaScript, React, and Vue.js.",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.esm.js",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./react": {
15
+ "import": "./dist/react/index.js",
16
+ "require": "./dist/react/index.js",
17
+ "types": "./dist/react/index.d.ts"
18
+ },
19
+ "./vue": {
20
+ "import": "./dist/vue/index.js",
21
+ "require": "./dist/vue/index.js",
22
+ "types": "./dist/vue/index.d.ts"
23
+ },
24
+ "./css": "./dist/booking-widget.css",
25
+ "./standalone": "./dist/booking-widget-standalone.js"
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "README.md",
30
+ "USAGE.md",
31
+ "LICENSE"
32
+ ],
33
+ "scripts": {
34
+ "build": "node scripts/generate-stripe-config.js && npm run build:css && npm run build:js && npm run build:react && npm run build:vue && npm run build:types",
35
+ "build:stripe-config": "node scripts/generate-stripe-config.js",
36
+ "build:css": "mkdir -p dist dist/core && cp src/core/styles.css dist/booking-widget.css && cp src/core/styles.css dist/core/styles.css",
37
+ "build:js": "mkdir -p dist dist/core && cp src/core/widget.js dist/booking-widget.js && cp src/core/booking-api.js dist/core/booking-api.js && cp src/core/stripe-config.js dist/core/stripe-config.js && node scripts/inject-widget-bootstrap.js && cp src/standalone/bundle.js dist/booking-widget-standalone.js && node scripts/build-standalone.js && npm run build:entry",
38
+ "build:react": "mkdir -p dist/react && cp src/react/BookingWidget.jsx dist/react/BookingWidget.jsx && cp src/core/styles.css dist/react/styles.css",
39
+ "build:vue": "mkdir -p dist/vue && cp src/vue/BookingWidget.vue dist/vue/BookingWidget.vue && cp src/core/styles.css dist/vue/styles.css",
40
+ "build:types": "npm run build:types:main && npm run build:types:react && npm run build:types:vue",
41
+ "build:types:main": "mkdir -p dist && echo 'export class BookingWidget { constructor(options?: any); open(): void; close(): void; goToStep(step: string): void; }' > dist/index.d.ts",
42
+ "build:types:react": "mkdir -p dist/react && echo 'import React from \"react\"; export interface BookingWidgetProps { isOpen: boolean; onClose: () => void; onComplete?: (data: any) => void; onOpen?: () => void; } export default function BookingWidget(props: BookingWidgetProps): JSX.Element;' > dist/react/index.d.ts",
43
+ "build:types:vue": "mkdir -p dist/vue && echo 'import { DefineComponent } from \"vue\"; export interface BookingWidgetProps { isOpen: boolean; onClose: () => void; onComplete?: (data: any) => void; onOpen?: () => void; } declare const BookingWidget: DefineComponent<BookingWidgetProps>; export default BookingWidget;' > dist/vue/index.d.ts",
44
+ "build:entry": "node scripts/build-entry.js",
45
+ "clean": "rm -rf dist",
46
+ "prepublishOnly": "npm run build",
47
+ "dev": "npm run build && npm run serve",
48
+ "serve": "node scripts/serve-with-proxy.js",
49
+ "serve:static": "npx http-server . -p 8080 -o",
50
+ "watch": "npm run build && npm run serve"
51
+ },
52
+ "keywords": [
53
+ "booking",
54
+ "widget",
55
+ "modal",
56
+ "hotel",
57
+ "reservation",
58
+ "react",
59
+ "vue",
60
+ "component",
61
+ "booking-engine",
62
+ "shadcn",
63
+ "lucide"
64
+ ],
65
+ "author": "",
66
+ "license": "MIT",
67
+ "repository": {
68
+ "type": "git",
69
+ "url": ""
70
+ },
71
+ "bugs": {
72
+ "url": ""
73
+ },
74
+ "homepage": "",
75
+ "devDependencies": {
76
+ "http-server": "^14.1.1"
77
+ },
78
+ "peerDependencies": {
79
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
80
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
81
+ "vue": "^2.6.0 || ^3.0.0"
82
+ },
83
+ "peerDependenciesMeta": {
84
+ "react": {
85
+ "optional": true
86
+ },
87
+ "react-dom": {
88
+ "optional": true
89
+ },
90
+ "vue": {
91
+ "optional": true
92
+ }
93
+ },
94
+ "dependencies": {
95
+ "@stripe/stripe-js": "^4.8.0",
96
+ "lucide-react": "^0.263.1"
97
+ }
98
+ }