@product7/feedback-sdk 1.2.6 → 1.2.7

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
@@ -149,15 +149,15 @@ messenger.mount();
149
149
 
150
150
  ### SDK Configuration
151
151
 
152
- | Option | Type | Required | Default | Description |
153
- | ------------- | ------- | -------- | ------------ | ------------------------------------- |
154
- | `workspace` | string | ✅ | - | Your workspace subdomain |
155
- | `boardId` | string | ❌ | 'general' | Target board for feedback |
156
- | `userContext` | object | ❌ | null | User identification data |
157
- | `mock` | boolean | ❌ | false | Enable mock mode for development |
158
- | `debug` | boolean | ❌ | false | Enable debug logging |
159
- | `env` | string | ❌ | auto-detect | Environment: 'production' or 'staging'|
160
- | `apiUrl` | string | ❌ | null | Custom API URL (overrides env) |
152
+ | Option | Type | Required | Default | Description |
153
+ | ------------- | ------- | -------- | ----------- | -------------------------------------- |
154
+ | `workspace` | string | ✅ | - | Your workspace subdomain |
155
+ | `boardId` | string | ❌ | 'general' | Target board for feedback |
156
+ | `userContext` | object | ❌ | null | User identification data |
157
+ | `mock` | boolean | ❌ | false | Enable mock mode for development |
158
+ | `debug` | boolean | ❌ | false | Enable debug logging |
159
+ | `env` | string | ❌ | auto-detect | Environment: 'production' or 'staging' |
160
+ | `apiUrl` | string | ❌ | null | Custom API URL (overrides env) |
161
161
 
162
162
  ### Widget Configuration
163
163
 
@@ -433,32 +433,32 @@ messenger.mount();
433
433
 
434
434
  ### Messenger Configuration Options
435
435
 
436
- | Option | Type | Default | Description |
437
- | ------------------ | -------- | ---------------- | ---------------------------------------- |
438
- | `position` | string | 'bottom-right' | Widget position on screen |
439
- | `theme` | string | 'light' | 'light' or 'dark' |
440
- | `teamName` | string | 'Support' | Team name displayed in header |
441
- | `teamAvatars` | array | [] | Array of team member avatar URLs |
442
- | `welcomeMessage` | string | 'How can we help?' | Welcome message on home view |
443
- | `enableHelp` | boolean | true | Show help articles section |
444
- | `enableChangelog` | boolean | true | Show changelog section |
445
- | `logoUrl` | string | - | Custom logo URL |
446
- | `primaryColor` | string | '#1c1c1e' | Primary accent color |
447
- | `onSendMessage` | function | null | Callback when message is sent |
448
- | `onArticleClick` | function | null | Callback when help article is clicked |
449
- | `onChangelogClick` | function | null | Callback when changelog item is clicked |
436
+ | Option | Type | Default | Description |
437
+ | ------------------ | -------- | ------------------ | --------------------------------------- |
438
+ | `position` | string | 'bottom-right' | Widget position on screen |
439
+ | `theme` | string | 'light' | 'light' or 'dark' |
440
+ | `teamName` | string | 'Support' | Team name displayed in header |
441
+ | `teamAvatars` | array | [] | Array of team member avatar URLs |
442
+ | `welcomeMessage` | string | 'How can we help?' | Welcome message on home view |
443
+ | `enableHelp` | boolean | true | Show help articles section |
444
+ | `enableChangelog` | boolean | true | Show changelog section |
445
+ | `logoUrl` | string | - | Custom logo URL |
446
+ | `primaryColor` | string | '#1c1c1e' | Primary accent color |
447
+ | `onSendMessage` | function | null | Callback when message is sent |
448
+ | `onArticleClick` | function | null | Callback when help article is clicked |
449
+ | `onChangelogClick` | function | null | Callback when changelog item is clicked |
450
450
 
451
451
  ### Messenger Views
452
452
 
453
453
  The messenger widget includes multiple views:
454
454
 
455
- | View | Description |
456
- | --------------- | ---------------------------------------------- |
457
- | `home` | Welcome screen with quick actions |
458
- | `messages` | List of all conversations |
459
- | `chat` | Individual conversation chat view |
460
- | `help` | Help articles and collections |
461
- | `changelog` | Product updates and announcements |
455
+ | View | Description |
456
+ | ----------- | --------------------------------- |
457
+ | `home` | Welcome screen with quick actions |
458
+ | `messages` | List of all conversations |
459
+ | `chat` | Individual conversation chat view |
460
+ | `help` | Help articles and collections |
461
+ | `changelog` | Product updates and announcements |
462
462
 
463
463
  ### Programmatic Control
464
464
 
@@ -515,11 +515,11 @@ The WebSocket connection is managed automatically and reconnects on disconnectio
515
515
 
516
516
  The SDK automatically detects the environment based on the hostname:
517
517
 
518
- | Hostname Pattern | Environment |
519
- | ----------------------------------------- | ----------- |
520
- | `localhost`, `127.0.0.1`, `*.local` | staging |
521
- | Contains `staging` | staging |
522
- | All other hostnames | production |
518
+ | Hostname Pattern | Environment |
519
+ | ----------------------------------- | ----------- |
520
+ | `localhost`, `127.0.0.1`, `*.local` | staging |
521
+ | Contains `staging` | staging |
522
+ | All other hostnames | production |
523
523
 
524
524
  ```javascript
525
525
  // Auto-detection (recommended)
package/dist/README.md CHANGED
@@ -149,15 +149,15 @@ messenger.mount();
149
149
 
150
150
  ### SDK Configuration
151
151
 
152
- | Option | Type | Required | Default | Description |
153
- | ------------- | ------- | -------- | ------------ | ------------------------------------- |
154
- | `workspace` | string | ✅ | - | Your workspace subdomain |
155
- | `boardId` | string | ❌ | 'general' | Target board for feedback |
156
- | `userContext` | object | ❌ | null | User identification data |
157
- | `mock` | boolean | ❌ | false | Enable mock mode for development |
158
- | `debug` | boolean | ❌ | false | Enable debug logging |
159
- | `env` | string | ❌ | auto-detect | Environment: 'production' or 'staging'|
160
- | `apiUrl` | string | ❌ | null | Custom API URL (overrides env) |
152
+ | Option | Type | Required | Default | Description |
153
+ | ------------- | ------- | -------- | ----------- | -------------------------------------- |
154
+ | `workspace` | string | ✅ | - | Your workspace subdomain |
155
+ | `boardId` | string | ❌ | 'general' | Target board for feedback |
156
+ | `userContext` | object | ❌ | null | User identification data |
157
+ | `mock` | boolean | ❌ | false | Enable mock mode for development |
158
+ | `debug` | boolean | ❌ | false | Enable debug logging |
159
+ | `env` | string | ❌ | auto-detect | Environment: 'production' or 'staging' |
160
+ | `apiUrl` | string | ❌ | null | Custom API URL (overrides env) |
161
161
 
162
162
  ### Widget Configuration
163
163
 
@@ -433,32 +433,32 @@ messenger.mount();
433
433
 
434
434
  ### Messenger Configuration Options
435
435
 
436
- | Option | Type | Default | Description |
437
- | ------------------ | -------- | ---------------- | ---------------------------------------- |
438
- | `position` | string | 'bottom-right' | Widget position on screen |
439
- | `theme` | string | 'light' | 'light' or 'dark' |
440
- | `teamName` | string | 'Support' | Team name displayed in header |
441
- | `teamAvatars` | array | [] | Array of team member avatar URLs |
442
- | `welcomeMessage` | string | 'How can we help?' | Welcome message on home view |
443
- | `enableHelp` | boolean | true | Show help articles section |
444
- | `enableChangelog` | boolean | true | Show changelog section |
445
- | `logoUrl` | string | - | Custom logo URL |
446
- | `primaryColor` | string | '#1c1c1e' | Primary accent color |
447
- | `onSendMessage` | function | null | Callback when message is sent |
448
- | `onArticleClick` | function | null | Callback when help article is clicked |
449
- | `onChangelogClick` | function | null | Callback when changelog item is clicked |
436
+ | Option | Type | Default | Description |
437
+ | ------------------ | -------- | ------------------ | --------------------------------------- |
438
+ | `position` | string | 'bottom-right' | Widget position on screen |
439
+ | `theme` | string | 'light' | 'light' or 'dark' |
440
+ | `teamName` | string | 'Support' | Team name displayed in header |
441
+ | `teamAvatars` | array | [] | Array of team member avatar URLs |
442
+ | `welcomeMessage` | string | 'How can we help?' | Welcome message on home view |
443
+ | `enableHelp` | boolean | true | Show help articles section |
444
+ | `enableChangelog` | boolean | true | Show changelog section |
445
+ | `logoUrl` | string | - | Custom logo URL |
446
+ | `primaryColor` | string | '#1c1c1e' | Primary accent color |
447
+ | `onSendMessage` | function | null | Callback when message is sent |
448
+ | `onArticleClick` | function | null | Callback when help article is clicked |
449
+ | `onChangelogClick` | function | null | Callback when changelog item is clicked |
450
450
 
451
451
  ### Messenger Views
452
452
 
453
453
  The messenger widget includes multiple views:
454
454
 
455
- | View | Description |
456
- | --------------- | ---------------------------------------------- |
457
- | `home` | Welcome screen with quick actions |
458
- | `messages` | List of all conversations |
459
- | `chat` | Individual conversation chat view |
460
- | `help` | Help articles and collections |
461
- | `changelog` | Product updates and announcements |
455
+ | View | Description |
456
+ | ----------- | --------------------------------- |
457
+ | `home` | Welcome screen with quick actions |
458
+ | `messages` | List of all conversations |
459
+ | `chat` | Individual conversation chat view |
460
+ | `help` | Help articles and collections |
461
+ | `changelog` | Product updates and announcements |
462
462
 
463
463
  ### Programmatic Control
464
464
 
@@ -515,11 +515,11 @@ The WebSocket connection is managed automatically and reconnects on disconnectio
515
515
 
516
516
  The SDK automatically detects the environment based on the hostname:
517
517
 
518
- | Hostname Pattern | Environment |
519
- | ----------------------------------------- | ----------- |
520
- | `localhost`, `127.0.0.1`, `*.local` | staging |
521
- | Contains `staging` | staging |
522
- | All other hostnames | production |
518
+ | Hostname Pattern | Environment |
519
+ | ----------------------------------- | ----------- |
520
+ | `localhost`, `127.0.0.1`, `*.local` | staging |
521
+ | Contains `staging` | staging |
522
+ | All other hostnames | production |
523
523
 
524
524
  ```javascript
525
525
  // Auto-detection (recommended)