@contember/echo 0.0.23 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/echo.es.js +1264 -6129
- package/dist/echo.umd.js +5 -26
- package/dist/stores/echoStore.d.ts +4 -1
- package/dist/stores/widgetStore.d.ts +1 -5
- package/package.json +1 -1
@@ -1,4 +1,5 @@
|
|
1
|
-
import type { FullEchoConfig } from '~/types';
|
1
|
+
import type { FeedbackPayload, FullEchoConfig } from '~/types';
|
2
|
+
import { type Notification } from '~/types';
|
2
3
|
import { type DrawingStore } from './drawingStore';
|
3
4
|
import { type FeedbackStore } from './feedbackStore';
|
4
5
|
import { type WidgetStore } from './widgetStore';
|
@@ -8,6 +9,8 @@ export type EchoStore = {
|
|
8
9
|
widget: WidgetStore;
|
9
10
|
methods: {
|
10
11
|
reset: () => void;
|
12
|
+
postSubmit: (result: Notification) => void;
|
13
|
+
onSubmit: (data: FeedbackPayload) => Promise<void>;
|
11
14
|
};
|
12
15
|
};
|
13
16
|
export declare const createEchoStore: (config: FullEchoConfig) => EchoStore;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { FullEchoConfig, Notification, TextConfig } from '~/types';
|
2
2
|
export type WidgetState = {
|
3
3
|
text: TextConfig;
|
4
4
|
isOpen: boolean;
|
@@ -15,9 +15,5 @@ export type WidgetState = {
|
|
15
15
|
export type WidgetStore = {
|
16
16
|
state: WidgetState;
|
17
17
|
setState: (state: Partial<WidgetState>) => void;
|
18
|
-
methods: {
|
19
|
-
postSubmit: (result: Notification) => void;
|
20
|
-
onSubmit: (data: FeedbackPayload) => Promise<void>;
|
21
|
-
};
|
22
18
|
};
|
23
19
|
export declare const createWidgetStore: (config: FullEchoConfig, currentPageKey: string) => WidgetStore;
|