chore: update imports for code split (#19085)
* move actionTriggers.ts * update imports Explorer/helpers.tsx * update imports EntityDefinitions.ts * update imports Evaluation/Actions.ts * update imports for ActionExecutionSagas * missed worker types * missed imports * update imports for dataTreeUtils * missed imports Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
This commit is contained in:
parent
c2a7face0c
commit
db38a64e71
|
|
@ -3,7 +3,7 @@ import {
|
|||
ReduxAction,
|
||||
} from "@appsmith/constants/ReduxActionConstants";
|
||||
import { BatchAction, batchAction } from "actions/batchActions";
|
||||
import { EvalMetaUpdates } from "workers/common/DataTreeEvaluator/types";
|
||||
import { EvalMetaUpdates } from "@appsmith/workers/common/DataTreeEvaluator/types";
|
||||
import { DataTreeWidget } from "../entities/DataTree/dataTreeFactory";
|
||||
|
||||
export interface UpdateWidgetMetaPropertyPayload {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import { CanvasWidgetsReduxState } from "reducers/entityReducers/canvasWidgetsRe
|
|||
import { GenerateTemplatePageRequest } from "api/PageApi";
|
||||
import { ENTITY_TYPE } from "entities/AppsmithConsole";
|
||||
import { Replayable } from "entities/Replay/ReplayEntity/ReplayEditor";
|
||||
import { StoreValueActionDescription } from "entities/DataTree/actionTriggers";
|
||||
import { StoreValueActionDescription } from "@appsmith/entities/DataTree/actionTriggers";
|
||||
|
||||
export interface FetchPageListPayload {
|
||||
applicationId: string;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
getActionIdFromURL,
|
||||
getJSCollectionIdFromURL,
|
||||
} from "pages/Editor/Explorer/helpers";
|
||||
} from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
|
||||
describe("getActionIdFromUrl", () => {
|
||||
it("getsApiId", () => {
|
||||
|
|
@ -28,7 +28,7 @@ import executePluginActionTriggerSaga from "sagas/ActionExecution/PluginActionSa
|
|||
import {
|
||||
ActionDescription,
|
||||
ActionTriggerType,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { clearActionResponse } from "actions/pluginActionActions";
|
||||
import {
|
||||
closeModalSaga,
|
||||
|
|
@ -52,7 +52,7 @@ import {
|
|||
} from "sagas/ActionExecution/GetCurrentLocationSaga";
|
||||
import { requestModalConfirmationSaga } from "sagas/UtilSagas";
|
||||
import { ModalType } from "reducers/uiReducers/modalActionReducer";
|
||||
import { postMessageSaga } from "./PostMessageSaga";
|
||||
import { postMessageSaga } from "sagas/ActionExecution/PostMessageSaga";
|
||||
|
||||
export type TriggerMeta = {
|
||||
source?: TriggerSource;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import pageSagas from "sagas/PageSagas";
|
||||
import { watchActionSagas } from "sagas/ActionSagas";
|
||||
import { watchJSActionSagas } from "sagas/JSActionSagas";
|
||||
import { watchActionExecutionSagas } from "sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { watchActionExecutionSagas } from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { watchPluginActionExecutionSagas } from "sagas/ActionExecution/PluginActionSaga";
|
||||
import templateSagas from "sagas/TemplatesSagas";
|
||||
import widgetOperationSagas from "sagas/WidgetOperationSagas";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { JSCollectionData } from "reducers/entityReducers/jsActionsReducer";
|
|||
import {
|
||||
entityDefinitions,
|
||||
getPropsForJSActionEntity,
|
||||
} from "utils/autocomplete/EntityDefinitions";
|
||||
} from "@appsmith/utils/autocomplete/EntityDefinitions";
|
||||
|
||||
describe("EntityDefinitions", () => {
|
||||
it("it tests list widget selectRow", () => {
|
||||
|
|
@ -4,7 +4,7 @@ import _ from "lodash";
|
|||
import {
|
||||
ActionDescription,
|
||||
ActionTriggerType,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { NavigationTargetType } from "sagas/ActionExecution/NavigateActionSaga";
|
||||
import { promisifyAction } from "workers/Evaluation/PromisifyAction";
|
||||
import { klona } from "klona/full";
|
||||
|
|
@ -6,7 +6,7 @@ import {
|
|||
createNewEntity,
|
||||
createUnEvalTreeForEval,
|
||||
makeEntityConfigsAsObjProperties,
|
||||
} from "../dataTreeUtils";
|
||||
} from "@appsmith/workers/Evaluation/dataTreeUtils";
|
||||
|
||||
const unevalTreeFromMainThread = {
|
||||
Api2: {
|
||||
|
|
@ -6,7 +6,7 @@ import {
|
|||
} from "entities/DataTree/dataTreeFactory";
|
||||
import { set } from "lodash";
|
||||
import { EvalProps } from "workers/common/DataTreeEvaluator";
|
||||
import { removeFunctions } from "./evaluationUtils";
|
||||
import { removeFunctions } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
|
||||
/**
|
||||
* This method accept an entity object as input and if it has __config__ property than it moves the __config__ to object's prototype
|
||||
|
|
@ -22,13 +22,16 @@ import {
|
|||
isPrivateEntityPath,
|
||||
makeParentsDependOnChildren,
|
||||
translateDiffEventToDataTreeDiffEvent,
|
||||
} from "../evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { warn as logWarn } from "loglevel";
|
||||
import { Diff } from "deep-diff";
|
||||
import _, { flatten } from "lodash";
|
||||
import { overrideWidgetProperties, findDatatype } from "../evaluationUtils";
|
||||
import {
|
||||
overrideWidgetProperties,
|
||||
findDatatype,
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { DataTree } from "entities/DataTree/dataTreeFactory";
|
||||
import { EvalMetaUpdates } from "../../common/DataTreeEvaluator/types";
|
||||
import { EvalMetaUpdates } from "@appsmith/workers/common/DataTreeEvaluator/types";
|
||||
import { generateDataTreeWidget } from "entities/DataTree/dataTreeWidget";
|
||||
import TableWidget, { CONFIG as TableWidgetConfig } from "widgets/TableWidget";
|
||||
import InputWidget, {
|
||||
|
|
@ -36,7 +39,7 @@ import InputWidget, {
|
|||
} from "widgets/InputWidgetV2";
|
||||
import { registerWidget } from "utils/WidgetRegisterHelpers";
|
||||
import { WidgetConfiguration } from "widgets/constants";
|
||||
import { createNewEntity } from "../dataTreeUtils";
|
||||
import { createNewEntity } from "@appsmith/workers/Evaluation/dataTreeUtils";
|
||||
import DataTreeEvaluator from "workers/common/DataTreeEvaluator";
|
||||
import { Severity } from "entities/AppsmithConsole";
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ import { WidgetTypeConfigMap } from "utils/WidgetFactory";
|
|||
import { PluginType } from "entities/Action";
|
||||
import { klona } from "klona/full";
|
||||
import { warn as logWarn } from "loglevel";
|
||||
import { EvalMetaUpdates } from "../common/DataTreeEvaluator/types";
|
||||
import { EvalMetaUpdates } from "@appsmith/workers/common/DataTreeEvaluator/types";
|
||||
import { isObject } from "lodash";
|
||||
import { DataTreeObjectEntity } from "entities/DataTree/dataTreeFactory";
|
||||
import { validateWidgetProperty } from "workers/common/DataTreeEvaluator/validationUtils";
|
||||
|
|
@ -30,7 +30,7 @@ import {
|
|||
} from "selectors/widgetSelectors";
|
||||
import Fields from "./Fields";
|
||||
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||
import { getEntityNameAndPropertyPath } from "workers/Evaluation/evaluationUtils";
|
||||
import { getEntityNameAndPropertyPath } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { JSCollectionData } from "reducers/entityReducers/jsActionsReducer";
|
||||
import { createNewJSCollection } from "actions/jsPaneActions";
|
||||
import { JSAction, Variable } from "entities/JSCollection";
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ import {
|
|||
removeNewLineChars,
|
||||
} from "./codeEditorUtils";
|
||||
import { commandsHelper } from "./commandsHelper";
|
||||
import { getEntityNameAndPropertyPath } from "workers/Evaluation/evaluationUtils";
|
||||
import { getEntityNameAndPropertyPath } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { getPluginIdToImageLocation } from "sagas/selectors";
|
||||
import { ExpectedValueExample } from "utils/validation/common";
|
||||
import { getRecentEntityIds } from "selectors/globalSearchSelectors";
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
matchApiPath,
|
||||
matchQueryPath,
|
||||
} from "constants/routes";
|
||||
import { getEntityNameAndPropertyPath } from "workers/Evaluation/evaluationUtils";
|
||||
import { getEntityNameAndPropertyPath } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { modText } from "utils/helpers";
|
||||
import { union } from "lodash";
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import {
|
|||
isAction,
|
||||
isJSAction,
|
||||
isWidget,
|
||||
} from "workers/Evaluation/evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import history, { NavigationMethod } from "utils/history";
|
||||
import { jsCollectionIdURL } from "RouteBuilder";
|
||||
import store from "store";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
isAction,
|
||||
isJSAction,
|
||||
isWidget,
|
||||
} from "workers/Evaluation/evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { doesEntityHaveErrors } from "../helpers";
|
||||
import React from "react";
|
||||
import WidgetIcon from "pages/Editor/Explorer/Widgets/WidgetIcon";
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ import {
|
|||
} from "./utils";
|
||||
import { getActionConfig } from "pages/Editor/Explorer/Actions/helpers";
|
||||
import { HelpBaseURL } from "constants/HelpConstants";
|
||||
import { ExplorerURLParams } from "pages/Editor/Explorer/helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { getLastSelectedWidget } from "selectors/ui";
|
||||
import AnalyticsUtil from "utils/AnalyticsUtil";
|
||||
import useRecentEntities from "./useRecentEntities";
|
||||
|
|
|
|||
1
app/client/src/ee/entities/DataTree/actionTriggers.ts
Normal file
1
app/client/src/ee/entities/DataTree/actionTriggers.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/entities/DataTree/actionTriggers";
|
||||
1
app/client/src/ee/pages/Editor/Explorer/helpers.tsx
Normal file
1
app/client/src/ee/pages/Editor/Explorer/helpers.tsx
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/pages/Editor/Explorer/helpers";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/sagas/ActionExecution/ActionExecutionSagas";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/utils/autocomplete/EntityDefinitions";
|
||||
1
app/client/src/ee/workers/Evaluation/Actions.ts
Normal file
1
app/client/src/ee/workers/Evaluation/Actions.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/workers/Evaluation/Actions";
|
||||
1
app/client/src/ee/workers/Evaluation/dataTreeUtils.ts
Normal file
1
app/client/src/ee/workers/Evaluation/dataTreeUtils.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/workers/Evaluation/dataTreeUtils";
|
||||
1
app/client/src/ee/workers/Evaluation/evaluationUtils.ts
Normal file
1
app/client/src/ee/workers/Evaluation/evaluationUtils.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/workers/Evaluation/evaluationUtils";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/workers/common/DataTreeEvaluator/types";
|
||||
1
app/client/src/ee/workers/common/types.ts
Normal file
1
app/client/src/ee/workers/common/types.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/workers/common/types";
|
||||
|
|
@ -6,7 +6,7 @@ import {
|
|||
ActionDescription,
|
||||
ClearPluginActionDescription,
|
||||
RunPluginActionDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { Variable } from "entities/JSCollection";
|
||||
import { DependencyMap, DynamicPath } from "utils/DynamicBindingUtils";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import { AppState } from "@appsmith/reducers";
|
|||
import ActionNameEditor from "components/editorComponents/ActionNameEditor";
|
||||
import ActionSettings from "pages/Editor/ActionSettings";
|
||||
import RequestDropdownField from "components/editorComponents/form/fields/RequestDropdownField";
|
||||
import { ExplorerURLParams } from "../Explorer/helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import MoreActionsMenu from "../Explorer/Actions/MoreActionsMenu";
|
||||
import { EditorTheme } from "components/editorComponents/CodeEditor/EditorConfig";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { useDispatch, useSelector } from "react-redux";
|
|||
import { getPageListAsOptions } from "selectors/entitiesSelector";
|
||||
import history from "utils/history";
|
||||
import ContextMenuTrigger from "../ContextMenuTrigger";
|
||||
import { ContextMenuPopoverModifiers } from "../helpers";
|
||||
import { ContextMenuPopoverModifiers } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { useNewActionName } from "./helpers";
|
||||
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
|
||||
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {
|
|||
deleteAction,
|
||||
} from "actions/pluginActionActions";
|
||||
|
||||
import { ContextMenuPopoverModifiers } from "../helpers";
|
||||
import { ContextMenuPopoverModifiers } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { noop } from "lodash";
|
||||
import TreeDropdown from "pages/Editor/Explorer/TreeDropdown";
|
||||
import { useNewActionName } from "./helpers";
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import {
|
|||
useDatasourceIdFromURL,
|
||||
getExplorerStatus,
|
||||
saveExplorerStatus,
|
||||
} from "./helpers";
|
||||
} from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { Icon } from "design-system";
|
||||
import { AddEntity, EmptyComponent } from "./common";
|
||||
import { integrationEditorURL } from "RouteBuilder";
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import {
|
|||
import TreeDropdown from "pages/Editor/Explorer/TreeDropdown";
|
||||
import ContextMenuTrigger from "../ContextMenuTrigger";
|
||||
import { noop } from "lodash";
|
||||
import { ContextMenuPopoverModifiers } from "../helpers";
|
||||
import { ContextMenuPopoverModifiers } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { initExplorerEntityNameEdit } from "actions/explorerActions";
|
||||
import {
|
||||
CONTEXT_EDIT_NAME,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { Datasource } from "entities/Datasource";
|
|||
import { Plugin } from "api/PluginApi";
|
||||
import DataSourceContextMenu from "./DataSourceContextMenu";
|
||||
import { getPluginIcon } from "../ExplorerIcons";
|
||||
import { getQueryIdFromURL } from "../helpers";
|
||||
import { getQueryIdFromURL } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import Entity, { EntityClassNames } from "../Entity";
|
||||
import history, { NavigationMethod } from "utils/history";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { isFunction } from "lodash";
|
|||
import {
|
||||
entityDefinitions,
|
||||
EntityDefinitionsOptions,
|
||||
} from "utils/autocomplete/EntityDefinitions";
|
||||
} from "@appsmith/utils/autocomplete/EntityDefinitions";
|
||||
import {
|
||||
ENTITY_TYPE,
|
||||
DataTreeAction,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ import { isFunction } from "lodash";
|
|||
import {
|
||||
entityDefinitions,
|
||||
EntityDefinitionsOptions,
|
||||
} from "utils/autocomplete/EntityDefinitions";
|
||||
getPropsForJSActionEntity,
|
||||
} from "@appsmith/utils/autocomplete/EntityDefinitions";
|
||||
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import PerformanceTracker, {
|
||||
|
|
@ -12,7 +13,6 @@ import PerformanceTracker, {
|
|||
} from "utils/PerformanceTracker";
|
||||
import * as Sentry from "@sentry/react";
|
||||
import { AppState } from "@appsmith/reducers";
|
||||
import { getPropsForJSActionEntity } from "utils/autocomplete/EntityDefinitions";
|
||||
import { isEmpty } from "lodash";
|
||||
import { getCurrentPageId } from "selectors/editorSelectors";
|
||||
import classNames from "classnames";
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
|
|||
import { mockDatasources } from "./mockTestData";
|
||||
import { updateCurrentPage } from "actions/pageActions";
|
||||
import urlBuilder from "entities/URLRedirect/URLAssembly";
|
||||
import * as helpers from "./helpers";
|
||||
import * as helpers from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import * as permissionUtils from "@appsmith/utils/permissionHelpers";
|
||||
import userEvent from "@testing-library/user-event";
|
||||
|
||||
|
|
@ -32,6 +32,11 @@ jest.mock("@appsmith/utils/permissionHelpers", () => {
|
|||
};
|
||||
});
|
||||
|
||||
jest.mock("@appsmith/pages/Editor/Explorer/helpers", () => ({
|
||||
__esModule: true,
|
||||
...jest.requireActual("@appsmith/pages/Editor/Explorer/helpers"),
|
||||
}));
|
||||
|
||||
describe("Entity Explorer tests", () => {
|
||||
beforeAll(() => {
|
||||
runSagaMiddleware();
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@ import { ExplorerActionEntity } from "../Actions/ActionEntity";
|
|||
import ExplorerJSCollectionEntity from "../JSActions/JSActionEntity";
|
||||
import { Colors } from "constants/Colors";
|
||||
import { selectFilesForExplorer } from "selectors/entitiesSelector";
|
||||
import { getExplorerStatus, saveExplorerStatus } from "../helpers";
|
||||
import {
|
||||
getExplorerStatus,
|
||||
saveExplorerStatus,
|
||||
} from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { Icon } from "design-system";
|
||||
import { AddEntity, EmptyComponent } from "../common";
|
||||
import ExplorerSubMenu from "./Submenu";
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import {
|
|||
copyJSCollectionRequest,
|
||||
deleteJSCollection,
|
||||
} from "actions/jsActionActions";
|
||||
import { ContextMenuPopoverModifiers } from "../helpers";
|
||||
import { ContextMenuPopoverModifiers } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import noop from "lodash/noop";
|
||||
import { getJSEntityName } from "./helpers";
|
||||
import { initExplorerEntityNameEdit } from "actions/explorerActions";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import {
|
|||
copyJSCollectionRequest,
|
||||
deleteJSCollection,
|
||||
} from "actions/jsActionActions";
|
||||
import { ContextMenuPopoverModifiers } from "../helpers";
|
||||
import { ContextMenuPopoverModifiers } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import noop from "lodash/noop";
|
||||
import TreeDropdown from "pages/Editor/Explorer/TreeDropdown";
|
||||
import { getJSEntityName } from "./helpers";
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import history from "utils/history";
|
|||
import { generateTemplateFormURL } from "RouteBuilder";
|
||||
import { useParams } from "react-router";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import { ExplorerURLParams } from "../helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { showTemplatesModal } from "actions/templateActions";
|
||||
import { Colors } from "constants/Colors";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import TreeDropdown, {
|
|||
import { noop } from "lodash";
|
||||
import ContextMenuTrigger from "../ContextMenuTrigger";
|
||||
import AnalyticsUtil from "utils/AnalyticsUtil";
|
||||
import { ContextMenuPopoverModifiers } from "../helpers";
|
||||
import { ContextMenuPopoverModifiers } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { initExplorerEntityNameEdit } from "actions/explorerActions";
|
||||
import {
|
||||
clonePageInit,
|
||||
|
|
|
|||
|
|
@ -31,7 +31,10 @@ import { getExplorerPinned } from "selectors/explorerSelector";
|
|||
import { setExplorerPinnedAction } from "actions/explorerActions";
|
||||
import { selectAllPages } from "selectors/entitiesSelector";
|
||||
import { builderURL } from "RouteBuilder";
|
||||
import { getExplorerStatus, saveExplorerStatus } from "../helpers";
|
||||
import {
|
||||
getExplorerStatus,
|
||||
saveExplorerStatus,
|
||||
} from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { tailwindLayers } from "constants/Layers";
|
||||
import useResize, {
|
||||
CallbackResponseType,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import TreeDropdown, {
|
|||
TreeDropdownOption,
|
||||
} from "pages/Editor/Explorer/TreeDropdown";
|
||||
import ContextMenuTrigger from "../ContextMenuTrigger";
|
||||
import { ContextMenuPopoverModifiers } from "../helpers";
|
||||
import { ContextMenuPopoverModifiers } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { noop } from "lodash";
|
||||
import { initExplorerEntityNameEdit } from "actions/explorerActions";
|
||||
import { AppState } from "@appsmith/reducers";
|
||||
|
|
|
|||
|
|
@ -16,7 +16,10 @@ import {
|
|||
} from "@appsmith/constants/messages";
|
||||
import { selectWidgetsForCurrentPage } from "selectors/entitiesSelector";
|
||||
import { inGuidedTour } from "selectors/onboardingSelectors";
|
||||
import { getExplorerStatus, saveExplorerStatus } from "../helpers";
|
||||
import {
|
||||
getExplorerStatus,
|
||||
saveExplorerStatus,
|
||||
} from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { Icon } from "design-system";
|
||||
import { AddEntity, EmptyComponent } from "../common";
|
||||
import { noop } from "lodash";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useCallback } from "react";
|
||||
import { WidgetType } from "constants/WidgetConstants";
|
||||
import { useParams } from "react-router";
|
||||
import { ExplorerURLParams } from "../helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { flashElementsById, quickScrollToWidget } from "utils/helpers";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import { useWidgetSelection } from "utils/hooks/useWidgetSelection";
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import { Datasource } from "entities/Datasource";
|
|||
import { fetchDatasourceStructure } from "actions/datasourceActions";
|
||||
import { generateTemplateToUpdatePage } from "actions/pageActions";
|
||||
import { useParams, useLocation } from "react-router";
|
||||
import { ExplorerURLParams } from "../../../Explorer/helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { INTEGRATION_TABS } from "constants/routes";
|
||||
import history from "utils/history";
|
||||
import { getQueryParams } from "utils/URLUtils";
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import {
|
|||
} from "actions/jsPaneActions";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import { useParams } from "react-router";
|
||||
import { ExplorerURLParams } from "../Explorer/helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import JSResponseView from "components/editorComponents/JSResponseView";
|
||||
import { isEmpty } from "lodash";
|
||||
import equal from "fast-deep-equal/es6";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@ import styled from "styled-components";
|
|||
import { AppState } from "@appsmith/reducers";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import { getDataTree } from "selectors/dataTreeSelectors";
|
||||
import { isAction, isWidget } from "workers/Evaluation/evaluationUtils";
|
||||
import {
|
||||
isAction,
|
||||
isWidget,
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import {
|
||||
Classes,
|
||||
Dropdown,
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ import {
|
|||
} from "@appsmith/constants/messages";
|
||||
import { useParams } from "react-router";
|
||||
import { AppState } from "@appsmith/reducers";
|
||||
import { ExplorerURLParams } from "../Explorer/helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import MoreActionsMenu from "../Explorer/Actions/MoreActionsMenu";
|
||||
import { thinScrollbar } from "constants/DefaultTheme";
|
||||
import ActionRightPane, {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import AnalyticsUtil from "utils/AnalyticsUtil";
|
|||
import history from "utils/history";
|
||||
import { generateTemplateFormURL } from "RouteBuilder";
|
||||
import { useParams } from "react-router";
|
||||
import { ExplorerURLParams } from "../Explorer/helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { showTemplatesModal as showTemplatesModalAction } from "actions/templateActions";
|
||||
import {
|
||||
createMessage,
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import {
|
|||
import AnalyticsUtil from "utils/AnalyticsUtil";
|
||||
import { getCurrentApplicationId } from "selectors/editorSelectors";
|
||||
import { useParams, useLocation } from "react-router";
|
||||
import { ExplorerURLParams } from "pages/Editor/Explorer/helpers";
|
||||
import { ExplorerURLParams } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { AppState } from "@appsmith/reducers";
|
||||
import {
|
||||
AuthType,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import {
|
|||
WidgetReduxActionTypes,
|
||||
} from "@appsmith/constants/ReduxActionConstants";
|
||||
import produce from "immer";
|
||||
import { EvalMetaUpdates } from "workers/common/DataTreeEvaluator/types";
|
||||
import { EvalMetaUpdates } from "@appsmith/workers/common/DataTreeEvaluator/types";
|
||||
import { getMetaWidgetResetObj } from "./metaReducerUtils";
|
||||
|
||||
export type WidgetMetaState = Record<string, unknown>;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import AppsmithConsole from "utils/AppsmithConsole";
|
|||
import {
|
||||
ActionTriggerType,
|
||||
CopyToClipboardDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { ActionValidationError } from "sagas/ActionExecution/errorUtils";
|
||||
import { getType, Types } from "utils/TypeHelpers";
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import Axios from "axios";
|
|||
import {
|
||||
ActionTriggerType,
|
||||
DownloadActionDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { ActionValidationError } from "sagas/ActionExecution/errorUtils";
|
||||
import { isBase64String, isUrlString } from "./downloadActionUtils";
|
||||
import { isBlobUrl } from "utils/AppsmithUtils";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { call } from "redux-saga/effects";
|
||||
import { EventType } from "constants/AppsmithActionConstants/ActionConstants";
|
||||
import { executeAppAction } from "./ActionExecutionSagas";
|
||||
import { executeAppAction } from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import {
|
||||
extractGeoLocation,
|
||||
getCurrentLocationSaga,
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import {
|
||||
GetCurrentLocationDescription,
|
||||
WatchCurrentLocationDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { EventType } from "constants/AppsmithActionConstants/ActionConstants";
|
||||
import {
|
||||
executeAppAction,
|
||||
TriggerMeta,
|
||||
} from "sagas/ActionExecution/ActionExecutionSagas";
|
||||
} from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { call, put, spawn, take } from "redux-saga/effects";
|
||||
import {
|
||||
logActionExecutionError,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import {
|
|||
ActionTriggerType,
|
||||
CloseModalActionDescription,
|
||||
ShowModalActionDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { put } from "redux-saga/effects";
|
||||
import AppsmithConsole from "utils/AppsmithConsole";
|
||||
import { ActionValidationError } from "sagas/ActionExecution/errorUtils";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { getQueryStringfromObject } from "RouteBuilder";
|
|||
import history from "utils/history";
|
||||
import { setDataUrl } from "sagas/PageSagas";
|
||||
import AppsmithConsole from "utils/AppsmithConsole";
|
||||
import { NavigateActionDescription } from "entities/DataTree/actionTriggers";
|
||||
import { NavigateActionDescription } from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { builderURL, viewerURL } from "RouteBuilder";
|
||||
import { TriggerFailureError } from "./errorUtils";
|
||||
import { isValidURL } from "utils/URLUtils";
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ import { SAAS_EDITOR_API_ID_PATH } from "pages/Editor/SaaSEditor/constants";
|
|||
import {
|
||||
ActionTriggerType,
|
||||
RunPluginActionDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { APP_MODE } from "entities/App";
|
||||
import { FileDataTypes } from "widgets/constants";
|
||||
import { hideDebuggerErrors } from "actions/debuggerActions";
|
||||
|
|
@ -99,15 +99,18 @@ import { JSCollection } from "entities/JSCollection";
|
|||
import {
|
||||
executeAppAction,
|
||||
TriggerMeta,
|
||||
} from "sagas/ActionExecution/ActionExecutionSagas";
|
||||
} from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { requestModalConfirmationSaga } from "sagas/UtilSagas";
|
||||
import { ModalType } from "reducers/uiReducers/modalActionReducer";
|
||||
import { getFormNames, getFormValues } from "redux-form";
|
||||
import { CURL_IMPORT_FORM } from "@appsmith/constants/forms";
|
||||
import { submitCurlImportForm } from "actions/importActions";
|
||||
import { curlImportFormValues } from "pages/Editor/APIEditor/helpers";
|
||||
import { matchBasePath } from "pages/Editor/Explorer/helpers";
|
||||
import { isTrueObject, findDatatype } from "workers/Evaluation/evaluationUtils";
|
||||
import { matchBasePath } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import {
|
||||
isTrueObject,
|
||||
findDatatype,
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { handleExecuteJSFunctionSaga } from "sagas/JSPaneSagas";
|
||||
import { Plugin } from "api/PluginApi";
|
||||
import { setDefaultActionDisplayFormat } from "./PluginActionSagaUtils";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { spawn } from "redux-saga/effects";
|
||||
import { PostMessageDescription } from "../../entities/DataTree/actionTriggers";
|
||||
import { PostMessageDescription } from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import {
|
||||
logActionExecutionError,
|
||||
TriggerFailureError,
|
||||
} from "sagas/ActionExecution/errorUtils";
|
||||
import { TriggerMeta } from "./ActionExecutionSagas";
|
||||
import { TriggerMeta } from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { isEmpty } from "lodash";
|
||||
|
||||
export function* postMessageSaga(
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import AppsmithConsole from "utils/AppsmithConsole";
|
|||
import {
|
||||
ActionTriggerType,
|
||||
ResetWidgetDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import {
|
||||
ActionValidationError,
|
||||
TriggerFailureError,
|
||||
|
|
@ -18,7 +18,7 @@ import { FlattenedWidgetProps } from "widgets/constants";
|
|||
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
|
||||
import { getDataTree } from "selectors/dataTreeSelectors";
|
||||
import { DataTree } from "entities/DataTree/dataTreeFactory";
|
||||
import { isWidget } from "workers/Evaluation/evaluationUtils";
|
||||
import { isWidget } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
|
||||
export default function* resetWidgetActionSaga(
|
||||
payload: ResetWidgetDescription["payload"],
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import {
|
||||
ClearIntervalDescription,
|
||||
SetIntervalDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import {
|
||||
executeAppAction,
|
||||
TriggerMeta,
|
||||
} from "sagas/ActionExecution/ActionExecutionSagas";
|
||||
} from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { call, delay, spawn } from "redux-saga/effects";
|
||||
import { EventType } from "constants/AppsmithActionConstants/ActionConstants";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import AppsmithConsole from "utils/AppsmithConsole";
|
|||
import {
|
||||
ActionTriggerType,
|
||||
ShowAlertActionDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import {
|
||||
ActionValidationError,
|
||||
TriggerFailureError,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { getAppStoreData } from "selectors/entitiesSelector";
|
|||
import {
|
||||
RemoveValueActionDescription,
|
||||
StoreValueActionDescription,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { getCurrentGitBranch } from "selectors/gitSyncSelectors";
|
||||
import { getCurrentApplicationId } from "selectors/editorSelectors";
|
||||
import { AppStoreState } from "reducers/entityReducers/appReducer";
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import { Types } from "utils/TypeHelpers";
|
|||
import {
|
||||
ActionTriggerFunctionNames,
|
||||
ActionTriggerType,
|
||||
} from "entities/DataTree/actionTriggers";
|
||||
} from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import DebugButton from "components/editorComponents/Debugger/DebugCTA";
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -57,12 +57,12 @@ import { getCurrentPageId } from "selectors/editorSelectors";
|
|||
import { WidgetProps } from "widgets/BaseWidget";
|
||||
import * as log from "loglevel";
|
||||
import { DependencyMap } from "utils/DynamicBindingUtils";
|
||||
import { TriggerMeta } from "./ActionExecution/ActionExecutionSagas";
|
||||
import { TriggerMeta } from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import {
|
||||
getEntityNameAndPropertyPath,
|
||||
isAction,
|
||||
isWidget,
|
||||
} from "workers/Evaluation/evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
|
||||
// Saga to format action request values to be shown in the debugger
|
||||
function* formatActionRequestSaga(
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ import {
|
|||
import {
|
||||
executeActionTriggers,
|
||||
TriggerMeta,
|
||||
} from "./ActionExecution/ActionExecutionSagas";
|
||||
} from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { EventType } from "constants/AppsmithActionConstants/ActionConstants";
|
||||
import { Toaster, Variant } from "design-system";
|
||||
import {
|
||||
|
|
@ -91,7 +91,7 @@ import {
|
|||
UncaughtPromiseError,
|
||||
} from "sagas/ActionExecution/errorUtils";
|
||||
import { Channel } from "redux-saga";
|
||||
import { ActionDescription } from "entities/DataTree/actionTriggers";
|
||||
import { ActionDescription } from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import { FormEvaluationState } from "reducers/evaluationReducers/formEvaluationReducer";
|
||||
import { FormEvalActionPayload } from "./FormEvaluationSaga";
|
||||
import { getSelectedAppTheme } from "selectors/appThemingSelectors";
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import { JSCollection, JSAction } from "entities/JSCollection";
|
|||
import { createJSCollectionRequest } from "actions/jsActionActions";
|
||||
import history from "utils/history";
|
||||
import { executeFunction } from "./EvaluationsSaga";
|
||||
import { getJSCollectionIdFromURL } from "pages/Editor/Explorer/helpers";
|
||||
import { getJSCollectionIdFromURL } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import {
|
||||
getDifferenceInJSCollection,
|
||||
JSUpdate,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
isAction,
|
||||
isJSAction,
|
||||
isWidget,
|
||||
} from "workers/Evaluation/evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import {
|
||||
EvalError,
|
||||
EvalErrorTypes,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import AppsmithConsole from "utils/AppsmithConsole";
|
|||
import {
|
||||
getEntityNameAndPropertyPath,
|
||||
isJSAction,
|
||||
} from "workers/Evaluation/evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
|
||||
// We currently only log lint errors in JSObjects
|
||||
export function* logLatestLintPropertyErrors({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { matchPath } from "react-router";
|
||||
import { matchBasePath } from "pages/Editor/Explorer/helpers";
|
||||
import { matchBasePath } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import {
|
||||
API_EDITOR_ID_PATH,
|
||||
QUERIES_EDITOR_ID_PATH,
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ import {
|
|||
getAllPathsFromPropertyConfig,
|
||||
nextAvailableRowInContainer,
|
||||
} from "entities/Widget/utils";
|
||||
import { getAllPaths } from "workers/Evaluation/evaluationUtils";
|
||||
import { getAllPaths } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import {
|
||||
createMessage,
|
||||
ERROR_WIDGET_COPY_NO_WIDGET_SELECTED,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ import { getContainerWidgetSpacesSelector } from "selectors/editorSelectors";
|
|||
import { reflow } from "reflow";
|
||||
import { getBottomRowAfterReflow } from "utils/reflowHookUtils";
|
||||
import { DataTreeWidget } from "entities/DataTree/dataTreeFactory";
|
||||
import { isWidget } from "workers/Evaluation/evaluationUtils";
|
||||
import { isWidget } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { CANVAS_DEFAULT_MIN_HEIGHT_PX } from "constants/AppConstants";
|
||||
import { MetaState } from "reducers/entityReducers/metaReducer";
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { AppState } from "@appsmith/reducers";
|
|||
import { CanvasWidgetsReduxState } from "reducers/entityReducers/canvasWidgetsReducer";
|
||||
import { createSelector } from "reselect";
|
||||
import { getWidgets } from "sagas/selectors";
|
||||
import { isWidget } from "workers/Evaluation/evaluationUtils";
|
||||
import { isWidget } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { getDataTree } from "./dataTreeSelectors";
|
||||
|
||||
type ErrorObejct = {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import { JSCollectionDataState } from "reducers/entityReducers/jsActionsReducer"
|
|||
import { DefaultPlugin, GenerateCRUDEnabledPluginMap } from "api/PluginApi";
|
||||
import { JSAction, JSCollection } from "entities/JSCollection";
|
||||
import { APP_MODE } from "entities/App";
|
||||
import { ExplorerFileEntity } from "pages/Editor/Explorer/helpers";
|
||||
import { ExplorerFileEntity } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { ActionValidationConfigMap } from "constants/PropertyControlConstants";
|
||||
import { selectFeatureFlags } from "./usersSelectors";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { getDataTree } from "./dataTreeSelectors";
|
|||
import { DataTree } from "entities/DataTree/dataTreeFactory";
|
||||
import { Action } from "entities/Action";
|
||||
import { EvaluationError } from "utils/DynamicBindingUtils";
|
||||
import { getActionIdFromURL } from "pages/Editor/Explorer/helpers";
|
||||
import { getActionIdFromURL } from "@appsmith/pages/Editor/Explorer/helpers";
|
||||
import { extractConditionalOutput } from "components/formControls/utils";
|
||||
|
||||
export type GetFormData = {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import {
|
|||
getEntityNameAndPropertyPath,
|
||||
isJSAction,
|
||||
isTrueObject,
|
||||
} from "workers/Evaluation/evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { DataTreeEntity } from "entities/DataTree/dataTreeFactory";
|
||||
import { getType, Types } from "./TypeHelpers";
|
||||
import { ViewTypes } from "components/formControls/utils";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
import { DataTree } from "entities/DataTree/dataTreeFactory";
|
||||
import { get, set } from "lodash";
|
||||
import { isJSObject, isWidget } from "workers/Evaluation/evaluationUtils";
|
||||
import {
|
||||
isJSObject,
|
||||
isWidget,
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { DependencyMap } from "./DynamicBindingUtils";
|
||||
import WidgetFactory from "./WidgetFactory";
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import {
|
|||
import {
|
||||
GLOBAL_DEFS,
|
||||
GLOBAL_FUNCTIONS,
|
||||
} from "utils/autocomplete/EntityDefinitions";
|
||||
} from "@appsmith/utils/autocomplete/EntityDefinitions";
|
||||
import { FieldEntityInformation } from "components/editorComponents/CodeEditor/EditorConfig";
|
||||
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||
import { AutocompleteSorter } from "./AutocompleteSortRules";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {
|
|||
ENTITY_TYPE,
|
||||
EvaluationSubstitutionType,
|
||||
} from "entities/DataTree/dataTreeFactory";
|
||||
import { entityDefinitions } from "utils/autocomplete/EntityDefinitions";
|
||||
import { entityDefinitions } from "@appsmith/utils/autocomplete/EntityDefinitions";
|
||||
|
||||
describe("dataTreeTypeDefCreator", () => {
|
||||
it("creates the right def for a widget", () => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { DataTree, ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||
import { uniqueId, get, isFunction, isObject } from "lodash";
|
||||
import { entityDefinitions } from "utils/autocomplete/EntityDefinitions";
|
||||
import { entityDefinitions } from "@appsmith/utils/autocomplete/EntityDefinitions";
|
||||
import { getType, Types } from "utils/TypeHelpers";
|
||||
import { Def } from "tern";
|
||||
import {
|
||||
|
|
@ -9,7 +9,7 @@ import {
|
|||
isJSAction,
|
||||
isTrueObject,
|
||||
isWidget,
|
||||
} from "workers/Evaluation/evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { DataTreeDefEntityInformation } from "utils/autocomplete/CodemirrorTernService";
|
||||
|
||||
export type ExtraDef = Record<string, Def | string>;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import ListPagination, {
|
|||
import { ValidationTypes } from "constants/WidgetValidation";
|
||||
import derivedProperties from "./parseDerivedProperties";
|
||||
import { DSLWidget } from "widgets/constants";
|
||||
import { entityDefinitions } from "utils/autocomplete/EntityDefinitions";
|
||||
import { entityDefinitions } from "@appsmith/utils/autocomplete/EntityDefinitions";
|
||||
import { PrivateWidgets } from "entities/DataTree/types";
|
||||
import equal from "fast-deep-equal/es6";
|
||||
import { klona } from "klona/lite";
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
DataTreeDiffEvent,
|
||||
getEntityNameAndPropertyPath,
|
||||
isJSAction,
|
||||
} from "workers/Evaluation/evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import {
|
||||
removeFunctionsAndVariableJSCollection,
|
||||
updateJSCollectionInUnEvalTree,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import {
|
|||
} from "entities/DataTree/dataTreeFactory";
|
||||
import { ParsedBody, ParsedJSSubAction } from "utils/JSPaneUtils";
|
||||
import { unset, set, get } from "lodash";
|
||||
import { isJSAction } from "workers/Evaluation/evaluationUtils";
|
||||
import { isJSAction } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
|
||||
/**
|
||||
* here we add/remove the properties (variables and actions) which got added/removed from the JSObject parsedBody.
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const ctx: Worker = self as any;
|
|||
*
|
||||
* needs a REQUEST_ID to be passed in to know which request is going on right now
|
||||
*/
|
||||
import { ActionDescription } from "entities/DataTree/actionTriggers";
|
||||
import { ActionDescription } from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import _ from "lodash";
|
||||
import { EventType } from "constants/AppsmithActionConstants/ActionConstants";
|
||||
import { dataTreeEvaluator } from "./handlers/evalTree";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { EventType } from "constants/AppsmithActionConstants/ActionConstants";
|
|||
import { LogObject, Methods, Severity } from "entities/AppsmithConsole";
|
||||
import { klona } from "klona/lite";
|
||||
import moment from "moment";
|
||||
import { TriggerMeta } from "sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { TriggerMeta } from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { sendMessage, MessageType } from "utils/MessageUtil";
|
||||
import { MAIN_THREAD_ACTION } from "./evalWorkerActions";
|
||||
import { _internalClearTimeout, _internalSetTimeout } from "./TimeoutOverride";
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import { ValidationTypes } from "constants/WidgetValidation";
|
|||
import WidgetFactory from "utils/WidgetFactory";
|
||||
import { generateDataTreeWidget } from "entities/DataTree/dataTreeWidget";
|
||||
import { sortObjectWithArray } from "../../../utils/treeUtils";
|
||||
import { createUnEvalTreeForEval } from "../dataTreeUtils";
|
||||
import { createUnEvalTreeForEval } from "@appsmith/workers/Evaluation/dataTreeUtils";
|
||||
|
||||
const WIDGET_CONFIG_MAP: WidgetTypeConfigMap = {
|
||||
CONTAINER_WIDGET: {
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ import {
|
|||
} from "utils/DynamicBindingUtils";
|
||||
import unescapeJS from "unescape-js";
|
||||
import { LogObject, Severity } from "entities/AppsmithConsole";
|
||||
import { enhanceDataTreeWithFunctions } from "./Actions";
|
||||
import { enhanceDataTreeWithFunctions } from "@appsmith/workers/Evaluation/Actions";
|
||||
import { isEmpty } from "lodash";
|
||||
import { ActionDescription } from "entities/DataTree/actionTriggers";
|
||||
import { ActionDescription } from "@appsmith/entities/DataTree/actionTriggers";
|
||||
import userLogs from "./UserLog";
|
||||
import { EventType } from "constants/AppsmithActionConstants/ActionConstants";
|
||||
import { TriggerMeta } from "sagas/ActionExecution/ActionExecutionSagas";
|
||||
import { TriggerMeta } from "@appsmith/sagas/ActionExecution/ActionExecutionSagas";
|
||||
import indirectEval from "./indirectEval";
|
||||
import { DOM_APIS } from "./SetupDOM";
|
||||
import { JSLibraries, libraryReservedIdentifiers } from "../common/JSLibrary";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// Workers do not have access to log.error
|
||||
/* eslint-disable no-console */
|
||||
import { WorkerErrorTypes } from "workers/common/types";
|
||||
import { WorkerErrorTypes } from "@appsmith/workers/common/types";
|
||||
import { EvalWorkerASyncRequest, EvalWorkerSyncRequest } from "./types";
|
||||
import { syncHandlerMap, asyncHandlerMap } from "./handlers";
|
||||
import { TMessage, sendMessage, MessageType } from "utils/MessageUtil";
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import { FormConfigType } from "components/formControls/BaseControl";
|
|||
import { isArray, isEmpty, isString, merge, uniq } from "lodash";
|
||||
import { extractEvalConfigFromFormConfig } from "components/formControls/utils";
|
||||
import { isDynamicValue } from "utils/DynamicBindingUtils";
|
||||
import { isTrueObject } from "./evaluationUtils";
|
||||
import { isTrueObject } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
|
||||
export enum ConditionType {
|
||||
HIDE = "hide", // When set, the component will be shown until condition is true
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { dataTreeEvaluator } from "./evalTree";
|
||||
import { removeFunctions } from "../evaluationUtils";
|
||||
import { removeFunctions } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { EvalWorkerSyncRequest } from "../types";
|
||||
|
||||
export default function(request: EvalWorkerSyncRequest) {
|
||||
|
|
|
|||
|
|
@ -10,17 +10,17 @@ import {
|
|||
} from "utils/DynamicBindingUtils";
|
||||
import { JSUpdate } from "utils/JSPaneUtils";
|
||||
import DataTreeEvaluator from "workers/common/DataTreeEvaluator";
|
||||
import { EvalMetaUpdates } from "workers/common/DataTreeEvaluator/types";
|
||||
import { EvalMetaUpdates } from "@appsmith/workers/common/DataTreeEvaluator/types";
|
||||
import { initiateLinting } from "workers/Linting/utils";
|
||||
import {
|
||||
createUnEvalTreeForEval,
|
||||
makeEntityConfigsAsObjProperties,
|
||||
} from "../dataTreeUtils";
|
||||
} from "@appsmith/workers/Evaluation/dataTreeUtils";
|
||||
import {
|
||||
CrashingError,
|
||||
DataTreeDiff,
|
||||
getSafeToRenderDataTree,
|
||||
} from "../evaluationUtils";
|
||||
} from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import {
|
||||
EvalTreeRequestData,
|
||||
EvalTreeResponseData,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { dataTreeEvaluator } from "./evalTree";
|
||||
import { EvalWorkerASyncRequest } from "../types";
|
||||
import { createUnEvalTreeForEval } from "../dataTreeUtils";
|
||||
import { createUnEvalTreeForEval } from "@appsmith/workers/Evaluation/dataTreeUtils";
|
||||
|
||||
export default async function(request: EvalWorkerASyncRequest) {
|
||||
const { data } = request;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { validateWidgetProperty } from "workers/common/DataTreeEvaluator/validationUtils";
|
||||
import { removeFunctions } from "../evaluationUtils";
|
||||
import { removeFunctions } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
import { EvalWorkerSyncRequest } from "../types";
|
||||
|
||||
export default function(request: EvalWorkerSyncRequest) {
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ import {
|
|||
} from "workers/Evaluation/evalWorkerActions";
|
||||
import { JSUpdate } from "utils/JSPaneUtils";
|
||||
import { WidgetTypeConfigMap } from "utils/WidgetFactory";
|
||||
import { EvalMetaUpdates } from "workers/common/DataTreeEvaluator/types";
|
||||
import { WorkerRequest } from "workers/common/types";
|
||||
import { DataTreeDiff } from "./evaluationUtils";
|
||||
import { EvalMetaUpdates } from "@appsmith/workers/common/DataTreeEvaluator/types";
|
||||
import { WorkerRequest } from "@appsmith/workers/common/types";
|
||||
import { DataTreeDiff } from "@appsmith/workers/Evaluation/evaluationUtils";
|
||||
|
||||
export type EvalWorkerSyncRequest = WorkerRequest<any, EVAL_WORKER_SYNC_ACTION>;
|
||||
export type EvalWorkerASyncRequest = WorkerRequest<
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user