@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.
- package/dist/components/Echo.d.ts +3 -0
- package/dist/components/atoms/Button.d.ts +7 -0
- package/dist/components/atoms/Shape.d.ts +8 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/atoms/inputs/CheckboxGroup.d.ts +9 -0
- package/dist/components/atoms/inputs/InputWrapper.d.ts +8 -0
- package/dist/components/atoms/inputs/RadioGroup.d.ts +9 -0
- package/dist/components/atoms/inputs/Select.d.ts +9 -0
- package/dist/components/atoms/inputs/TextArea.d.ts +9 -0
- package/dist/components/atoms/inputs/TextInput.d.ts +9 -0
- package/dist/components/icons/CheckCircleIcon.d.ts +3 -0
- package/dist/components/icons/ChevronRightIcon.d.ts +3 -0
- package/dist/components/icons/ContemberIcon.d.ts +3 -0
- package/dist/components/icons/ExternalLinkIcon.d.ts +3 -0
- package/dist/components/icons/HighlightIcon.d.ts +3 -0
- package/dist/components/icons/PenIcon.d.ts +3 -0
- package/dist/components/icons/TrashIcon.d.ts +3 -0
- package/dist/components/icons/XCircleIcon.d.ts +3 -0
- package/dist/components/icons/XIcon.d.ts +3 -0
- package/dist/components/icons/index.d.ts +8 -0
- package/dist/components/molecules/ColorSelector.d.ts +2 -0
- package/dist/components/molecules/CustomInput.d.ts +9 -0
- package/dist/components/molecules/DrawingToolbar.d.ts +2 -0
- package/dist/components/molecules/DrawingTooltip.d.ts +2 -0
- package/dist/components/molecules/LauncherButton.d.ts +2 -0
- package/dist/components/molecules/Notification.d.ts +2 -0
- package/dist/components/molecules/ShapeActions.d.ts +2 -0
- package/dist/components/molecules/StoredFeedback.d.ts +2 -0
- package/dist/components/molecules/WelcomeMessage.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +8 -0
- package/dist/components/organisms/DrawingLayer.d.ts +2 -0
- package/dist/components/organisms/FeedbackForm.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +2 -0
- package/dist/config/defaultText.d.ts +2 -0
- package/dist/config/drawingConfig.d.ts +13 -0
- package/dist/contexts/EchoContext.d.ts +9 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/echo.es.js +1743 -1174
- package/dist/echo.umd.js +8 -9
- package/dist/hooks/useInputHandler.d.ts +7 -0
- package/dist/hooks/usePageHeight.d.ts +4 -0
- package/dist/hooks/usePageStateSync.d.ts +4 -0
- package/dist/index.d.ts +41 -2
- package/dist/stores/drawingStore.d.ts +39 -0
- package/dist/stores/echoStore.d.ts +15 -0
- package/dist/stores/feedbackStore.d.ts +17 -0
- package/dist/stores/index.d.ts +4 -0
- package/dist/stores/widgetStore.d.ts +21 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +151 -0
- package/dist/utils/color.d.ts +2 -0
- package/dist/utils/common.d.ts +2 -0
- package/dist/utils/console.d.ts +4 -0
- package/dist/utils/device.d.ts +1 -0
- package/dist/utils/events.d.ts +5 -0
- package/dist/utils/format.d.ts +1 -0
- package/dist/utils/geometry.d.ts +8 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/listeners.d.ts +24 -0
- package/dist/utils/metadata.d.ts +2 -0
- package/dist/utils/monkeyPatch.d.ts +4 -0
- package/dist/utils/notifications.d.ts +6 -0
- package/dist/utils/screenshot.d.ts +2 -0
- package/dist/utils/stateManagement.d.ts +8 -0
- package/dist/utils/storage.d.ts +30 -0
- package/dist/utils/svg.d.ts +13 -0
- package/dist/utils/validators.d.ts +2 -0
- package/package.json +1 -1
- package/dist/echo.es.js.map +0 -1
- package/dist/echo.umd.js.map +0 -1
@@ -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,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,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,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,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';
|