@lobehub/ui 6.17.1 → 6.18.0

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.
Files changed (66) hide show
  1. package/es/AgentAvatar/AgentAvatar.mjs +89 -139
  2. package/es/AgentAvatar/AgentAvatar.mjs.map +1 -1
  3. package/es/AgentAvatar/AgentAvatarPicker.d.mts +3 -0
  4. package/es/AgentAvatar/AgentAvatarPicker.mjs +109 -0
  5. package/es/AgentAvatar/AgentAvatarPicker.mjs.map +1 -0
  6. package/es/AgentAvatar/createAgentAvatarTab.d.mts +4 -0
  7. package/es/AgentAvatar/createAgentAvatarTab.mjs +46 -0
  8. package/es/AgentAvatar/createAgentAvatarTab.mjs.map +1 -0
  9. package/es/AgentAvatar/eyes.mjs +83 -0
  10. package/es/AgentAvatar/eyes.mjs.map +1 -0
  11. package/es/AgentAvatar/index.d.mts +5 -2
  12. package/es/AgentAvatar/index.mjs +4 -1
  13. package/es/AgentAvatar/liveLoop.mjs +97 -0
  14. package/es/AgentAvatar/liveLoop.mjs.map +1 -0
  15. package/es/AgentAvatar/look.mjs +193 -0
  16. package/es/AgentAvatar/look.mjs.map +1 -0
  17. package/es/AgentAvatar/painter.mjs +111 -0
  18. package/es/AgentAvatar/painter.mjs.map +1 -0
  19. package/es/AgentAvatar/pickerStyle.mjs +68 -0
  20. package/es/AgentAvatar/pickerStyle.mjs.map +1 -0
  21. package/es/AgentAvatar/scene.mjs +90 -0
  22. package/es/AgentAvatar/scene.mjs.map +1 -0
  23. package/es/AgentAvatar/shapes.mjs +215 -180
  24. package/es/AgentAvatar/shapes.mjs.map +1 -1
  25. package/es/AgentAvatar/stable.mjs +11 -1
  26. package/es/AgentAvatar/stable.mjs.map +1 -1
  27. package/es/AgentAvatar/still.mjs +39 -0
  28. package/es/AgentAvatar/still.mjs.map +1 -0
  29. package/es/AgentAvatar/stills.generated.mjs +126 -0
  30. package/es/AgentAvatar/stills.generated.mjs.map +1 -0
  31. package/es/AgentAvatar/style.mjs +13 -146
  32. package/es/AgentAvatar/style.mjs.map +1 -1
  33. package/es/AgentAvatar/type.d.mts +64 -14
  34. package/es/AgentAvatar/useLiveAvatar.mjs +91 -0
  35. package/es/AgentAvatar/useLiveAvatar.mjs.map +1 -0
  36. package/es/AgentAvatar/utils.d.mts +2 -2
  37. package/es/AgentAvatar/utils.mjs +49 -45
  38. package/es/AgentAvatar/utils.mjs.map +1 -1
  39. package/es/AgentAvatar/value.d.mts +5 -0
  40. package/es/AgentAvatar/value.mjs +18 -0
  41. package/es/AgentAvatar/value.mjs.map +1 -0
  42. package/es/EditorSlashMenu/atoms.mjs +1 -2
  43. package/es/EditorSlashMenu/atoms.mjs.map +1 -1
  44. package/es/EmojiPicker/EmojiPicker.mjs +27 -19
  45. package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
  46. package/es/EmojiPicker/index.d.mts +2 -2
  47. package/es/EmojiPicker/type.d.mts +24 -1
  48. package/es/chat/ChatItem/type.d.mts +2 -2
  49. package/es/css/AgentAvatar.css +686 -199
  50. package/es/i18n/resources/en/agentAvatar.d.mts +39 -0
  51. package/es/i18n/resources/en/agentAvatar.mjs +42 -0
  52. package/es/i18n/resources/en/agentAvatar.mjs.map +1 -0
  53. package/es/i18n/resources/en/index.d.mts +19 -18
  54. package/es/i18n/resources/en/index.mjs +3 -1
  55. package/es/i18n/resources/en/index.mjs.map +1 -1
  56. package/es/i18n/resources/zhCn/agentAvatar.d.mts +39 -0
  57. package/es/i18n/resources/zhCn/agentAvatar.mjs +42 -0
  58. package/es/i18n/resources/zhCn/agentAvatar.mjs.map +1 -0
  59. package/es/i18n/resources/zhCn/index.d.mts +19 -18
  60. package/es/i18n/resources/zhCn/index.mjs +3 -1
  61. package/es/i18n/resources/zhCn/index.mjs.map +1 -1
  62. package/es/i18n/types.d.mts +18 -17
  63. package/es/index.d.mts +48 -45
  64. package/es/index.mjs +6 -3
  65. package/es/style.css +44 -295
  66. package/package.json +3 -1
package/es/style.css CHANGED
@@ -3903,16 +3903,6 @@
3903
3903
  }
3904
3904
  }
3905
3905
 
3906
- @keyframes lb1879jr9-B {
3907
- 0% {
3908
- opacity: 1;
3909
- }
3910
-
3911
- 75%, 100% {
3912
- opacity: 0;
3913
- }
3914
- }
3915
-
3916
3906
  @keyframes lbwrpz9l-B {
3917
3907
  to {
3918
3908
  opacity: 0;
@@ -3920,31 +3910,6 @@
3920
3910
  }
3921
3911
  }
3922
3912
 
3923
- @keyframes lbtikmjl-B {
3924
- 0% {
3925
- opacity: 0;
3926
- transform: translate(0, 6px) scale(0);
3927
- }
3928
-
3929
- 20% {
3930
- opacity: .95;
3931
- }
3932
-
3933
- 25% {
3934
- transform: translate(0, 2.5px) scale(1);
3935
- }
3936
-
3937
- 70% {
3938
- opacity: .7;
3939
- transform: translate(0, -3.8px) scale(.9);
3940
- }
3941
-
3942
- 100% {
3943
- opacity: 0;
3944
- transform: translate(0, -8px) scale(0);
3945
- }
3946
- }
3947
-
3948
3913
  @keyframes lb1g3nlh6-B {
3949
3914
  0%, 100% {
3950
3915
  opacity: .3;
@@ -3955,16 +3920,6 @@
3955
3920
  }
3956
3921
  }
3957
3922
 
3958
- @keyframes lbc5pjhy-B {
3959
- 0% {
3960
- opacity: 0;
3961
- }
3962
-
3963
- 75%, 100% {
3964
- opacity: 1;
3965
- }
3966
- }
3967
-
3968
3923
  @keyframes lb180ztka-B {
3969
3924
  from {
3970
3925
  opacity: 0;
@@ -4013,6 +3968,18 @@
4013
3968
  }
4014
3969
  }
4015
3970
 
3971
+ @keyframes lb14cwmzl-B {
3972
+ 0%, 100% {
3973
+ opacity: .35;
3974
+ transform: translate(0, 1.2px) scale(.82);
3975
+ }
3976
+
3977
+ 45% {
3978
+ opacity: 1;
3979
+ transform: translate(0, -.8px) scale(1);
3980
+ }
3981
+ }
3982
+
4016
3983
  @keyframes lb11zq5zn-B {
4017
3984
  from {
4018
3985
  outline-offset: 5px;
@@ -4030,16 +3997,6 @@
4030
3997
  }
4031
3998
  }
4032
3999
 
4033
- @keyframes lb29arjm-B {
4034
- 0%, 100% {
4035
- transform: rotate(-2deg);
4036
- }
4037
-
4038
- 50% {
4039
- transform: rotate(0);
4040
- }
4041
- }
4042
-
4043
4000
  @keyframes lbqx4zst-B {
4044
4001
  0% {
4045
4002
  transform: rotate(0deg) translateX(calc(var(--loading-dots-size, 8px) * 2));
@@ -4066,157 +4023,13 @@
4066
4023
  }
4067
4024
  }
4068
4025
 
4069
- @keyframes lbgd6zgv-B {
4070
- 0%, 100% {
4071
- transform: rotate(0);
4072
- }
4073
-
4074
- 25% {
4075
- transform: rotate(-4deg);
4076
- }
4077
-
4078
- 75% {
4079
- transform: rotate(4deg);
4080
- }
4081
- }
4082
-
4083
- @keyframes lb10gmfjv-B {
4084
- 0%, 90%, 95%, 100% {
4085
- transform: scale(1);
4086
- }
4087
-
4088
- 92.5% {
4089
- transform: scale(1, .08);
4090
- }
4091
- }
4092
-
4093
- @keyframes lb1uivshd-B {
4094
- 0%, 45%, 50%, 100% {
4095
- transform: scale(1);
4096
- }
4097
-
4098
- 47.5% {
4099
- transform: scale(1, .08);
4100
- }
4101
- }
4102
-
4103
- @keyframes lb3l2n98-B {
4104
- 0%, 60%, 65%, 100% {
4105
- transform: scale(1);
4106
- }
4107
-
4108
- 62.5% {
4109
- transform: scale(1, .08);
4110
- }
4111
- }
4112
-
4113
- @keyframes lbebfisf-B {
4114
- 0%, 30%, 35%, 82%, 87%, 100% {
4115
- transform: scale(1);
4116
- }
4117
-
4118
- 32.5%, 84.5% {
4119
- transform: scale(1, .08);
4120
- }
4121
- }
4122
-
4123
- @keyframes lb1rgdtka-B {
4124
- 0%, 100% {
4026
+ @keyframes lb1w6pai9-B {
4027
+ 0%, 18%, 100% {
4125
4028
  transform: scale(1);
4126
4029
  }
4127
4030
 
4128
- 50% {
4129
- transform: scale(1.015, .982);
4130
- }
4131
- }
4132
-
4133
- @keyframes lbogs8zp-B {
4134
- 0%, 24%, 100% {
4135
- transform: translate(0);
4136
- }
4137
-
4138
- 6% {
4139
- transform: translate(-1.8px);
4140
- }
4141
-
4142
- 12% {
4143
- transform: translate(1.8px);
4144
- }
4145
-
4146
- 18% {
4147
- transform: translate(-1px);
4148
- }
4149
- }
4150
-
4151
- @keyframes lb15qacde-B {
4152
- 0%, 100% {
4153
- transform: translate(0);
4154
- }
4155
-
4156
- 50% {
4157
- transform: translate(0, -1.6px);
4158
- }
4159
- }
4160
-
4161
- @keyframes lb13c7z9m-B {
4162
- 0%, 16%, 100% {
4163
- transform: translate(0);
4164
- }
4165
-
4166
- 8% {
4167
- transform: translate(0, -2px);
4168
- }
4169
- }
4170
-
4171
- @keyframes lb1ta95v6-B {
4172
- 0%, 32%, 100% {
4173
- transform: translate(0) scale(1);
4174
- }
4175
-
4176
- 8% {
4177
- transform: translate(0, 1px) scale(1.05, .93);
4178
- }
4179
-
4180
- 18% {
4181
- transform: translate(0, -5px) scale(.97, 1.04);
4182
- }
4183
-
4184
- 26% {
4185
- transform: translate(0, .5px) scale(1.04, .95);
4186
- }
4187
- }
4188
-
4189
- @keyframes lb1q7i4vu-B {
4190
- 0%, 100% {
4191
- transform: translate(calc(var(--lobe-agent-avatar-gaze) * 1.8px),calc(var(--lobe-agent-avatar-gaze) * -3.1px));
4192
- }
4193
-
4194
- 50% {
4195
- transform: translate(calc(var(--lobe-agent-avatar-gaze) * -1px),calc(var(--lobe-agent-avatar-gaze) * -3.4px));
4196
- }
4197
- }
4198
-
4199
- @keyframes lb1ceuzwu-B {
4200
- 0%, 90%, 100% {
4201
- transform: translate(calc(var(--lobe-agent-avatar-gaze) * -3.2px),calc(var(--lobe-agent-avatar-gaze) * 3.4px));
4202
- }
4203
-
4204
- 40%, 50% {
4205
- transform: translate(calc(var(--lobe-agent-avatar-gaze) * 3.2px),calc(var(--lobe-agent-avatar-gaze) * 3.4px));
4206
- }
4207
- }
4208
-
4209
- @keyframes lbr99mlk-B {
4210
- 0%, 100% {
4211
- transform: translate(calc(var(--lobe-agent-avatar-gaze) * 0px),calc(var(--lobe-agent-avatar-gaze) * 1.6px));
4212
- }
4213
-
4214
- 18%, 40% {
4215
- transform: translate(calc(var(--lobe-agent-avatar-gaze) * -3px),calc(var(--lobe-agent-avatar-gaze) * 1px));
4216
- }
4217
-
4218
- 62%, 84% {
4219
- transform: translate(calc(var(--lobe-agent-avatar-gaze) * 3px),calc(var(--lobe-agent-avatar-gaze) * .6px));
4031
+ 9% {
4032
+ transform: scale(1.1);
4220
4033
  }
4221
4034
  }
4222
4035
 
@@ -6328,10 +6141,6 @@
6328
6141
  animation-delay: var(--delay);
6329
6142
  }
6330
6143
 
6331
- .lb16srqn7 {
6332
- animation-delay: var(--lobe-agent-avatar-delay, 0s);
6333
- }
6334
-
6335
6144
  .lbw6taxk {
6336
6145
  animation-duration: .22s;
6337
6146
  }
@@ -6344,10 +6153,6 @@
6344
6153
  animation-duration: .6s;
6345
6154
  }
6346
6155
 
6347
- .lb7v9bd0 {
6348
- animation-duration: .75s;
6349
- }
6350
-
6351
6156
  .lb13l1lly {
6352
6157
  animation-duration: 1.24s;
6353
6158
  }
@@ -6364,10 +6169,6 @@
6364
6169
  animation-duration: 1.6s;
6365
6170
  }
6366
6171
 
6367
- .lb1xixsfh {
6368
- animation-duration: 1.8s;
6369
- }
6370
-
6371
6172
  .lbcs2qfc {
6372
6173
  animation-duration: 100s;
6373
6174
  }
@@ -6376,6 +6177,10 @@
6376
6177
  animation-duration: 1s;
6377
6178
  }
6378
6179
 
6180
+ .lbrp5g2y {
6181
+ animation-duration: 2.2s;
6182
+ }
6183
+
6379
6184
  .lb6q96wx {
6380
6185
  animation-duration: 20s;
6381
6186
  }
@@ -6384,18 +6189,10 @@
6384
6189
  animation-duration: 2s;
6385
6190
  }
6386
6191
 
6387
- .lb7t6ubo {
6388
- animation-duration: 3s;
6389
- }
6390
-
6391
6192
  .lbz5h9r3 {
6392
6193
  animation-duration: 5s;
6393
6194
  }
6394
6195
 
6395
- .lbmdyy31 {
6396
- animation-duration: 6s;
6397
- }
6398
-
6399
6196
  .lbg7ug8h {
6400
6197
  animation-duration: var(--duration);
6401
6198
  }
@@ -6412,38 +6209,22 @@
6412
6209
  animation-iteration-count: infinite;
6413
6210
  }
6414
6211
 
6415
- .lbwd2vp0 {
6416
- animation-name: lb10gmfjv-B;
6417
- }
6418
-
6419
- .lbk29pd4 {
6420
- animation-name: lb13c7z9m-B;
6421
- }
6422
-
6423
6212
  .lb33syup {
6424
6213
  animation-name: lb13kz0yu-B;
6425
6214
  }
6426
6215
 
6427
- .lb1g0kqhz {
6428
- animation-name: lb15qacde-B;
6216
+ .lbrh4xap {
6217
+ animation-name: lb14cwmzl-B;
6429
6218
  }
6430
6219
 
6431
6220
  .lb6ojt31 {
6432
6221
  animation-name: lb180ztka-B;
6433
6222
  }
6434
6223
 
6435
- .lbcjd0cy {
6436
- animation-name: lb1879jr9-B;
6437
- }
6438
-
6439
6224
  .lb15d5rfv {
6440
6225
  animation-name: lb19jq70g-B;
6441
6226
  }
6442
6227
 
6443
- .lb1ic7xlq {
6444
- animation-name: lb1ceuzwu-B;
6445
- }
6446
-
6447
6228
  .lb1ygz6qe {
6448
6229
  animation-name: lb1fp878r-B;
6449
6230
  }
@@ -6472,36 +6253,12 @@
6472
6253
  animation-name: lb1ofn8cw-B;
6473
6254
  }
6474
6255
 
6475
- .lbh3s7x {
6476
- animation-name: lb1q7i4vu-B;
6477
- }
6478
-
6479
- .lb1mbgqnd {
6480
- animation-name: lb1rgdtka-B;
6481
- }
6482
-
6483
- .lb1mhcmxz {
6484
- animation-name: lb1ta95v6-B;
6485
- }
6486
-
6487
- .lb194dqoo {
6488
- animation-name: lb1uivshd-B;
6489
- }
6490
-
6491
6256
  .lbyu7njy {
6492
6257
  animation-name: lb1v9gqll-B;
6493
6258
  }
6494
6259
 
6495
- .lb1uycf8y {
6496
- animation-name: lb29arjm-B;
6497
- }
6498
-
6499
- .lb1u0nrk1 {
6500
- animation-name: lb3l2n98-B;
6501
- }
6502
-
6503
- .lbyundts {
6504
- animation-name: lbc5pjhy-B;
6260
+ .lbjs45lp {
6261
+ animation-name: lb1w6pai9-B;
6505
6262
  }
6506
6263
 
6507
6264
  .lbe5e5tm {
@@ -6512,14 +6269,6 @@
6512
6269
  animation-name: lbctqs6g-B;
6513
6270
  }
6514
6271
 
6515
- .lbiwg49m {
6516
- animation-name: lbebfisf-B;
6517
- }
6518
-
6519
- .lb15zcdrl {
6520
- animation-name: lbgd6zgv-B;
6521
- }
6522
-
6523
6272
  .lbvvj72e {
6524
6273
  animation-name: lbmosza-B;
6525
6274
  }
@@ -6528,10 +6277,6 @@
6528
6277
  animation-name: lbocro32-B;
6529
6278
  }
6530
6279
 
6531
- .lb54opvl {
6532
- animation-name: lbogs8zp-B;
6533
- }
6534
-
6535
6280
  .lb4rqs0j {
6536
6281
  animation-name: lbqmglk5-B;
6537
6282
  }
@@ -6544,10 +6289,6 @@
6544
6289
  animation-name: lbqx4zst-B;
6545
6290
  }
6546
6291
 
6547
- .lb148kbc9 {
6548
- animation-name: lbr99mlk-B;
6549
- }
6550
-
6551
6292
  .lb1fhqo85 {
6552
6293
  animation-name: lbsuf281-B;
6553
6294
  }
@@ -6556,10 +6297,6 @@
6556
6297
  animation-name: lbteockk-B;
6557
6298
  }
6558
6299
 
6559
- .lb12jwqpk {
6560
- animation-name: lbtikmjl-B;
6561
- }
6562
-
6563
6300
  .lb1fc998c {
6564
6301
  animation-name: lbw40esr-B;
6565
6302
  }
@@ -6596,10 +6333,6 @@
6596
6333
  animation-timing-function: linear;
6597
6334
  }
6598
6335
 
6599
- .lb1htlvfj {
6600
- animation-timing-function: step-end;
6601
- }
6602
-
6603
6336
  .lb1c6cyjc {
6604
6337
  animation-timing-function: var(--lobe-motion-ease-in-out);
6605
6338
  }
@@ -7241,6 +6974,10 @@
7241
6974
  box-shadow: 0 0 0 1px var(--lobe-purple-fill-tertiary) inset;
7242
6975
  }
7243
6976
 
6977
+ .lbb4n4bt {
6978
+ box-shadow: 0 0 0 2px var(--lobe-color-bg-elevated),0 0 0 3.5px var(--lobe-color-text-secondary);
6979
+ }
6980
+
7244
6981
  .lbaowcua {
7245
6982
  box-shadow: 0 0 0 2px var(--lobe-color-text-tertiary);
7246
6983
  }
@@ -8005,6 +7742,10 @@
8005
7742
  grid-template-columns: repeat(2, minmax(0, 1fr));
8006
7743
  }
8007
7744
 
7745
+ .lb1jl941j {
7746
+ grid-template-columns: repeat(6, minmax(0, 1fr));
7747
+ }
7748
+
8008
7749
  .lbkkvkr6 {
8009
7750
  grid-template-columns: repeat(9, minmax(0, 1fr));
8010
7751
  }
@@ -8197,6 +7938,10 @@
8197
7938
  justify-content: space-between;
8198
7939
  }
8199
7940
 
7941
+ .lb1o2pa38 {
7942
+ justify-items: center;
7943
+ }
7944
+
8200
7945
  .lb7v7x1q {
8201
7946
  justify-self: center;
8202
7947
  }
@@ -9066,10 +8811,6 @@
9066
8811
  transform-origin: 100% 100%;
9067
8812
  }
9068
8813
 
9069
- .lb11stiqm {
9070
- transform-origin: 50px 94px;
9071
- }
9072
-
9073
8814
  .lb18ouj0k {
9074
8815
  transform-origin: bottom;
9075
8816
  }
@@ -10525,6 +10266,10 @@
10525
10266
  border-top-color: var(--lobe-color-split);
10526
10267
  }
10527
10268
 
10269
+ .lb6tbnhg {
10270
+ border-top-color: var(--lobe-fill-border);
10271
+ }
10272
+
10528
10273
  .lblya59e {
10529
10274
  border-top-style: dashed;
10530
10275
  }
@@ -11113,6 +10858,10 @@
11113
10858
  max-width: 240px;
11114
10859
  }
11115
10860
 
10861
+ .lb1va8c73 {
10862
+ max-width: 320px;
10863
+ }
10864
+
11116
10865
  .lbye4db1 {
11117
10866
  max-width: 34ch;
11118
10867
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "6.17.1",
3
+ "version": "6.18.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -131,6 +131,7 @@
131
131
  "docs:build-analyze": "cross-env ANALYZE=1 lobedocs build",
132
132
  "docs:dev": "lobedocs dev",
133
133
  "gen:icons": "tsx ./scripts/icons/index.ts",
134
+ "generate:agent-avatar": "tsx scripts/generateAgentAvatarStills.ts",
134
135
  "lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
135
136
  "lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
136
137
  "lint:md": "remark . --quiet --frail --output",
@@ -182,6 +183,7 @@
182
183
  "lucide-react": "^1.55.0",
183
184
  "mdast-util-gfm-autolink-literal": "^2.0.1",
184
185
  "motion": "^13.0.0 || ^14.0.0",
186
+ "open-bot-avatar": "0.3.0",
185
187
  "pele": "^1.6.0",
186
188
  "re-resizable": "^6.11.2",
187
189
  "react-avatar-editor": "^16.0.0",