langgraph-ui-components 0.0.4 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es10.js +31 -16
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es100.js +143 -3134
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js +202 -36
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +14 -5
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es103.js +27 -70
- package/dist/index.es103.js.map +1 -1
- package/dist/index.es104.js +28 -31
- package/dist/index.es104.js.map +1 -1
- package/dist/index.es105.js +3157 -5
- package/dist/index.es105.js.map +1 -1
- package/dist/index.es106.js +18 -2
- package/dist/index.es106.js.map +1 -1
- package/dist/index.es107.js +5 -11
- package/dist/index.es107.js.map +1 -1
- package/dist/index.es108.js +2 -503
- package/dist/index.es108.js.map +1 -1
- package/dist/index.es109.js +11 -5
- package/dist/index.es109.js.map +1 -1
- package/dist/index.es11.js +166 -123
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es110.js +503 -2
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es111.js +5 -146
- package/dist/index.es111.js.map +1 -1
- package/dist/index.es112.js +2 -908
- package/dist/index.es112.js.map +1 -1
- package/dist/index.es113.js +128 -262
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es114.js +907 -3
- package/dist/index.es114.js.map +1 -1
- package/dist/index.es115.js +262 -426
- package/dist/index.es115.js.map +1 -1
- package/dist/index.es116.js +3 -47
- package/dist/index.es116.js.map +1 -1
- package/dist/index.es117.js +443 -21
- package/dist/index.es117.js.map +1 -1
- package/dist/index.es118.js +42 -75
- package/dist/index.es118.js.map +1 -1
- package/dist/index.es119.js +22 -129
- package/dist/index.es119.js.map +1 -1
- package/dist/index.es12.js +13 -103
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es120.js +74 -44
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es121.js +129 -10
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es122.js +47 -43
- package/dist/index.es122.js.map +1 -1
- package/dist/index.es123.js +9 -98
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es124.js +43 -51
- package/dist/index.es124.js.map +1 -1
- package/dist/index.es125.js +96 -13
- package/dist/index.es125.js.map +1 -1
- package/dist/index.es126.js +52 -14
- package/dist/index.es126.js.map +1 -1
- package/dist/index.es127.js +156 -81
- package/dist/index.es127.js.map +1 -1
- package/dist/index.es128.js +2 -2
- package/dist/index.es129.js +14 -55
- package/dist/index.es129.js.map +1 -1
- package/dist/index.es13.js +126 -32
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js +87 -98
- package/dist/index.es130.js.map +1 -1
- package/dist/index.es131.js +2 -191
- package/dist/index.es131.js.map +1 -1
- package/dist/index.es132.js +54 -108
- package/dist/index.es132.js.map +1 -1
- package/dist/index.es133.js +98 -33
- package/dist/index.es133.js.map +1 -1
- package/dist/index.es134.js +191 -10
- package/dist/index.es134.js.map +1 -1
- package/dist/index.es135.js +109 -10
- package/dist/index.es135.js.map +1 -1
- package/dist/index.es136.js +35 -12
- package/dist/index.es136.js.map +1 -1
- package/dist/index.es137.js +10 -91
- package/dist/index.es137.js.map +1 -1
- package/dist/index.es138.js +11 -275
- package/dist/index.es138.js.map +1 -1
- package/dist/index.es139.js +12 -2
- package/dist/index.es139.js.map +1 -1
- package/dist/index.es140.js +88 -161
- package/dist/index.es140.js.map +1 -1
- package/dist/index.es141.js +270 -46
- package/dist/index.es141.js.map +1 -1
- package/dist/index.es142.js +2 -40
- package/dist/index.es142.js.map +1 -1
- package/dist/index.es143.js +164 -35
- package/dist/index.es143.js.map +1 -1
- package/dist/index.es144.js +45 -34
- package/dist/index.es144.js.map +1 -1
- package/dist/index.es145.js +37 -21
- package/dist/index.es145.js.map +1 -1
- package/dist/index.es146.js +32 -588
- package/dist/index.es146.js.map +1 -1
- package/dist/index.es147.js +32 -117
- package/dist/index.es147.js.map +1 -1
- package/dist/index.es148.js +22 -162
- package/dist/index.es148.js.map +1 -1
- package/dist/index.es149.js +591 -2
- package/dist/index.es149.js.map +1 -1
- package/dist/index.es15.js +15 -15
- package/dist/index.es150.js +125 -2
- package/dist/index.es150.js.map +1 -1
- package/dist/index.es151.js +2 -2
- package/dist/index.es152.js +2 -22
- package/dist/index.es152.js.map +1 -1
- package/dist/index.es153.js +22 -2
- package/dist/index.es153.js.map +1 -1
- package/dist/index.es154.js +2 -25
- package/dist/index.es154.js.map +1 -1
- package/dist/index.es155.js +25 -8
- package/dist/index.es155.js.map +1 -1
- package/dist/index.es156.js +4 -5
- package/dist/index.es156.js.map +1 -1
- package/dist/index.es157.js +7 -12
- package/dist/index.es157.js.map +1 -1
- package/dist/index.es158.js +5 -6
- package/dist/index.es158.js.map +1 -1
- package/dist/index.es159.js +12 -63
- package/dist/index.es159.js.map +1 -1
- package/dist/index.es160.js +5 -21
- package/dist/index.es160.js.map +1 -1
- package/dist/index.es161.js +24 -5
- package/dist/index.es161.js.map +1 -1
- package/dist/index.es162.js +11 -348
- package/dist/index.es162.js.map +1 -1
- package/dist/index.es163.js +52 -23
- package/dist/index.es163.js.map +1 -1
- package/dist/index.es164.js +63 -11
- package/dist/index.es164.js.map +1 -1
- package/dist/index.es165.js +21 -53
- package/dist/index.es165.js.map +1 -1
- package/dist/index.es166.js +6 -7
- package/dist/index.es166.js.map +1 -1
- package/dist/index.es167.js +342 -96
- package/dist/index.es167.js.map +1 -1
- package/dist/index.es168.js +6 -118
- package/dist/index.es168.js.map +1 -1
- package/dist/index.es169.js +98 -131
- package/dist/index.es169.js.map +1 -1
- package/dist/index.es17.js +2 -2
- package/dist/index.es170.js +108 -104
- package/dist/index.es170.js.map +1 -1
- package/dist/index.es171.js +136 -6
- package/dist/index.es171.js.map +1 -1
- package/dist/index.es172.js +114 -3
- package/dist/index.es172.js.map +1 -1
- package/dist/index.es173.js +6 -2
- package/dist/index.es173.js.map +1 -1
- package/dist/index.es174.js +2 -3737
- package/dist/index.es174.js.map +1 -1
- package/dist/index.es175.js +3682 -287
- package/dist/index.es175.js.map +1 -1
- package/dist/index.es176.js +321 -88
- package/dist/index.es176.js.map +1 -1
- package/dist/index.es177.js +95 -119
- package/dist/index.es177.js.map +1 -1
- package/dist/index.es178.js +131 -13
- package/dist/index.es178.js.map +1 -1
- package/dist/index.es179.js +13 -150
- package/dist/index.es179.js.map +1 -1
- package/dist/index.es180.js +150 -13
- package/dist/index.es180.js.map +1 -1
- package/dist/index.es181.js +13 -6
- package/dist/index.es181.js.map +1 -1
- package/dist/index.es182.js +6 -19
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es183.js +17 -86
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es184.js +69 -222
- package/dist/index.es184.js.map +1 -1
- package/dist/index.es185.js +242 -23
- package/dist/index.es185.js.map +1 -1
- package/dist/index.es186.js +23 -5
- package/dist/index.es186.js.map +1 -1
- package/dist/index.es187.js +6 -4
- package/dist/index.es187.js.map +1 -1
- package/dist/index.es188.js +4 -18
- package/dist/index.es188.js.map +1 -1
- package/dist/index.es189.js +16 -6
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es19.js +119 -15
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es190.js +7 -141
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +142 -2
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +2 -32
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +31 -5
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +5 -105
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +106 -13
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +12 -17
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +15 -28
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +30 -3
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +3 -4
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es2.js +24 -16
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es20.js +17 -68
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es200.js +5 -5
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +4 -36
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +36 -7
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +7 -5
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +5 -6
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +6 -41
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +41 -12
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +11 -240
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +239 -48
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +49 -33
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +3 -3
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es210.js +32 -10
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +12 -7
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +7 -6
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +6 -64
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +60 -36
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +39 -30
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +30 -60
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +60 -13
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +9 -17
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +23 -5
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es220.js +4 -16
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +14 -30
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +32 -4
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +4 -4
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +5 -5
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +5 -8
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +6 -90
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +90 -16
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +17 -761
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +762 -66
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es230.js +66 -174
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +169 -33
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +37 -136
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +136 -92
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +92 -32
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +32 -284
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +284 -25
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +22 -20
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es238.js +22 -13
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +12 -12
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es24.js +103 -305
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es240.js +13 -24
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +22 -42
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +45 -11
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +10 -10
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +10 -10
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +11 -14
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +14 -11
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +11 -11
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +10 -10
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +11 -15
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es25.js +68 -121
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es250.js +15 -11
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +10 -10
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +11 -11
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +10 -10
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +10 -10
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +10 -10
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +10 -10
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +10 -10
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +11 -56
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +53 -46
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js +305 -5
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es260.js +42 -112
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +87 -352
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +381 -15
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +17 -10
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +10 -30
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +17 -17
- package/dist/index.es265.js.map +1 -1
- package/dist/index.es266.js +25 -56
- package/dist/index.es266.js.map +1 -1
- package/dist/index.es267.js +59 -14
- package/dist/index.es267.js.map +1 -1
- package/dist/index.es268.js +14 -74
- package/dist/index.es268.js.map +1 -1
- package/dist/index.es269.js +77 -11
- package/dist/index.es269.js.map +1 -1
- package/dist/index.es270.js +10 -10
- package/dist/index.es270.js.map +1 -1
- package/dist/index.es271.js +11 -15
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +14 -51
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +44 -158
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +167 -2
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es275.js +2 -11
- package/dist/index.es275.js.map +1 -1
- package/dist/index.es276.js +9 -18
- package/dist/index.es276.js.map +1 -1
- package/dist/index.es277.js +17 -36
- package/dist/index.es277.js.map +1 -1
- package/dist/index.es278.js +42 -0
- package/dist/index.es278.js.map +1 -0
- package/dist/index.es28.js +7 -7
- package/dist/index.es29.js +1 -1
- package/dist/index.es32.js +4 -4
- package/dist/index.es33.js +1191 -13
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +6 -117
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +8 -70
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +148 -19
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +112 -255
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +68 -40
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +17 -214
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es40.js +247 -53
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +24 -123
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +205 -14
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +58 -221
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +140 -7
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +17 -1185
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +229 -6
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +15 -146
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +6 -8
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +84 -87
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es50.js +7 -3
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +14 -35
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +7 -71
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +89 -33
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +3 -305
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +36 -9
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +64 -83
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +36 -6
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +303 -12
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +9 -143
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es60.js +5 -299
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +158 -61
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +658 -199
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +138 -29
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +299 -8
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +65 -11
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +201 -175
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +33 -23
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +8 -1399
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +12 -9
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +187 -8
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +24 -6
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +1384 -147
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +9 -672
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +8 -12
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +35 -38
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +5 -34
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +64 -223
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +36 -29
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +11 -74
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +37 -73
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +32 -50
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +228 -26
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js +6 -19
- package/dist/index.es83.js.map +1 -1
- package/dist/index.es84.js +72 -54
- package/dist/index.es84.js.map +1 -1
- package/dist/index.es85.js +76 -13
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es86.js +47 -132
- package/dist/index.es86.js.map +1 -1
- package/dist/index.es87.js +29 -20
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js +37 -176
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es89.js +49 -233
- package/dist/index.es89.js.map +1 -1
- package/dist/index.es90.js +13 -355
- package/dist/index.es90.js.map +1 -1
- package/dist/index.es91.js +128 -128
- package/dist/index.es91.js.map +1 -1
- package/dist/index.es92.js +21 -70
- package/dist/index.es92.js.map +1 -1
- package/dist/index.es93.js +179 -34
- package/dist/index.es93.js.map +1 -1
- package/dist/index.es94.js +230 -26
- package/dist/index.es94.js.map +1 -1
- package/dist/index.es95.js +346 -157
- package/dist/index.es95.js.map +1 -1
- package/dist/index.es96.js +129 -195
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js +70 -14
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js +35 -28
- package/dist/index.es98.js.map +1 -1
- package/dist/index.es99.js +34 -31
- package/dist/index.es99.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -11
package/dist/index.es186.js
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
import { getLangSmithEnvironmentVariable } from "./index.
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { getLangSmithEnvironmentVariable } from "./index.es180.js";
|
|
2
|
+
const DEFAULT_FETCH_IMPLEMENTATION = (...args) => fetch(...args);
|
|
3
|
+
const LANGSMITH_FETCH_IMPLEMENTATION_KEY = /* @__PURE__ */ Symbol.for("ls:fetch_implementation");
|
|
4
|
+
const _globalFetchImplementationIsNodeFetch = () => {
|
|
5
|
+
const fetchImpl = globalThis[LANGSMITH_FETCH_IMPLEMENTATION_KEY];
|
|
6
|
+
if (!fetchImpl)
|
|
7
|
+
return false;
|
|
8
|
+
return typeof fetchImpl === "function" && "Headers" in fetchImpl && "Request" in fetchImpl && "Response" in fetchImpl;
|
|
9
|
+
};
|
|
10
|
+
const _getFetchImplementation = (debug) => {
|
|
11
|
+
return async (...args) => {
|
|
12
|
+
if (debug || getLangSmithEnvironmentVariable("DEBUG") === "true") {
|
|
13
|
+
const [url, options] = args;
|
|
14
|
+
console.log(`→ ${options?.method || "GET"} ${url}`);
|
|
15
|
+
}
|
|
16
|
+
const res = await (globalThis[LANGSMITH_FETCH_IMPLEMENTATION_KEY] ?? DEFAULT_FETCH_IMPLEMENTATION)(...args);
|
|
17
|
+
if (debug || getLangSmithEnvironmentVariable("DEBUG") === "true") {
|
|
18
|
+
console.log(`← ${res.status} ${res.statusText} ${res.url}`);
|
|
19
|
+
}
|
|
20
|
+
return res;
|
|
21
|
+
};
|
|
5
22
|
};
|
|
6
23
|
export {
|
|
7
|
-
|
|
24
|
+
_getFetchImplementation,
|
|
25
|
+
_globalFetchImplementationIsNodeFetch
|
|
8
26
|
};
|
|
9
27
|
//# sourceMappingURL=index.es186.js.map
|
package/dist/index.es186.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es186.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/
|
|
1
|
+
{"version":3,"file":"index.es186.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/fetch.js"],"sourcesContent":["import { getLangSmithEnvironmentVariable } from \"../utils/env.js\";\n// Wrap the default fetch call due to issues with illegal invocations\n// in some environments:\n// https://stackoverflow.com/questions/69876859/why-does-bind-fix-failed-to-execute-fetch-on-window-illegal-invocation-err\n// @ts-expect-error Broad typing to support a range of fetch implementations\nconst DEFAULT_FETCH_IMPLEMENTATION = (...args) => fetch(...args);\nconst LANGSMITH_FETCH_IMPLEMENTATION_KEY = Symbol.for(\"ls:fetch_implementation\");\n/**\n * Overrides the fetch implementation used for LangSmith calls.\n * You should use this if you need to use an implementation of fetch\n * other than the default global (e.g. for dealing with proxies).\n * @param fetch The new fetch functino to use.\n */\nexport const overrideFetchImplementation = (fetch) => {\n globalThis[LANGSMITH_FETCH_IMPLEMENTATION_KEY] = fetch;\n};\nexport const clearFetchImplementation = () => {\n delete globalThis[LANGSMITH_FETCH_IMPLEMENTATION_KEY];\n};\nexport const _globalFetchImplementationIsNodeFetch = () => {\n const fetchImpl = globalThis[LANGSMITH_FETCH_IMPLEMENTATION_KEY];\n if (!fetchImpl)\n return false;\n // Check if the implementation has node-fetch specific properties\n return (typeof fetchImpl === \"function\" &&\n \"Headers\" in fetchImpl &&\n \"Request\" in fetchImpl &&\n \"Response\" in fetchImpl);\n};\n/**\n * @internal\n */\nexport const _getFetchImplementation = (debug) => {\n return async (...args) => {\n if (debug || getLangSmithEnvironmentVariable(\"DEBUG\") === \"true\") {\n const [url, options] = args;\n console.log(`→ ${options?.method || \"GET\"} ${url}`);\n }\n const res = await (globalThis[LANGSMITH_FETCH_IMPLEMENTATION_KEY] ??\n DEFAULT_FETCH_IMPLEMENTATION)(...args);\n if (debug || getLangSmithEnvironmentVariable(\"DEBUG\") === \"true\") {\n console.log(`← ${res.status} ${res.statusText} ${res.url}`);\n }\n return res;\n };\n};\n"],"names":[],"mappings":";AAKA,MAAM,+BAA+B,IAAI,SAAS,MAAM,GAAG,IAAI;AAC/D,MAAM,qCAAqC,uBAAO,IAAI,yBAAyB;AAanE,MAAC,wCAAwC,MAAM;AACvD,QAAM,YAAY,WAAW,kCAAkC;AAC/D,MAAI,CAAC;AACD,WAAO;AAEX,SAAQ,OAAO,cAAc,cACzB,aAAa,aACb,aAAa,aACb,cAAc;AACtB;AAIY,MAAC,0BAA0B,CAAC,UAAU;AAC9C,SAAO,UAAU,SAAS;AACtB,QAAI,SAAS,gCAAgC,OAAO,MAAM,QAAQ;AAC9D,YAAM,CAAC,KAAK,OAAO,IAAI;AACvB,cAAQ,IAAI,KAAK,SAAS,UAAU,KAAK,IAAI,GAAG,EAAE;AAAA,IACtD;AACA,UAAM,MAAM,OAAO,WAAW,kCAAkC,KAC5D,8BAA8B,GAAG,IAAI;AACzC,QAAI,SAAS,gCAAgC,OAAO,MAAM,QAAQ;AAC9D,cAAQ,IAAI,KAAK,IAAI,MAAM,IAAI,IAAI,UAAU,IAAI,IAAI,GAAG,EAAE;AAAA,IAC9D;AACA,WAAO;AAAA,EACX;AACJ;","x_google_ignoreList":[0]}
|
package/dist/index.es187.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
import { getLangSmithEnvironmentVariable } from "./index.es180.js";
|
|
2
|
+
const isTracingEnabled = (tracingEnabled) => {
|
|
3
|
+
const envVars = ["TRACING_V2", "TRACING"];
|
|
4
|
+
return !!envVars.find((envVar) => getLangSmithEnvironmentVariable(envVar) === "true");
|
|
5
|
+
};
|
|
3
6
|
export {
|
|
4
|
-
|
|
5
|
-
_REPLICA_TRACE_ROOTS_KEY
|
|
7
|
+
isTracingEnabled
|
|
6
8
|
};
|
|
7
9
|
//# sourceMappingURL=index.es187.js.map
|
package/dist/index.es187.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es187.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/
|
|
1
|
+
{"version":3,"file":"index.es187.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/env.js"],"sourcesContent":["import { getLangSmithEnvironmentVariable } from \"./utils/env.js\";\nexport const isTracingEnabled = (tracingEnabled) => {\n if (tracingEnabled !== undefined) {\n return tracingEnabled;\n }\n const envVars = [\"TRACING_V2\", \"TRACING\"];\n return !!envVars.find((envVar) => getLangSmithEnvironmentVariable(envVar) === \"true\");\n};\n"],"names":[],"mappings":";AACY,MAAC,mBAAmB,CAAC,mBAAmB;AAIhD,QAAM,UAAU,CAAC,cAAc,SAAS;AACxC,SAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,WAAW,gCAAgC,MAAM,MAAM,MAAM;AACxF;","x_google_ignoreList":[0]}
|
package/dist/index.es188.js
CHANGED
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (_LC_CONTEXT_VARIABLES_KEY in runTree) {
|
|
4
|
-
const contextVars = runTree[_LC_CONTEXT_VARIABLES_KEY];
|
|
5
|
-
return contextVars[key];
|
|
6
|
-
}
|
|
7
|
-
return void 0;
|
|
8
|
-
}
|
|
9
|
-
function setContextVar(runTree, key, value) {
|
|
10
|
-
const contextVars = _LC_CONTEXT_VARIABLES_KEY in runTree ? (
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
-
runTree[_LC_CONTEXT_VARIABLES_KEY]
|
|
13
|
-
) : {};
|
|
14
|
-
contextVars[key] = value;
|
|
15
|
-
runTree[_LC_CONTEXT_VARIABLES_KEY] = contextVars;
|
|
16
|
-
}
|
|
1
|
+
const _LC_CONTEXT_VARIABLES_KEY = /* @__PURE__ */ Symbol.for("lc:context_variables");
|
|
2
|
+
const _REPLICA_TRACE_ROOTS_KEY = /* @__PURE__ */ Symbol.for("langsmith:replica_trace_roots");
|
|
17
3
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
_LC_CONTEXT_VARIABLES_KEY,
|
|
5
|
+
_REPLICA_TRACE_ROOTS_KEY
|
|
20
6
|
};
|
|
21
7
|
//# sourceMappingURL=index.es188.js.map
|
package/dist/index.es188.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es188.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/
|
|
1
|
+
{"version":3,"file":"index.es188.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/constants.js"],"sourcesContent":["export const _LC_CONTEXT_VARIABLES_KEY = Symbol.for(\"lc:context_variables\");\nexport const _LC_CHILD_RUN_END_PROMISES_KEY = Symbol.for(\"lc:child_run_end_promises\");\nexport const _REPLICA_TRACE_ROOTS_KEY = Symbol.for(\"langsmith:replica_trace_roots\");\n"],"names":[],"mappings":"AAAY,MAAC,4BAA4B,uBAAO,IAAI,sBAAsB;AAE9D,MAAC,2BAA2B,uBAAO,IAAI,+BAA+B;","x_google_ignoreList":[0]}
|
package/dist/index.es189.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { _LC_CONTEXT_VARIABLES_KEY } from "./index.es188.js";
|
|
2
|
+
function getContextVar(runTree, key) {
|
|
3
|
+
if (_LC_CONTEXT_VARIABLES_KEY in runTree) {
|
|
4
|
+
const contextVars = runTree[_LC_CONTEXT_VARIABLES_KEY];
|
|
5
|
+
return contextVars[key];
|
|
6
|
+
}
|
|
7
|
+
return void 0;
|
|
3
8
|
}
|
|
4
|
-
function
|
|
5
|
-
|
|
9
|
+
function setContextVar(runTree, key, value) {
|
|
10
|
+
const contextVars = _LC_CONTEXT_VARIABLES_KEY in runTree ? (
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
runTree[_LC_CONTEXT_VARIABLES_KEY]
|
|
13
|
+
) : {};
|
|
14
|
+
contextVars[key] = value;
|
|
15
|
+
runTree[_LC_CONTEXT_VARIABLES_KEY] = contextVars;
|
|
6
16
|
}
|
|
7
17
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
18
|
+
getContextVar,
|
|
19
|
+
setContextVar
|
|
10
20
|
};
|
|
11
21
|
//# sourceMappingURL=index.es189.js.map
|
package/dist/index.es189.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es189.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/
|
|
1
|
+
{"version":3,"file":"index.es189.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/context_vars.js"],"sourcesContent":["import { _LC_CONTEXT_VARIABLES_KEY } from \"../singletons/constants.js\";\n/**\n * Get a context variable from a run tree instance\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function getContextVar(runTree, key) {\n if (_LC_CONTEXT_VARIABLES_KEY in runTree) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const contextVars = runTree[_LC_CONTEXT_VARIABLES_KEY];\n return contextVars[key];\n }\n return undefined;\n}\n/**\n * Set a context variable on a run tree instance\n */\nexport function setContextVar(\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nrunTree, key, value) {\n const contextVars = _LC_CONTEXT_VARIABLES_KEY in runTree\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n runTree[_LC_CONTEXT_VARIABLES_KEY]\n : {};\n contextVars[key] = value;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n runTree[_LC_CONTEXT_VARIABLES_KEY] = contextVars;\n}\n"],"names":[],"mappings":";AAKO,SAAS,cAAc,SAAS,KAAK;AACxC,MAAI,6BAA6B,SAAS;AAEtC,UAAM,cAAc,QAAQ,yBAAyB;AACrD,WAAO,YAAY,GAAG;AAAA,EAC1B;AACA,SAAO;AACX;AAIO,SAAS,cAEhB,SAAS,KAAK,OAAO;AACjB,QAAM,cAAc,6BAA6B;AAAA;AAAA,IAEzC,QAAQ,yBAAyB;AAAA,MACnC,CAAA;AACN,cAAY,GAAG,IAAI;AAEnB,UAAQ,yBAAyB,IAAI;AACzC;","x_google_ignoreList":[0]}
|
package/dist/index.es19.js
CHANGED
|
@@ -1,21 +1,125 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useStream } from "./index.es16.js";
|
|
2
|
+
import "./index.es15.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as ReactDOM from "react-dom";
|
|
5
|
+
import * as JsxRuntime from "react/jsx-runtime";
|
|
6
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
7
|
+
const UseStreamContext = React.createContext(null);
|
|
8
|
+
function useStreamContext() {
|
|
9
|
+
const ctx = React.useContext(UseStreamContext);
|
|
10
|
+
if (!ctx) throw new Error("useStreamContext must be used within a LoadExternalComponent");
|
|
11
|
+
return new Proxy(ctx, { get(target, prop) {
|
|
12
|
+
if (prop === "meta") return target.meta;
|
|
13
|
+
return target.stream[prop];
|
|
14
|
+
} });
|
|
5
15
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
var ComponentStore = class {
|
|
17
|
+
cache = {};
|
|
18
|
+
boundCache = {};
|
|
19
|
+
callbacks = {};
|
|
20
|
+
respond(shadowRootId, comp, targetElement) {
|
|
21
|
+
this.cache[shadowRootId] = {
|
|
22
|
+
comp,
|
|
23
|
+
target: targetElement
|
|
24
|
+
};
|
|
25
|
+
this.callbacks[shadowRootId]?.forEach((c) => c(comp, targetElement));
|
|
26
|
+
}
|
|
27
|
+
getBoundStore(shadowRootId) {
|
|
28
|
+
this.boundCache[shadowRootId] ??= {
|
|
29
|
+
subscribe: (onStoreChange) => {
|
|
30
|
+
this.callbacks[shadowRootId] ??= [];
|
|
31
|
+
this.callbacks[shadowRootId].push(onStoreChange);
|
|
32
|
+
return () => {
|
|
33
|
+
this.callbacks[shadowRootId] = this.callbacks[shadowRootId].filter((c) => c !== onStoreChange);
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
getSnapshot: () => this.cache[shadowRootId]
|
|
37
|
+
};
|
|
38
|
+
return this.boundCache[shadowRootId];
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const COMPONENT_STORE = new ComponentStore();
|
|
42
|
+
const EXT_STORE_SYMBOL = /* @__PURE__ */ Symbol.for("LGUI_EXT_STORE");
|
|
43
|
+
const REQUIRE_SYMBOL = /* @__PURE__ */ Symbol.for("LGUI_REQUIRE");
|
|
44
|
+
const REQUIRE_EXTRA_SYMBOL = /* @__PURE__ */ Symbol.for("LGUI_REQUIRE_EXTRA");
|
|
45
|
+
const isIterable = (value) => value != null && typeof value === "object" && Symbol.iterator in value;
|
|
46
|
+
const isPromise = (value) => value != null && typeof value === "object" && "then" in value && typeof value.then === "function";
|
|
47
|
+
const isReactNode = (value) => {
|
|
48
|
+
if (React.isValidElement(value)) return true;
|
|
49
|
+
if (value == null) return true;
|
|
50
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "bigint" || typeof value === "boolean") return true;
|
|
51
|
+
if (isIterable(value)) return true;
|
|
52
|
+
if (isPromise(value)) return true;
|
|
53
|
+
return false;
|
|
54
|
+
};
|
|
55
|
+
function LoadExternalComponent({ stream, namespace, message, meta, fallback, components, ...props }) {
|
|
56
|
+
const ref = React.useRef(null);
|
|
57
|
+
const shadowRootId = `child-shadow-${React.useId()}`;
|
|
58
|
+
const store = React.useMemo(() => COMPONENT_STORE.getBoundStore(shadowRootId), [shadowRootId]);
|
|
59
|
+
const state = React.useSyncExternalStore(store.subscribe, store.getSnapshot);
|
|
60
|
+
const clientComponent = components?.[message.name];
|
|
61
|
+
const hasClientComponent = clientComponent != null;
|
|
62
|
+
let fallbackComponent = null;
|
|
63
|
+
if (isReactNode(fallback)) fallbackComponent = fallback;
|
|
64
|
+
else if (typeof fallback === "object" && fallback != null) fallbackComponent = fallback?.[message.name];
|
|
65
|
+
const uiNamespace = namespace ?? stream.assistantId;
|
|
66
|
+
const uiClient = stream.client["~ui"];
|
|
67
|
+
React.useEffect(() => {
|
|
68
|
+
if (hasClientComponent) return;
|
|
69
|
+
uiClient.getComponent(uiNamespace, message.name).then((html) => {
|
|
70
|
+
const dom = ref.current;
|
|
71
|
+
if (!dom) return;
|
|
72
|
+
const root = dom.shadowRoot ?? dom.attachShadow({ mode: "open" });
|
|
73
|
+
const fragment = document.createRange().createContextualFragment(html.replace("{{shadowRootId}}", shadowRootId));
|
|
74
|
+
root.appendChild(fragment);
|
|
75
|
+
});
|
|
76
|
+
}, [
|
|
77
|
+
uiClient,
|
|
78
|
+
uiNamespace,
|
|
79
|
+
message.name,
|
|
80
|
+
shadowRootId,
|
|
81
|
+
hasClientComponent
|
|
82
|
+
]);
|
|
83
|
+
if (hasClientComponent) return /* @__PURE__ */ jsx(UseStreamContext.Provider, {
|
|
84
|
+
value: {
|
|
85
|
+
stream,
|
|
86
|
+
meta
|
|
87
|
+
},
|
|
88
|
+
children: React.createElement(clientComponent, message.props)
|
|
89
|
+
});
|
|
90
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
91
|
+
id: shadowRootId,
|
|
92
|
+
ref,
|
|
93
|
+
...props
|
|
94
|
+
}), /* @__PURE__ */ jsx(UseStreamContext.Provider, {
|
|
95
|
+
value: {
|
|
96
|
+
stream,
|
|
97
|
+
meta
|
|
98
|
+
},
|
|
99
|
+
children: state?.target != null ? ReactDOM.createPortal(React.createElement(state.comp, message.props), state.target) : fallbackComponent
|
|
100
|
+
})] });
|
|
11
101
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
102
|
+
function bootstrapUiContext() {
|
|
103
|
+
if (typeof window === "undefined") return;
|
|
104
|
+
window[EXT_STORE_SYMBOL] = COMPONENT_STORE;
|
|
105
|
+
window[REQUIRE_SYMBOL] = (name) => {
|
|
106
|
+
if (name === "react") return React;
|
|
107
|
+
if (name === "react-dom") return ReactDOM;
|
|
108
|
+
if (name === "react/jsx-runtime") return JsxRuntime;
|
|
109
|
+
if (name === "@langchain/langgraph-sdk/react") return { useStream };
|
|
110
|
+
if (name === "@langchain/langgraph-sdk/react-ui") return {
|
|
111
|
+
useStreamContext,
|
|
112
|
+
LoadExternalComponent: () => {
|
|
113
|
+
throw new Error("Nesting LoadExternalComponent is not supported");
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
if (window[REQUIRE_EXTRA_SYMBOL] != null && typeof window[REQUIRE_EXTRA_SYMBOL] === "object" && name in window[REQUIRE_EXTRA_SYMBOL]) return window[REQUIRE_EXTRA_SYMBOL][name];
|
|
117
|
+
throw new Error(`Unknown module...: ${name}`);
|
|
118
|
+
};
|
|
14
119
|
}
|
|
15
120
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
isToolMessage
|
|
121
|
+
LoadExternalComponent,
|
|
122
|
+
bootstrapUiContext,
|
|
123
|
+
useStreamContext
|
|
20
124
|
};
|
|
21
125
|
//# sourceMappingURL=index.es19.js.map
|
package/dist/index.es19.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es19.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index.es19.js","sources":["../node_modules/.pnpm/@langchain+langgraph-sdk@1.5.3_@langchain+core@1.1.13_openai@6.16.0_zod@4.3.5___react-d_6e8116ad15c37793c6138fe0d58aa04e/node_modules/@langchain/langgraph-sdk/dist/react-ui/client.js"],"sourcesContent":["\"use client\";\n\nimport { useStream } from \"../react/stream.js\";\nimport \"../react/index.js\";\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport * as JsxRuntime from \"react/jsx-runtime\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\n\n//#region src/react-ui/client.tsx\nconst UseStreamContext = React.createContext(null);\nfunction useStreamContext() {\n\tconst ctx = React.useContext(UseStreamContext);\n\tif (!ctx) throw new Error(\"useStreamContext must be used within a LoadExternalComponent\");\n\treturn new Proxy(ctx, { get(target, prop) {\n\t\tif (prop === \"meta\") return target.meta;\n\t\treturn target.stream[prop];\n\t} });\n}\nvar ComponentStore = class {\n\tcache = {};\n\tboundCache = {};\n\tcallbacks = {};\n\trespond(shadowRootId, comp, targetElement) {\n\t\tthis.cache[shadowRootId] = {\n\t\t\tcomp,\n\t\t\ttarget: targetElement\n\t\t};\n\t\tthis.callbacks[shadowRootId]?.forEach((c) => c(comp, targetElement));\n\t}\n\tgetBoundStore(shadowRootId) {\n\t\tthis.boundCache[shadowRootId] ??= {\n\t\t\tsubscribe: (onStoreChange) => {\n\t\t\t\tthis.callbacks[shadowRootId] ??= [];\n\t\t\t\tthis.callbacks[shadowRootId].push(onStoreChange);\n\t\t\t\treturn () => {\n\t\t\t\t\tthis.callbacks[shadowRootId] = this.callbacks[shadowRootId].filter((c) => c !== onStoreChange);\n\t\t\t\t};\n\t\t\t},\n\t\t\tgetSnapshot: () => this.cache[shadowRootId]\n\t\t};\n\t\treturn this.boundCache[shadowRootId];\n\t}\n};\nconst COMPONENT_STORE = new ComponentStore();\nconst EXT_STORE_SYMBOL = Symbol.for(\"LGUI_EXT_STORE\");\nconst REQUIRE_SYMBOL = Symbol.for(\"LGUI_REQUIRE\");\nconst REQUIRE_EXTRA_SYMBOL = Symbol.for(\"LGUI_REQUIRE_EXTRA\");\nconst isIterable = (value) => value != null && typeof value === \"object\" && Symbol.iterator in value;\nconst isPromise = (value) => value != null && typeof value === \"object\" && \"then\" in value && typeof value.then === \"function\";\nconst isReactNode = (value) => {\n\tif (React.isValidElement(value)) return true;\n\tif (value == null) return true;\n\tif (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"bigint\" || typeof value === \"boolean\") return true;\n\tif (isIterable(value)) return true;\n\tif (isPromise(value)) return true;\n\treturn false;\n};\nfunction LoadExternalComponent({ stream, namespace, message, meta, fallback, components, ...props }) {\n\tconst ref = React.useRef(null);\n\tconst shadowRootId = `child-shadow-${React.useId()}`;\n\tconst store = React.useMemo(() => COMPONENT_STORE.getBoundStore(shadowRootId), [shadowRootId]);\n\tconst state = React.useSyncExternalStore(store.subscribe, store.getSnapshot);\n\tconst clientComponent = components?.[message.name];\n\tconst hasClientComponent = clientComponent != null;\n\tlet fallbackComponent = null;\n\tif (isReactNode(fallback)) fallbackComponent = fallback;\n\telse if (typeof fallback === \"object\" && fallback != null) fallbackComponent = fallback?.[message.name];\n\tconst uiNamespace = namespace ?? stream.assistantId;\n\tconst uiClient = stream.client[\"~ui\"];\n\tReact.useEffect(() => {\n\t\tif (hasClientComponent) return;\n\t\tuiClient.getComponent(uiNamespace, message.name).then((html) => {\n\t\t\tconst dom = ref.current;\n\t\t\tif (!dom) return;\n\t\t\tconst root = dom.shadowRoot ?? dom.attachShadow({ mode: \"open\" });\n\t\t\tconst fragment = document.createRange().createContextualFragment(html.replace(\"{{shadowRootId}}\", shadowRootId));\n\t\t\troot.appendChild(fragment);\n\t\t});\n\t}, [\n\t\tuiClient,\n\t\tuiNamespace,\n\t\tmessage.name,\n\t\tshadowRootId,\n\t\thasClientComponent\n\t]);\n\tif (hasClientComponent) return /* @__PURE__ */ jsx(UseStreamContext.Provider, {\n\t\tvalue: {\n\t\t\tstream,\n\t\t\tmeta\n\t\t},\n\t\tchildren: React.createElement(clientComponent, message.props)\n\t});\n\treturn /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(\"div\", {\n\t\tid: shadowRootId,\n\t\tref,\n\t\t...props\n\t}), /* @__PURE__ */ jsx(UseStreamContext.Provider, {\n\t\tvalue: {\n\t\t\tstream,\n\t\t\tmeta\n\t\t},\n\t\tchildren: state?.target != null ? ReactDOM.createPortal(React.createElement(state.comp, message.props), state.target) : fallbackComponent\n\t})] });\n}\nfunction experimental_loadShare(name, module) {\n\tif (typeof window === \"undefined\") return;\n\twindow[REQUIRE_EXTRA_SYMBOL] ??= {};\n\twindow[REQUIRE_EXTRA_SYMBOL][name] = module;\n}\nfunction bootstrapUiContext() {\n\tif (typeof window === \"undefined\") return;\n\twindow[EXT_STORE_SYMBOL] = COMPONENT_STORE;\n\twindow[REQUIRE_SYMBOL] = (name) => {\n\t\tif (name === \"react\") return React;\n\t\tif (name === \"react-dom\") return ReactDOM;\n\t\tif (name === \"react/jsx-runtime\") return JsxRuntime;\n\t\tif (name === \"@langchain/langgraph-sdk/react\") return { useStream };\n\t\tif (name === \"@langchain/langgraph-sdk/react-ui\") return {\n\t\t\tuseStreamContext,\n\t\t\tLoadExternalComponent: () => {\n\t\t\t\tthrow new Error(\"Nesting LoadExternalComponent is not supported\");\n\t\t\t}\n\t\t};\n\t\tif (window[REQUIRE_EXTRA_SYMBOL] != null && typeof window[REQUIRE_EXTRA_SYMBOL] === \"object\" && name in window[REQUIRE_EXTRA_SYMBOL]) return window[REQUIRE_EXTRA_SYMBOL][name];\n\t\tthrow new Error(`Unknown module...: ${name}`);\n\t};\n}\n\n//#endregion\nexport { LoadExternalComponent, bootstrapUiContext, experimental_loadShare, useStreamContext };\n//# sourceMappingURL=client.js.map"],"names":[],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index.es190.js
CHANGED
|
@@ -1,145 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
hasRequiredAnsiStyles = 1;
|
|
7
|
-
(function(module) {
|
|
8
|
-
const ANSI_BACKGROUND_OFFSET = 10;
|
|
9
|
-
const wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
10
|
-
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
11
|
-
function assembleStyles() {
|
|
12
|
-
const codes = /* @__PURE__ */ new Map();
|
|
13
|
-
const styles = {
|
|
14
|
-
modifier: {
|
|
15
|
-
reset: [0, 0],
|
|
16
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
17
|
-
bold: [1, 22],
|
|
18
|
-
dim: [2, 22],
|
|
19
|
-
italic: [3, 23],
|
|
20
|
-
underline: [4, 24],
|
|
21
|
-
overline: [53, 55],
|
|
22
|
-
inverse: [7, 27],
|
|
23
|
-
hidden: [8, 28],
|
|
24
|
-
strikethrough: [9, 29]
|
|
25
|
-
},
|
|
26
|
-
color: {
|
|
27
|
-
black: [30, 39],
|
|
28
|
-
red: [31, 39],
|
|
29
|
-
green: [32, 39],
|
|
30
|
-
yellow: [33, 39],
|
|
31
|
-
blue: [34, 39],
|
|
32
|
-
magenta: [35, 39],
|
|
33
|
-
cyan: [36, 39],
|
|
34
|
-
white: [37, 39],
|
|
35
|
-
// Bright color
|
|
36
|
-
blackBright: [90, 39],
|
|
37
|
-
redBright: [91, 39],
|
|
38
|
-
greenBright: [92, 39],
|
|
39
|
-
yellowBright: [93, 39],
|
|
40
|
-
blueBright: [94, 39],
|
|
41
|
-
magentaBright: [95, 39],
|
|
42
|
-
cyanBright: [96, 39],
|
|
43
|
-
whiteBright: [97, 39]
|
|
44
|
-
},
|
|
45
|
-
bgColor: {
|
|
46
|
-
bgBlack: [40, 49],
|
|
47
|
-
bgRed: [41, 49],
|
|
48
|
-
bgGreen: [42, 49],
|
|
49
|
-
bgYellow: [43, 49],
|
|
50
|
-
bgBlue: [44, 49],
|
|
51
|
-
bgMagenta: [45, 49],
|
|
52
|
-
bgCyan: [46, 49],
|
|
53
|
-
bgWhite: [47, 49],
|
|
54
|
-
// Bright color
|
|
55
|
-
bgBlackBright: [100, 49],
|
|
56
|
-
bgRedBright: [101, 49],
|
|
57
|
-
bgGreenBright: [102, 49],
|
|
58
|
-
bgYellowBright: [103, 49],
|
|
59
|
-
bgBlueBright: [104, 49],
|
|
60
|
-
bgMagentaBright: [105, 49],
|
|
61
|
-
bgCyanBright: [106, 49],
|
|
62
|
-
bgWhiteBright: [107, 49]
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
styles.color.gray = styles.color.blackBright;
|
|
66
|
-
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
67
|
-
styles.color.grey = styles.color.blackBright;
|
|
68
|
-
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
69
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
70
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
71
|
-
styles[styleName] = {
|
|
72
|
-
open: `\x1B[${style[0]}m`,
|
|
73
|
-
close: `\x1B[${style[1]}m`
|
|
74
|
-
};
|
|
75
|
-
group[styleName] = styles[styleName];
|
|
76
|
-
codes.set(style[0], style[1]);
|
|
77
|
-
}
|
|
78
|
-
Object.defineProperty(styles, groupName, {
|
|
79
|
-
value: group,
|
|
80
|
-
enumerable: false
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
Object.defineProperty(styles, "codes", {
|
|
84
|
-
value: codes,
|
|
85
|
-
enumerable: false
|
|
86
|
-
});
|
|
87
|
-
styles.color.close = "\x1B[39m";
|
|
88
|
-
styles.bgColor.close = "\x1B[49m";
|
|
89
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
90
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
91
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
92
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
93
|
-
Object.defineProperties(styles, {
|
|
94
|
-
rgbToAnsi256: {
|
|
95
|
-
value: (red, green, blue) => {
|
|
96
|
-
if (red === green && green === blue) {
|
|
97
|
-
if (red < 8) {
|
|
98
|
-
return 16;
|
|
99
|
-
}
|
|
100
|
-
if (red > 248) {
|
|
101
|
-
return 231;
|
|
102
|
-
}
|
|
103
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
104
|
-
}
|
|
105
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
106
|
-
},
|
|
107
|
-
enumerable: false
|
|
108
|
-
},
|
|
109
|
-
hexToRgb: {
|
|
110
|
-
value: (hex) => {
|
|
111
|
-
const matches = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex.toString(16));
|
|
112
|
-
if (!matches) {
|
|
113
|
-
return [0, 0, 0];
|
|
114
|
-
}
|
|
115
|
-
let { colorString } = matches.groups;
|
|
116
|
-
if (colorString.length === 3) {
|
|
117
|
-
colorString = colorString.split("").map((character) => character + character).join("");
|
|
118
|
-
}
|
|
119
|
-
const integer = Number.parseInt(colorString, 16);
|
|
120
|
-
return [
|
|
121
|
-
integer >> 16 & 255,
|
|
122
|
-
integer >> 8 & 255,
|
|
123
|
-
integer & 255
|
|
124
|
-
];
|
|
125
|
-
},
|
|
126
|
-
enumerable: false
|
|
127
|
-
},
|
|
128
|
-
hexToAnsi256: {
|
|
129
|
-
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
130
|
-
enumerable: false
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
return styles;
|
|
134
|
-
}
|
|
135
|
-
Object.defineProperty(module, "exports", {
|
|
136
|
-
enumerable: true,
|
|
137
|
-
get: assembleStyles
|
|
138
|
-
});
|
|
139
|
-
})(ansiStyles);
|
|
140
|
-
return ansiStyles.exports;
|
|
1
|
+
function dumpCache(_filePath, _entries) {
|
|
2
|
+
throw new Error("dump() is not supported in browser environments.");
|
|
3
|
+
}
|
|
4
|
+
function loadCache(_filePath) {
|
|
5
|
+
throw new Error("load() is not supported in browser environments.");
|
|
141
6
|
}
|
|
142
7
|
export {
|
|
143
|
-
|
|
8
|
+
dumpCache,
|
|
9
|
+
loadCache
|
|
144
10
|
};
|
|
145
11
|
//# sourceMappingURL=index.es190.js.map
|
package/dist/index.es190.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es190.js","sources":["../node_modules/.pnpm/
|
|
1
|
+
{"version":3,"file":"index.es190.js","sources":["../node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache_fs.browser.js"],"sourcesContent":["/**\n * File system operations for prompt cache (Browser version).\n *\n * This stub is used in browser builds via the package.json browser field.\n * File operations are not supported in browser environments.\n */\n/**\n * Dump cache entries to a JSON file.\n * @throws Error - Always throws in browser environments.\n */\nexport function dumpCache(_filePath, _entries) {\n throw new Error(\"dump() is not supported in browser environments.\");\n}\n/**\n * Load cache entries from a JSON file.\n * @throws Error - Always throws in browser environments.\n */\nexport function loadCache(_filePath) {\n throw new Error(\"load() is not supported in browser environments.\");\n}\n"],"names":[],"mappings":"AAUO,SAAS,UAAU,WAAW,UAAU;AAC3C,QAAM,IAAI,MAAM,kDAAkD;AACtE;AAKO,SAAS,UAAU,WAAW;AACjC,QAAM,IAAI,MAAM,kDAAkD;AACtE;","x_google_ignoreList":[0]}
|