@bruit/component
Advanced tools
Comparing version 1.1.0-4 to 1.1.0-5
@@ -116,2 +116,5 @@ import { BrtFieldType } from '@bruit/types/dist/enums/brt-field-type'; | ||
} | ||
sendFeedback(dataa = [], dataFn, agreement = false, screenshotConfig) { | ||
return BruitCore.sendFeedback(dataa, dataFn, agreement, screenshotConfig); | ||
} | ||
static sendFeedback(data = [], dataFn, agreement = false, screenshotConfig) { | ||
@@ -129,2 +132,5 @@ var feedback = new Feedback(BruitCore._staticBruitCoreConfig); | ||
} | ||
sendError(error) { | ||
return BruitCore.sendError(error); | ||
} | ||
static sendError(error) { | ||
@@ -131,0 +137,0 @@ console.log('sendError called with ', error); |
@@ -33,3 +33,3 @@ /* tslint:disable */ | ||
'sendError': (error: string) => Promise<any>; | ||
'sendFeedback': (data?: BrtData[], dataFn?: () => BrtData[] | Promise<BrtData[]>, agreement?: boolean, screenshotConfig?: BrtScreenshot) => Promise<any>; | ||
'sendFeedback': (dataa?: BrtData[], dataFn?: () => BrtData[] | Promise<BrtData[]>, agreement?: boolean, screenshotConfig?: BrtScreenshot) => Promise<any>; | ||
} | ||
@@ -36,0 +36,0 @@ interface BruitCoreAttributes extends StencilHTMLAttributes { |
@@ -57,3 +57,5 @@ import '../../stencil.core'; | ||
newFeedbackWithModal(bruitIoConfig: BruitIoConfig, data?: Array<BrtData>, dataFn?: () => Array<BrtData> | Promise<Array<BrtData>>): Promise<void>; | ||
sendFeedback(dataa?: BrtData[], dataFn?: () => BrtData[] | Promise<BrtData[]>, agreement?: boolean, screenshotConfig?: BrtScreenshot): Promise<any>; | ||
static sendFeedback(data?: BrtData[], dataFn?: () => BrtData[] | Promise<BrtData[]>, agreement?: boolean, screenshotConfig?: BrtScreenshot): Promise<any>; | ||
sendError(error: string): Promise<any>; | ||
static sendError(error: string): Promise<any>; | ||
@@ -60,0 +62,0 @@ /** |
{ | ||
"name": "@bruit/component", | ||
"version": "1.1.0-4", | ||
"version": "1.1.0-5", | ||
"description": "send your feedbacks with bruit.io", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3469250
28098