few-ticket-widget 1.0.13 → 1.0.15

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
@@ -42,10 +42,10 @@ import TicketWidget from 'few-ticket-widget';
42
42
  function App() {
43
43
  return (
44
44
  <TicketWidget
45
- eventSlug="groove-&-chill-with-ayode"
45
+ eventSlug="my-event-slug"
46
46
  theme="dark"
47
47
  height={700}
48
- baseUrl="https://yourdomain.com"
48
+ baseUrl="https://fewticket.com"
49
49
  />
50
50
  );
51
51
  }
@@ -74,6 +74,9 @@ function App() {
74
74
  ### Step 2: Load widget script (CDN)
75
75
 
76
76
  ```html
77
+ <body>
78
+ <div id="ticket-widget"></div>
79
+ </body>
77
80
  <script src="https://cdn.jsdelivr.net/npm/few-ticket-widget/dist/embed-ticket-widget.js"></script>
78
81
  ```
79
82
 
@@ -83,10 +86,10 @@ function App() {
83
86
  <script>
84
87
  TicketWidget.create({
85
88
  id: 'ticket-widget',
86
- eventSlug: 'groove-&-chill-with-ayode',
89
+ eventSlug: 'my-event-slug',
87
90
  theme: 'dark',
88
91
  height: 700,
89
- baseUrl: 'https://yourdomain.com'
92
+ baseUrl: 'https://fewticket.com'
90
93
  });
91
94
  </script>
92
95
  ```
@@ -9,7 +9,8 @@
9
9
  const {
10
10
  eventSlug,
11
11
  theme = 'light',
12
- height = 700,
12
+ height = "700px",
13
+ width= "100%",
13
14
  baseUrl = 'https://fewticket.com'
14
15
  } = options;
15
16
 
@@ -22,8 +23,8 @@
22
23
 
23
24
  const iframe = document.createElement('iframe');
24
25
  iframe.src = iframeURL;
25
- iframe.style.width = '100%';
26
- iframe.style.height = height + 'px';
26
+ iframe.style.width = width;
27
+ iframe.style.height = height;
27
28
  iframe.style.border = '0';
28
29
 
29
30
  container.style.border = '1px solid #e5e5e5';
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export interface TicketWidgetProps {
7
7
  eventSlug: string;
8
8
  theme?: 'light' | 'dark';
9
9
  width?: string | number;
10
- height?: number;
10
+ height?: string | number;
11
11
  baseUrl?: string;
12
12
  }
13
13
 
@@ -21,7 +21,8 @@ export interface TicketWidgetEmbedOptions {
21
21
  id: string;
22
22
  eventSlug: string;
23
23
  theme?: 'light' | 'dark';
24
- height?: number;
24
+ width?: string;
25
+ height?: string;
25
26
  baseUrl?: string;
26
27
  }
27
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "few-ticket-widget",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "dist/react-ticket-widget.js",
5
5
  "files": [
6
6
  "dist"