@product7/feedback-sdk 1.1.4 → 1.1.5

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
@@ -110,11 +110,11 @@ widget.mount();
110
110
  ```javascript
111
111
  const widget = feedback.createWidget('button', {
112
112
  position: 'bottom-right',
113
- displayMode: 'modal', // Centered overlay
113
+ displayMode: 'modal',
114
114
  size: 'large',
115
115
  backgroundColor: '#ffffff',
116
116
  textColor: '#1F2937',
117
- primaryColor: '#155EEF',
117
+ primaryColor: '#21244A',
118
118
  });
119
119
  widget.mount();
120
120
  ```
@@ -132,24 +132,24 @@ inline.mount('#feedback-container');
132
132
 
133
133
  ### SDK Configuration
134
134
 
135
- | Option | Type | Required | Default | Description |
136
- | ------------- | ------- | -------- | -------------- | ------------------------------------ |
137
- | `workspace` | string | ✅ | - | Your workspace subdomain |
138
- | `boardId` | string | ❌ | 'general' | Target board for feedback |
139
- | `userContext` | object | ❌ | null | User identification data |
140
- | `mock` | boolean | ❌ | false | Enable mock mode for development |
141
- | `debug` | boolean | ❌ | false | Enable debug logging |
135
+ | Option | Type | Required | Default | Description |
136
+ | ------------- | ------- | -------- | --------- | -------------------------------- |
137
+ | `workspace` | string | ✅ | - | Your workspace subdomain |
138
+ | `boardId` | string | ❌ | 'general' | Target board for feedback |
139
+ | `userContext` | object | ❌ | null | User identification data |
140
+ | `mock` | boolean | ❌ | false | Enable mock mode for development |
141
+ | `debug` | boolean | ❌ | false | Enable debug logging |
142
142
 
143
143
  ### Widget Configuration
144
144
 
145
- | Option | Type | Default | Description |
146
- | ----------------- | ------ | -------------- | ---------------------------------------- |
145
+ | Option | Type | Default | Description |
146
+ | ----------------- | ------ | -------------- | ---------------------------------------------- |
147
147
  | `displayMode` | string | 'panel' | `'panel'` (side slide) or `'modal'` (centered) |
148
- | `size` | string | 'medium' | `'small'`, `'medium'`, or `'large'` |
149
- | `position` | string | 'bottom-right' | Button position (see below) |
150
- | `backgroundColor` | string | '#ffffff' | Panel/modal background color |
151
- | `textColor` | string | '#1F2937' | Text color |
152
- | `primaryColor` | string | '#155EEF' | Button and accent color |
148
+ | `size` | string | 'medium' | `'small'`, `'medium'`, or `'large'` |
149
+ | `position` | string | 'bottom-right' | Button position (see below) |
150
+ | `backgroundColor` | string | '#ffffff' | Panel/modal background color |
151
+ | `textColor` | string | '#1F2937' | Text color |
152
+ | `primaryColor` | string | ''#21244A | Button and accent color |
153
153
 
154
154
  ### Position Options
155
155
 
@@ -185,6 +185,7 @@ const widget = feedback.createWidget('button', {
185
185
  ```
186
186
 
187
187
  This approach works better than predefined themes because:
188
+
188
189
  - Supports any brand color
189
190
  - Works with both light and dark designs
190
191
  - No restrictions on color combinations
@@ -229,6 +230,7 @@ window.FeedbackSDKConfig = {
229
230
  ```
230
231
 
231
232
  Mock mode simulates:
233
+
232
234
  - Session initialization
233
235
  - Feedback submission (with 500ms delay)
234
236
  - Default configuration values
@@ -249,6 +251,7 @@ const feedback = new FeedbackSDK({
249
251
  ```
250
252
 
251
253
  **API URLs:**
254
+
252
255
  - `https://api.product7.io/api/v1`
253
256
  - `https://{workspace}.api.product7.io/api/v1`
254
257
 
@@ -262,6 +265,7 @@ const feedback = new FeedbackSDK({
262
265
  ```
263
266
 
264
267
  **API URLs:**
268
+
265
269
  - `https://staging.api.product7.io/api/v1`
266
270
  - `https://{workspace}.staging.api.product7.io/api/v1`
267
271
 
package/dist/README.md CHANGED
@@ -110,11 +110,11 @@ widget.mount();
110
110
  ```javascript
111
111
  const widget = feedback.createWidget('button', {
112
112
  position: 'bottom-right',
113
- displayMode: 'modal', // Centered overlay
113
+ displayMode: 'modal',
114
114
  size: 'large',
115
115
  backgroundColor: '#ffffff',
116
116
  textColor: '#1F2937',
117
- primaryColor: '#155EEF',
117
+ primaryColor: '#21244A',
118
118
  });
119
119
  widget.mount();
120
120
  ```
@@ -132,24 +132,24 @@ inline.mount('#feedback-container');
132
132
 
133
133
  ### SDK Configuration
134
134
 
135
- | Option | Type | Required | Default | Description |
136
- | ------------- | ------- | -------- | -------------- | ------------------------------------ |
137
- | `workspace` | string | ✅ | - | Your workspace subdomain |
138
- | `boardId` | string | ❌ | 'general' | Target board for feedback |
139
- | `userContext` | object | ❌ | null | User identification data |
140
- | `mock` | boolean | ❌ | false | Enable mock mode for development |
141
- | `debug` | boolean | ❌ | false | Enable debug logging |
135
+ | Option | Type | Required | Default | Description |
136
+ | ------------- | ------- | -------- | --------- | -------------------------------- |
137
+ | `workspace` | string | ✅ | - | Your workspace subdomain |
138
+ | `boardId` | string | ❌ | 'general' | Target board for feedback |
139
+ | `userContext` | object | ❌ | null | User identification data |
140
+ | `mock` | boolean | ❌ | false | Enable mock mode for development |
141
+ | `debug` | boolean | ❌ | false | Enable debug logging |
142
142
 
143
143
  ### Widget Configuration
144
144
 
145
- | Option | Type | Default | Description |
146
- | ----------------- | ------ | -------------- | ---------------------------------------- |
145
+ | Option | Type | Default | Description |
146
+ | ----------------- | ------ | -------------- | ---------------------------------------------- |
147
147
  | `displayMode` | string | 'panel' | `'panel'` (side slide) or `'modal'` (centered) |
148
- | `size` | string | 'medium' | `'small'`, `'medium'`, or `'large'` |
149
- | `position` | string | 'bottom-right' | Button position (see below) |
150
- | `backgroundColor` | string | '#ffffff' | Panel/modal background color |
151
- | `textColor` | string | '#1F2937' | Text color |
152
- | `primaryColor` | string | '#155EEF' | Button and accent color |
148
+ | `size` | string | 'medium' | `'small'`, `'medium'`, or `'large'` |
149
+ | `position` | string | 'bottom-right' | Button position (see below) |
150
+ | `backgroundColor` | string | '#ffffff' | Panel/modal background color |
151
+ | `textColor` | string | '#1F2937' | Text color |
152
+ | `primaryColor` | string | ''#21244A | Button and accent color |
153
153
 
154
154
  ### Position Options
155
155
 
@@ -185,6 +185,7 @@ const widget = feedback.createWidget('button', {
185
185
  ```
186
186
 
187
187
  This approach works better than predefined themes because:
188
+
188
189
  - Supports any brand color
189
190
  - Works with both light and dark designs
190
191
  - No restrictions on color combinations
@@ -229,6 +230,7 @@ window.FeedbackSDKConfig = {
229
230
  ```
230
231
 
231
232
  Mock mode simulates:
233
+
232
234
  - Session initialization
233
235
  - Feedback submission (with 500ms delay)
234
236
  - Default configuration values
@@ -249,6 +251,7 @@ const feedback = new FeedbackSDK({
249
251
  ```
250
252
 
251
253
  **API URLs:**
254
+
252
255
  - `https://api.product7.io/api/v1`
253
256
  - `https://{workspace}.api.product7.io/api/v1`
254
257
 
@@ -262,6 +265,7 @@ const feedback = new FeedbackSDK({
262
265
  ```
263
266
 
264
267
  **API URLs:**
268
+
265
269
  - `https://staging.api.product7.io/api/v1`
266
270
  - `https://{workspace}.staging.api.product7.io/api/v1`
267
271