PromucFlow_constructor/app/shared/ast/index.ts
Ravi Kumar Prasad 358926d5a0
fix: show evaluated value for action selector fields (#23099)
## Description
The evaluated values for text fields in action selector were not shown.
This PR fixes the issue.

#### PR fixes following issue(s)
Fixes #12736 

#### Type of change
- Bug fix (non-breaking change which fixes an issue)

## Testing
>
#### How Has This Been Tested?
- [x] Cypress
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Test-plan-implementation#speedbreaker-features-to-consider-for-every-change)
have been covered
- [x] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans/_edit#areas-of-interest)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [x] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [x] Cypress test cases have been added and approved by SDET/manual QA
- [x] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-05-16 22:29:11 +05:30

124 lines
2.7 KiB
TypeScript

import {
ObjectExpression,
PropertyNode,
isIdentifierNode,
isVariableDeclarator,
isObjectExpression,
isLiteralNode,
isPropertyNode,
isPropertyAFunctionNode,
isCallExpressionNode,
getAST,
extractIdentifierInfoFromCode,
entityRefactorFromCode,
extractInvalidTopLevelMemberExpressionsFromCode,
getFunctionalParamsFromNode,
isTypeOfFunction,
MemberExpressionData,
IdentifierInfo,
isFunctionPresent,
} from "./src";
// constants
import { ECMA_VERSION, SourceType, NodeTypes } from "./src/constants";
// JSObjects
import {
parseJSObject,
isJSFunctionProperty,
TParsedJSProperty,
JSPropertyPosition,
} from "./src/jsObject";
// action creator
import {
getTextArgumentAtPosition,
setTextArgumentAtPosition,
getEnumArgumentAtPosition,
setEnumArgumentAtPosition,
getModalName,
setModalName,
getFuncExpressionAtPosition,
getFunction,
replaceActionInQuery,
setCallbackFunctionField,
getActionBlocks,
getFunctionBodyStatements,
getMainAction,
getFunctionName,
setObjectAtPosition,
getThenCatchBlocksFromQuery,
setThenBlockInQuery,
setCatchBlockInQuery,
getFunctionArguments,
getFunctionNameFromJsObjectExpression,
getCallExpressions,
canTranslateToUI,
getFunctionParams,
getQueryParam,
setQueryParam,
checkIfCatchBlockExists,
checkIfThenBlockExists,
checkIfArgumentExistAtPosition,
} from "./src/actionCreator";
// types or interfaces should be exported with type keyword, while enums can be exported like normal functions
export type {
ObjectExpression,
PropertyNode,
MemberExpressionData,
IdentifierInfo,
TParsedJSProperty,
JSPropertyPosition,
};
export {
isIdentifierNode,
isVariableDeclarator,
isObjectExpression,
isLiteralNode,
isPropertyNode,
isPropertyAFunctionNode,
isCallExpressionNode,
getAST,
extractIdentifierInfoFromCode,
entityRefactorFromCode,
extractInvalidTopLevelMemberExpressionsFromCode,
getFunctionalParamsFromNode,
isTypeOfFunction,
parseJSObject,
ECMA_VERSION,
SourceType,
NodeTypes,
getTextArgumentAtPosition,
getEnumArgumentAtPosition,
getModalName,
setModalName,
setTextArgumentAtPosition,
setEnumArgumentAtPosition,
getFuncExpressionAtPosition,
getFunction,
replaceActionInQuery,
setCallbackFunctionField,
getActionBlocks,
getFunctionBodyStatements,
getMainAction,
getFunctionName,
setObjectAtPosition,
getThenCatchBlocksFromQuery,
setThenBlockInQuery,
setCatchBlockInQuery,
getFunctionArguments,
getFunctionNameFromJsObjectExpression,
getCallExpressions,
canTranslateToUI,
getFunctionParams,
getQueryParam,
setQueryParam,
checkIfThenBlockExists,
checkIfCatchBlockExists,
checkIfArgumentExistAtPosition,
isJSFunctionProperty,
isFunctionPresent,
};