@product7/product7-js 0.5.4 → 0.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +10 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@product7/product7-js",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "JavaScript SDK for integrating Product7 feedback widgets into any website",
5
5
  "main": "dist/product7-js.js",
6
6
  "module": "src/index.js",
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module '@product7/product7-js' {
1
+ declare module '@product7/product7-js' {
2
2
  export interface FeedbackConfig {
3
3
  workspace: string;
4
4
  metadata?: Metadata;
@@ -57,7 +57,7 @@ declare module '@product7/product7-js' {
57
57
  feedback?: Partial<FeedbackWidgetOptions> | Record<string, any>;
58
58
  button?: Partial<ButtonWidgetOptions> | Record<string, any>;
59
59
  survey?: Partial<SurveyWidgetOptions> | Record<string, any>;
60
- messenger?: Partial<MessengerWidgetOptions> | Record<string, any>;
60
+ webChat?: Partial<WebChatWidgetOptions> | Record<string, any>;
61
61
  changelog?: Partial<ChangelogWidgetOptions> | Record<string, any>;
62
62
  [key: string]: Record<string, any> | undefined;
63
63
  }
@@ -103,7 +103,7 @@ declare module '@product7/product7-js' {
103
103
  response: any;
104
104
  }>;
105
105
  createFeedbackWidget(options?: FeedbackWidgetOptions): FeedbackWidget;
106
- createMessengerWidget(options?: MessengerWidgetOptions): MessengerWidget;
106
+ createWebChatWidget(options?: WebChatWidgetOptions): WebChatWidget;
107
107
  createChangelogWidget(options?: ChangelogWidgetOptions): ChangelogWidget;
108
108
  createSurveyWidget(options?: SurveyWidgetOptions): SurveyWidget;
109
109
  createWidget(
@@ -113,9 +113,9 @@ declare module '@product7/product7-js' {
113
113
  createWidget(type: 'button', options?: ButtonWidgetOptions): ButtonWidget;
114
114
  createWidget(type: 'survey', options?: SurveyWidgetOptions): SurveyWidget;
115
115
  createWidget(
116
- type: 'messenger',
117
- options?: MessengerWidgetOptions
118
- ): MessengerWidget;
116
+ type: 'webChat',
117
+ options?: WebChatWidgetOptions
118
+ ): WebChatWidget;
119
119
  createWidget(
120
120
  type: 'changelog',
121
121
  options?: ChangelogWidgetOptions
@@ -295,7 +295,7 @@ declare module '@product7/product7-js' {
295
295
  refresh(): Promise<void>;
296
296
  }
297
297
 
298
- export interface MessengerWidgetOptions {
298
+ export interface WebChatWidgetOptions {
299
299
  enabled?: boolean;
300
300
  position?: 'bottom-right' | 'bottom-left';
301
301
  theme?: 'light' | 'dark';
@@ -348,9 +348,9 @@ declare module '@product7/product7-js' {
348
348
  onChangelogClick?: (changelog: any) => void;
349
349
  }
350
350
 
351
- export interface MessengerWidget {
351
+ export interface WebChatWidget {
352
352
  id: string;
353
- type: 'messenger';
353
+ type: 'webChat';
354
354
  mount(container?: string | HTMLElement): this;
355
355
  destroy(): void;
356
356
  open(): void;
@@ -375,3 +375,4 @@ declare module '@product7/product7-js' {
375
375
  const Product7Default: Product7Export;
376
376
  export default Product7Default;
377
377
  }
378
+