Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update folder structure #507

Open
wants to merge 3 commits into
base: video-editor-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/filerobot-image-editor/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createElement } from 'react';
import { createRoot } from 'react-dom/client';

/** Internal Dependencies */
import AssemblyPoint, { TOOLS, TABS } from 'react-filerobot-image-editor/src/';
import ImageEditor, { TOOLS, TABS } from 'react-filerobot-image-editor/src/';
import deepMerge from 'react-filerobot-image-editor/src/utils/deepMerge';

class FilerobotImageEditor {
Expand Down Expand Up @@ -51,7 +51,7 @@ class FilerobotImageEditor {
this.#root = createRoot(this.container);
}

this.#root.render(createElement(AssemblyPoint, this.config));
this.#root.render(createElement(ImageEditor, this.config));
}

terminate() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TABS_TOOLS } from 'components/tools/tools.constants';
import { TABS_TOOLS } from 'components/Shared/Tools/tools.constants';
import { POINTER_ICONS, TABS_IDS } from 'utils/constants';
import isAnnotationTool from 'utils/isAnnotationTool';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { ArrowTool as ArrowIcon } from '@scaleflex/icons/arrow-tool';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const ArrowButton = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useAnnotation } from 'hooks';
import { TOOLS_IDS } from 'utils/constants';
import AnnotationOptions from 'components/common/AnnotationOptions';
import AnnotationOptions from 'components/Shared/Common/AnnotationOptions';

const ArrowOptions = ({ t }) => {
const [arrow, saveArrow] = useAnnotation({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Blur as BlurIcon } from '@scaleflex/icons/blur';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const Blur = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useFinetune } from 'hooks';
import restrictNumber from 'utils/restrictNumber';
import Slider from 'components/common/Slider';
import Slider from 'components/Shared/Common/Slider';
import {
StyledSliderContainer,
StyledSliderInput,
StyledSliderLabel,
StyledSliderWrapper,
} from '../tools.styled';
} from '../Tools.styled';

const MIN_VALUE = 0;
const DEFAULT_VALUE = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Brightness as BrightnessIcon } from '@scaleflex/icons/brightness';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const Brightness = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useFinetune } from 'hooks';
import restrictNumber from 'utils/restrictNumber';
import Slider from 'components/common/Slider';
import Slider from 'components/Shared/Common/Slider';
import {
StyledSliderContainer,
StyledSliderInput,
StyledSliderLabel,
StyledSliderWrapper,
} from '../tools.styled';
} from '../Tools.styled';

const MIN_VALUE = -1;
const DEFAULT_VALUE = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Contrast as ContrastIcon } from '@scaleflex/icons/contrast';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const Contrast = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import PropTypes from 'prop-types';
/** Internal Depdencies */
import { useFinetune } from 'hooks';
import restrictNumber from 'utils/restrictNumber';
import Slider from 'components/common/Slider';
import Slider from 'components/Shared/Common/Slider';
import {
StyledSliderContainer,
StyledSliderInput,
StyledSliderLabel,
StyledSliderWrapper,
} from '../tools.styled';
} from '../Tools.styled';

const MIN_VALUE = -100;
const DEFAULT_VALUE = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Ellipse as EllipseIcon } from '@scaleflex/icons/ellipse';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const EllipseButton = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useAnnotation } from 'hooks';
import { TOOLS_IDS } from 'utils/constants';
import AnnotationOptions from 'components/common/AnnotationOptions';
import AnnotationOptions from 'components/Shared/Common/AnnotationOptions';

const EllipseOptions = ({ t }) => {
const [ellipse, saveEllipse] = useAnnotation({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';

/** Internal Dependencies */
import { useFilter, useStore } from 'hooks';
import Carousel from 'components/common/Carousel';
import Carousel from 'components/Shared/Common/Carousel';
import FilterItem from './FilterItem';
import { AVAILABLE_FILTERS } from './Filters.constants';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Saturation as SaturationIcon } from '@scaleflex/icons/saturation';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const HSV = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import Konva from 'konva';

/** Internal Dependencies */
import { useFinetune, usePhoneScreen } from 'hooks';
import Slider from 'components/common/Slider';
import Slider from 'components/Shared/Common/Slider';
import {
StyledHSVOptions,
StyledSliderContainer,
StyledSliderLabel,
StyledSliderInput,
StyledSliderWrapper,
} from '../tools.styled';
} from '../Tools.styled';

const DEFAULT_VALUE = {
hue: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { ImageOutline as ImageIcon } from '@scaleflex/icons/image-outline';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const ImageButton = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import PropTypes from 'prop-types';

/** Internal Dependencies */
import AnnotationOptions from 'components/common/AnnotationOptions';
import AnnotationOptions from 'components/Shared/Common/AnnotationOptions';

const ImageControls = ({ image, saveImage, children, t }) => (
<AnnotationOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { Images, UploadOutline } from '@scaleflex/icons';
import { useImageScaled, useStore } from 'hooks';
import { FEEDBACK_STATUSES, TOOLS_IDS } from 'utils/constants';
import { SET_FEEDBACK } from 'actions';
import HiddenUploadInput from 'components/common/HiddenUploadInput';
import ButtonWithMenu from 'components/common/ButtonWithMenu';
import HiddenUploadInput from 'components/Shared/Common/HiddenUploadInput';
import ButtonWithMenu from 'components/Shared/Common/ButtonWithMenu';
import ImageControls from './ImageControls';
import ImagesGallery from './ImagesGallery';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import Line from '@scaleflex/icons/line';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const LineButton = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useAnnotation } from 'hooks';
import { TOOLS_IDS } from 'utils/constants';
import AnnotationOptions from 'components/common/AnnotationOptions';
import AnnotationOptions from 'components/Shared/Common/AnnotationOptions';

const LineOptions = ({ t }) => {
const [line, saveLine] = useAnnotation({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Annotation as PenIcon } from '@scaleflex/icons/annotation';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const PenButton = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useAnnotation, useSetAnnotation, useStore } from 'hooks';
import { TOOLS_IDS } from 'utils/constants';
import AnnotationOptions from 'components/common/AnnotationOptions';
import AnnotationOptions from 'components/Shared/Common/AnnotationOptions';
import getPointerOffsetPosition from 'utils/getPointerOffsetPosition';
import randomId from 'utils/randomId';
import { SELECT_ANNOTATION } from 'actions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Polygon as PolygonIcon } from '@scaleflex/icons/polygon';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const PolygonButton = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useAnnotation } from 'hooks';
import { TOOLS_IDS } from 'utils/constants';
import AnnotationOptions from 'components/common/AnnotationOptions';
import AnnotationOptions from 'components/Shared/Common/AnnotationOptions';
import {
polygonOptionsPopupComponents,
POLYGON_POPPABLE_OPTIONS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import PropTypes from 'prop-types';
import Label from '@scaleflex/ui/core/label';

/** InternalDependencies */
import { StyledSpacedOptionFields } from 'components/common/AnnotationOptions/AnnotationOptions.styled';
import { StyledSpacedOptionFields } from 'components/Shared/Common/AnnotationOptions/AnnotationOptions.styled';
import restrictNumber from 'utils/restrictNumber';
import Slider from 'components/common/Slider';
import Slider from 'components/Shared/Common/Slider';

const MIN_VALUE = 3;
const MAX_VALUE = 25;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { CropLandscape as RectIcon } from '@scaleflex/icons/crop-landscape';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const RectButton = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import PropTypes from 'prop-types';
import Label from '@scaleflex/ui/core/label';

/** InternalDependencies */
import { StyledSpacedOptionFields } from 'components/common/AnnotationOptions/AnnotationOptions.styled';
import { StyledSpacedOptionFields } from 'components/Shared/Common/AnnotationOptions/AnnotationOptions.styled';
import restrictNumber from 'utils/restrictNumber';
import Slider from 'components/common/Slider';
import Slider from 'components/Shared/Common/Slider';

const MIN_VALUE = 0;
const MAX_VALUE = 150;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useAnnotation } from 'hooks';
import { TOOLS_IDS } from 'utils/constants';
import AnnotationOptions from 'components/common/AnnotationOptions';
import AnnotationOptions from 'components/Shared/Common/AnnotationOptions';
import {
rectOptionsPopupComponents,
RECT_POPPABLE_OPTIONS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Text as TextIcon } from '@scaleflex/icons/text';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const TextButton = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
import {
StyledSpacedOptionFields,
StyledIconWrapper,
} from 'components/common/AnnotationOptions/AnnotationOptions.styled';
} from 'components/Shared/Common/AnnotationOptions/AnnotationOptions.styled';
import { TextAlignCenter, TextAlignLeft } from '@scaleflex/icons';

const rightAlignmentCssTransform = { transform: 'scaleX(-1)' };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import FontItalic from '@scaleflex/icons/font-italic';

/** Internal Dependencies */
import { TOOLS_IDS } from 'utils/constants';
import AnnotationOptions from 'components/common/AnnotationOptions';
import { StyledIconWrapper } from 'components/common/AnnotationOptions/AnnotationOptions.styled';
import AnnotationOptions from 'components/Shared/Common/AnnotationOptions';
import { StyledIconWrapper } from 'components/Shared/Common/AnnotationOptions/AnnotationOptions.styled';
import { useStore, useTextAnnotationEditing } from 'hooks';
import {
StyledFontFamilySelect,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import Label from '@scaleflex/ui/core/label';

/** Internal Dependencies */
import restrictNumber from 'utils/restrictNumber';
import { StyledSpacedOptionFields } from 'components/common/AnnotationOptions/AnnotationOptions.styled';
import Slider from 'components/common/Slider';
import { StyledSpacedOptionFields } from 'components/Shared/Common/AnnotationOptions/AnnotationOptions.styled';
import Slider from 'components/Shared/Common/Slider';
import { useStore } from 'hooks';

const MIN_VALUE = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { Temprature as WarmthIcon } from '@scaleflex/icons/tempreture';

/** Internal Dependencies */
import ToolsBarItemButton from 'components/ToolsBar/ToolsBarItemButton';
import ToolsBarItemButton from 'components/Shared/ToolsBar/ToolsBarItemButton';
import { TOOLS_IDS } from 'utils/constants';

const Warmth = ({ selectTool, isSelected = false, t }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import PropTypes from 'prop-types';
import { useFinetune } from 'hooks';
import restrictNumber from 'utils/restrictNumber';
import { Warmth as CustomWarmth } from 'custom/finetunes';
import Slider from 'components/common/Slider';
import Slider from 'components/Shared/Common/Slider';
import {
StyledSliderContainer,
StyledSliderInput,
StyledSliderLabel,
StyledSliderWrapper,
} from '../tools.styled';
} from '../Tools.styled';

const MIN_VALUE = 0;
const DEFAULT_VALUE = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {
SET_FEEDBACK,
CLEAR_ANNOTATIONS_SELECTIONS,
} from 'actions';
import ButtonWithMenu from 'components/common/ButtonWithMenu';
import TextControls from 'components/tools/Text/TextOptions/TextControls';
import ImageControls from 'components/tools/Image/ImageControls';
import ButtonWithMenu from 'components/Shared/Common/ButtonWithMenu';
import TextControls from 'components/ImageEditor/Tools/Text/TextOptions/TextControls';
import ImageControls from 'components/ImageEditor/Tools/Image/ImageControls';
import { usePhoneScreen, useSetAnnotation, useStore } from 'hooks';
import { FEEDBACK_STATUSES, TOOLS_IDS } from 'utils/constants';
import HiddenUploadInput from 'components/common/HiddenUploadInput';
import HiddenUploadInput from 'components/Shared/Common/HiddenUploadInput';
import {
StyledControlsWrapper,
StyledWatermarkWrapper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
StyledIconWrapper,
StyledOptionPopupContent,
StyledIconLabel,
} from 'components/common/AnnotationOptions/AnnotationOptions.styled';
import Slider from 'components/common/Slider';
} from 'components/Shared/Common/AnnotationOptions/AnnotationOptions.styled';
import Slider from 'components/Shared/Common/Slider';
import { Label } from '@scaleflex/ui/core';

const WatermarkPadding = ({ watermark, saveWatermark, t }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
/** Internal Dependencies */
import { useStore } from 'hooks';
import { TOOLS_IDS, WATERMARK_ANNOTATION_ID } from 'utils/constants';
import Carousel from 'components/common/Carousel';
import Carousel from 'components/Shared/Common/Carousel';
import { SET_FEEDBACK } from 'actions';
import { StyledWatermarkGalleryItem } from './Watermark.styled';

Expand Down
Loading