Remove preconstruct, update wyw (#13844)
To simplify our setup, moving back to Vite to build twenty-shared. Also upgrading wyw --------- Co-authored-by: prastoin <paul@twenty.com>
This commit is contained in:
+1
-4
@@ -5,10 +5,7 @@ import { WorkflowEditActionFilterBodyEffect } from '@/workflow/workflow-steps/wo
|
||||
import { StepFilterGroupsComponentInstanceContext } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/context/StepFilterGroupsComponentInstanceContext';
|
||||
import { StepFiltersComponentInstanceContext } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/context/StepFiltersComponentInstanceContext';
|
||||
import { useWorkflowActionHeader } from '@/workflow/workflow-steps/workflow-actions/hooks/useWorkflowActionHeader';
|
||||
import {
|
||||
type StepFilter,
|
||||
type StepFilterGroup,
|
||||
} from 'twenty-shared/src/types/StepFilters';
|
||||
import { type StepFilter, type StepFilterGroup } from 'twenty-shared/types';
|
||||
import { useIcons } from 'twenty-ui/display';
|
||||
|
||||
type WorkflowEditActionFilterProps = {
|
||||
|
||||
+3
-3
@@ -7,11 +7,11 @@ import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown';
|
||||
import { useChildStepFiltersAndChildStepFilterGroups } from '@/workflow/workflow-steps/workflow-actions/filter-action/hooks/useChildStepFiltersAndChildStepFilterGroups';
|
||||
import { useUpsertStepFilterSettings } from '@/workflow/workflow-steps/workflow-actions/filter-action/hooks/useUpsertStepFilterSettings';
|
||||
import {
|
||||
type StepFilter,
|
||||
type StepFilterGroup,
|
||||
StepLogicalOperator,
|
||||
ViewFilterOperand,
|
||||
} from 'twenty-shared/src/types';
|
||||
type StepFilter,
|
||||
type StepFilterGroup,
|
||||
} from 'twenty-shared/types';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { IconLibraryPlus, IconPlus } from 'twenty-ui/display';
|
||||
import { MenuItem } from 'twenty-ui/navigation';
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import { WorkflowStepFilterContext } from '@/workflow/workflow-steps/workflow-ac
|
||||
import { WorkflowAdvancedFilterDropdownColumn } from '@/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowAdvancedFilterDropdownColumn';
|
||||
import styled from '@emotion/styled';
|
||||
import { useContext } from 'react';
|
||||
import { type StepFilter, type StepFilterGroup } from 'twenty-shared/src/types';
|
||||
import { type StepFilter, type StepFilterGroup } from 'twenty-shared/types';
|
||||
|
||||
type WorkflowStepFilterColumnProps = {
|
||||
stepFilterGroup: StepFilterGroup;
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import { WorkflowStepFilterContext } from '@/workflow/workflow-steps/workflow-ac
|
||||
import { WorkflowAdvancedFilterDropdownColumn } from '@/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowAdvancedFilterDropdownColumn';
|
||||
import styled from '@emotion/styled';
|
||||
import { useContext } from 'react';
|
||||
import { type StepFilterGroup } from 'twenty-shared/src/types';
|
||||
import { type StepFilterGroup } from 'twenty-shared/types';
|
||||
|
||||
type WorkflowStepFilterGroupColumnProps = {
|
||||
parentStepFilterGroup: StepFilterGroup;
|
||||
|
||||
+1
-4
@@ -6,10 +6,7 @@ import { WorkflowStepFilterContext } from '@/workflow/workflow-steps/workflow-ac
|
||||
|
||||
import styled from '@emotion/styled';
|
||||
import { useContext } from 'react';
|
||||
import {
|
||||
type StepFilterGroup,
|
||||
StepLogicalOperator,
|
||||
} from 'twenty-shared/src/types';
|
||||
import { StepLogicalOperator, type StepFilterGroup } from 'twenty-shared/types';
|
||||
import { capitalize } from 'twenty-shared/utils';
|
||||
|
||||
const StyledText = styled.div`
|
||||
|
||||
+1
-4
@@ -6,10 +6,7 @@ import { useUpsertStepFilterSettings } from '@/workflow/workflow-steps/workflow-
|
||||
import { WorkflowStepFilterContext } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/context/WorkflowStepFilterContext';
|
||||
import { getViewFilterOperands } from '@/workflow/workflow-steps/workflow-actions/filter-action/utils/getStepFilterOperands';
|
||||
import { useContext } from 'react';
|
||||
import {
|
||||
type StepFilter,
|
||||
type ViewFilterOperand,
|
||||
} from 'twenty-shared/src/types';
|
||||
import { type StepFilter, type ViewFilterOperand } from 'twenty-shared/types';
|
||||
|
||||
type WorkflowStepFilterOperandSelectProps = {
|
||||
stepFilter: StepFilter;
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
import { isObject, isString } from '@sniptt/guards';
|
||||
import { useContext } from 'react';
|
||||
import { FieldMetadataType, type StepFilter } from 'twenty-shared/src/types';
|
||||
import { FieldMetadataType, type StepFilter } from 'twenty-shared/types';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { type JsonValue } from 'type-fest';
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
|
||||
import { currentStepFilterGroupsComponentState } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/currentStepFilterGroupsComponentState';
|
||||
import { currentStepFiltersComponentState } from '@/workflow/workflow-steps/workflow-actions/filter-action/states/currentStepFiltersComponentState';
|
||||
import { type StepFilter, type StepFilterGroup } from 'twenty-shared/src/types';
|
||||
import { type StepFilter, type StepFilterGroup } from 'twenty-shared/types';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
export const useChildStepFiltersAndChildStepFilterGroups = ({
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { ViewFilterOperand } from 'twenty-shared/src/types';
|
||||
import { ViewFilterOperand } from 'twenty-shared/types';
|
||||
|
||||
const emptyOperands = [
|
||||
ViewFilterOperand.IsEmpty,
|
||||
|
||||
+1
-4
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
type StepFilter,
|
||||
type StepFilterGroup,
|
||||
} from 'twenty-shared/src/types/StepFilters';
|
||||
import { type StepFilter, type StepFilterGroup } from 'twenty-shared/types';
|
||||
|
||||
export const isStepFilterGroupChildAStepFilterGroup = (
|
||||
child: StepFilter | StepFilterGroup,
|
||||
|
||||
Reference in New Issue
Block a user