@contember/echo 0.0.24 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 { FeedbackPayload, FullEchoConfig, Notification, TextConfig } from '~/types';
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/echo",
3
3
  "license": "Apache-2.0",
4
- "version": "0.0.24",
4
+ "version": "0.0.26",
5
5
  "type": "module",
6
6
  "author": "neumie@neumie.dev",
7
7
  "keywords": [