@contember/echo 0.0.21 → 0.0.22
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 +2 -2
- package/dist/components/Echo.d.ts +2 -2
- package/dist/components/atoms/Button.d.ts +0 -2
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/molecules/LauncherButton.d.ts +2 -0
- package/dist/components/molecules/StoredFeedback.d.ts +2 -0
- package/dist/{features/feedback/components → components/organisms}/FeedbackForm.d.ts +1 -1
- package/dist/config/drawingConfig.d.ts +5 -10
- package/dist/contexts/EchoContext.d.ts +5 -8
- package/dist/echo.es.js +5076 -6212
- package/dist/echo.umd.js +11 -1095
- package/dist/index.d.ts +4 -3
- package/dist/stores/drawingStore.d.ts +6 -7
- package/dist/stores/echoStore.d.ts +4 -11
- package/dist/stores/feedbackStore.d.ts +6 -6
- package/dist/stores/widgetStore.d.ts +9 -8
- package/dist/style.css +1 -0
- package/dist/types.d.ts +24 -30
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/format.d.ts +1 -0
- package/dist/utils/index.d.ts +10 -1
- package/dist/utils/listeners.d.ts +22 -0
- package/dist/utils/screenshot.d.ts +2 -6
- package/dist/utils/storage.d.ts +2 -2
- package/dist/utils/validators.d.ts +2 -0
- package/package.json +4 -6
- package/dist/components/EchoLayout.d.ts +0 -7
- package/dist/components/Launcher.d.ts +0 -6
- package/dist/components/Overlay.d.ts +0 -4
- package/dist/components/icons/MessageIcon.d.ts +0 -3
- package/dist/features/drawing/components/index.d.ts +0 -5
- package/dist/features/drawing/index.d.ts +0 -2
- package/dist/features/drawing/styles/ColorSelector.styles.d.ts +0 -2
- package/dist/features/drawing/styles/DrawingLayer.styles.d.ts +0 -2
- package/dist/features/drawing/styles/DrawingToolbar.styles.d.ts +0 -2
- package/dist/features/drawing/styles/DrawingTooltip.styles.d.ts +0 -2
- package/dist/features/drawing/styles/ShapeActions.styles.d.ts +0 -2
- package/dist/features/drawing/styles/index.d.ts +0 -6
- package/dist/features/feedback/components/index.d.ts +0 -1
- package/dist/features/feedback/index.d.ts +0 -2
- package/dist/features/feedback/styles/FeedbackForm.styles.d.ts +0 -2
- package/dist/features/feedback/styles/index.d.ts +0 -1
- package/dist/features/launcher/components/EchoLauncherButton.d.ts +0 -2
- package/dist/features/launcher/components/SavedPagesDropdown.d.ts +0 -2
- package/dist/features/launcher/styles/EchoLauncherButton.styles.d.ts +0 -2
- package/dist/features/launcher/styles/Notification.styles.d.ts +0 -2
- package/dist/features/launcher/styles/SavedPagesDropdown.styles.d.ts +0 -2
- package/dist/features/launcher/styles/WelcomeMessage.styles.d.ts +0 -2
- package/dist/features/launcher/styles/index.d.ts +0 -4
- package/dist/styles/Echo.styles.d.ts +0 -2
- package/dist/styles/index.d.ts +0 -2
- package/dist/styles/zIndex.d.ts +0 -13
- /package/dist/{features/drawing/components → components/atoms}/Shape.d.ts +0 -0
- /package/dist/{features/drawing/components → components/molecules}/ColorSelector.d.ts +0 -0
- /package/dist/{features/drawing/components → components/molecules}/DrawingToolbar.d.ts +0 -0
- /package/dist/{features/drawing/components → components/molecules}/DrawingTooltip.d.ts +0 -0
- /package/dist/{features/launcher/components → components/molecules}/Notification.d.ts +0 -0
- /package/dist/{features/drawing/components → components/molecules}/ShapeActions.d.ts +0 -0
- /package/dist/{features/launcher/components → components/molecules}/WelcomeMessage.d.ts +0 -0
- /package/dist/{features/drawing/components → components/organisms}/DrawingLayer.d.ts +0 -0
package/README.md
CHANGED
@@ -54,12 +54,12 @@ initEcho({
|
|
54
54
|
| `textConfig` | object | No | english | Customize all text elements in the interface |
|
55
55
|
| `onSubmit` | function | Yes | - | Callback function when feedback is submitted |
|
56
56
|
|
57
|
-
## Feedback
|
57
|
+
## Feedback Payload Structure
|
58
58
|
|
59
59
|
The `onSubmit` callback receives a data object with the following structure:
|
60
60
|
|
61
61
|
```typescript
|
62
|
-
interface
|
62
|
+
interface FeedbackPayload {
|
63
63
|
comment: string; // User's written feedback
|
64
64
|
screenshot: string; // Base64 encoded screenshot
|
65
65
|
metadata: {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { type Component } from 'solid-js';
|
2
|
-
import type {
|
3
|
-
export declare const Echo: Component<
|
2
|
+
import type { FullEchoConfig } from '~/types';
|
3
|
+
export declare const Echo: Component<FullEchoConfig>;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import type { Component, JSX } from 'solid-js';
|
2
|
-
import type { EnrichedStylesConfig } from '~/types';
|
3
2
|
type ButtonProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
4
3
|
variant?: 'primary' | 'secondary';
|
5
4
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
6
5
|
};
|
7
6
|
export declare const Button: Component<ButtonProps>;
|
8
|
-
export declare const buttonStyles: (config: EnrichedStylesConfig) => string;
|
9
7
|
export {};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import type
|
1
|
+
import { type Component } from 'solid-js';
|
2
2
|
export declare const FeedbackForm: Component;
|
@@ -1,18 +1,13 @@
|
|
1
1
|
import type { DrawingTool } from '~/types';
|
2
|
-
|
2
|
+
type ToolConfig = {
|
3
3
|
id: DrawingTool;
|
4
4
|
label: string;
|
5
5
|
getCursor: (color: string) => string;
|
6
|
-
strokeWidth:
|
7
|
-
active: number;
|
8
|
-
normal: number;
|
9
|
-
selected: number;
|
10
|
-
};
|
6
|
+
strokeWidth: number;
|
11
7
|
opacity: {
|
12
|
-
|
13
|
-
|
8
|
+
selected: number;
|
9
|
+
default: number;
|
14
10
|
};
|
15
|
-
|
16
|
-
}
|
11
|
+
};
|
17
12
|
export declare const toolConfig: Record<DrawingTool, ToolConfig>;
|
18
13
|
export {};
|
@@ -1,12 +1,9 @@
|
|
1
|
-
import { type Component } from 'solid-js';
|
1
|
+
import { type Component, JSXElement } from 'solid-js';
|
2
2
|
import { type EchoStore } from '~/stores';
|
3
|
-
import type {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
textConfig?: Partial<TextConfig>;
|
8
|
-
children: any;
|
9
|
-
}
|
3
|
+
import type { FullEchoConfig } from '~/types';
|
4
|
+
type EchoProviderProps = FullEchoConfig & {
|
5
|
+
children: JSXElement;
|
6
|
+
};
|
10
7
|
export declare const EchoProvider: Component<EchoProviderProps>;
|
11
8
|
export declare const useEchoStore: () => EchoStore;
|
12
9
|
export {};
|