Hongyang Du (hond)
a3a242c375
[PORT]Refactor AdaptiveExpressions method GetStandardFunctions() ( #2502 )
...
* init
* init
* init
* init
* init
* init
* init
* init
* add comments
* refine
* refine
* fix error
* refine
* small fix
* retrigger
* fix comments
* fix comments
* fix comments
2020-07-28 09:12:38 +08:00
Denise Scollo
1adbce64d5
Update dependencies warnings ( #2545 )
...
Co-authored-by: Joel Mut <62260472+sw-joelmut@users.noreply.github.com>
Co-authored-by: Cecilia Avila <44245136+ceciliaavila@users.noreply.github.com>
2020-07-22 10:10:03 -07:00
Michael Richardson
50a7fc59ba
Preload LG test files ( #2522 )
...
* preloaded files
* test all packages
* preload lg.test.js files
* preload files in lgDiagnostic.test.js
* preload MultilanguageLGTest.js files
* preload templatesParseTree.test.js files
* add missing await to FileTranscriptStore test
* Revert "add missing await to FileTranscriptStore test"
This reverts commit e0dd24bcf7
.
Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
2020-07-16 13:38:10 -07:00
Hongyang Du (hond)
d305b0b3a6
[PORT] Further improve LG's performance ( #2409 )
...
* init
* init
* update
* init
* fix errors
* fix comments
* renaming
* typo
2020-06-30 09:38:20 +08:00
Hongyang Du (hond)
804ade0616
[PORT]Add expandText LG function ( #2387 )
...
* init
* init
2020-06-22 11:56:56 +08:00
Fei Chen
30e5d595ca
[PORT] fix empty array and strict mode issue in expand ( #2362 )
...
* port #4044 : fix corner case of expander
* port 4057: fix strict mode issue in expander
2020-06-16 18:26:28 +08:00
Hongyang Du (hond)
8fb8848ee0
Move EXPRESSION in LG from lexer to parser ( #2334 )
2020-06-12 16:18:57 +08:00
Hongyang Du (hond)
8882a31d56
[PORT]Enrich LG error message ( #2322 )
...
* init
* init
* small fix
2020-06-10 09:15:39 +08:00
Hongyang Du (hond)
c3cfaad2df
[PORT]Refine template loop detection to enable recursive functions ( #2305 )
...
* Refine template loop detection to enable recursive functions
* Reduce the recursion stack depth to pass MacOS test
2020-06-05 08:27:57 +08:00
Hongyang Du (hond)
cb95a0ac31
[PORT]Adjust grammar to improve LG parsing performance ( #2303 )
2020-06-04 09:59:11 +08:00
Hongyang Du (hond)
ade38d64d6
Remove antlr auto build with build/test script ( #2259 )
...
* Remove antlrbuild with build/test and refine some doc
* expand the lggenerator test time limitation
2020-05-21 09:55:12 +08:00
Hongyang Du (hond)
f93eca637f
[PORT]Make template name format consistent with function name format ( #2255 )
...
* Make template name format consistent with function name format
* trigger
* trigger
2020-05-20 17:25:36 +08:00
Hongyang Du (hond)
4895463498
Maintain the high priority and independence of multiline ( #2221 )
...
* Increase the priority of multiline
* fix token error
* fix token issue
* fix bugs
* small fix
* trigger
* fix the ci issue
* fix ci
* adjust test
Co-authored-by: Dong Lei <donglei@microsoft.com>
2020-05-18 11:12:13 +08:00
Hongyang Du (hond)
a7dfc4ba96
Update antlr4ts version and add antlr build script ( #2218 )
...
* add antlr build script, and update antlr4ts version
* add tokens file
* fix comments
2020-05-15 09:22:13 -07:00
Shuai Wang
c04577b378
[Port] [LG] Inject LG templates as a global expression function ( #2188 )
...
* port inject lg to Expression
* remove only in test
* retrigger
2020-05-07 11:21:31 +08:00
Hongyang Du (hond)
f23f9f0acf
[PORT] Support empty lg file. ( #2109 )
2020-04-27 14:05:11 +08:00
Hongyang Du (hond)
9de852551e
Add activity factory test ( #2095 )
...
* add activity factory test
* remove unused file
2020-04-24 15:02:50 +08:00
Hongyang Du (hond)
47773f4b94
Fix the offset issue of diagnostic ( #2086 )
...
* fix the offset issue
* retrigger
2020-04-22 19:33:29 +08:00
Hongyang Du (hond)
c8129bee82
[PORT] re-do multiLingualLg ( #2053 )
...
* [LG] re-do multiLingualLg
* add comments
2020-04-22 19:14:38 +08:00
Shuai Wang
1c35d9081c
[PORT] Improve LG Options for replace null and markdown rendering ( #2071 )
...
* init
* todo
* port more tests
* remove only in lg test
* retrigger
* retrigger
* retrigger
* retrigger
* fix conflicts and postion of imports in LG example
* retrigger
2020-04-22 17:31:32 +08:00
Hongyang Du (hond)
b52afcd987
[port]Change Comparisons to ReturnType of 'template' function use bit operators ( #2058 )
2020-04-22 13:12:12 +08:00
Hongyang Du (hond)
13b240a660
[PORT][LG] Robust Template CRUD with Two-phase parsing of LG ( #2074 )
...
* init
* continue working...
* port to js
* fix errors
* fix some errors
* fix comments
2020-04-22 10:28:20 +08:00
Shuai Wang
8c15615dd5
[Expression] Add support of create object via {key: value} syntax ( #1958 )
...
* create Array via [...]
* add more tests
* more test on array create and index access
* fix a typo
* modify LG lexer for recognize object definition
* temp
* checkpoint
* modifications
* rewrite visitStringInterpolationAtom
* revert lg lexer
* add {} support of LG
* fix test cases after merge master
* delete token files
* fix style
* fix redundent empty object definition
* retrigger
* fix issues
* fix
* fix test cases
* add a new test
* fix test cases
* clean up
* format
* fix test cases
* update lexer
* move a test case to right the category
* update
* retrigger
2020-04-21 10:47:52 +08:00
Steven Gum
57ad046594
Add @microsoft/api-extractor to detect public API changes ( #1962 )
...
* add @microsoft/api-extractor to botbuilder-core
* add api-extractor to libraries
* run api-extractor on all libs except for:
* botframework-connector
* adaptive-expressions (in preview)
* botbuilder-lg (in preview)
* support friendlier jsonc render on GitHub
* bump @microsoft/api-extractor to ^7.7.12 b/c microsoft/rushstack/issues/1095
* regenerate bf-schema.api.md after master merge
* add codeowners, regen core & dialogs api.md
* regenerate botbuilder.api.md after merging master
2020-04-20 16:52:04 -07:00
Shuai Wang
17f06deb51
fix ( #2023 )
2020-04-14 17:09:51 +08:00
Fei Chen
51a4389625
refactor expander ( #2012 )
...
* refactor expander
* adjust code style
2020-04-13 09:45:03 +08:00
Shuai Wang
0b24fa6142
[LG] Remove dash in identifier to make sure arithmetic expressions can be parsed correctly ( #2009 )
...
* init
* fix template name in tests
2020-04-10 14:46:44 +08:00
Zichuan Ma
69f0ba31d0
Merge 4.future to master ( #1998 )
...
* Merged 4.future
* removed package-lock.json
* replaced matchAll with regex.exec to be compatible with node 10.x
* added constructor for InputDialog
* implemented language generator converter
2020-04-08 08:54:20 -07:00
Hongyang Du (hond)
da19e74adc
[PORT]Refine Error message and remove duplicate code ( #1987 )
2020-04-03 11:15:13 +08:00
Hongyang Du (hond)
437f9f27dd
Remove "botbuilder-core" dependency from LG ( #1980 )
...
* remove botbuilder dependency in lg
* Comment out the activityFactory test
2020-04-03 09:16:03 +08:00
Shuai Wang
83aea863a1
[Port] make custom function easier ( #1981 )
...
* port make custom function easier
* fix comments
2020-04-02 21:53:33 +08:00
Hongyang Du (hond)
cb22de665c
[PORT]Fix missing trailing line break ( #1978 )
...
* Loose grammar to make Structure LG more torren
* init
* adjust start line
2020-04-02 15:06:28 +08:00
Hongyang Du (hond)
9d768ed12a
Loose grammar to make Structure LG more torren ( #1976 )
...
Co-authored-by: Shuai Wang <shuwan@microsoft.com>
2020-04-02 14:40:50 +08:00
Hongyang Du (hond)
573100fe60
[PORT]cache Antlr parse result ( #1956 )
2020-03-30 10:22:56 +08:00
Hongyang Du (hond)
654e04a788
[PORT] Make the CRUD of the template consistent ( #1952 )
2020-03-27 11:07:11 +08:00
Hongyang Du (hond)
1b24405d6d
[PORT]update LG escape ( #1944 )
...
* lf escape
* add more tests
2020-03-25 10:10:21 +08:00
Hongyang Du (hond)
8d6ba325df
[PORT]update expression escape ( #1940 )
2020-03-23 16:20:51 +08:00
Shuai Wang
32b751ea8f
Add method for create an array by square bracket expression ( #1926 )
...
* create Array via [...]
* add more tests
* more test on array create and index access
* fix a typo
2020-03-23 14:53:40 +08:00
Hongyang Du (hond)
0160cd4011
Move deepEquals and deferences from extensions to Expression class ( #1927 )
...
* Move DeepEquals and References from extensions to Expression class
* revert package.json
* revert package.json
* revert package.json
* retrigger ci
2020-03-19 15:44:28 +08:00
Shuai Wang
473d91f258
Support multiple lines Expression in LG file ( #1921 )
...
* init
* add support for multi line expr in LG
* fix test case
* remove only in test
* undo comment
2020-03-18 18:06:46 +08:00
Hongyang Du (hond)
7a7b458b42
[PORT] [activityfactory] Improve missing type error ( #1922 )
2020-03-18 17:09:54 +08:00
Hongyang Du (hond)
757efb8907
update lg tsconfig and comments ( #1910 )
...
* update lg tsconfig
* migrate C# format comments to js comments
* re-trigger ci
2020-03-16 11:19:40 +08:00
Hongyang Du (hond)
42e366d9ea
API naming for LG ( #1883 )
...
* rename lg
* rename templates property to items
* rename
* rename
* Updated Templates to look like a collection
* Fixed unit tests
Co-authored-by: Steven Ickman <stevenic@microsoft.com>
2020-03-10 12:34:18 -07:00
Hongyang Du (hond)
efdd58ff2d
Clean LG/Expression ( #1873 )
...
* init
* update
* clean LG/Expression
* revert ts-node version
2020-03-08 16:44:33 +08:00
Shuai Wang
b03ef78a5b
Port: API naming for Expression ( #1853 )
...
* port expression naming
* retrigger
* fix
* fix
* remove unnecessary test
* delete extra whitespace
* add test case
* changes
* fix test cases
2020-03-06 16:00:14 +08:00
Hongyang Du (hond)
4c1d757523
Update LG template content range ( #1849 )
...
* adjust template range
* update
2020-03-05 15:56:47 +08:00
Emilio Munoz
db6a2ca65c
Fix bug where custom functions were not passed to ( #1845 )
...
included .lg files.
2020-03-04 14:30:01 -08:00
Shuai Wang
8a7456e8b1
Port some LG and Expression from BotBuilder-Dotnet ( #1834 )
...
* init
* port some changes in LG and Expression
* change filePath to lowercase
* revert substring change
* fix
* fix extra tabs
* retrigger
* retrigger
Co-authored-by: Steven Ickman <stevenic@microsoft.com>
2020-03-03 16:18:44 -08:00
Michael Richardson
5456287f07
updated NYC dev dependency ( #1828 )
...
Co-authored-by: Steven Ickman <stevenic@microsoft.com>
2020-03-03 16:08:50 -08:00
Steven Ickman
b7ee025e44
Added buffered delivery mode support. ( #1783 )
...
* Added buffered delivery mode support.
* Renamed buffered to bufferedReplies
* Fixed some test issues
* Disabled date tests that don't work in the Pacific Time Zone
* tested end to end plus some fixes
Co-authored-by: johnataylor <johtaylo@microsoft.com>
2020-02-28 16:31:16 -08:00
Hongyang Du (hond)
376bd9150e
Treat '@{' an error instead of text in LG ( #1768 )
2020-02-26 11:16:54 +08:00
Shuai Wang
25b1b53fe8
Port: LG error related changes ( #1785 )
...
* port LG error centralization
* merge changes
* parity code
* fix lg test bugs
* fix bugs
* fix
* fix test cases
* fix assert throw to verify error message
* modify staticChecker
* fix bugs
* fix import
* remove comments
* add signature
* remove unused file
* retrigger
Co-authored-by: Hongyang Du (hond) <hond@microsoft.com>
2020-02-26 09:50:55 +08:00
Chris McConnell
3baf0e663a
Plumb custom functions throughout. ( #1784 )
2020-02-24 20:46:17 -08:00
Hongyang Du (hond)
80ebf56a22
[Port] Forced re-execution expression within template ( #1762 )
...
* Forced re-execution expression within template
* retrigger ci
2020-02-22 09:32:37 +08:00
Hongyang Du (hond)
d449253afe
[Port] Add tests around memory access path ( #1760 )
2020-02-21 17:19:37 +08:00
Hongyang Du (hond)
323053da42
[Expression]add string interpolation feature ( #1759 )
2020-02-21 14:49:54 +08:00
Hongyang Du (hond)
83fff11182
add comments ( #1751 )
2020-02-20 17:25:11 +08:00
Shuai Wang
73641c15ef
Port: Optimize LG performace ( #1752 )
...
* init
* fix test cases
* add doc for function
* fix comments
* fix
2020-02-20 17:06:48 +08:00
Shuai Wang
266fbec46a
Port: Refactor LG Api ( #1740 )
...
* init
* parity
* fix some bugs
* fix test cases
* fix test cases
* fix test cases
* fix comments and conflicts
* remove redundent import
* fix comments
2020-02-20 14:20:03 +08:00
Hongyang Du (hond)
410e03e911
treat everything after first '=' as value for the property ( #1737 )
2020-02-19 16:56:43 +08:00
Hongyang Du (hond)
c0c3f8e481
add isTemplate function ( #1735 )
2020-02-19 16:08:07 +08:00
Hongyang Du (hond)
5491bbf0c0
support constant [] and {} expression ( #1734 )
2020-02-19 15:17:48 +08:00
Hongyang Du (hond)
41938a58c5
rename botframework-expressions to adaptive-expressions ( #1718 )
2020-02-19 08:19:27 +08:00
Hongyang Du (hond)
02bc402ce7
${} instead of @{} as bounding syntax. ( #1717 )
...
* port refactor Structure LG and Analyzer
* fix lexer and parser
* fix bugs
* fix extractor
* remove comments
* parity test cases and fix bugs
* init
* undo comments in ActivityFactoryTest
* retrigger
* retrigger
Co-authored-by: Shuai Wang <shuwan@microsoft.com>
2020-02-17 09:40:07 +08:00
Shuai Wang
8b2941bea9
Port refactor Structure LG and Analyzer ( #1713 )
...
* port refactor Structure LG and Analyzer
* fix lexer and parser
* fix bugs
* fix extractor
* remove comments
* parity test cases and fix bugs
* undo comments in ActivityFactoryTest
* retrigger
* retrigger
2020-02-15 23:11:34 +08:00
Steven Gum
f2f9267dad
add declarationMap to tsconfig.json in libraries ( #1613 )
2020-01-24 15:57:36 -08:00
Hongyang Du (hond)
d2d118e3be
Make IMemory interface follow the convention instead of returning tup… ( #1526 )
...
* Make IMemory interface follow the convention instead of returning tuple (#1525 )
* retrigger ci
2019-12-20 18:07:47 +08:00
Hongyang Du (hond)
0535ebbfef
Update README.MD ( #1463 )
2019-12-04 10:37:19 +08:00
Hongyang Du (hond)
b24d2050b7
LG/Expression parity with C# (till Nov 25) ( #1453 )
...
* init
* finisn expression sync
* init lg
* forward
* fix test errors
* forward
* rename test file
* fix comments
* refine
2019-12-02 21:01:40 +08:00
Steven Gum
7ff5fa8e57
[R7, Cherry-pick] Cherry-pick TypeScript 3.5.3 pin from 4.6 branch ( #1442 )
...
* [4.6.x] Pin TypeScript devDependency in each library. (Fixes #1436 ) (#1437 )
* move pinned typescript@3.5.2 devDependency into each package
* pin transcripts/ botbuilder dependencies, fix import in Skype Middleware
* bump to typescript@3.5.3
* [4.6.x] Fix set-dependency-versions script (#1438 )
* change set-dependency-versions script to use ~ not ^, update changed libs
* use pinned versions for intra-dependencies per @cleemullins feedback
* add typescript@3.5.3 as devDependency to bb-lg & bf-expressions packages
2019-11-22 15:10:01 -08:00
Hongyang Du (hond)
6f905bcc10
fix template additional newline bug ( #1419 )
2019-11-15 16:22:40 +08:00
Hongyang Du (hond)
9148dbe1b2
add Activityfactory ( #1401 )
...
* add activityfactory
* retrigger CI
* fix comments
* remove unused code
* modify text
* add some comments
* fix param type
2019-11-14 09:46:12 +08:00
Hongyang Du (hond)
a1ef1d3eb6
update package.json ( #1402 )
2019-11-12 15:16:17 -08:00
Chris Mullins
4a893c7641
Update package.json
2019-11-11 17:54:23 -08:00
Hongyang Du (hond)
779f270682
Add LG/Expression library ( #1381 )
...
* init lg library
* refine code
* fix deploy error
* fix test coverage
* remove xPath and xml functions (#1385 )
* [expression] add capability of handling null in string related built-in functions (#1395 )
* handling null in string related builtin functions
* remove redundent character
* remove tslint
* fix errors and warnings with eslint
2019-11-08 10:25:35 +08:00