@nuitee/booking-widget 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. package/README.md +4 -4
  2. package/USAGE.md +5 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -91,18 +91,18 @@ widget.open();
91
91
 
92
92
  ### Vanilla JavaScript (standalone script)
93
93
 
94
- No bundler: load the script and CSS, then create the widget.
94
+ No bundler: load the script and CSS from the CDN, then create the widget.
95
95
 
96
96
  ```html
97
- <link rel="stylesheet" href="node_modules/@nuitee/booking-widget/dist/booking-widget.css">
98
- <script src="node_modules/@nuitee/booking-widget/dist/booking-widget-standalone.js"></script>
97
+ <link rel="stylesheet" href="https://cdn.thehotelplanet.com/booking-widget/v1.0.0/dist/booking-widget.css">
98
+ <script src="https://cdn.thehotelplanet.com/booking-widget/v1.0.0/dist/booking-widget-standalone.js"></script>
99
99
 
100
100
  <div id="booking-widget-container"></div>
101
101
 
102
102
  <script>
103
103
  const widget = new BookingWidget({
104
104
  containerId: 'booking-widget-container',
105
- cssUrl: 'node_modules/@nuitee/booking-widget/dist/booking-widget.css',
105
+ cssUrl: 'https://cdn.thehotelplanet.com/booking-widget/v1.0.0/dist/booking-widget.css',
106
106
  propertyKey: 'your-property-key',
107
107
  onOpen: () => console.log('Opened'),
108
108
  onClose: () => console.log('Closed'),
package/USAGE.md CHANGED
@@ -170,22 +170,22 @@ Use the **standalone bundle** when you are not using a bundler: load the script
170
170
 
171
171
  ### 1. Load assets
172
172
 
173
+ Load the script and CSS from the CDN:
174
+
173
175
  ```html
174
- <link rel="stylesheet" href="node_modules/@nuitee/booking-widget/dist/booking-widget.css">
175
- <script src="node_modules/@nuitee/booking-widget/dist/booking-widget-standalone.js"></script>
176
+ <link rel="stylesheet" href="https://cdn.thehotelplanet.com/booking-widget/v1.0.0/dist/booking-widget.css">
177
+ <script src="https://cdn.thehotelplanet.com/booking-widget/v1.0.0/dist/booking-widget-standalone.js"></script>
176
178
 
177
179
  <div id="booking-widget-container"></div>
178
180
  ```
179
181
 
180
- Replace `node_modules/...` with your actual path or a CDN URL if you host the built files.
181
-
182
182
  ### 2. Create the widget
183
183
 
184
184
  ```html
185
185
  <script>
186
186
  const widget = new BookingWidget({
187
187
  containerId: 'booking-widget-container',
188
- cssUrl: 'node_modules/@nuitee/booking-widget/dist/booking-widget.css',
188
+ cssUrl: 'https://cdn.thehotelplanet.com/booking-widget/v1.0.0/dist/booking-widget.css',
189
189
  propertyKey: 'your-property-key',
190
190
  onOpen: () => console.log('Opened'),
191
191
  onClose: () => console.log('Closed'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuitee/booking-widget",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A beautiful, customizable booking widget modal that can be embedded in any website. Supports vanilla JavaScript, React, and Vue.js.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",