@carbon/ai-chat-components 1.5.0-rc.0 → 1.5.0-rc.1

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.
@@ -2,6 +2,30 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/globals/settings.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "variable",
11
+ "name": "prefix",
12
+ "type": {
13
+ "text": "string"
14
+ },
15
+ "default": "\"cds-aichat\""
16
+ }
17
+ ],
18
+ "exports": [
19
+ {
20
+ "kind": "js",
21
+ "name": "default",
22
+ "declaration": {
23
+ "name": "prefix",
24
+ "module": "src/globals/settings.ts"
25
+ }
26
+ }
27
+ ]
28
+ },
5
29
  {
6
30
  "kind": "javascript-module",
7
31
  "path": "src/react/ai-label-action-button.ts",
@@ -606,30 +630,6 @@
606
630
  }
607
631
  ]
608
632
  },
609
- {
610
- "kind": "javascript-module",
611
- "path": "src/globals/settings.ts",
612
- "declarations": [
613
- {
614
- "kind": "variable",
615
- "name": "prefix",
616
- "type": {
617
- "text": "string"
618
- },
619
- "default": "\"cds-aichat\""
620
- }
621
- ],
622
- "exports": [
623
- {
624
- "kind": "js",
625
- "name": "default",
626
- "declaration": {
627
- "name": "prefix",
628
- "module": "src/globals/settings.ts"
629
- }
630
- }
631
- ]
632
- },
633
633
  {
634
634
  "kind": "javascript-module",
635
635
  "path": "src/testing/PageObjectId.ts",
@@ -709,13 +709,13 @@
709
709
  },
710
710
  {
711
711
  "kind": "javascript-module",
712
- "path": "src/components/card/index.ts",
712
+ "path": "src/components/carousel/index.ts",
713
713
  "declarations": [],
714
714
  "exports": []
715
715
  },
716
716
  {
717
717
  "kind": "javascript-module",
718
- "path": "src/components/carousel/index.ts",
718
+ "path": "src/components/card/index.ts",
719
719
  "declarations": [],
720
720
  "exports": []
721
721
  },
@@ -1246,231 +1246,405 @@
1246
1246
  },
1247
1247
  {
1248
1248
  "kind": "javascript-module",
1249
- "path": "src/react/history/history-content.ts",
1249
+ "path": "src/globals/decorators/carbon-element.ts",
1250
1250
  "declarations": [
1251
1251
  {
1252
- "kind": "variable",
1253
- "name": "HistoryContent"
1252
+ "kind": "function",
1253
+ "name": "carbonElement",
1254
+ "parameters": [
1255
+ {
1256
+ "name": "tagName",
1257
+ "type": {
1258
+ "text": "string"
1259
+ },
1260
+ "description": "The tag name of the custom element to define."
1261
+ }
1262
+ ],
1263
+ "description": "Class decorator factory that defines the decorated class as a custom element.\n\n```js"
1254
1264
  }
1255
1265
  ],
1256
1266
  "exports": [
1257
1267
  {
1258
- "kind": "js",
1259
- "name": "default",
1268
+ "kind": "custom-element-definition",
1269
+ "name": "tagName",
1260
1270
  "declaration": {
1261
- "name": "HistoryContent",
1262
- "module": "src/react/history/history-content.ts"
1271
+ "name": "anonymous_0",
1272
+ "module": "src/globals/decorators/carbon-element.ts"
1263
1273
  }
1264
- }
1265
- ]
1266
- },
1267
- {
1268
- "kind": "javascript-module",
1269
- "path": "src/react/history/history-delete-panel.ts",
1270
- "declarations": [
1271
- {
1272
- "kind": "variable",
1273
- "name": "HistoryDeletePanel"
1274
- }
1275
- ],
1276
- "exports": [
1274
+ },
1277
1275
  {
1278
- "kind": "js",
1279
- "name": "default",
1276
+ "kind": "custom-element-definition",
1277
+ "name": "tagName",
1280
1278
  "declaration": {
1281
- "name": "HistoryDeletePanel",
1282
- "module": "src/react/history/history-delete-panel.ts"
1279
+ "name": "clazz",
1280
+ "module": "src/globals/decorators/carbon-element.ts"
1283
1281
  }
1284
- }
1285
- ]
1286
- },
1287
- {
1288
- "kind": "javascript-module",
1289
- "path": "src/react/history/history-header.ts",
1290
- "declarations": [
1291
- {
1292
- "kind": "variable",
1293
- "name": "HistoryHeader"
1294
- }
1295
- ],
1296
- "exports": [
1282
+ },
1297
1283
  {
1298
1284
  "kind": "js",
1299
- "name": "default",
1285
+ "name": "carbonElement",
1300
1286
  "declaration": {
1301
- "name": "HistoryHeader",
1302
- "module": "src/react/history/history-header.ts"
1287
+ "name": "carbonElement",
1288
+ "module": "src/globals/decorators/carbon-element.ts"
1303
1289
  }
1304
1290
  }
1305
1291
  ]
1306
1292
  },
1307
1293
  {
1308
1294
  "kind": "javascript-module",
1309
- "path": "src/react/history/history-loading.ts",
1310
- "declarations": [
1311
- {
1312
- "kind": "variable",
1313
- "name": "HistoryLoading"
1314
- }
1315
- ],
1295
+ "path": "src/globals/decorators/index.ts",
1296
+ "declarations": [],
1316
1297
  "exports": [
1317
1298
  {
1318
1299
  "kind": "js",
1319
- "name": "default",
1300
+ "name": "carbonElement",
1320
1301
  "declaration": {
1321
- "name": "HistoryLoading",
1322
- "module": "src/react/history/history-loading.ts"
1302
+ "name": "carbonElement",
1303
+ "module": "./carbon-element.js"
1323
1304
  }
1324
1305
  }
1325
1306
  ]
1326
1307
  },
1327
1308
  {
1328
1309
  "kind": "javascript-module",
1329
- "path": "src/react/history/history-panel-item-input.ts",
1310
+ "path": "src/globals/internal/storybook-cdn.ts",
1330
1311
  "declarations": [
1331
1312
  {
1332
- "kind": "variable",
1333
- "name": "HistoryPanelItemInput"
1334
- }
1335
- ],
1336
- "exports": [
1337
- {
1338
- "kind": "js",
1339
- "name": "default",
1340
- "declaration": {
1341
- "name": "HistoryPanelItemInput",
1342
- "module": "src/react/history/history-panel-item-input.ts"
1343
- }
1344
- }
1345
- ]
1346
- },
1347
- {
1348
- "kind": "javascript-module",
1349
- "path": "src/react/history/history-panel-item.ts",
1350
- "declarations": [
1313
+ "kind": "function",
1314
+ "name": "cdnJs",
1315
+ "parameters": [
1316
+ {
1317
+ "name": "components",
1318
+ "type": {
1319
+ "text": "Array"
1320
+ },
1321
+ "description": "array of components to render"
1322
+ }
1323
+ ],
1324
+ "description": "This is the markdown block for JS via CDN"
1325
+ },
1351
1326
  {
1352
- "kind": "variable",
1353
- "name": "HistoryPanelItem"
1327
+ "kind": "function",
1328
+ "name": "cdnCss",
1329
+ "description": "This is the markdown block for CSS via CDN"
1354
1330
  }
1355
1331
  ],
1356
1332
  "exports": [
1357
1333
  {
1358
1334
  "kind": "js",
1359
- "name": "default",
1335
+ "name": "cdnJs",
1360
1336
  "declaration": {
1361
- "name": "HistoryPanelItem",
1362
- "module": "src/react/history/history-panel-item.ts"
1337
+ "name": "cdnJs",
1338
+ "module": "src/globals/internal/storybook-cdn.ts"
1363
1339
  }
1364
- }
1365
- ]
1366
- },
1367
- {
1368
- "kind": "javascript-module",
1369
- "path": "src/react/history/history-panel-items.ts",
1370
- "declarations": [
1371
- {
1372
- "kind": "variable",
1373
- "name": "HistoryPanelItems"
1374
- }
1375
- ],
1376
- "exports": [
1340
+ },
1377
1341
  {
1378
1342
  "kind": "js",
1379
- "name": "default",
1343
+ "name": "cdnCss",
1380
1344
  "declaration": {
1381
- "name": "HistoryPanelItems",
1382
- "module": "src/react/history/history-panel-items.ts"
1345
+ "name": "cdnCss",
1346
+ "module": "src/globals/internal/storybook-cdn.ts"
1383
1347
  }
1384
1348
  }
1385
1349
  ]
1386
1350
  },
1387
1351
  {
1388
1352
  "kind": "javascript-module",
1389
- "path": "src/react/history/history-panel-menu.ts",
1353
+ "path": "src/globals/utils/focus-utils.ts",
1390
1354
  "declarations": [
1391
1355
  {
1392
- "kind": "variable",
1393
- "name": "HistoryPanelMenu"
1394
- }
1395
- ],
1396
- "exports": [
1356
+ "kind": "function",
1357
+ "name": "getDeepActiveElement",
1358
+ "return": {
1359
+ "type": {
1360
+ "text": ""
1361
+ }
1362
+ },
1363
+ "description": "Gets the deepest active element, traversing through all shadow DOM boundaries.\nThis handles nested shadow roots, slotted elements, and will return the actual\nfocused element regardless of how many shadow DOM levels exist."
1364
+ },
1397
1365
  {
1398
- "kind": "js",
1399
- "name": "default",
1400
- "declaration": {
1401
- "name": "HistoryPanelMenu",
1402
- "module": "src/react/history/history-panel-menu.ts"
1403
- }
1404
- }
1405
- ]
1406
- },
1407
- {
1408
- "kind": "javascript-module",
1409
- "path": "src/react/history/history-panel.ts",
1410
- "declarations": [
1366
+ "kind": "function",
1367
+ "name": "isElementInvisible",
1368
+ "return": {
1369
+ "type": {
1370
+ "text": ""
1371
+ }
1372
+ },
1373
+ "parameters": [
1374
+ {
1375
+ "name": "element",
1376
+ "type": {
1377
+ "text": "Element"
1378
+ },
1379
+ "description": "The DOM element to check"
1380
+ },
1381
+ {
1382
+ "name": "exceptions",
1383
+ "default": "[\"dialog\", \"[popover]\"]",
1384
+ "type": {
1385
+ "text": "string[]"
1386
+ },
1387
+ "description": "Array of selectors to ignore when checking the element (e.g., 'dialog', '[popover]')"
1388
+ }
1389
+ ],
1390
+ "description": "Checks if an element should be ignored due to visibility or accessibility attributes."
1391
+ },
1411
1392
  {
1412
- "kind": "variable",
1413
- "name": "HistoryPanel"
1414
- }
1393
+ "kind": "function",
1394
+ "name": "isFocusable",
1395
+ "return": {
1396
+ "type": {
1397
+ "text": ""
1398
+ }
1399
+ },
1400
+ "parameters": [
1401
+ {
1402
+ "name": "element",
1403
+ "type": {
1404
+ "text": "Element"
1405
+ },
1406
+ "description": "The DOM element to check for focusability"
1407
+ }
1408
+ ],
1409
+ "description": "Checks if an element is focusable. An element is considered focusable if it matches\nstandard focusable elements criteria (such as buttons, inputs, etc., that are not disabled\nand do not have a negative tabindex) or is a custom element with a shadow root that delegates focus.\nBased on https://gist.github.com/oscarmarina/9ce95f491a4c53ed01d989de4a87c0c9"
1410
+ },
1411
+ {
1412
+ "kind": "function",
1413
+ "name": "tryFocus",
1414
+ "return": {
1415
+ "type": {
1416
+ "text": ""
1417
+ }
1418
+ },
1419
+ "parameters": [
1420
+ {
1421
+ "name": "element",
1422
+ "type": {
1423
+ "text": "Element | null | undefined"
1424
+ },
1425
+ "description": "The element to attempt to focus"
1426
+ },
1427
+ {
1428
+ "name": "exceptions",
1429
+ "optional": true,
1430
+ "type": {
1431
+ "text": "string[]"
1432
+ },
1433
+ "description": "Array of selectors to ignore when checking visibility (e.g., 'dialog', '[popover]')"
1434
+ }
1435
+ ],
1436
+ "description": "Attempts to focus an element if it's focusable, visible, and not disabled.\nThis is an enhanced version that checks visibility, accessibility attributes,\nand proper focusability before attempting to set focus. It is shadow DOM aware\nand handles slotted elements correctly."
1437
+ },
1438
+ {
1439
+ "kind": "function",
1440
+ "name": "walkComposedTree",
1441
+ "return": {
1442
+ "type": {
1443
+ "text": ""
1444
+ }
1445
+ },
1446
+ "parameters": [
1447
+ {
1448
+ "name": "node",
1449
+ "type": {
1450
+ "text": "Node"
1451
+ },
1452
+ "description": "The root node for traversal"
1453
+ },
1454
+ {
1455
+ "name": "whatToShow",
1456
+ "default": "0",
1457
+ "description": "NodeFilter code for node types to include (use 0 to retrieve all nodes)"
1458
+ },
1459
+ {
1460
+ "name": "filter",
1461
+ "default": "() => true",
1462
+ "type": {
1463
+ "text": "(node: Node) => boolean"
1464
+ },
1465
+ "description": "Filters nodes. Child nodes are considered even if parent does not satisfy the filter"
1466
+ },
1467
+ {
1468
+ "name": "skipNode",
1469
+ "default": "() => false",
1470
+ "type": {
1471
+ "text": "(node: Node) => boolean"
1472
+ },
1473
+ "description": "Determines whether to skip a node and its children"
1474
+ }
1475
+ ],
1476
+ "description": "Traverse the composed tree from the root, selecting elements that meet the provided filter criteria.\nThis function properly handles Shadow DOM boundaries.\nBased on https://github.com/JanMiksovsky/elix/blob/main/src/core/dom.js#L320"
1477
+ },
1478
+ {
1479
+ "kind": "function",
1480
+ "name": "getFirstAndLastFocusableChildren",
1481
+ "return": {
1482
+ "type": {
1483
+ "text": ""
1484
+ }
1485
+ },
1486
+ "parameters": [
1487
+ {
1488
+ "name": "walker",
1489
+ "type": {
1490
+ "text": "IterableIterator<HTMLElement>"
1491
+ },
1492
+ "description": "The TreeWalker object used to traverse the node's children"
1493
+ }
1494
+ ],
1495
+ "description": "Retrieves the first and last focusable children of a node using a TreeWalker."
1496
+ },
1497
+ {
1498
+ "kind": "function",
1499
+ "name": "focusElementAfterRepaint",
1500
+ "return": {
1501
+ "type": {
1502
+ "text": "void"
1503
+ }
1504
+ },
1505
+ "parameters": [
1506
+ {
1507
+ "name": "searchRoot",
1508
+ "type": {
1509
+ "text": "Document | Element | ShadowRoot | DocumentFragment"
1510
+ },
1511
+ "description": "Root to query (`Element`, `ShadowRoot`, `Document`, or `DocumentFragment`, e.g. Lit `renderRoot`)"
1512
+ },
1513
+ {
1514
+ "name": "selector",
1515
+ "type": {
1516
+ "text": "string"
1517
+ },
1518
+ "description": "CSS selector that resolves to the node to focus."
1519
+ }
1520
+ ],
1521
+ "description": "Finds a descendant of `searchRoot` via `selector` and focuses it after the next\ntwo animation frames. Use when DOM updates (Lit, React, reorder) replace or move\nnodes so the previous focused element is detached (e.g. list pin/unpin).\n\nTries tryFocus first for visibility/focusability checks; if that does\nnot take focus (e.g. some custom element hosts), falls back to HTMLElement.focus."
1522
+ }
1415
1523
  ],
1416
1524
  "exports": [
1417
1525
  {
1418
1526
  "kind": "js",
1419
- "name": "default",
1527
+ "name": "getDeepActiveElement",
1420
1528
  "declaration": {
1421
- "name": "HistoryPanel",
1422
- "module": "src/react/history/history-panel.ts"
1529
+ "name": "getDeepActiveElement",
1530
+ "module": "src/globals/utils/focus-utils.ts"
1531
+ }
1532
+ },
1533
+ {
1534
+ "kind": "js",
1535
+ "name": "isElementInvisible",
1536
+ "declaration": {
1537
+ "name": "isElementInvisible",
1538
+ "module": "src/globals/utils/focus-utils.ts"
1539
+ }
1540
+ },
1541
+ {
1542
+ "kind": "js",
1543
+ "name": "isFocusable",
1544
+ "declaration": {
1545
+ "name": "isFocusable",
1546
+ "module": "src/globals/utils/focus-utils.ts"
1547
+ }
1548
+ },
1549
+ {
1550
+ "kind": "js",
1551
+ "name": "tryFocus",
1552
+ "declaration": {
1553
+ "name": "tryFocus",
1554
+ "module": "src/globals/utils/focus-utils.ts"
1555
+ }
1556
+ },
1557
+ {
1558
+ "kind": "js",
1559
+ "name": "walkComposedTree",
1560
+ "declaration": {
1561
+ "name": "walkComposedTree",
1562
+ "module": "src/globals/utils/focus-utils.ts"
1563
+ }
1564
+ },
1565
+ {
1566
+ "kind": "js",
1567
+ "name": "getFirstAndLastFocusableChildren",
1568
+ "declaration": {
1569
+ "name": "getFirstAndLastFocusableChildren",
1570
+ "module": "src/globals/utils/focus-utils.ts"
1571
+ }
1572
+ },
1573
+ {
1574
+ "kind": "js",
1575
+ "name": "focusElementAfterRepaint",
1576
+ "declaration": {
1577
+ "name": "focusElementAfterRepaint",
1578
+ "module": "src/globals/utils/focus-utils.ts"
1423
1579
  }
1424
1580
  }
1425
1581
  ]
1426
1582
  },
1427
1583
  {
1428
1584
  "kind": "javascript-module",
1429
- "path": "src/react/history/history-search-item.ts",
1585
+ "path": "src/globals/utils/rtl-utils.ts",
1430
1586
  "declarations": [
1431
1587
  {
1432
- "kind": "variable",
1433
- "name": "HistorySearchItem"
1588
+ "kind": "function",
1589
+ "name": "isDirectionRTL",
1590
+ "return": {
1591
+ "type": {
1592
+ "text": ""
1593
+ }
1594
+ },
1595
+ "description": "Determines if the document is in RTL (right-to-left) mode.\nChecks both document.dir and document.documentElement.dir for maximum compatibility."
1434
1596
  }
1435
1597
  ],
1436
1598
  "exports": [
1437
1599
  {
1438
1600
  "kind": "js",
1439
- "name": "default",
1601
+ "name": "isDirectionRTL",
1440
1602
  "declaration": {
1441
- "name": "HistorySearchItem",
1442
- "module": "src/react/history/history-search-item.ts"
1603
+ "name": "isDirectionRTL",
1604
+ "module": "src/globals/utils/rtl-utils.ts"
1443
1605
  }
1444
1606
  }
1445
1607
  ]
1446
1608
  },
1447
1609
  {
1448
1610
  "kind": "javascript-module",
1449
- "path": "src/react/history/history-shell.ts",
1611
+ "path": "src/globals/utils/uuid.ts",
1450
1612
  "declarations": [
1451
1613
  {
1452
- "kind": "variable",
1453
- "name": "HistoryShell"
1614
+ "kind": "function",
1615
+ "name": "uuid",
1616
+ "return": {
1617
+ "type": {
1618
+ "text": "string"
1619
+ }
1620
+ },
1621
+ "description": "Generates a v4 UUID. Uses `crypto.randomUUID` when available, otherwise falls back to a simple implementation."
1454
1622
  }
1455
1623
  ],
1456
1624
  "exports": [
1457
1625
  {
1458
1626
  "kind": "js",
1459
- "name": "default",
1627
+ "name": "uuid",
1460
1628
  "declaration": {
1461
- "name": "HistoryShell",
1462
- "module": "src/react/history/history-shell.ts"
1629
+ "name": "uuid",
1630
+ "module": "src/globals/utils/uuid.ts"
1463
1631
  }
1464
1632
  }
1465
1633
  ]
1466
1634
  },
1467
1635
  {
1468
1636
  "kind": "javascript-module",
1469
- "path": "src/react/history/history-toolbar.ts",
1637
+ "path": "src/react/__tests__/jest.setup.ts",
1638
+ "declarations": [],
1639
+ "exports": []
1640
+ },
1641
+ {
1642
+ "kind": "javascript-module",
1643
+ "path": "src/react/history/history-content.ts",
1470
1644
  "declarations": [
1471
1645
  {
1472
1646
  "kind": "variable",
1473
- "name": "HistoryToolbar"
1647
+ "name": "HistoryContent"
1474
1648
  }
1475
1649
  ],
1476
1650
  "exports": [
@@ -1478,505 +1652,331 @@
1478
1652
  "kind": "js",
1479
1653
  "name": "default",
1480
1654
  "declaration": {
1481
- "name": "HistoryToolbar",
1482
- "module": "src/react/history/history-toolbar.ts"
1655
+ "name": "HistoryContent",
1656
+ "module": "src/react/history/history-content.ts"
1483
1657
  }
1484
1658
  }
1485
1659
  ]
1486
1660
  },
1487
1661
  {
1488
1662
  "kind": "javascript-module",
1489
- "path": "src/react/history/index.ts",
1490
- "declarations": [],
1663
+ "path": "src/react/history/history-delete-panel.ts",
1664
+ "declarations": [
1665
+ {
1666
+ "kind": "variable",
1667
+ "name": "HistoryDeletePanel"
1668
+ }
1669
+ ],
1491
1670
  "exports": [
1492
1671
  {
1493
1672
  "kind": "js",
1494
- "name": "HistoryShell",
1673
+ "name": "default",
1495
1674
  "declaration": {
1496
- "name": "default",
1497
- "module": "./history-shell.js"
1675
+ "name": "HistoryDeletePanel",
1676
+ "module": "src/react/history/history-delete-panel.ts"
1498
1677
  }
1499
- },
1500
- {
1501
- "kind": "js",
1502
- "name": "HistoryHeader",
1503
- "declaration": {
1504
- "name": "default",
1505
- "module": "./history-header.js"
1506
- }
1507
- },
1678
+ }
1679
+ ]
1680
+ },
1681
+ {
1682
+ "kind": "javascript-module",
1683
+ "path": "src/react/history/history-header.ts",
1684
+ "declarations": [
1508
1685
  {
1509
- "kind": "js",
1510
- "name": "HistoryToolbar",
1511
- "declaration": {
1512
- "name": "default",
1513
- "module": "./history-toolbar.js"
1514
- }
1515
- },
1686
+ "kind": "variable",
1687
+ "name": "HistoryHeader"
1688
+ }
1689
+ ],
1690
+ "exports": [
1516
1691
  {
1517
1692
  "kind": "js",
1518
- "name": "HistoryContent",
1693
+ "name": "default",
1519
1694
  "declaration": {
1520
- "name": "default",
1521
- "module": "./history-content.js"
1695
+ "name": "HistoryHeader",
1696
+ "module": "src/react/history/history-header.ts"
1522
1697
  }
1523
- },
1698
+ }
1699
+ ]
1700
+ },
1701
+ {
1702
+ "kind": "javascript-module",
1703
+ "path": "src/react/history/history-loading.ts",
1704
+ "declarations": [
1524
1705
  {
1525
- "kind": "js",
1526
- "name": "HistoryLoading",
1527
- "declaration": {
1528
- "name": "default",
1529
- "module": "./history-loading.js"
1530
- }
1531
- },
1706
+ "kind": "variable",
1707
+ "name": "HistoryLoading"
1708
+ }
1709
+ ],
1710
+ "exports": [
1532
1711
  {
1533
1712
  "kind": "js",
1534
- "name": "HistoryPanel",
1713
+ "name": "default",
1535
1714
  "declaration": {
1536
- "name": "default",
1537
- "module": "./history-panel.js"
1715
+ "name": "HistoryLoading",
1716
+ "module": "src/react/history/history-loading.ts"
1538
1717
  }
1539
- },
1718
+ }
1719
+ ]
1720
+ },
1721
+ {
1722
+ "kind": "javascript-module",
1723
+ "path": "src/react/history/history-panel-item-input.ts",
1724
+ "declarations": [
1540
1725
  {
1541
- "kind": "js",
1542
- "name": "HistoryPanelMenu",
1543
- "declaration": {
1544
- "name": "default",
1545
- "module": "./history-panel-menu.js"
1546
- }
1547
- },
1726
+ "kind": "variable",
1727
+ "name": "HistoryPanelItemInput"
1728
+ }
1729
+ ],
1730
+ "exports": [
1548
1731
  {
1549
1732
  "kind": "js",
1550
- "name": "HistoryPanelItem",
1733
+ "name": "default",
1551
1734
  "declaration": {
1552
- "name": "default",
1553
- "module": "./history-panel-item.js"
1735
+ "name": "HistoryPanelItemInput",
1736
+ "module": "src/react/history/history-panel-item-input.ts"
1554
1737
  }
1555
- },
1738
+ }
1739
+ ]
1740
+ },
1741
+ {
1742
+ "kind": "javascript-module",
1743
+ "path": "src/react/history/history-panel-item.ts",
1744
+ "declarations": [
1556
1745
  {
1557
- "kind": "js",
1558
- "name": "HistoryPanelItems",
1559
- "declaration": {
1560
- "name": "default",
1561
- "module": "./history-panel-items.js"
1562
- }
1563
- },
1746
+ "kind": "variable",
1747
+ "name": "HistoryPanelItem"
1748
+ }
1749
+ ],
1750
+ "exports": [
1564
1751
  {
1565
1752
  "kind": "js",
1566
- "name": "HistorySearchItem",
1753
+ "name": "default",
1567
1754
  "declaration": {
1568
- "name": "default",
1569
- "module": "./history-search-item.js"
1755
+ "name": "HistoryPanelItem",
1756
+ "module": "src/react/history/history-panel-item.ts"
1570
1757
  }
1571
- },
1758
+ }
1759
+ ]
1760
+ },
1761
+ {
1762
+ "kind": "javascript-module",
1763
+ "path": "src/react/history/history-panel-items.ts",
1764
+ "declarations": [
1572
1765
  {
1573
- "kind": "js",
1574
- "name": "HistoryPanelItemInput",
1575
- "declaration": {
1576
- "name": "default",
1577
- "module": "./history-panel-item-input.js"
1578
- }
1579
- },
1766
+ "kind": "variable",
1767
+ "name": "HistoryPanelItems"
1768
+ }
1769
+ ],
1770
+ "exports": [
1580
1771
  {
1581
1772
  "kind": "js",
1582
- "name": "HistoryDeletePanel",
1773
+ "name": "default",
1583
1774
  "declaration": {
1584
- "name": "default",
1585
- "module": "./history-delete-panel.js"
1775
+ "name": "HistoryPanelItems",
1776
+ "module": "src/react/history/history-panel-items.ts"
1586
1777
  }
1587
1778
  }
1588
1779
  ]
1589
1780
  },
1590
1781
  {
1591
1782
  "kind": "javascript-module",
1592
- "path": "src/react/__tests__/jest.setup.ts",
1593
- "declarations": [],
1594
- "exports": []
1595
- },
1596
- {
1597
- "kind": "javascript-module",
1598
- "path": "src/globals/decorators/carbon-element.ts",
1783
+ "path": "src/react/history/history-panel-menu.ts",
1599
1784
  "declarations": [
1600
1785
  {
1601
- "kind": "function",
1602
- "name": "carbonElement",
1603
- "parameters": [
1604
- {
1605
- "name": "tagName",
1606
- "type": {
1607
- "text": "string"
1608
- },
1609
- "description": "The tag name of the custom element to define."
1610
- }
1611
- ],
1612
- "description": "Class decorator factory that defines the decorated class as a custom element.\n\n```js"
1786
+ "kind": "variable",
1787
+ "name": "HistoryPanelMenu"
1613
1788
  }
1614
1789
  ],
1615
1790
  "exports": [
1616
1791
  {
1617
- "kind": "custom-element-definition",
1618
- "name": "tagName",
1792
+ "kind": "js",
1793
+ "name": "default",
1619
1794
  "declaration": {
1620
- "name": "anonymous_0",
1621
- "module": "src/globals/decorators/carbon-element.ts"
1795
+ "name": "HistoryPanelMenu",
1796
+ "module": "src/react/history/history-panel-menu.ts"
1622
1797
  }
1623
- },
1798
+ }
1799
+ ]
1800
+ },
1801
+ {
1802
+ "kind": "javascript-module",
1803
+ "path": "src/react/history/history-panel.ts",
1804
+ "declarations": [
1624
1805
  {
1625
- "kind": "custom-element-definition",
1626
- "name": "tagName",
1627
- "declaration": {
1628
- "name": "clazz",
1629
- "module": "src/globals/decorators/carbon-element.ts"
1630
- }
1631
- },
1806
+ "kind": "variable",
1807
+ "name": "HistoryPanel"
1808
+ }
1809
+ ],
1810
+ "exports": [
1632
1811
  {
1633
1812
  "kind": "js",
1634
- "name": "carbonElement",
1813
+ "name": "default",
1635
1814
  "declaration": {
1636
- "name": "carbonElement",
1637
- "module": "src/globals/decorators/carbon-element.ts"
1815
+ "name": "HistoryPanel",
1816
+ "module": "src/react/history/history-panel.ts"
1638
1817
  }
1639
1818
  }
1640
1819
  ]
1641
1820
  },
1642
1821
  {
1643
1822
  "kind": "javascript-module",
1644
- "path": "src/globals/decorators/index.ts",
1645
- "declarations": [],
1823
+ "path": "src/react/history/history-search-item.ts",
1824
+ "declarations": [
1825
+ {
1826
+ "kind": "variable",
1827
+ "name": "HistorySearchItem"
1828
+ }
1829
+ ],
1646
1830
  "exports": [
1647
1831
  {
1648
1832
  "kind": "js",
1649
- "name": "carbonElement",
1833
+ "name": "default",
1650
1834
  "declaration": {
1651
- "name": "carbonElement",
1652
- "module": "./carbon-element.js"
1835
+ "name": "HistorySearchItem",
1836
+ "module": "src/react/history/history-search-item.ts"
1653
1837
  }
1654
1838
  }
1655
1839
  ]
1656
1840
  },
1657
1841
  {
1658
1842
  "kind": "javascript-module",
1659
- "path": "src/globals/internal/storybook-cdn.ts",
1843
+ "path": "src/react/history/history-shell.ts",
1660
1844
  "declarations": [
1661
1845
  {
1662
- "kind": "function",
1663
- "name": "cdnJs",
1664
- "parameters": [
1665
- {
1666
- "name": "components",
1667
- "type": {
1668
- "text": "Array"
1669
- },
1670
- "description": "array of components to render"
1671
- }
1672
- ],
1673
- "description": "This is the markdown block for JS via CDN"
1674
- },
1675
- {
1676
- "kind": "function",
1677
- "name": "cdnCss",
1678
- "description": "This is the markdown block for CSS via CDN"
1846
+ "kind": "variable",
1847
+ "name": "HistoryShell"
1679
1848
  }
1680
1849
  ],
1681
1850
  "exports": [
1682
1851
  {
1683
1852
  "kind": "js",
1684
- "name": "cdnJs",
1853
+ "name": "default",
1685
1854
  "declaration": {
1686
- "name": "cdnJs",
1687
- "module": "src/globals/internal/storybook-cdn.ts"
1855
+ "name": "HistoryShell",
1856
+ "module": "src/react/history/history-shell.ts"
1688
1857
  }
1689
- },
1858
+ }
1859
+ ]
1860
+ },
1861
+ {
1862
+ "kind": "javascript-module",
1863
+ "path": "src/react/history/history-toolbar.ts",
1864
+ "declarations": [
1865
+ {
1866
+ "kind": "variable",
1867
+ "name": "HistoryToolbar"
1868
+ }
1869
+ ],
1870
+ "exports": [
1690
1871
  {
1691
1872
  "kind": "js",
1692
- "name": "cdnCss",
1873
+ "name": "default",
1693
1874
  "declaration": {
1694
- "name": "cdnCss",
1695
- "module": "src/globals/internal/storybook-cdn.ts"
1875
+ "name": "HistoryToolbar",
1876
+ "module": "src/react/history/history-toolbar.ts"
1696
1877
  }
1697
1878
  }
1698
1879
  ]
1699
1880
  },
1700
1881
  {
1701
1882
  "kind": "javascript-module",
1702
- "path": "src/globals/utils/focus-utils.ts",
1703
- "declarations": [
1704
- {
1705
- "kind": "function",
1706
- "name": "getDeepActiveElement",
1707
- "return": {
1708
- "type": {
1709
- "text": ""
1710
- }
1711
- },
1712
- "description": "Gets the deepest active element, traversing through all shadow DOM boundaries.\nThis handles nested shadow roots, slotted elements, and will return the actual\nfocused element regardless of how many shadow DOM levels exist."
1713
- },
1714
- {
1715
- "kind": "function",
1716
- "name": "isElementInvisible",
1717
- "return": {
1718
- "type": {
1719
- "text": ""
1720
- }
1721
- },
1722
- "parameters": [
1723
- {
1724
- "name": "element",
1725
- "type": {
1726
- "text": "Element"
1727
- },
1728
- "description": "The DOM element to check"
1729
- },
1730
- {
1731
- "name": "exceptions",
1732
- "default": "[\"dialog\", \"[popover]\"]",
1733
- "type": {
1734
- "text": "string[]"
1735
- },
1736
- "description": "Array of selectors to ignore when checking the element (e.g., 'dialog', '[popover]')"
1737
- }
1738
- ],
1739
- "description": "Checks if an element should be ignored due to visibility or accessibility attributes."
1740
- },
1741
- {
1742
- "kind": "function",
1743
- "name": "isFocusable",
1744
- "return": {
1745
- "type": {
1746
- "text": ""
1747
- }
1748
- },
1749
- "parameters": [
1750
- {
1751
- "name": "element",
1752
- "type": {
1753
- "text": "Element"
1754
- },
1755
- "description": "The DOM element to check for focusability"
1756
- }
1757
- ],
1758
- "description": "Checks if an element is focusable. An element is considered focusable if it matches\nstandard focusable elements criteria (such as buttons, inputs, etc., that are not disabled\nand do not have a negative tabindex) or is a custom element with a shadow root that delegates focus.\nBased on https://gist.github.com/oscarmarina/9ce95f491a4c53ed01d989de4a87c0c9"
1759
- },
1883
+ "path": "src/react/history/index.ts",
1884
+ "declarations": [],
1885
+ "exports": [
1760
1886
  {
1761
- "kind": "function",
1762
- "name": "tryFocus",
1763
- "return": {
1764
- "type": {
1765
- "text": ""
1766
- }
1767
- },
1768
- "parameters": [
1769
- {
1770
- "name": "element",
1771
- "type": {
1772
- "text": "Element | null | undefined"
1773
- },
1774
- "description": "The element to attempt to focus"
1775
- },
1776
- {
1777
- "name": "exceptions",
1778
- "optional": true,
1779
- "type": {
1780
- "text": "string[]"
1781
- },
1782
- "description": "Array of selectors to ignore when checking visibility (e.g., 'dialog', '[popover]')"
1783
- }
1784
- ],
1785
- "description": "Attempts to focus an element if it's focusable, visible, and not disabled.\nThis is an enhanced version that checks visibility, accessibility attributes,\nand proper focusability before attempting to set focus. It is shadow DOM aware\nand handles slotted elements correctly."
1887
+ "kind": "js",
1888
+ "name": "HistoryShell",
1889
+ "declaration": {
1890
+ "name": "default",
1891
+ "module": "./history-shell.js"
1892
+ }
1786
1893
  },
1787
1894
  {
1788
- "kind": "function",
1789
- "name": "walkComposedTree",
1790
- "return": {
1791
- "type": {
1792
- "text": ""
1793
- }
1794
- },
1795
- "parameters": [
1796
- {
1797
- "name": "node",
1798
- "type": {
1799
- "text": "Node"
1800
- },
1801
- "description": "The root node for traversal"
1802
- },
1803
- {
1804
- "name": "whatToShow",
1805
- "default": "0",
1806
- "description": "NodeFilter code for node types to include (use 0 to retrieve all nodes)"
1807
- },
1808
- {
1809
- "name": "filter",
1810
- "default": "() => true",
1811
- "type": {
1812
- "text": "(node: Node) => boolean"
1813
- },
1814
- "description": "Filters nodes. Child nodes are considered even if parent does not satisfy the filter"
1815
- },
1816
- {
1817
- "name": "skipNode",
1818
- "default": "() => false",
1819
- "type": {
1820
- "text": "(node: Node) => boolean"
1821
- },
1822
- "description": "Determines whether to skip a node and its children"
1823
- }
1824
- ],
1825
- "description": "Traverse the composed tree from the root, selecting elements that meet the provided filter criteria.\nThis function properly handles Shadow DOM boundaries.\nBased on https://github.com/JanMiksovsky/elix/blob/main/src/core/dom.js#L320"
1895
+ "kind": "js",
1896
+ "name": "HistoryHeader",
1897
+ "declaration": {
1898
+ "name": "default",
1899
+ "module": "./history-header.js"
1900
+ }
1826
1901
  },
1827
1902
  {
1828
- "kind": "function",
1829
- "name": "getFirstAndLastFocusableChildren",
1830
- "return": {
1831
- "type": {
1832
- "text": ""
1833
- }
1834
- },
1835
- "parameters": [
1836
- {
1837
- "name": "walker",
1838
- "type": {
1839
- "text": "IterableIterator<HTMLElement>"
1840
- },
1841
- "description": "The TreeWalker object used to traverse the node's children"
1842
- }
1843
- ],
1844
- "description": "Retrieves the first and last focusable children of a node using a TreeWalker."
1903
+ "kind": "js",
1904
+ "name": "HistoryToolbar",
1905
+ "declaration": {
1906
+ "name": "default",
1907
+ "module": "./history-toolbar.js"
1908
+ }
1845
1909
  },
1846
- {
1847
- "kind": "function",
1848
- "name": "focusElementAfterRepaint",
1849
- "return": {
1850
- "type": {
1851
- "text": "void"
1852
- }
1853
- },
1854
- "parameters": [
1855
- {
1856
- "name": "searchRoot",
1857
- "type": {
1858
- "text": "Document | Element | ShadowRoot | DocumentFragment"
1859
- },
1860
- "description": "Root to query (`Element`, `ShadowRoot`, `Document`, or `DocumentFragment`, e.g. Lit `renderRoot`)"
1861
- },
1862
- {
1863
- "name": "selector",
1864
- "type": {
1865
- "text": "string"
1866
- },
1867
- "description": "CSS selector that resolves to the node to focus."
1868
- }
1869
- ],
1870
- "description": "Finds a descendant of `searchRoot` via `selector` and focuses it after the next\ntwo animation frames. Use when DOM updates (Lit, React, reorder) replace or move\nnodes so the previous focused element is detached (e.g. list pin/unpin).\n\nTries tryFocus first for visibility/focusability checks; if that does\nnot take focus (e.g. some custom element hosts), falls back to HTMLElement.focus."
1871
- }
1872
- ],
1873
- "exports": [
1874
1910
  {
1875
1911
  "kind": "js",
1876
- "name": "getDeepActiveElement",
1912
+ "name": "HistoryContent",
1877
1913
  "declaration": {
1878
- "name": "getDeepActiveElement",
1879
- "module": "src/globals/utils/focus-utils.ts"
1914
+ "name": "default",
1915
+ "module": "./history-content.js"
1880
1916
  }
1881
1917
  },
1882
1918
  {
1883
1919
  "kind": "js",
1884
- "name": "isElementInvisible",
1920
+ "name": "HistoryLoading",
1885
1921
  "declaration": {
1886
- "name": "isElementInvisible",
1887
- "module": "src/globals/utils/focus-utils.ts"
1922
+ "name": "default",
1923
+ "module": "./history-loading.js"
1888
1924
  }
1889
1925
  },
1890
1926
  {
1891
1927
  "kind": "js",
1892
- "name": "isFocusable",
1928
+ "name": "HistoryPanel",
1893
1929
  "declaration": {
1894
- "name": "isFocusable",
1895
- "module": "src/globals/utils/focus-utils.ts"
1930
+ "name": "default",
1931
+ "module": "./history-panel.js"
1896
1932
  }
1897
1933
  },
1898
1934
  {
1899
1935
  "kind": "js",
1900
- "name": "tryFocus",
1936
+ "name": "HistoryPanelMenu",
1901
1937
  "declaration": {
1902
- "name": "tryFocus",
1903
- "module": "src/globals/utils/focus-utils.ts"
1938
+ "name": "default",
1939
+ "module": "./history-panel-menu.js"
1904
1940
  }
1905
1941
  },
1906
1942
  {
1907
1943
  "kind": "js",
1908
- "name": "walkComposedTree",
1944
+ "name": "HistoryPanelItem",
1909
1945
  "declaration": {
1910
- "name": "walkComposedTree",
1911
- "module": "src/globals/utils/focus-utils.ts"
1946
+ "name": "default",
1947
+ "module": "./history-panel-item.js"
1912
1948
  }
1913
1949
  },
1914
1950
  {
1915
1951
  "kind": "js",
1916
- "name": "getFirstAndLastFocusableChildren",
1952
+ "name": "HistoryPanelItems",
1917
1953
  "declaration": {
1918
- "name": "getFirstAndLastFocusableChildren",
1919
- "module": "src/globals/utils/focus-utils.ts"
1954
+ "name": "default",
1955
+ "module": "./history-panel-items.js"
1920
1956
  }
1921
1957
  },
1922
1958
  {
1923
1959
  "kind": "js",
1924
- "name": "focusElementAfterRepaint",
1960
+ "name": "HistorySearchItem",
1925
1961
  "declaration": {
1926
- "name": "focusElementAfterRepaint",
1927
- "module": "src/globals/utils/focus-utils.ts"
1962
+ "name": "default",
1963
+ "module": "./history-search-item.js"
1928
1964
  }
1929
- }
1930
- ]
1931
- },
1932
- {
1933
- "kind": "javascript-module",
1934
- "path": "src/globals/utils/rtl-utils.ts",
1935
- "declarations": [
1936
- {
1937
- "kind": "function",
1938
- "name": "isDirectionRTL",
1939
- "return": {
1940
- "type": {
1941
- "text": ""
1942
- }
1943
- },
1944
- "description": "Determines if the document is in RTL (right-to-left) mode.\nChecks both document.dir and document.documentElement.dir for maximum compatibility."
1945
- }
1946
- ],
1947
- "exports": [
1965
+ },
1948
1966
  {
1949
1967
  "kind": "js",
1950
- "name": "isDirectionRTL",
1968
+ "name": "HistoryPanelItemInput",
1951
1969
  "declaration": {
1952
- "name": "isDirectionRTL",
1953
- "module": "src/globals/utils/rtl-utils.ts"
1970
+ "name": "default",
1971
+ "module": "./history-panel-item-input.js"
1954
1972
  }
1955
- }
1956
- ]
1957
- },
1958
- {
1959
- "kind": "javascript-module",
1960
- "path": "src/globals/utils/uuid.ts",
1961
- "declarations": [
1962
- {
1963
- "kind": "function",
1964
- "name": "uuid",
1965
- "return": {
1966
- "type": {
1967
- "text": "string"
1968
- }
1969
- },
1970
- "description": "Generates a v4 UUID. Uses `crypto.randomUUID` when available, otherwise falls back to a simple implementation."
1971
- }
1972
- ],
1973
- "exports": [
1973
+ },
1974
1974
  {
1975
1975
  "kind": "js",
1976
- "name": "uuid",
1976
+ "name": "HistoryDeletePanel",
1977
1977
  "declaration": {
1978
- "name": "uuid",
1979
- "module": "src/globals/utils/uuid.ts"
1978
+ "name": "default",
1979
+ "module": "./history-delete-panel.js"
1980
1980
  }
1981
1981
  }
1982
1982
  ]
@@ -2448,103 +2448,248 @@
2448
2448
  },
2449
2449
  {
2450
2450
  "kind": "field",
2451
- "name": "expanded",
2451
+ "name": "expanded",
2452
+ "type": {
2453
+ "text": "boolean"
2454
+ },
2455
+ "default": "false",
2456
+ "description": "Controlled expanded status",
2457
+ "attribute": "expanded"
2458
+ },
2459
+ {
2460
+ "kind": "field",
2461
+ "name": "contentId",
2462
+ "privacy": "private",
2463
+ "default": "`transcript-content-${Math.random().toString(36).substr(2, 9)}`",
2464
+ "description": "Unique ID for aria-controls relationship"
2465
+ },
2466
+ {
2467
+ "kind": "method",
2468
+ "name": "handleToggle",
2469
+ "privacy": "private",
2470
+ "return": {
2471
+ "type": {
2472
+ "text": "void"
2473
+ }
2474
+ },
2475
+ "description": "Toggle transcript visibility\nDispatches event for parent to handle state change"
2476
+ }
2477
+ ],
2478
+ "events": [
2479
+ {
2480
+ "name": "cds-aichat-transcript-toggle",
2481
+ "type": {
2482
+ "text": "CustomEvent"
2483
+ },
2484
+ "description": "Fired when transcript is expanded or collapsed"
2485
+ }
2486
+ ],
2487
+ "attributes": [
2488
+ {
2489
+ "name": "text",
2490
+ "type": {
2491
+ "text": "string"
2492
+ },
2493
+ "default": "\"\"",
2494
+ "description": "The transcript text (supports markdown)",
2495
+ "fieldName": "text"
2496
+ },
2497
+ {
2498
+ "name": "label",
2499
+ "type": {
2500
+ "text": "string"
2501
+ },
2502
+ "default": "\"Transcript\"",
2503
+ "description": "Optional label for the transcript (defaults to \"Transcript\")",
2504
+ "fieldName": "label"
2505
+ },
2506
+ {
2507
+ "name": "language",
2508
+ "type": {
2509
+ "text": "string"
2510
+ },
2511
+ "default": "\"\"",
2512
+ "description": "Optional language code",
2513
+ "fieldName": "language"
2514
+ },
2515
+ {
2516
+ "name": "show-label",
2517
+ "type": {
2518
+ "text": "string"
2519
+ },
2520
+ "default": "\"Show\"",
2521
+ "description": "Label for showing transcript",
2522
+ "fieldName": "showLabel"
2523
+ },
2524
+ {
2525
+ "name": "hide-label",
2526
+ "type": {
2527
+ "text": "string"
2528
+ },
2529
+ "default": "\"Hide\"",
2530
+ "description": "Label for hiding transcript",
2531
+ "fieldName": "hideLabel"
2532
+ },
2533
+ {
2534
+ "name": "expanded",
2535
+ "type": {
2536
+ "text": "boolean"
2537
+ },
2538
+ "default": "false",
2539
+ "description": "Controlled expanded status",
2540
+ "fieldName": "expanded"
2541
+ }
2542
+ ],
2543
+ "superclass": {
2544
+ "name": "LitElement",
2545
+ "package": "lit"
2546
+ },
2547
+ "tagName": "cds-aichat-transcript",
2548
+ "customElement": true
2549
+ }
2550
+ ],
2551
+ "exports": [
2552
+ {
2553
+ "kind": "js",
2554
+ "name": "default",
2555
+ "declaration": {
2556
+ "name": "Transcript",
2557
+ "module": "src/components/audio-player/src/transcript.ts"
2558
+ }
2559
+ }
2560
+ ]
2561
+ },
2562
+ {
2563
+ "kind": "javascript-module",
2564
+ "path": "src/components/carousel/src/carousel.ts",
2565
+ "declarations": [
2566
+ {
2567
+ "kind": "class",
2568
+ "description": "Carousel component",
2569
+ "name": "CDSAICarousel",
2570
+ "slots": [
2571
+ {
2572
+ "description": "The body",
2573
+ "name": "body"
2574
+ }
2575
+ ],
2576
+ "members": [
2577
+ {
2578
+ "kind": "field",
2579
+ "name": "nextBtnText",
2580
+ "type": {
2581
+ "text": "string | undefined"
2582
+ },
2583
+ "description": "Text for the next button",
2584
+ "attribute": "nextBtnText"
2585
+ },
2586
+ {
2587
+ "kind": "field",
2588
+ "name": "previousBtnText",
2589
+ "type": {
2590
+ "text": "string | undefined"
2591
+ },
2592
+ "description": "Text for the previous button",
2593
+ "attribute": "previousBtnText"
2594
+ },
2595
+ {
2596
+ "kind": "field",
2597
+ "name": "container",
2598
+ "type": {
2599
+ "text": "Array<HTMLElement> | undefined"
2600
+ },
2601
+ "privacy": "private"
2602
+ },
2603
+ {
2604
+ "kind": "field",
2605
+ "name": "carousel",
2606
+ "type": {
2607
+ "text": "InitCarousel | undefined"
2608
+ },
2609
+ "privacy": "private"
2610
+ },
2611
+ {
2612
+ "kind": "field",
2613
+ "name": "_currentIndex",
2614
+ "type": {
2615
+ "text": "number"
2616
+ },
2617
+ "privacy": "private",
2618
+ "default": "0"
2619
+ },
2620
+ {
2621
+ "kind": "field",
2622
+ "name": "_lastIndex",
2452
2623
  "type": {
2453
- "text": "boolean"
2624
+ "text": "number"
2454
2625
  },
2455
- "default": "false",
2456
- "description": "Controlled expanded status",
2457
- "attribute": "expanded"
2626
+ "privacy": "private",
2627
+ "default": "0"
2458
2628
  },
2459
2629
  {
2460
- "kind": "field",
2461
- "name": "contentId",
2462
- "privacy": "private",
2463
- "default": "`transcript-content-${Math.random().toString(36).substr(2, 9)}`",
2464
- "description": "Unique ID for aria-controls relationship"
2630
+ "kind": "method",
2631
+ "name": "_handlePrev",
2632
+ "privacy": "private"
2465
2633
  },
2466
2634
  {
2467
2635
  "kind": "method",
2468
- "name": "handleToggle",
2636
+ "name": "_handleNext",
2637
+ "privacy": "private"
2638
+ },
2639
+ {
2640
+ "kind": "method",
2641
+ "name": "_dispatchChange",
2469
2642
  "privacy": "private",
2470
- "return": {
2471
- "type": {
2472
- "text": "void"
2643
+ "parameters": [
2644
+ {
2645
+ "name": "data",
2646
+ "type": {
2647
+ "text": "CarouselResponse"
2648
+ }
2473
2649
  }
2474
- },
2475
- "description": "Toggle transcript visibility\nDispatches event for parent to handle state change"
2650
+ ]
2651
+ },
2652
+ {
2653
+ "kind": "field",
2654
+ "name": "eventOnChange",
2655
+ "static": true,
2656
+ "readonly": true
2476
2657
  }
2477
2658
  ],
2478
2659
  "events": [
2479
2660
  {
2480
- "name": "cds-aichat-transcript-toggle",
2481
2661
  "type": {
2482
2662
  "text": "CustomEvent"
2483
- },
2484
- "description": "Fired when transcript is expanded or collapsed"
2663
+ }
2664
+ },
2665
+ {
2666
+ "description": "custom event for when the carousel changes",
2667
+ "name": "cds-aichat-carousel-onchange"
2485
2668
  }
2486
2669
  ],
2487
2670
  "attributes": [
2488
2671
  {
2489
- "name": "text",
2490
- "type": {
2491
- "text": "string"
2492
- },
2493
- "default": "\"\"",
2494
- "description": "The transcript text (supports markdown)",
2495
- "fieldName": "text"
2496
- },
2497
- {
2498
- "name": "label",
2499
- "type": {
2500
- "text": "string"
2501
- },
2502
- "default": "\"Transcript\"",
2503
- "description": "Optional label for the transcript (defaults to \"Transcript\")",
2504
- "fieldName": "label"
2505
- },
2506
- {
2507
- "name": "language",
2508
- "type": {
2509
- "text": "string"
2510
- },
2511
- "default": "\"\"",
2512
- "description": "Optional language code",
2513
- "fieldName": "language"
2514
- },
2515
- {
2516
- "name": "show-label",
2517
- "type": {
2518
- "text": "string"
2519
- },
2520
- "default": "\"Show\"",
2521
- "description": "Label for showing transcript",
2522
- "fieldName": "showLabel"
2523
- },
2524
- {
2525
- "name": "hide-label",
2672
+ "name": "nextBtnText",
2526
2673
  "type": {
2527
- "text": "string"
2674
+ "text": "string | undefined"
2528
2675
  },
2529
- "default": "\"Hide\"",
2530
- "description": "Label for hiding transcript",
2531
- "fieldName": "hideLabel"
2676
+ "description": "Text for the next button",
2677
+ "fieldName": "nextBtnText"
2532
2678
  },
2533
2679
  {
2534
- "name": "expanded",
2680
+ "name": "previousBtnText",
2535
2681
  "type": {
2536
- "text": "boolean"
2682
+ "text": "string | undefined"
2537
2683
  },
2538
- "default": "false",
2539
- "description": "Controlled expanded status",
2540
- "fieldName": "expanded"
2684
+ "description": "Text for the previous button",
2685
+ "fieldName": "previousBtnText"
2541
2686
  }
2542
2687
  ],
2543
2688
  "superclass": {
2544
2689
  "name": "LitElement",
2545
2690
  "package": "lit"
2546
2691
  },
2547
- "tagName": "cds-aichat-transcript",
2692
+ "tagName": "cds-aichat-carousel",
2548
2693
  "customElement": true
2549
2694
  }
2550
2695
  ],
@@ -2553,8 +2698,8 @@
2553
2698
  "kind": "js",
2554
2699
  "name": "default",
2555
2700
  "declaration": {
2556
- "name": "Transcript",
2557
- "module": "src/components/audio-player/src/transcript.ts"
2701
+ "name": "CDSAICarousel",
2702
+ "module": "src/components/carousel/src/carousel.ts"
2558
2703
  }
2559
2704
  }
2560
2705
  ]
@@ -2804,151 +2949,6 @@
2804
2949
  }
2805
2950
  ]
2806
2951
  },
2807
- {
2808
- "kind": "javascript-module",
2809
- "path": "src/components/carousel/src/carousel.ts",
2810
- "declarations": [
2811
- {
2812
- "kind": "class",
2813
- "description": "Carousel component",
2814
- "name": "CDSAICarousel",
2815
- "slots": [
2816
- {
2817
- "description": "The body",
2818
- "name": "body"
2819
- }
2820
- ],
2821
- "members": [
2822
- {
2823
- "kind": "field",
2824
- "name": "nextBtnText",
2825
- "type": {
2826
- "text": "string | undefined"
2827
- },
2828
- "description": "Text for the next button",
2829
- "attribute": "nextBtnText"
2830
- },
2831
- {
2832
- "kind": "field",
2833
- "name": "previousBtnText",
2834
- "type": {
2835
- "text": "string | undefined"
2836
- },
2837
- "description": "Text for the previous button",
2838
- "attribute": "previousBtnText"
2839
- },
2840
- {
2841
- "kind": "field",
2842
- "name": "container",
2843
- "type": {
2844
- "text": "Array<HTMLElement> | undefined"
2845
- },
2846
- "privacy": "private"
2847
- },
2848
- {
2849
- "kind": "field",
2850
- "name": "carousel",
2851
- "type": {
2852
- "text": "InitCarousel | undefined"
2853
- },
2854
- "privacy": "private"
2855
- },
2856
- {
2857
- "kind": "field",
2858
- "name": "_currentIndex",
2859
- "type": {
2860
- "text": "number"
2861
- },
2862
- "privacy": "private",
2863
- "default": "0"
2864
- },
2865
- {
2866
- "kind": "field",
2867
- "name": "_lastIndex",
2868
- "type": {
2869
- "text": "number"
2870
- },
2871
- "privacy": "private",
2872
- "default": "0"
2873
- },
2874
- {
2875
- "kind": "method",
2876
- "name": "_handlePrev",
2877
- "privacy": "private"
2878
- },
2879
- {
2880
- "kind": "method",
2881
- "name": "_handleNext",
2882
- "privacy": "private"
2883
- },
2884
- {
2885
- "kind": "method",
2886
- "name": "_dispatchChange",
2887
- "privacy": "private",
2888
- "parameters": [
2889
- {
2890
- "name": "data",
2891
- "type": {
2892
- "text": "CarouselResponse"
2893
- }
2894
- }
2895
- ]
2896
- },
2897
- {
2898
- "kind": "field",
2899
- "name": "eventOnChange",
2900
- "static": true,
2901
- "readonly": true
2902
- }
2903
- ],
2904
- "events": [
2905
- {
2906
- "type": {
2907
- "text": "CustomEvent"
2908
- }
2909
- },
2910
- {
2911
- "description": "custom event for when the carousel changes",
2912
- "name": "cds-aichat-carousel-onchange"
2913
- }
2914
- ],
2915
- "attributes": [
2916
- {
2917
- "name": "nextBtnText",
2918
- "type": {
2919
- "text": "string | undefined"
2920
- },
2921
- "description": "Text for the next button",
2922
- "fieldName": "nextBtnText"
2923
- },
2924
- {
2925
- "name": "previousBtnText",
2926
- "type": {
2927
- "text": "string | undefined"
2928
- },
2929
- "description": "Text for the previous button",
2930
- "fieldName": "previousBtnText"
2931
- }
2932
- ],
2933
- "superclass": {
2934
- "name": "LitElement",
2935
- "package": "lit"
2936
- },
2937
- "tagName": "cds-aichat-carousel",
2938
- "customElement": true
2939
- }
2940
- ],
2941
- "exports": [
2942
- {
2943
- "kind": "js",
2944
- "name": "default",
2945
- "declaration": {
2946
- "name": "CDSAICarousel",
2947
- "module": "src/components/carousel/src/carousel.ts"
2948
- }
2949
- }
2950
- ]
2951
- },
2952
2952
  {
2953
2953
  "kind": "javascript-module",
2954
2954
  "path": "src/components/chain-of-thought/src/chain-of-thought-step.ts",