@next-bricks/ai-portal 0.39.5 → 0.39.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/bricks.json +13 -12
- package/dist/chunks/1967.118ab1ff.js +2 -0
- package/dist/chunks/1967.118ab1ff.js.map +1 -0
- package/dist/chunks/382.673901e0.js +2 -0
- package/dist/chunks/{382.7a717a6b.js.map → 382.673901e0.js.map} +1 -1
- package/dist/chunks/71.41081144.js +2 -0
- package/dist/chunks/71.41081144.js.map +1 -0
- package/dist/chunks/{8616.00ec7d55.js → 8616.ceae4e7b.js} +3 -3
- package/dist/chunks/{8616.00ec7d55.js.map → 8616.ceae4e7b.js.map} +1 -1
- package/dist/chunks/chat-box.95d5030b.js +2 -0
- package/dist/chunks/chat-box.95d5030b.js.map +1 -0
- package/dist/chunks/goal-card-list.4fdfa5cb.js +3 -0
- package/dist/chunks/goal-card-list.4fdfa5cb.js.map +1 -0
- package/dist/chunks/{main.851452d9.js → main.a10d6485.js} +2 -2
- package/dist/chunks/{main.851452d9.js.map → main.a10d6485.js.map} +1 -1
- package/dist/chunks/preview-container.260a045a.js +2 -0
- package/dist/chunks/preview-container.260a045a.js.map +1 -0
- package/dist/chunks/project-conversations.972403a2.js +3 -0
- package/dist/chunks/project-conversations.972403a2.js.map +1 -0
- package/dist/chunks/project-knowledges.e5845df3.js +3 -0
- package/dist/chunks/project-knowledges.e5845df3.js.map +1 -0
- package/dist/examples.json +6 -6
- package/dist/index.6133ae77.js +2 -0
- package/dist/{index.8d65faed.js.map → index.6133ae77.js.map} +1 -1
- package/dist/manifest.json +85 -55
- package/dist/types.json +180 -117
- package/dist-types/chat-box/index.d.ts +10 -1
- package/dist-types/goal-card-list/CardItem/CardItem.d.ts +4 -2
- package/dist-types/goal-card-list/i18n.d.ts +2 -1
- package/dist-types/goal-card-list/index.d.ts +2 -0
- package/dist-types/project-knowledges/index.d.ts +4 -3
- package/package.json +2 -2
- package/dist/chunks/1967.8a8887a8.js +0 -2
- package/dist/chunks/1967.8a8887a8.js.map +0 -1
- package/dist/chunks/382.7a717a6b.js +0 -2
- package/dist/chunks/71.dd436f51.js +0 -2
- package/dist/chunks/71.dd436f51.js.map +0 -1
- package/dist/chunks/chat-box.8bcfda44.js +0 -2
- package/dist/chunks/chat-box.8bcfda44.js.map +0 -1
- package/dist/chunks/goal-card-list.d0dfa31e.js +0 -3
- package/dist/chunks/goal-card-list.d0dfa31e.js.map +0 -1
- package/dist/chunks/preview-container.ec727678.js +0 -2
- package/dist/chunks/preview-container.ec727678.js.map +0 -1
- package/dist/chunks/project-conversations.758d7189.js +0 -3
- package/dist/chunks/project-conversations.758d7189.js.map +0 -1
- package/dist/chunks/project-knowledges.a65a0602.js +0 -3
- package/dist/chunks/project-knowledges.a65a0602.js.map +0 -1
- package/dist/index.8d65faed.js +0 -2
- /package/dist/chunks/{8616.00ec7d55.js.LICENSE.txt → 8616.ceae4e7b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{goal-card-list.d0dfa31e.js.LICENSE.txt → goal-card-list.4fdfa5cb.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{project-conversations.758d7189.js.LICENSE.txt → project-conversations.972403a2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{project-knowledges.a65a0602.js.LICENSE.txt → project-knowledges.e5845df3.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -584,6 +584,18 @@
|
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"name": "item.click",
|
|
590
|
+
"detail": {
|
|
591
|
+
"annotation": {
|
|
592
|
+
"type": "reference",
|
|
593
|
+
"typeName": {
|
|
594
|
+
"type": "identifier",
|
|
595
|
+
"name": "Knowledge"
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
587
599
|
}
|
|
588
600
|
],
|
|
589
601
|
"methods": [],
|
|
@@ -596,7 +608,7 @@
|
|
|
596
608
|
"type": "propertySignature",
|
|
597
609
|
"key": {
|
|
598
610
|
"type": "identifier",
|
|
599
|
-
"name": "
|
|
611
|
+
"name": "instanceId"
|
|
600
612
|
},
|
|
601
613
|
"annotation": {
|
|
602
614
|
"type": "keyword",
|
|
@@ -608,12 +620,25 @@
|
|
|
608
620
|
"type": "propertySignature",
|
|
609
621
|
"key": {
|
|
610
622
|
"type": "identifier",
|
|
611
|
-
"name": "
|
|
623
|
+
"name": "name"
|
|
624
|
+
},
|
|
625
|
+
"annotation": {
|
|
626
|
+
"type": "keyword",
|
|
627
|
+
"value": "string"
|
|
628
|
+
},
|
|
629
|
+
"computed": false
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"type": "propertySignature",
|
|
633
|
+
"key": {
|
|
634
|
+
"type": "identifier",
|
|
635
|
+
"name": "description"
|
|
612
636
|
},
|
|
613
637
|
"annotation": {
|
|
614
638
|
"type": "keyword",
|
|
615
639
|
"value": "string"
|
|
616
640
|
},
|
|
641
|
+
"optional": true,
|
|
617
642
|
"computed": false
|
|
618
643
|
},
|
|
619
644
|
{
|
|
@@ -632,7 +657,7 @@
|
|
|
632
657
|
"type": "propertySignature",
|
|
633
658
|
"key": {
|
|
634
659
|
"type": "identifier",
|
|
635
|
-
"name": "
|
|
660
|
+
"name": "user"
|
|
636
661
|
},
|
|
637
662
|
"annotation": {
|
|
638
663
|
"type": "keyword",
|
|
@@ -716,7 +741,26 @@
|
|
|
716
741
|
}
|
|
717
742
|
}
|
|
718
743
|
],
|
|
719
|
-
"methods": [
|
|
744
|
+
"methods": [
|
|
745
|
+
{
|
|
746
|
+
"name": "setValue",
|
|
747
|
+
"params": [
|
|
748
|
+
{
|
|
749
|
+
"name": "value",
|
|
750
|
+
"annotation": {
|
|
751
|
+
"type": "keyword",
|
|
752
|
+
"value": "string"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
],
|
|
756
|
+
"returns": {}
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"name": "getValue",
|
|
760
|
+
"params": [],
|
|
761
|
+
"returns": {}
|
|
762
|
+
}
|
|
763
|
+
]
|
|
720
764
|
},
|
|
721
765
|
"ai-portal.show-cases": {
|
|
722
766
|
"properties": [
|
|
@@ -1405,30 +1449,55 @@
|
|
|
1405
1449
|
"events": [],
|
|
1406
1450
|
"methods": []
|
|
1407
1451
|
},
|
|
1408
|
-
"ai-portal.
|
|
1452
|
+
"ai-portal.project-conversations": {
|
|
1409
1453
|
"properties": [
|
|
1410
1454
|
{
|
|
1411
|
-
"name": "
|
|
1455
|
+
"name": "list",
|
|
1412
1456
|
"annotation": {
|
|
1413
1457
|
"type": "array",
|
|
1414
1458
|
"elementType": {
|
|
1415
1459
|
"type": "reference",
|
|
1416
1460
|
"typeName": {
|
|
1417
1461
|
"type": "identifier",
|
|
1418
|
-
"name": "
|
|
1462
|
+
"name": "Conversation"
|
|
1419
1463
|
}
|
|
1420
1464
|
}
|
|
1421
1465
|
}
|
|
1422
1466
|
},
|
|
1423
1467
|
{
|
|
1424
|
-
"name": "
|
|
1468
|
+
"name": "urlTemplate",
|
|
1425
1469
|
"annotation": {
|
|
1426
1470
|
"type": "keyword",
|
|
1427
|
-
"value": "
|
|
1471
|
+
"value": "string"
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"name": "actions",
|
|
1476
|
+
"annotation": {
|
|
1477
|
+
"type": "array",
|
|
1478
|
+
"elementType": {
|
|
1479
|
+
"type": "reference",
|
|
1480
|
+
"typeName": {
|
|
1481
|
+
"type": "identifier",
|
|
1482
|
+
"name": "ActionType"
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1428
1485
|
}
|
|
1429
1486
|
}
|
|
1430
1487
|
],
|
|
1431
1488
|
"events": [
|
|
1489
|
+
{
|
|
1490
|
+
"name": "goal.click",
|
|
1491
|
+
"detail": {
|
|
1492
|
+
"annotation": {
|
|
1493
|
+
"type": "reference",
|
|
1494
|
+
"typeName": {
|
|
1495
|
+
"type": "identifier",
|
|
1496
|
+
"name": "Conversation"
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1432
1501
|
{
|
|
1433
1502
|
"name": "action.click",
|
|
1434
1503
|
"detail": {
|
|
@@ -1436,7 +1505,7 @@
|
|
|
1436
1505
|
"type": "reference",
|
|
1437
1506
|
"typeName": {
|
|
1438
1507
|
"type": "identifier",
|
|
1439
|
-
"name": "
|
|
1508
|
+
"name": "ActionClickDetail"
|
|
1440
1509
|
}
|
|
1441
1510
|
}
|
|
1442
1511
|
}
|
|
@@ -1446,13 +1515,13 @@
|
|
|
1446
1515
|
"types": [
|
|
1447
1516
|
{
|
|
1448
1517
|
"type": "interface",
|
|
1449
|
-
"name": "
|
|
1518
|
+
"name": "Conversation",
|
|
1450
1519
|
"body": [
|
|
1451
1520
|
{
|
|
1452
1521
|
"type": "propertySignature",
|
|
1453
1522
|
"key": {
|
|
1454
1523
|
"type": "identifier",
|
|
1455
|
-
"name": "
|
|
1524
|
+
"name": "conversationId"
|
|
1456
1525
|
},
|
|
1457
1526
|
"annotation": {
|
|
1458
1527
|
"type": "keyword",
|
|
@@ -1464,27 +1533,35 @@
|
|
|
1464
1533
|
"type": "propertySignature",
|
|
1465
1534
|
"key": {
|
|
1466
1535
|
"type": "identifier",
|
|
1467
|
-
"name": "
|
|
1536
|
+
"name": "title"
|
|
1468
1537
|
},
|
|
1469
1538
|
"annotation": {
|
|
1470
|
-
"type": "
|
|
1471
|
-
"
|
|
1472
|
-
"type": "identifier",
|
|
1473
|
-
"name": "GeneralIconProps"
|
|
1474
|
-
}
|
|
1539
|
+
"type": "keyword",
|
|
1540
|
+
"value": "string"
|
|
1475
1541
|
},
|
|
1476
|
-
"optional": true,
|
|
1477
1542
|
"computed": false
|
|
1478
1543
|
},
|
|
1479
1544
|
{
|
|
1480
1545
|
"type": "propertySignature",
|
|
1481
1546
|
"key": {
|
|
1482
1547
|
"type": "identifier",
|
|
1483
|
-
"name": "
|
|
1548
|
+
"name": "startTime"
|
|
1484
1549
|
},
|
|
1485
1550
|
"annotation": {
|
|
1486
1551
|
"type": "keyword",
|
|
1487
|
-
"value": "
|
|
1552
|
+
"value": "number"
|
|
1553
|
+
},
|
|
1554
|
+
"computed": false
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"type": "propertySignature",
|
|
1558
|
+
"key": {
|
|
1559
|
+
"type": "identifier",
|
|
1560
|
+
"name": "description"
|
|
1561
|
+
},
|
|
1562
|
+
"annotation": {
|
|
1563
|
+
"type": "keyword",
|
|
1564
|
+
"value": "string"
|
|
1488
1565
|
},
|
|
1489
1566
|
"optional": true,
|
|
1490
1567
|
"computed": false
|
|
@@ -1493,7 +1570,7 @@
|
|
|
1493
1570
|
"type": "propertySignature",
|
|
1494
1571
|
"key": {
|
|
1495
1572
|
"type": "identifier",
|
|
1496
|
-
"name": "
|
|
1573
|
+
"name": "goal"
|
|
1497
1574
|
},
|
|
1498
1575
|
"annotation": {
|
|
1499
1576
|
"type": "keyword",
|
|
@@ -1506,77 +1583,79 @@
|
|
|
1506
1583
|
"type": "propertySignature",
|
|
1507
1584
|
"key": {
|
|
1508
1585
|
"type": "identifier",
|
|
1509
|
-
"name": "
|
|
1586
|
+
"name": "username"
|
|
1510
1587
|
},
|
|
1511
1588
|
"annotation": {
|
|
1512
1589
|
"type": "keyword",
|
|
1513
|
-
"value": "
|
|
1590
|
+
"value": "string"
|
|
1514
1591
|
},
|
|
1515
1592
|
"optional": true,
|
|
1516
1593
|
"computed": false
|
|
1517
1594
|
}
|
|
1518
|
-
]
|
|
1519
|
-
|
|
1595
|
+
]
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
"type": "interface",
|
|
1599
|
+
"name": "ActionClickDetail",
|
|
1600
|
+
"body": [
|
|
1520
1601
|
{
|
|
1521
|
-
"type": "
|
|
1522
|
-
"
|
|
1602
|
+
"type": "propertySignature",
|
|
1603
|
+
"key": {
|
|
1523
1604
|
"type": "identifier",
|
|
1524
|
-
"name": "
|
|
1525
|
-
}
|
|
1605
|
+
"name": "action"
|
|
1606
|
+
},
|
|
1607
|
+
"annotation": {
|
|
1608
|
+
"type": "reference",
|
|
1609
|
+
"typeName": {
|
|
1610
|
+
"type": "identifier",
|
|
1611
|
+
"name": "SimpleActionType"
|
|
1612
|
+
}
|
|
1613
|
+
},
|
|
1614
|
+
"computed": false
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"type": "propertySignature",
|
|
1618
|
+
"key": {
|
|
1619
|
+
"type": "identifier",
|
|
1620
|
+
"name": "item"
|
|
1621
|
+
},
|
|
1622
|
+
"annotation": {
|
|
1623
|
+
"type": "reference",
|
|
1624
|
+
"typeName": {
|
|
1625
|
+
"type": "identifier",
|
|
1626
|
+
"name": "Conversation"
|
|
1627
|
+
}
|
|
1628
|
+
},
|
|
1629
|
+
"computed": false
|
|
1526
1630
|
}
|
|
1527
1631
|
]
|
|
1528
1632
|
}
|
|
1529
1633
|
]
|
|
1530
1634
|
},
|
|
1531
|
-
"ai-portal.
|
|
1635
|
+
"ai-portal.action-buttons": {
|
|
1532
1636
|
"properties": [
|
|
1533
1637
|
{
|
|
1534
|
-
"name": "
|
|
1638
|
+
"name": "items",
|
|
1535
1639
|
"annotation": {
|
|
1536
1640
|
"type": "array",
|
|
1537
1641
|
"elementType": {
|
|
1538
1642
|
"type": "reference",
|
|
1539
1643
|
"typeName": {
|
|
1540
1644
|
"type": "identifier",
|
|
1541
|
-
"name": "
|
|
1645
|
+
"name": "ActionItem"
|
|
1542
1646
|
}
|
|
1543
1647
|
}
|
|
1544
1648
|
}
|
|
1545
1649
|
},
|
|
1546
1650
|
{
|
|
1547
|
-
"name": "
|
|
1651
|
+
"name": "multiple",
|
|
1548
1652
|
"annotation": {
|
|
1549
1653
|
"type": "keyword",
|
|
1550
|
-
"value": "
|
|
1551
|
-
}
|
|
1552
|
-
},
|
|
1553
|
-
{
|
|
1554
|
-
"name": "actions",
|
|
1555
|
-
"annotation": {
|
|
1556
|
-
"type": "array",
|
|
1557
|
-
"elementType": {
|
|
1558
|
-
"type": "reference",
|
|
1559
|
-
"typeName": {
|
|
1560
|
-
"type": "identifier",
|
|
1561
|
-
"name": "ActionType"
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1654
|
+
"value": "boolean"
|
|
1564
1655
|
}
|
|
1565
1656
|
}
|
|
1566
1657
|
],
|
|
1567
1658
|
"events": [
|
|
1568
|
-
{
|
|
1569
|
-
"name": "goal.click",
|
|
1570
|
-
"detail": {
|
|
1571
|
-
"annotation": {
|
|
1572
|
-
"type": "reference",
|
|
1573
|
-
"typeName": {
|
|
1574
|
-
"type": "identifier",
|
|
1575
|
-
"name": "Conversation"
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
},
|
|
1580
1659
|
{
|
|
1581
1660
|
"name": "action.click",
|
|
1582
1661
|
"detail": {
|
|
@@ -1584,7 +1663,7 @@
|
|
|
1584
1663
|
"type": "reference",
|
|
1585
1664
|
"typeName": {
|
|
1586
1665
|
"type": "identifier",
|
|
1587
|
-
"name": "
|
|
1666
|
+
"name": "ActionItem"
|
|
1588
1667
|
}
|
|
1589
1668
|
}
|
|
1590
1669
|
}
|
|
@@ -1594,25 +1673,13 @@
|
|
|
1594
1673
|
"types": [
|
|
1595
1674
|
{
|
|
1596
1675
|
"type": "interface",
|
|
1597
|
-
"name": "
|
|
1676
|
+
"name": "ActionItem",
|
|
1598
1677
|
"body": [
|
|
1599
1678
|
{
|
|
1600
1679
|
"type": "propertySignature",
|
|
1601
1680
|
"key": {
|
|
1602
1681
|
"type": "identifier",
|
|
1603
|
-
"name": "
|
|
1604
|
-
},
|
|
1605
|
-
"annotation": {
|
|
1606
|
-
"type": "keyword",
|
|
1607
|
-
"value": "string"
|
|
1608
|
-
},
|
|
1609
|
-
"computed": false
|
|
1610
|
-
},
|
|
1611
|
-
{
|
|
1612
|
-
"type": "propertySignature",
|
|
1613
|
-
"key": {
|
|
1614
|
-
"type": "identifier",
|
|
1615
|
-
"name": "title"
|
|
1682
|
+
"name": "text"
|
|
1616
1683
|
},
|
|
1617
1684
|
"annotation": {
|
|
1618
1685
|
"type": "keyword",
|
|
@@ -1624,23 +1691,27 @@
|
|
|
1624
1691
|
"type": "propertySignature",
|
|
1625
1692
|
"key": {
|
|
1626
1693
|
"type": "identifier",
|
|
1627
|
-
"name": "
|
|
1694
|
+
"name": "icon"
|
|
1628
1695
|
},
|
|
1629
1696
|
"annotation": {
|
|
1630
|
-
"type": "
|
|
1631
|
-
"
|
|
1697
|
+
"type": "reference",
|
|
1698
|
+
"typeName": {
|
|
1699
|
+
"type": "identifier",
|
|
1700
|
+
"name": "GeneralIconProps"
|
|
1701
|
+
}
|
|
1632
1702
|
},
|
|
1703
|
+
"optional": true,
|
|
1633
1704
|
"computed": false
|
|
1634
1705
|
},
|
|
1635
1706
|
{
|
|
1636
1707
|
"type": "propertySignature",
|
|
1637
1708
|
"key": {
|
|
1638
1709
|
"type": "identifier",
|
|
1639
|
-
"name": "
|
|
1710
|
+
"name": "active"
|
|
1640
1711
|
},
|
|
1641
1712
|
"annotation": {
|
|
1642
1713
|
"type": "keyword",
|
|
1643
|
-
"value": "
|
|
1714
|
+
"value": "boolean"
|
|
1644
1715
|
},
|
|
1645
1716
|
"optional": true,
|
|
1646
1717
|
"computed": false
|
|
@@ -1649,7 +1720,7 @@
|
|
|
1649
1720
|
"type": "propertySignature",
|
|
1650
1721
|
"key": {
|
|
1651
1722
|
"type": "identifier",
|
|
1652
|
-
"name": "
|
|
1723
|
+
"name": "event"
|
|
1653
1724
|
},
|
|
1654
1725
|
"annotation": {
|
|
1655
1726
|
"type": "keyword",
|
|
@@ -1662,50 +1733,23 @@
|
|
|
1662
1733
|
"type": "propertySignature",
|
|
1663
1734
|
"key": {
|
|
1664
1735
|
"type": "identifier",
|
|
1665
|
-
"name": "
|
|
1736
|
+
"name": "hidden"
|
|
1666
1737
|
},
|
|
1667
1738
|
"annotation": {
|
|
1668
1739
|
"type": "keyword",
|
|
1669
|
-
"value": "
|
|
1740
|
+
"value": "boolean"
|
|
1670
1741
|
},
|
|
1671
1742
|
"optional": true,
|
|
1672
1743
|
"computed": false
|
|
1673
1744
|
}
|
|
1674
|
-
]
|
|
1675
|
-
|
|
1676
|
-
{
|
|
1677
|
-
"type": "interface",
|
|
1678
|
-
"name": "ActionClickDetail",
|
|
1679
|
-
"body": [
|
|
1680
|
-
{
|
|
1681
|
-
"type": "propertySignature",
|
|
1682
|
-
"key": {
|
|
1683
|
-
"type": "identifier",
|
|
1684
|
-
"name": "action"
|
|
1685
|
-
},
|
|
1686
|
-
"annotation": {
|
|
1687
|
-
"type": "reference",
|
|
1688
|
-
"typeName": {
|
|
1689
|
-
"type": "identifier",
|
|
1690
|
-
"name": "SimpleActionType"
|
|
1691
|
-
}
|
|
1692
|
-
},
|
|
1693
|
-
"computed": false
|
|
1694
|
-
},
|
|
1745
|
+
],
|
|
1746
|
+
"extends": [
|
|
1695
1747
|
{
|
|
1696
|
-
"type": "
|
|
1697
|
-
"
|
|
1748
|
+
"type": "expressionWithTypeArguments",
|
|
1749
|
+
"expression": {
|
|
1698
1750
|
"type": "identifier",
|
|
1699
|
-
"name": "
|
|
1700
|
-
}
|
|
1701
|
-
"annotation": {
|
|
1702
|
-
"type": "reference",
|
|
1703
|
-
"typeName": {
|
|
1704
|
-
"type": "identifier",
|
|
1705
|
-
"name": "Conversation"
|
|
1706
|
-
}
|
|
1707
|
-
},
|
|
1708
|
-
"computed": false
|
|
1751
|
+
"name": "ButtonProps"
|
|
1752
|
+
}
|
|
1709
1753
|
}
|
|
1710
1754
|
]
|
|
1711
1755
|
}
|
|
@@ -2408,6 +2452,13 @@
|
|
|
2408
2452
|
}
|
|
2409
2453
|
}
|
|
2410
2454
|
}
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"name": "activeKey",
|
|
2458
|
+
"annotation": {
|
|
2459
|
+
"type": "keyword",
|
|
2460
|
+
"value": "string"
|
|
2461
|
+
}
|
|
2411
2462
|
}
|
|
2412
2463
|
],
|
|
2413
2464
|
"events": [
|
|
@@ -2446,6 +2497,18 @@
|
|
|
2446
2497
|
}
|
|
2447
2498
|
}
|
|
2448
2499
|
}
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"name": "item.new.chat",
|
|
2503
|
+
"detail": {
|
|
2504
|
+
"annotation": {
|
|
2505
|
+
"type": "reference",
|
|
2506
|
+
"typeName": {
|
|
2507
|
+
"type": "identifier",
|
|
2508
|
+
"name": "GoalItem"
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2449
2512
|
}
|
|
2450
2513
|
],
|
|
2451
2514
|
"methods": [],
|
|
@@ -2561,7 +2624,7 @@
|
|
|
2561
2624
|
"type": "propertySignature",
|
|
2562
2625
|
"key": {
|
|
2563
2626
|
"type": "identifier",
|
|
2564
|
-
"name": "
|
|
2627
|
+
"name": "owner"
|
|
2565
2628
|
},
|
|
2566
2629
|
"annotation": {
|
|
2567
2630
|
"type": "reference",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
+
export declare const ChatBoxComponent: React.ForwardRefExoticComponent<Omit<ChatBoxComponentProps, "ref"> & React.RefAttributes<ChatBoxRef>>;
|
|
4
5
|
export interface ChatBoxProps {
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
placeholder?: string;
|
|
@@ -10,17 +11,25 @@ export interface Suggestion {
|
|
|
10
11
|
title: string;
|
|
11
12
|
content: string;
|
|
12
13
|
}
|
|
14
|
+
export interface ChatBoxRef {
|
|
15
|
+
setValue: (value: string) => void;
|
|
16
|
+
getValue: () => string;
|
|
17
|
+
}
|
|
13
18
|
/**
|
|
14
19
|
* 构件 `ai-portal.chat-box`
|
|
15
20
|
*/
|
|
16
21
|
export declare class ChatBox extends ReactNextElement implements ChatBoxProps {
|
|
17
22
|
#private;
|
|
23
|
+
ref: React.RefObject<ChatBoxRef>;
|
|
18
24
|
accessor disabled: boolean | undefined;
|
|
19
25
|
accessor placeholder: string | undefined;
|
|
20
26
|
accessor autoFocus: boolean | undefined;
|
|
27
|
+
setValue(value: string): void;
|
|
28
|
+
getValue(): string | undefined;
|
|
21
29
|
render(): React.JSX.Element;
|
|
22
30
|
}
|
|
23
31
|
export interface ChatBoxComponentProps extends ChatBoxProps {
|
|
24
32
|
onSubmit?: (value: string) => void;
|
|
33
|
+
ref?: React.Ref<ChatBoxRef>;
|
|
25
34
|
}
|
|
26
|
-
export declare function
|
|
35
|
+
export declare function LegacyChatBoxComponent({ disabled, placeholder, autoFocus, onSubmit }: ChatBoxComponentProps, ref: React.Ref<ChatBoxRef>): React.JSX.Element;
|
|
@@ -14,7 +14,7 @@ export interface GoalItem {
|
|
|
14
14
|
conversations?: number;
|
|
15
15
|
child_target?: GoalItem[];
|
|
16
16
|
parent_target?: GoalItem[];
|
|
17
|
-
|
|
17
|
+
owner?: GoalMember;
|
|
18
18
|
users?: GoalMember[];
|
|
19
19
|
instanceId: string;
|
|
20
20
|
offsetX?: number;
|
|
@@ -22,9 +22,11 @@ export interface GoalItem {
|
|
|
22
22
|
interface GoalCardItemProps {
|
|
23
23
|
goalItem: GoalItem;
|
|
24
24
|
cardStyle?: React.CSSProperties;
|
|
25
|
+
isActive?: boolean;
|
|
25
26
|
onTitleChange?: (newTitle: string) => void;
|
|
26
27
|
onStatusChange?: (newStatus: GoalState) => void;
|
|
28
|
+
onNewChat?: () => void;
|
|
27
29
|
onClick?: () => void;
|
|
28
30
|
}
|
|
29
|
-
export declare function GoalCardItem({ goalItem, cardStyle, onStatusChange, onTitleChange, onClick, }: GoalCardItemProps): React.JSX.Element;
|
|
31
|
+
export declare function GoalCardItem({ goalItem, cardStyle, onStatusChange, onTitleChange, onClick, onNewChat, isActive, }: GoalCardItemProps): React.JSX.Element;
|
|
30
32
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare enum K {
|
|
2
2
|
UN_START_STATUS = "UN_START_STATUS",
|
|
3
3
|
RUNNING_STATUS = "RUNNING_STATUS",
|
|
4
|
-
COMPLETED_STATUS = "COMPLETED_STATUS"
|
|
4
|
+
COMPLETED_STATUS = "COMPLETED_STATUS",
|
|
5
|
+
NEW_CHAT = "NEW_CHAT"
|
|
5
6
|
}
|
|
6
7
|
export declare const NS = "bricks/ai-portal/goal-card-list";
|
|
7
8
|
export declare const locales: {
|
|
@@ -5,6 +5,7 @@ import { GoalItem } from "./CardItem/CardItem.js";
|
|
|
5
5
|
export interface GoalCardListProps {
|
|
6
6
|
goalList?: GoalItem[];
|
|
7
7
|
cardStyle?: React.CSSProperties;
|
|
8
|
+
activeKey?: string;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* 构件 `ai-portal.goal-card-list`
|
|
@@ -13,5 +14,6 @@ export declare class GoalCardList extends ReactNextElement implements GoalCardLi
|
|
|
13
14
|
#private;
|
|
14
15
|
accessor goalList: GoalItem[] | undefined;
|
|
15
16
|
accessor cardStyle: React.CSSProperties | undefined;
|
|
17
|
+
accessor activeKey: string | undefined;
|
|
16
18
|
render(): React.JSX.Element;
|
|
17
19
|
}
|
|
@@ -8,10 +8,11 @@ export interface ProjectKnowledgesProps {
|
|
|
8
8
|
actions?: ActionType[];
|
|
9
9
|
}
|
|
10
10
|
export interface Knowledge {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
time: number;
|
|
11
|
+
instanceId: string;
|
|
12
|
+
name: string;
|
|
14
13
|
description?: string;
|
|
14
|
+
time: number;
|
|
15
|
+
user?: string;
|
|
15
16
|
}
|
|
16
17
|
export interface ActionClickDetail {
|
|
17
18
|
action: SimpleActionType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.7",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"@next-bricks/presentational": "*",
|
|
49
49
|
"@next-bricks/vs": "*"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "d971cee915881ad2e5ffa7d0ee47bd84b1373d79"
|
|
52
52
|
}
|