@contember/echo 0.0.27 → 0.0.29

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.
Files changed (70) hide show
  1. package/dist/components/Echo.d.ts +3 -0
  2. package/dist/components/atoms/Button.d.ts +7 -0
  3. package/dist/components/atoms/Shape.d.ts +8 -0
  4. package/dist/components/atoms/index.d.ts +1 -0
  5. package/dist/components/atoms/inputs/CheckboxGroup.d.ts +9 -0
  6. package/dist/components/atoms/inputs/InputWrapper.d.ts +8 -0
  7. package/dist/components/atoms/inputs/RadioGroup.d.ts +9 -0
  8. package/dist/components/atoms/inputs/Select.d.ts +9 -0
  9. package/dist/components/atoms/inputs/TextArea.d.ts +9 -0
  10. package/dist/components/atoms/inputs/TextInput.d.ts +9 -0
  11. package/dist/components/icons/CheckCircleIcon.d.ts +3 -0
  12. package/dist/components/icons/ChevronRightIcon.d.ts +3 -0
  13. package/dist/components/icons/ContemberIcon.d.ts +3 -0
  14. package/dist/components/icons/ExternalLinkIcon.d.ts +3 -0
  15. package/dist/components/icons/HighlightIcon.d.ts +3 -0
  16. package/dist/components/icons/PenIcon.d.ts +3 -0
  17. package/dist/components/icons/TrashIcon.d.ts +3 -0
  18. package/dist/components/icons/XCircleIcon.d.ts +3 -0
  19. package/dist/components/icons/XIcon.d.ts +3 -0
  20. package/dist/components/icons/index.d.ts +8 -0
  21. package/dist/components/molecules/ColorSelector.d.ts +2 -0
  22. package/dist/components/molecules/CustomInput.d.ts +9 -0
  23. package/dist/components/molecules/DrawingToolbar.d.ts +2 -0
  24. package/dist/components/molecules/DrawingTooltip.d.ts +2 -0
  25. package/dist/components/molecules/LauncherButton.d.ts +2 -0
  26. package/dist/components/molecules/Notification.d.ts +2 -0
  27. package/dist/components/molecules/ShapeActions.d.ts +2 -0
  28. package/dist/components/molecules/StoredFeedback.d.ts +2 -0
  29. package/dist/components/molecules/WelcomeMessage.d.ts +2 -0
  30. package/dist/components/molecules/index.d.ts +8 -0
  31. package/dist/components/organisms/DrawingLayer.d.ts +2 -0
  32. package/dist/components/organisms/FeedbackForm.d.ts +2 -0
  33. package/dist/components/organisms/index.d.ts +2 -0
  34. package/dist/config/defaultText.d.ts +2 -0
  35. package/dist/config/drawingConfig.d.ts +13 -0
  36. package/dist/contexts/EchoContext.d.ts +9 -0
  37. package/dist/contexts/index.d.ts +1 -0
  38. package/dist/echo.es.js +1743 -1174
  39. package/dist/echo.umd.js +8 -9
  40. package/dist/hooks/useInputHandler.d.ts +7 -0
  41. package/dist/hooks/usePageHeight.d.ts +4 -0
  42. package/dist/hooks/usePageStateSync.d.ts +4 -0
  43. package/dist/index.d.ts +41 -2
  44. package/dist/stores/drawingStore.d.ts +39 -0
  45. package/dist/stores/echoStore.d.ts +15 -0
  46. package/dist/stores/feedbackStore.d.ts +17 -0
  47. package/dist/stores/index.d.ts +4 -0
  48. package/dist/stores/widgetStore.d.ts +21 -0
  49. package/dist/style.css +1 -1
  50. package/dist/types.d.ts +151 -0
  51. package/dist/utils/color.d.ts +2 -0
  52. package/dist/utils/common.d.ts +2 -0
  53. package/dist/utils/console.d.ts +4 -0
  54. package/dist/utils/device.d.ts +1 -0
  55. package/dist/utils/events.d.ts +5 -0
  56. package/dist/utils/format.d.ts +1 -0
  57. package/dist/utils/geometry.d.ts +8 -0
  58. package/dist/utils/index.d.ts +12 -0
  59. package/dist/utils/listeners.d.ts +24 -0
  60. package/dist/utils/metadata.d.ts +2 -0
  61. package/dist/utils/monkeyPatch.d.ts +4 -0
  62. package/dist/utils/notifications.d.ts +6 -0
  63. package/dist/utils/screenshot.d.ts +2 -0
  64. package/dist/utils/stateManagement.d.ts +8 -0
  65. package/dist/utils/storage.d.ts +30 -0
  66. package/dist/utils/svg.d.ts +13 -0
  67. package/dist/utils/validators.d.ts +2 -0
  68. package/package.json +1 -1
  69. package/dist/echo.es.js.map +0 -1
  70. package/dist/echo.umd.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ import { type Component } from 'solid-js';
2
+ import type { FullEchoConfig } from '~/types';
3
+ export declare const Echo: Component<FullEchoConfig>;
@@ -0,0 +1,7 @@
1
+ import type { Component, JSX } from 'solid-js';
2
+ type ButtonProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ variant?: 'primary' | 'secondary';
4
+ size?: 'xs' | 'sm' | 'md' | 'lg';
5
+ };
6
+ export declare const Button: Component<ButtonProps>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Component } from 'solid-js';
2
+ import type { Shape as ShapeType } from '~/types';
3
+ type ShapeProps = ShapeType & {
4
+ selectedShapeId: string | null;
5
+ onShapeClick?: (id: string) => void;
6
+ };
7
+ export declare const Shape: Component<ShapeProps>;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1,9 @@
1
+ import { Component } from 'solid-js';
2
+ import { CheckboxInputConfig } from '~/types';
3
+ type CheckboxGroupProps = {
4
+ config: CheckboxInputConfig;
5
+ value: string[];
6
+ onChange: (value: string[]) => void;
7
+ };
8
+ export declare const CheckboxGroup: Component<CheckboxGroupProps>;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Component, JSX } from 'solid-js';
2
+ type InputWrapperProps = {
3
+ label?: string;
4
+ required?: boolean;
5
+ children: JSX.Element;
6
+ };
7
+ export declare const InputWrapper: Component<InputWrapperProps>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Component } from 'solid-js';
2
+ import { RadioInputConfig } from '~/types';
3
+ type RadioGroupProps = {
4
+ config: RadioInputConfig;
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ };
8
+ export declare const RadioGroup: Component<RadioGroupProps>;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Component } from 'solid-js';
2
+ import type { SelectInputConfig } from '~/types';
3
+ type SelectProps = {
4
+ config: SelectInputConfig;
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ };
8
+ export declare const Select: Component<SelectProps>;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Component } from 'solid-js';
2
+ import type { TextAreaConfig } from '~/types';
3
+ type TextAreaProps = {
4
+ config: TextAreaConfig;
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ };
8
+ export declare const TextArea: Component<TextAreaProps>;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Component } from 'solid-js';
2
+ import { TextInputConfig } from '~/types';
3
+ type TextInputProps = {
4
+ config: TextInputConfig;
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ };
8
+ export declare const TextInput: Component<TextInputProps>;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const CheckCircleIcon: Component<IconProps>;
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const ChevronRightIcon: Component<IconProps>;
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const ContemberIcon: Component<IconProps>;
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const ExternalLinkIcon: Component<IconProps>;
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const HighlightIcon: Component<IconProps>;
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const PenIcon: Component<IconProps>;
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const TrashIcon: Component<IconProps>;
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const XCircleIcon: Component<IconProps>;
@@ -0,0 +1,3 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { IconProps } from '~/types';
3
+ export declare const XIcon: Component<IconProps>;
@@ -0,0 +1,8 @@
1
+ export * from './ChevronRightIcon';
2
+ export * from './ContemberIcon';
3
+ export * from './HighlightIcon';
4
+ export * from './PenIcon';
5
+ export * from './TrashIcon';
6
+ export * from './CheckCircleIcon';
7
+ export * from './XCircleIcon';
8
+ export * from './XIcon';
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'solid-js';
2
+ export declare const ColorSelector: Component;
@@ -0,0 +1,9 @@
1
+ import { Component } from 'solid-js';
2
+ import type { CustomInputConfig, CustomInputValue } from '~/types';
3
+ type CustomInputProps = {
4
+ config: CustomInputConfig;
5
+ value: CustomInputValue;
6
+ onChange: (value: CustomInputValue) => void;
7
+ };
8
+ export declare const CustomInput: Component<CustomInputProps>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'solid-js';
2
+ export declare const DrawingToolbar: Component;
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'solid-js';
2
+ export declare const DrawingTooltip: Component;
@@ -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 Notification: Component;
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'solid-js';
2
+ export declare const ShapeActions: Component;
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'solid-js';
2
+ export declare const StoredFeedback: Component;
@@ -0,0 +1,2 @@
1
+ import type { Component } from 'solid-js';
2
+ export declare const WelcomeMessage: Component;
@@ -0,0 +1,8 @@
1
+ export * from './ColorSelector';
2
+ export * from './DrawingToolbar';
3
+ export * from './DrawingTooltip';
4
+ export * from './LauncherButton';
5
+ export * from './Notification';
6
+ export * from './ShapeActions';
7
+ export * from './StoredFeedback';
8
+ export * from './WelcomeMessage';
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'solid-js';
2
+ export declare const DrawingLayer: Component;
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'solid-js';
2
+ export declare const FeedbackForm: Component;
@@ -0,0 +1,2 @@
1
+ export * from './DrawingLayer';
2
+ export * from './FeedbackForm';
@@ -0,0 +1,2 @@
1
+ import type { TextConfig } from '~/types';
2
+ export declare const defaultText: TextConfig;
@@ -0,0 +1,13 @@
1
+ import type { DrawingTool } from '~/types';
2
+ type ToolConfig = {
3
+ id: DrawingTool;
4
+ label: string;
5
+ getCursor: (color: string) => string;
6
+ strokeWidth: number;
7
+ opacity: {
8
+ selected: number;
9
+ default: number;
10
+ };
11
+ };
12
+ export declare const toolConfig: Record<DrawingTool, ToolConfig>;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ import { type Component, JSXElement } from 'solid-js';
2
+ import { type EchoStore } from '~/stores';
3
+ import type { FullEchoConfig } from '~/types';
4
+ type EchoProviderProps = FullEchoConfig & {
5
+ children: JSXElement;
6
+ };
7
+ export declare const EchoProvider: Component<EchoProviderProps>;
8
+ export declare const useEchoStore: () => EchoStore;
9
+ export {};
@@ -0,0 +1 @@
1
+ export * from './EchoContext';