@contember/echo 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/README.md +2 -2
  2. package/dist/components/Echo.d.ts +2 -2
  3. package/dist/components/atoms/Button.d.ts +0 -2
  4. package/dist/components/icons/index.d.ts +0 -1
  5. package/dist/components/molecules/LauncherButton.d.ts +2 -0
  6. package/dist/components/molecules/StoredFeedback.d.ts +2 -0
  7. package/dist/{features/feedback/components → components/organisms}/FeedbackForm.d.ts +1 -1
  8. package/dist/config/drawingConfig.d.ts +5 -10
  9. package/dist/contexts/EchoContext.d.ts +5 -8
  10. package/dist/echo.es.js +5076 -6212
  11. package/dist/echo.umd.js +11 -1095
  12. package/dist/index.d.ts +4 -3
  13. package/dist/stores/drawingStore.d.ts +6 -7
  14. package/dist/stores/echoStore.d.ts +4 -11
  15. package/dist/stores/feedbackStore.d.ts +6 -6
  16. package/dist/stores/widgetStore.d.ts +9 -8
  17. package/dist/style.css +1 -0
  18. package/dist/types.d.ts +24 -30
  19. package/dist/utils/common.d.ts +1 -0
  20. package/dist/utils/format.d.ts +1 -0
  21. package/dist/utils/index.d.ts +10 -1
  22. package/dist/utils/listeners.d.ts +22 -0
  23. package/dist/utils/screenshot.d.ts +2 -6
  24. package/dist/utils/storage.d.ts +2 -2
  25. package/dist/utils/validators.d.ts +2 -0
  26. package/package.json +4 -6
  27. package/dist/components/EchoLayout.d.ts +0 -7
  28. package/dist/components/Launcher.d.ts +0 -6
  29. package/dist/components/Overlay.d.ts +0 -4
  30. package/dist/components/icons/MessageIcon.d.ts +0 -3
  31. package/dist/features/drawing/components/index.d.ts +0 -5
  32. package/dist/features/drawing/index.d.ts +0 -2
  33. package/dist/features/drawing/styles/ColorSelector.styles.d.ts +0 -2
  34. package/dist/features/drawing/styles/DrawingLayer.styles.d.ts +0 -2
  35. package/dist/features/drawing/styles/DrawingToolbar.styles.d.ts +0 -2
  36. package/dist/features/drawing/styles/DrawingTooltip.styles.d.ts +0 -2
  37. package/dist/features/drawing/styles/ShapeActions.styles.d.ts +0 -2
  38. package/dist/features/drawing/styles/index.d.ts +0 -6
  39. package/dist/features/feedback/components/index.d.ts +0 -1
  40. package/dist/features/feedback/index.d.ts +0 -2
  41. package/dist/features/feedback/styles/FeedbackForm.styles.d.ts +0 -2
  42. package/dist/features/feedback/styles/index.d.ts +0 -1
  43. package/dist/features/launcher/components/EchoLauncherButton.d.ts +0 -2
  44. package/dist/features/launcher/components/SavedPagesDropdown.d.ts +0 -2
  45. package/dist/features/launcher/styles/EchoLauncherButton.styles.d.ts +0 -2
  46. package/dist/features/launcher/styles/Notification.styles.d.ts +0 -2
  47. package/dist/features/launcher/styles/SavedPagesDropdown.styles.d.ts +0 -2
  48. package/dist/features/launcher/styles/WelcomeMessage.styles.d.ts +0 -2
  49. package/dist/features/launcher/styles/index.d.ts +0 -4
  50. package/dist/styles/Echo.styles.d.ts +0 -2
  51. package/dist/styles/index.d.ts +0 -2
  52. package/dist/styles/zIndex.d.ts +0 -13
  53. /package/dist/{features/drawing/components → components/atoms}/Shape.d.ts +0 -0
  54. /package/dist/{features/drawing/components → components/molecules}/ColorSelector.d.ts +0 -0
  55. /package/dist/{features/drawing/components → components/molecules}/DrawingToolbar.d.ts +0 -0
  56. /package/dist/{features/drawing/components → components/molecules}/DrawingTooltip.d.ts +0 -0
  57. /package/dist/{features/launcher/components → components/molecules}/Notification.d.ts +0 -0
  58. /package/dist/{features/drawing/components → components/molecules}/ShapeActions.d.ts +0 -0
  59. /package/dist/{features/launcher/components → components/molecules}/WelcomeMessage.d.ts +0 -0
  60. /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 Data Structure
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 FeedbackData {
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 { EchoOptions } from '~/types';
3
- export declare const Echo: Component<EchoOptions>;
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,4 +1,3 @@
1
- export * from './MessageIcon';
2
1
  export * from './ChevronRightIcon';
3
2
  export * from './ContemberIcon';
4
3
  export * from './HighlightIcon';
@@ -0,0 +1,2 @@
1
+ import type { Component } from 'solid-js';
2
+ export declare const LauncherButton: Component;
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'solid-js';
2
+ export declare const StoredFeedback: Component;
@@ -1,2 +1,2 @@
1
- import type { Component } from 'solid-js';
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
- interface ToolConfig {
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
- active: number;
13
- normal: number;
8
+ selected: number;
9
+ default: number;
14
10
  };
15
- hysteresis?: number;
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 { FeedbackData, TextConfig } from '~/types';
4
- interface EchoProviderProps {
5
- primaryColor: string;
6
- onSubmit: (data: FeedbackData) => Promise<void>;
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 {};