@@ -297,6 +297,23 @@ declare class WrapNode<T> extends AbstractNode<T> {
297297 dependValues ( ) : Record < string , unknown > ;
298298}
299299
300+ /**
301+ * build a new node by setting new dependent nodes in child node
302+ */
303+ declare class WrapContextNodeV2 < T > extends AbstractNode < T > {
304+ readonly child : Node < T > ;
305+ readonly paramNodes : Record < string , Node < unknown > > ;
306+ readonly type = "wrapContextV2" ;
307+ constructor ( child : Node < T > , paramNodes : Record < string , Node < unknown > > ) ;
308+ wrapContext ( paramName : string ) : AbstractNode < ValueFn < T > > ;
309+ filterNodes ( exposingNodes : Record < string , Node < unknown > > ) : Map < Node < unknown > , string [ ] > ;
310+ justEval ( exposingNodes : Record < string , Node < unknown > > , methods ?: EvalMethods ) : T ;
311+ getChildren ( ) : Node < unknown > [ ] ;
312+ dependValues ( ) : Record < string , unknown > ;
313+ fetchInfo ( exposingNodes : Record < string , Node < unknown > > ) : FetchInfo ;
314+ private wrap ;
315+ }
316+
300317declare function transformWrapper < T > (
301318 transformFn : ( value : unknown ) => T ,
302319 defaultValue ?: T
@@ -305,7 +322,7 @@ declare function transformWrapper<T>(
305322declare function relaxedJSONToJSON ( text : string , compact : boolean ) : string ;
306323
307324declare function isDynamicSegment ( segment : string ) : boolean ;
308- declare function getDynamicStringSegments ( dynamicString : string ) : string [ ] ;
325+ declare function getDynamicStringSegments ( input : string ) : string [ ] ;
309326
310327declare function clearMockWindow ( ) : void ;
311328interface SandBoxOption {
@@ -318,12 +335,19 @@ declare function evalFunc(
318335 functionBody : string ,
319336 context : any ,
320337 methods ?: EvalMethods ,
321- options ?: SandBoxOption
338+ options ?: SandBoxOption ,
339+ isAsync ?: boolean
322340) : any ;
323341
324342declare function evalStyle ( id : string , css : string [ ] ) : void ;
325343declare function clearStyleEval ( id ?: string ) : void ;
326344
345+ declare function evalFunctionResult (
346+ unevaledValue : string ,
347+ context : Record < string , unknown > ,
348+ methods ?: EvalMethods
349+ ) : Promise < ValueAndMsg < unknown > > ;
350+
327351declare function nodeIsRecord (
328352 node : Node < unknown >
329353) : node is RecordNode < Record < string , Node < unknown > > > ;
@@ -735,6 +759,7 @@ export {
735759 EvalMethods ,
736760 ExecuteQueryAction ,
737761 ExtraActionType ,
762+ ExtraNodeType ,
738763 FetchCheckNode ,
739764 FetchInfo ,
740765 FunctionNode ,
@@ -764,6 +789,7 @@ export {
764789 UpdateNodesV2Action ,
765790 ValueAndMsg ,
766791 ValueFn ,
792+ WrapContextNodeV2 ,
767793 WrapNode ,
768794 addChildAction ,
769795 changeChildAction ,
@@ -776,6 +802,7 @@ export {
776802 deleteCompAction ,
777803 dependingNodeMapEquals ,
778804 evalFunc ,
805+ evalFunctionResult ,
779806 evalNodeOrMinor ,
780807 evalStyle ,
781808 executeQueryAction ,
0 commit comments