@aparte/core 1.3.0 → 1.4.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.
- package/dist/components/chat/aparte-chat.d.ts +4 -0
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +7 -0
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/composer/index.d.ts +1 -0
- package/dist/components/composer/index.d.ts.map +1 -1
- package/dist/components/composer/type-to-focus.d.ts +29 -0
- package/dist/components/composer/type-to-focus.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/custom-elements.json +1561 -1471
- package/dist/generated/element-attributes.d.ts +4 -0
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +87 -10
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js.map +1 -1
- package/package.json +2 -2
|
@@ -1425,6 +1425,14 @@
|
|
|
1425
1425
|
"module": "./components/index.js"
|
|
1426
1426
|
}
|
|
1427
1427
|
},
|
|
1428
|
+
{
|
|
1429
|
+
"kind": "js",
|
|
1430
|
+
"name": "AparteTypeToFocus",
|
|
1431
|
+
"declaration": {
|
|
1432
|
+
"name": "AparteTypeToFocus",
|
|
1433
|
+
"module": "./components/index.js"
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1428
1436
|
{
|
|
1429
1437
|
"kind": "js",
|
|
1430
1438
|
"name": "AparteActionClickEventDetail",
|
|
@@ -4267,6 +4275,14 @@
|
|
|
4267
4275
|
"module": "./components/index.js"
|
|
4268
4276
|
}
|
|
4269
4277
|
},
|
|
4278
|
+
{
|
|
4279
|
+
"kind": "js",
|
|
4280
|
+
"name": "AparteTypeToFocus",
|
|
4281
|
+
"declaration": {
|
|
4282
|
+
"name": "AparteTypeToFocus",
|
|
4283
|
+
"module": "./components/index.js"
|
|
4284
|
+
}
|
|
4285
|
+
},
|
|
4270
4286
|
{
|
|
4271
4287
|
"kind": "js",
|
|
4272
4288
|
"name": "AparteActionClickEventDetail",
|
|
@@ -7351,474 +7367,99 @@
|
|
|
7351
7367
|
},
|
|
7352
7368
|
{
|
|
7353
7369
|
"kind": "javascript-module",
|
|
7354
|
-
"path": "src/
|
|
7370
|
+
"path": "src/config/action-provider.ts",
|
|
7355
7371
|
"declarations": [],
|
|
7356
|
-
"exports": [
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
"module": "./chat/index.js"
|
|
7363
|
-
}
|
|
7364
|
-
},
|
|
7365
|
-
{
|
|
7366
|
-
"kind": "js",
|
|
7367
|
-
"name": "AparteChatBubble",
|
|
7368
|
-
"declaration": {
|
|
7369
|
-
"name": "AparteChatBubble",
|
|
7370
|
-
"module": "./bubble/index.js"
|
|
7371
|
-
}
|
|
7372
|
-
},
|
|
7373
|
-
{
|
|
7374
|
-
"kind": "js",
|
|
7375
|
-
"name": "populateBubbleFromMessage",
|
|
7376
|
-
"declaration": {
|
|
7377
|
-
"name": "populateBubbleFromMessage",
|
|
7378
|
-
"module": "./bubble/index.js"
|
|
7379
|
-
}
|
|
7380
|
-
},
|
|
7381
|
-
{
|
|
7382
|
-
"kind": "js",
|
|
7383
|
-
"name": "SyncableBubble",
|
|
7384
|
-
"declaration": {
|
|
7385
|
-
"name": "SyncableBubble",
|
|
7386
|
-
"module": "./bubble/index.js"
|
|
7387
|
-
}
|
|
7388
|
-
},
|
|
7389
|
-
{
|
|
7390
|
-
"kind": "js",
|
|
7391
|
-
"name": "AparteChatStatus",
|
|
7392
|
-
"declaration": {
|
|
7393
|
-
"name": "AparteChatStatus",
|
|
7394
|
-
"module": "./status/index.js"
|
|
7395
|
-
}
|
|
7396
|
-
},
|
|
7397
|
-
{
|
|
7398
|
-
"kind": "js",
|
|
7399
|
-
"name": "AparteChatViewport",
|
|
7400
|
-
"declaration": {
|
|
7401
|
-
"name": "AparteChatViewport",
|
|
7402
|
-
"module": "./viewport/index.js"
|
|
7403
|
-
}
|
|
7404
|
-
},
|
|
7405
|
-
{
|
|
7406
|
-
"kind": "js",
|
|
7407
|
-
"name": "AparteComposer",
|
|
7408
|
-
"declaration": {
|
|
7409
|
-
"name": "AparteComposer",
|
|
7410
|
-
"module": "./composer/index.js"
|
|
7411
|
-
}
|
|
7412
|
-
},
|
|
7413
|
-
{
|
|
7414
|
-
"kind": "js",
|
|
7415
|
-
"name": "AparteComposerInput",
|
|
7416
|
-
"declaration": {
|
|
7417
|
-
"name": "AparteComposerInput",
|
|
7418
|
-
"module": "./composer/index.js"
|
|
7419
|
-
}
|
|
7420
|
-
},
|
|
7421
|
-
{
|
|
7422
|
-
"kind": "js",
|
|
7423
|
-
"name": "AparteComposerSend",
|
|
7424
|
-
"declaration": {
|
|
7425
|
-
"name": "AparteComposerSend",
|
|
7426
|
-
"module": "./composer/index.js"
|
|
7427
|
-
}
|
|
7428
|
-
},
|
|
7429
|
-
{
|
|
7430
|
-
"kind": "js",
|
|
7431
|
-
"name": "AparteComposerCancel",
|
|
7432
|
-
"declaration": {
|
|
7433
|
-
"name": "AparteComposerCancel",
|
|
7434
|
-
"module": "./composer/index.js"
|
|
7435
|
-
}
|
|
7436
|
-
},
|
|
7437
|
-
{
|
|
7438
|
-
"kind": "js",
|
|
7439
|
-
"name": "AparteComposerAttachments",
|
|
7440
|
-
"declaration": {
|
|
7441
|
-
"name": "AparteComposerAttachments",
|
|
7442
|
-
"module": "./composer/index.js"
|
|
7443
|
-
}
|
|
7444
|
-
},
|
|
7445
|
-
{
|
|
7446
|
-
"kind": "js",
|
|
7447
|
-
"name": "AparteComposerAddAttachment",
|
|
7448
|
-
"declaration": {
|
|
7449
|
-
"name": "AparteComposerAddAttachment",
|
|
7450
|
-
"module": "./composer/index.js"
|
|
7451
|
-
}
|
|
7452
|
-
},
|
|
7453
|
-
{
|
|
7454
|
-
"kind": "js",
|
|
7455
|
-
"name": "AparteComposerAction",
|
|
7456
|
-
"declaration": {
|
|
7457
|
-
"name": "AparteComposerAction",
|
|
7458
|
-
"module": "./composer/index.js"
|
|
7459
|
-
}
|
|
7460
|
-
},
|
|
7461
|
-
{
|
|
7462
|
-
"kind": "js",
|
|
7463
|
-
"name": "AparteComposerToolbar",
|
|
7464
|
-
"declaration": {
|
|
7465
|
-
"name": "AparteComposerToolbar",
|
|
7466
|
-
"module": "./composer/index.js"
|
|
7467
|
-
}
|
|
7468
|
-
},
|
|
7469
|
-
{
|
|
7470
|
-
"kind": "js",
|
|
7471
|
-
"name": "AparteComposerEventMap",
|
|
7472
|
-
"declaration": {
|
|
7473
|
-
"name": "AparteComposerEventMap",
|
|
7474
|
-
"module": "./composer/index.js"
|
|
7475
|
-
}
|
|
7476
|
-
},
|
|
7477
|
-
{
|
|
7478
|
-
"kind": "js",
|
|
7479
|
-
"name": "AparteComposerEventType",
|
|
7480
|
-
"declaration": {
|
|
7481
|
-
"name": "AparteComposerEventType",
|
|
7482
|
-
"module": "./composer/index.js"
|
|
7483
|
-
}
|
|
7484
|
-
},
|
|
7485
|
-
{
|
|
7486
|
-
"kind": "js",
|
|
7487
|
-
"name": "AparteComposerState",
|
|
7488
|
-
"declaration": {
|
|
7489
|
-
"name": "AparteComposerState",
|
|
7490
|
-
"module": "./composer/index.js"
|
|
7491
|
-
}
|
|
7492
|
-
},
|
|
7493
|
-
{
|
|
7494
|
-
"kind": "js",
|
|
7495
|
-
"name": "AparteComposerChangeEventDetail",
|
|
7496
|
-
"declaration": {
|
|
7497
|
-
"name": "AparteComposerChangeEventDetail",
|
|
7498
|
-
"module": "./composer/index.js"
|
|
7499
|
-
}
|
|
7500
|
-
},
|
|
7372
|
+
"exports": []
|
|
7373
|
+
},
|
|
7374
|
+
{
|
|
7375
|
+
"kind": "javascript-module",
|
|
7376
|
+
"path": "src/config/aparte-config.ts",
|
|
7377
|
+
"declarations": [
|
|
7501
7378
|
{
|
|
7502
|
-
"kind": "
|
|
7503
|
-
"name": "
|
|
7504
|
-
"
|
|
7505
|
-
"
|
|
7506
|
-
|
|
7507
|
-
}
|
|
7379
|
+
"kind": "variable",
|
|
7380
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
7381
|
+
"type": {
|
|
7382
|
+
"text": "{\n copy: false,\n retry: false,\n edit: false,\n feedback: false,\n info: false,\n}"
|
|
7383
|
+
},
|
|
7384
|
+
"default": "{ copy: false, retry: false, edit: false, feedback: false, info: false, }",
|
|
7385
|
+
"description": "The bubble-action defaults — all off: a message carries no button until the app asks for one.\n\nRetry and edit only do something when a host (`AparteClient`) re-sends and rewrites,\nand feedback/info only when the app listens for `aparte-feedback` /\n`aparte-message-info`; rendering them unconditionally showed dead buttons in every\ndisplay-only integration — ours included, which is how we found it. Copy is the one\ncore could honor alone, and it is off too: a help widget or a support chat is read,\nnot quoted, and a chat product that wants it turns it on in one line\n(`setBubbleActions({ copy: true })`).\n\nExported so a consumer can read the defaults instead of hard-coding them."
|
|
7508
7386
|
},
|
|
7509
7387
|
{
|
|
7510
|
-
"kind": "
|
|
7511
|
-
"name": "
|
|
7512
|
-
"
|
|
7513
|
-
"
|
|
7514
|
-
|
|
7515
|
-
}
|
|
7388
|
+
"kind": "variable",
|
|
7389
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
7390
|
+
"type": {
|
|
7391
|
+
"text": "{\n attachmentPreview: false,\n filePreview: false,\n}"
|
|
7392
|
+
},
|
|
7393
|
+
"default": "{ attachmentPreview: false, filePreview: false, }",
|
|
7394
|
+
"description": "The host-handler declarations — nothing declared.\n\nSame rule as APARTE_DEFAULT_BUBBLE_ACTIONS, applied outside the action bar: an\nimage tile you can click is a request core forwards to the app. Undeclared, it is\nnot rendered (and the tile is not even signalled as clickable) instead of doing\nnothing."
|
|
7516
7395
|
},
|
|
7517
7396
|
{
|
|
7518
|
-
"kind": "
|
|
7519
|
-
"name": "
|
|
7520
|
-
"
|
|
7521
|
-
"
|
|
7522
|
-
|
|
7523
|
-
|
|
7397
|
+
"kind": "function",
|
|
7398
|
+
"name": "renderingVersionOf",
|
|
7399
|
+
"return": {
|
|
7400
|
+
"type": {
|
|
7401
|
+
"text": "number"
|
|
7402
|
+
}
|
|
7403
|
+
},
|
|
7404
|
+
"parameters": [
|
|
7405
|
+
{
|
|
7406
|
+
"name": "cfg",
|
|
7407
|
+
"type": {
|
|
7408
|
+
"text": "AparteConfig"
|
|
7409
|
+
}
|
|
7410
|
+
}
|
|
7411
|
+
]
|
|
7524
7412
|
},
|
|
7525
7413
|
{
|
|
7526
|
-
"kind": "
|
|
7527
|
-
"name": "
|
|
7528
|
-
"
|
|
7529
|
-
"
|
|
7530
|
-
|
|
7531
|
-
|
|
7414
|
+
"kind": "function",
|
|
7415
|
+
"name": "onRenderersChange",
|
|
7416
|
+
"return": {
|
|
7417
|
+
"type": {
|
|
7418
|
+
"text": "() => void"
|
|
7419
|
+
}
|
|
7420
|
+
},
|
|
7421
|
+
"parameters": [
|
|
7422
|
+
{
|
|
7423
|
+
"name": "listener",
|
|
7424
|
+
"type": {
|
|
7425
|
+
"text": "(cfg: AparteConfig) => void"
|
|
7426
|
+
}
|
|
7427
|
+
}
|
|
7428
|
+
]
|
|
7532
7429
|
},
|
|
7533
7430
|
{
|
|
7534
|
-
"kind": "
|
|
7535
|
-
"name": "
|
|
7536
|
-
"
|
|
7537
|
-
"
|
|
7538
|
-
|
|
7539
|
-
|
|
7431
|
+
"kind": "function",
|
|
7432
|
+
"name": "notifyRenderersChanged",
|
|
7433
|
+
"return": {
|
|
7434
|
+
"type": {
|
|
7435
|
+
"text": "void"
|
|
7436
|
+
}
|
|
7437
|
+
},
|
|
7438
|
+
"parameters": [
|
|
7439
|
+
{
|
|
7440
|
+
"name": "cfg",
|
|
7441
|
+
"type": {
|
|
7442
|
+
"text": "AparteConfig"
|
|
7443
|
+
}
|
|
7444
|
+
}
|
|
7445
|
+
]
|
|
7540
7446
|
},
|
|
7541
7447
|
{
|
|
7542
|
-
"kind": "
|
|
7543
|
-
"
|
|
7544
|
-
"
|
|
7545
|
-
|
|
7546
|
-
"module": "./conversation-list/index.js"
|
|
7547
|
-
}
|
|
7548
|
-
},
|
|
7549
|
-
{
|
|
7550
|
-
"kind": "js",
|
|
7551
|
-
"name": "AparteConversationArchiveDetail",
|
|
7552
|
-
"declaration": {
|
|
7553
|
-
"name": "AparteConversationArchiveDetail",
|
|
7554
|
-
"module": "./conversation-list/index.js"
|
|
7555
|
-
}
|
|
7556
|
-
},
|
|
7557
|
-
{
|
|
7558
|
-
"kind": "js",
|
|
7559
|
-
"name": "AparteConversationPinDetail",
|
|
7560
|
-
"declaration": {
|
|
7561
|
-
"name": "AparteConversationPinDetail",
|
|
7562
|
-
"module": "./conversation-list/index.js"
|
|
7563
|
-
}
|
|
7564
|
-
},
|
|
7565
|
-
{
|
|
7566
|
-
"kind": "js",
|
|
7567
|
-
"name": "AparteConversationRenameDetail",
|
|
7568
|
-
"declaration": {
|
|
7569
|
-
"name": "AparteConversationRenameDetail",
|
|
7570
|
-
"module": "./conversation-list/index.js"
|
|
7571
|
-
}
|
|
7572
|
-
},
|
|
7573
|
-
{
|
|
7574
|
-
"kind": "js",
|
|
7575
|
-
"name": "AparteConversationStatus",
|
|
7576
|
-
"declaration": {
|
|
7577
|
-
"name": "AparteConversationStatus",
|
|
7578
|
-
"module": "./conversation-list/index.js"
|
|
7579
|
-
}
|
|
7580
|
-
},
|
|
7581
|
-
{
|
|
7582
|
-
"kind": "js",
|
|
7583
|
-
"name": "AparteConversationStatusDetail",
|
|
7584
|
-
"declaration": {
|
|
7585
|
-
"name": "AparteConversationStatusDetail",
|
|
7586
|
-
"module": "./conversation-list/index.js"
|
|
7587
|
-
}
|
|
7588
|
-
},
|
|
7589
|
-
{
|
|
7590
|
-
"kind": "js",
|
|
7591
|
-
"name": "AparteSuggestions",
|
|
7592
|
-
"declaration": {
|
|
7593
|
-
"name": "AparteSuggestions",
|
|
7594
|
-
"module": "./suggestions/index.js"
|
|
7595
|
-
}
|
|
7596
|
-
},
|
|
7597
|
-
{
|
|
7598
|
-
"kind": "js",
|
|
7599
|
-
"name": "setupSuggestionBlocks",
|
|
7600
|
-
"declaration": {
|
|
7601
|
-
"name": "setupSuggestionBlocks",
|
|
7602
|
-
"module": "./suggestions/index.js"
|
|
7603
|
-
}
|
|
7604
|
-
},
|
|
7605
|
-
{
|
|
7606
|
-
"kind": "js",
|
|
7607
|
-
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
7608
|
-
"declaration": {
|
|
7609
|
-
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
7610
|
-
"module": "./suggestions/index.js"
|
|
7611
|
-
}
|
|
7612
|
-
},
|
|
7613
|
-
{
|
|
7614
|
-
"kind": "js",
|
|
7615
|
-
"name": "AparteSuggestion",
|
|
7616
|
-
"declaration": {
|
|
7617
|
-
"name": "AparteSuggestion",
|
|
7618
|
-
"module": "./suggestions/index.js"
|
|
7619
|
-
}
|
|
7620
|
-
},
|
|
7621
|
-
{
|
|
7622
|
-
"kind": "js",
|
|
7623
|
-
"name": "AparteSuggestionEventDetail",
|
|
7624
|
-
"declaration": {
|
|
7625
|
-
"name": "AparteSuggestionEventDetail",
|
|
7626
|
-
"module": "./suggestions/index.js"
|
|
7627
|
-
}
|
|
7628
|
-
},
|
|
7629
|
-
{
|
|
7630
|
-
"kind": "js",
|
|
7631
|
-
"name": "AparteContext",
|
|
7632
|
-
"declaration": {
|
|
7633
|
-
"name": "AparteContext",
|
|
7634
|
-
"module": "./context/index.js"
|
|
7635
|
-
}
|
|
7636
|
-
},
|
|
7637
|
-
{
|
|
7638
|
-
"kind": "js",
|
|
7639
|
-
"name": "AparteContextLevel",
|
|
7640
|
-
"declaration": {
|
|
7641
|
-
"name": "AparteContextLevel",
|
|
7642
|
-
"module": "./context/index.js"
|
|
7643
|
-
}
|
|
7644
|
-
},
|
|
7645
|
-
{
|
|
7646
|
-
"kind": "js",
|
|
7647
|
-
"name": "AparteContextThresholdEventDetail",
|
|
7648
|
-
"declaration": {
|
|
7649
|
-
"name": "AparteContextThresholdEventDetail",
|
|
7650
|
-
"module": "./context/index.js"
|
|
7651
|
-
}
|
|
7652
|
-
},
|
|
7653
|
-
{
|
|
7654
|
-
"kind": "js",
|
|
7655
|
-
"name": "AparteScrollRail",
|
|
7656
|
-
"declaration": {
|
|
7657
|
-
"name": "AparteScrollRail",
|
|
7658
|
-
"module": "./scroll-rail/index.js"
|
|
7659
|
-
}
|
|
7660
|
-
},
|
|
7661
|
-
{
|
|
7662
|
-
"kind": "js",
|
|
7663
|
-
"name": "AparteScrollRailJumpDetail",
|
|
7664
|
-
"declaration": {
|
|
7665
|
-
"name": "AparteScrollRailJumpDetail",
|
|
7666
|
-
"module": "./scroll-rail/index.js"
|
|
7667
|
-
}
|
|
7668
|
-
},
|
|
7669
|
-
{
|
|
7670
|
-
"kind": "js",
|
|
7671
|
-
"name": "AparteScrollRailEvery",
|
|
7672
|
-
"declaration": {
|
|
7673
|
-
"name": "AparteScrollRailEvery",
|
|
7674
|
-
"module": "./scroll-rail/index.js"
|
|
7675
|
-
}
|
|
7676
|
-
},
|
|
7677
|
-
{
|
|
7678
|
-
"kind": "js",
|
|
7679
|
-
"name": "AparteSidebar",
|
|
7680
|
-
"declaration": {
|
|
7681
|
-
"name": "AparteSidebar",
|
|
7682
|
-
"module": "./sidebar/index.js"
|
|
7683
|
-
}
|
|
7684
|
-
},
|
|
7685
|
-
{
|
|
7686
|
-
"kind": "js",
|
|
7687
|
-
"name": "AparteSidebarToggleDetail",
|
|
7688
|
-
"declaration": {
|
|
7689
|
-
"name": "AparteSidebarToggleDetail",
|
|
7690
|
-
"module": "./sidebar/index.js"
|
|
7691
|
-
}
|
|
7692
|
-
},
|
|
7693
|
-
{
|
|
7694
|
-
"kind": "js",
|
|
7695
|
-
"name": "AparteSplit",
|
|
7696
|
-
"declaration": {
|
|
7697
|
-
"name": "AparteSplit",
|
|
7698
|
-
"module": "./split/index.js"
|
|
7699
|
-
}
|
|
7700
|
-
},
|
|
7701
|
-
{
|
|
7702
|
-
"kind": "js",
|
|
7703
|
-
"name": "AparteSplitResizeDetail",
|
|
7704
|
-
"declaration": {
|
|
7705
|
-
"name": "AparteSplitResizeDetail",
|
|
7706
|
-
"module": "./split/index.js"
|
|
7707
|
-
}
|
|
7708
|
-
},
|
|
7709
|
-
{
|
|
7710
|
-
"kind": "js",
|
|
7711
|
-
"name": "AparteLauncher",
|
|
7712
|
-
"declaration": {
|
|
7713
|
-
"name": "AparteLauncher",
|
|
7714
|
-
"module": "./launcher/index.js"
|
|
7715
|
-
}
|
|
7716
|
-
},
|
|
7717
|
-
{
|
|
7718
|
-
"kind": "js",
|
|
7719
|
-
"name": "AparteLauncherToggleDetail",
|
|
7720
|
-
"declaration": {
|
|
7721
|
-
"name": "AparteLauncherToggleDetail",
|
|
7722
|
-
"module": "./launcher/index.js"
|
|
7723
|
-
}
|
|
7724
|
-
}
|
|
7725
|
-
]
|
|
7726
|
-
},
|
|
7727
|
-
{
|
|
7728
|
-
"kind": "javascript-module",
|
|
7729
|
-
"path": "src/config/action-provider.ts",
|
|
7730
|
-
"declarations": [],
|
|
7731
|
-
"exports": []
|
|
7732
|
-
},
|
|
7733
|
-
{
|
|
7734
|
-
"kind": "javascript-module",
|
|
7735
|
-
"path": "src/config/aparte-config.ts",
|
|
7736
|
-
"declarations": [
|
|
7737
|
-
{
|
|
7738
|
-
"kind": "variable",
|
|
7739
|
-
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
7740
|
-
"type": {
|
|
7741
|
-
"text": "{\n copy: false,\n retry: false,\n edit: false,\n feedback: false,\n info: false,\n}"
|
|
7742
|
-
},
|
|
7743
|
-
"default": "{ copy: false, retry: false, edit: false, feedback: false, info: false, }",
|
|
7744
|
-
"description": "The bubble-action defaults — all off: a message carries no button until the app asks for one.\n\nRetry and edit only do something when a host (`AparteClient`) re-sends and rewrites,\nand feedback/info only when the app listens for `aparte-feedback` /\n`aparte-message-info`; rendering them unconditionally showed dead buttons in every\ndisplay-only integration — ours included, which is how we found it. Copy is the one\ncore could honor alone, and it is off too: a help widget or a support chat is read,\nnot quoted, and a chat product that wants it turns it on in one line\n(`setBubbleActions({ copy: true })`).\n\nExported so a consumer can read the defaults instead of hard-coding them."
|
|
7745
|
-
},
|
|
7746
|
-
{
|
|
7747
|
-
"kind": "variable",
|
|
7748
|
-
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
7749
|
-
"type": {
|
|
7750
|
-
"text": "{\n attachmentPreview: false,\n filePreview: false,\n}"
|
|
7751
|
-
},
|
|
7752
|
-
"default": "{ attachmentPreview: false, filePreview: false, }",
|
|
7753
|
-
"description": "The host-handler declarations — nothing declared.\n\nSame rule as APARTE_DEFAULT_BUBBLE_ACTIONS, applied outside the action bar: an\nimage tile you can click is a request core forwards to the app. Undeclared, it is\nnot rendered (and the tile is not even signalled as clickable) instead of doing\nnothing."
|
|
7754
|
-
},
|
|
7755
|
-
{
|
|
7756
|
-
"kind": "function",
|
|
7757
|
-
"name": "renderingVersionOf",
|
|
7758
|
-
"return": {
|
|
7759
|
-
"type": {
|
|
7760
|
-
"text": "number"
|
|
7761
|
-
}
|
|
7762
|
-
},
|
|
7763
|
-
"parameters": [
|
|
7448
|
+
"kind": "class",
|
|
7449
|
+
"description": "Everything a chat is configured with: the providers and the selected model, the\ntransport and the keys, the tools, the renderers and render hooks, the Markdown and\nhighlight providers, the locale, the icons, the avatars, the actions.\n\naparteGlobalConfig is the one every chat on the page reads. A chat that needs a\nconfiguration of its own takes a `new AparteConfig()` attached to its element or to an\nancestor with attachConfig; the framework wrappers take it as their `config` prop.\n\nA change to what is drawn — providers, the model, the locale, icons, avatars, actions,\nrenderers — reaches the components already on the page: AparteConfig.subscribe| subscribe() listeners are\ncalled, and `aparte-config-change` is dispatched on `window` with the instance that changed.\nThe Markdown, streaming-Markdown and highlight providers are among them: a message drawn\nbefore they were set is drawn again with them (one still streaming, once it ends). The\nsanitizer, segment defaults, tools, tool renderers and summaries apply to what is drawn\nafter they are set, so set them before the chat renders; the transport, the keys and the\nsystem prompt apply from the next request.",
|
|
7450
|
+
"name": "AparteConfig",
|
|
7451
|
+
"members": [
|
|
7764
7452
|
{
|
|
7765
|
-
"
|
|
7453
|
+
"kind": "field",
|
|
7454
|
+
"name": "_markdownProvider",
|
|
7766
7455
|
"type": {
|
|
7767
|
-
"text": "
|
|
7768
|
-
}
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
},
|
|
7772
|
-
{
|
|
7773
|
-
"kind": "function",
|
|
7774
|
-
"name": "onRenderersChange",
|
|
7775
|
-
"return": {
|
|
7776
|
-
"type": {
|
|
7777
|
-
"text": "() => void"
|
|
7778
|
-
}
|
|
7779
|
-
},
|
|
7780
|
-
"parameters": [
|
|
7456
|
+
"text": "AparteMarkdownProvider | undefined"
|
|
7457
|
+
},
|
|
7458
|
+
"privacy": "private"
|
|
7459
|
+
},
|
|
7781
7460
|
{
|
|
7782
|
-
"
|
|
7783
|
-
"
|
|
7784
|
-
"text": "(cfg: AparteConfig) => void"
|
|
7785
|
-
}
|
|
7786
|
-
}
|
|
7787
|
-
]
|
|
7788
|
-
},
|
|
7789
|
-
{
|
|
7790
|
-
"kind": "function",
|
|
7791
|
-
"name": "notifyRenderersChanged",
|
|
7792
|
-
"return": {
|
|
7793
|
-
"type": {
|
|
7794
|
-
"text": "void"
|
|
7795
|
-
}
|
|
7796
|
-
},
|
|
7797
|
-
"parameters": [
|
|
7798
|
-
{
|
|
7799
|
-
"name": "cfg",
|
|
7800
|
-
"type": {
|
|
7801
|
-
"text": "AparteConfig"
|
|
7802
|
-
}
|
|
7803
|
-
}
|
|
7804
|
-
]
|
|
7805
|
-
},
|
|
7806
|
-
{
|
|
7807
|
-
"kind": "class",
|
|
7808
|
-
"description": "Everything a chat is configured with: the providers and the selected model, the\ntransport and the keys, the tools, the renderers and render hooks, the Markdown and\nhighlight providers, the locale, the icons, the avatars, the actions.\n\naparteGlobalConfig is the one every chat on the page reads. A chat that needs a\nconfiguration of its own takes a `new AparteConfig()` attached to its element or to an\nancestor with attachConfig; the framework wrappers take it as their `config` prop.\n\nA change to what is drawn — providers, the model, the locale, icons, avatars, actions,\nrenderers — reaches the components already on the page: AparteConfig.subscribe| subscribe() listeners are\ncalled, and `aparte-config-change` is dispatched on `window` with the instance that changed.\nThe Markdown, streaming-Markdown and highlight providers are among them: a message drawn\nbefore they were set is drawn again with them (one still streaming, once it ends). The\nsanitizer, segment defaults, tools, tool renderers and summaries apply to what is drawn\nafter they are set, so set them before the chat renders; the transport, the keys and the\nsystem prompt apply from the next request.",
|
|
7809
|
-
"name": "AparteConfig",
|
|
7810
|
-
"members": [
|
|
7811
|
-
{
|
|
7812
|
-
"kind": "field",
|
|
7813
|
-
"name": "_markdownProvider",
|
|
7814
|
-
"type": {
|
|
7815
|
-
"text": "AparteMarkdownProvider | undefined"
|
|
7816
|
-
},
|
|
7817
|
-
"privacy": "private"
|
|
7818
|
-
},
|
|
7819
|
-
{
|
|
7820
|
-
"kind": "field",
|
|
7821
|
-
"name": "_streamingMarkdownProvider",
|
|
7461
|
+
"kind": "field",
|
|
7462
|
+
"name": "_streamingMarkdownProvider",
|
|
7822
7463
|
"type": {
|
|
7823
7464
|
"text": "AparteStreamingMarkdownProvider | undefined"
|
|
7824
7465
|
},
|
|
@@ -10340,598 +9981,1232 @@
|
|
|
10340
9981
|
]
|
|
10341
9982
|
},
|
|
10342
9983
|
{
|
|
10343
|
-
"kind": "variable",
|
|
10344
|
-
"name": "aparteGlobalConfig",
|
|
10345
|
-
"description": "The page-wide configuration: every chat reads it unless an ancestor carries an instance of\nits own (attachConfig). There is one per window, kept on `window`, so two copies of\nthe package on one page share it; off the browser (a server render, a test) each import\ncreates its own."
|
|
10346
|
-
}
|
|
10347
|
-
],
|
|
10348
|
-
"exports": [
|
|
9984
|
+
"kind": "variable",
|
|
9985
|
+
"name": "aparteGlobalConfig",
|
|
9986
|
+
"description": "The page-wide configuration: every chat reads it unless an ancestor carries an instance of\nits own (attachConfig). There is one per window, kept on `window`, so two copies of\nthe package on one page share it; off the browser (a server render, a test) each import\ncreates its own."
|
|
9987
|
+
}
|
|
9988
|
+
],
|
|
9989
|
+
"exports": [
|
|
9990
|
+
{
|
|
9991
|
+
"kind": "js",
|
|
9992
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
9993
|
+
"declaration": {
|
|
9994
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
9995
|
+
"module": "src/config/aparte-config.ts"
|
|
9996
|
+
}
|
|
9997
|
+
},
|
|
9998
|
+
{
|
|
9999
|
+
"kind": "js",
|
|
10000
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
10001
|
+
"declaration": {
|
|
10002
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
10003
|
+
"module": "src/config/aparte-config.ts"
|
|
10004
|
+
}
|
|
10005
|
+
},
|
|
10006
|
+
{
|
|
10007
|
+
"kind": "js",
|
|
10008
|
+
"name": "renderingVersionOf",
|
|
10009
|
+
"declaration": {
|
|
10010
|
+
"name": "renderingVersionOf",
|
|
10011
|
+
"module": "src/config/aparte-config.ts"
|
|
10012
|
+
}
|
|
10013
|
+
},
|
|
10014
|
+
{
|
|
10015
|
+
"kind": "js",
|
|
10016
|
+
"name": "onRenderersChange",
|
|
10017
|
+
"declaration": {
|
|
10018
|
+
"name": "onRenderersChange",
|
|
10019
|
+
"module": "src/config/aparte-config.ts"
|
|
10020
|
+
}
|
|
10021
|
+
},
|
|
10022
|
+
{
|
|
10023
|
+
"kind": "js",
|
|
10024
|
+
"name": "notifyRenderersChanged",
|
|
10025
|
+
"declaration": {
|
|
10026
|
+
"name": "notifyRenderersChanged",
|
|
10027
|
+
"module": "src/config/aparte-config.ts"
|
|
10028
|
+
}
|
|
10029
|
+
},
|
|
10030
|
+
{
|
|
10031
|
+
"kind": "js",
|
|
10032
|
+
"name": "AparteConfig",
|
|
10033
|
+
"declaration": {
|
|
10034
|
+
"name": "AparteConfig",
|
|
10035
|
+
"module": "src/config/aparte-config.ts"
|
|
10036
|
+
}
|
|
10037
|
+
},
|
|
10038
|
+
{
|
|
10039
|
+
"kind": "js",
|
|
10040
|
+
"name": "aparteGlobalConfig",
|
|
10041
|
+
"declaration": {
|
|
10042
|
+
"name": "aparteGlobalConfig",
|
|
10043
|
+
"module": "src/config/aparte-config.ts"
|
|
10044
|
+
}
|
|
10045
|
+
}
|
|
10046
|
+
]
|
|
10047
|
+
},
|
|
10048
|
+
{
|
|
10049
|
+
"kind": "javascript-module",
|
|
10050
|
+
"path": "src/config/attachment-renderer.ts",
|
|
10051
|
+
"declarations": [],
|
|
10052
|
+
"exports": []
|
|
10053
|
+
},
|
|
10054
|
+
{
|
|
10055
|
+
"kind": "javascript-module",
|
|
10056
|
+
"path": "src/config/avatar-provider.ts",
|
|
10057
|
+
"declarations": [],
|
|
10058
|
+
"exports": []
|
|
10059
|
+
},
|
|
10060
|
+
{
|
|
10061
|
+
"kind": "javascript-module",
|
|
10062
|
+
"path": "src/config/bubble-shell-renderer.ts",
|
|
10063
|
+
"declarations": [],
|
|
10064
|
+
"exports": []
|
|
10065
|
+
},
|
|
10066
|
+
{
|
|
10067
|
+
"kind": "javascript-module",
|
|
10068
|
+
"path": "src/config/config-context.ts",
|
|
10069
|
+
"declarations": [
|
|
10070
|
+
{
|
|
10071
|
+
"kind": "variable",
|
|
10072
|
+
"name": "APARTE_HOST_ATTR",
|
|
10073
|
+
"type": {
|
|
10074
|
+
"text": "string"
|
|
10075
|
+
},
|
|
10076
|
+
"default": "'data-aparte-host'",
|
|
10077
|
+
"description": "Marks an element as an instance-config boundary (used by `closest()`)."
|
|
10078
|
+
},
|
|
10079
|
+
{
|
|
10080
|
+
"kind": "function",
|
|
10081
|
+
"name": "attachConfig",
|
|
10082
|
+
"return": {
|
|
10083
|
+
"type": {
|
|
10084
|
+
"text": "void"
|
|
10085
|
+
}
|
|
10086
|
+
},
|
|
10087
|
+
"parameters": [
|
|
10088
|
+
{
|
|
10089
|
+
"name": "el",
|
|
10090
|
+
"type": {
|
|
10091
|
+
"text": "HTMLElement"
|
|
10092
|
+
}
|
|
10093
|
+
},
|
|
10094
|
+
{
|
|
10095
|
+
"name": "config",
|
|
10096
|
+
"type": {
|
|
10097
|
+
"text": "AparteConfig"
|
|
10098
|
+
}
|
|
10099
|
+
}
|
|
10100
|
+
],
|
|
10101
|
+
"description": "Attach an instance config to `el`, making it a resolution boundary: every\ncomponent inside `el` resolves to `config` instead of the global singleton.\nIdempotent; pass the same element to replace its config.\n\nAnything already mounted inside `el` that implements AparteConfigAware\nis told, because attaching a boundary silently rewrites what those children\nresolve to and a registration they already made is now on the wrong object."
|
|
10102
|
+
},
|
|
10103
|
+
{
|
|
10104
|
+
"kind": "function",
|
|
10105
|
+
"name": "detachConfig",
|
|
10106
|
+
"return": {
|
|
10107
|
+
"type": {
|
|
10108
|
+
"text": "void"
|
|
10109
|
+
}
|
|
10110
|
+
},
|
|
10111
|
+
"parameters": [
|
|
10112
|
+
{
|
|
10113
|
+
"name": "el",
|
|
10114
|
+
"type": {
|
|
10115
|
+
"text": "HTMLElement"
|
|
10116
|
+
}
|
|
10117
|
+
}
|
|
10118
|
+
],
|
|
10119
|
+
"description": "Remove the instance-config boundary from `el` (e.g. in `disconnectedCallback`).\nComponents under `el` fall back to the next boundary up, or the global.\n\nRegistrants are told BEFORE they would silently re-resolve elsewhere, which is\nthe half that leaked: a wrapper's `unbind()` detaches the boundary before the\nframework removes the DOM, so by the time `disconnectedCallback` ran, the\nelement's own `resolveConfig(this)` already returned the global — its\n\"am I still the registered one?\" guard compared against the wrong config, found\nno match, and left the instance config holding a removed element for good."
|
|
10120
|
+
},
|
|
10121
|
+
{
|
|
10122
|
+
"kind": "function",
|
|
10123
|
+
"name": "resolveConfig",
|
|
10124
|
+
"return": {
|
|
10125
|
+
"type": {
|
|
10126
|
+
"text": "AparteConfig"
|
|
10127
|
+
}
|
|
10128
|
+
},
|
|
10129
|
+
"parameters": [
|
|
10130
|
+
{
|
|
10131
|
+
"name": "el",
|
|
10132
|
+
"type": {
|
|
10133
|
+
"text": "Element | null | undefined"
|
|
10134
|
+
}
|
|
10135
|
+
}
|
|
10136
|
+
],
|
|
10137
|
+
"description": "Resolve the config governing `el`: the nearest ancestor boundary's instance\nconfig (including `el` itself), or aparteGlobalConfig when none is\npresent. Cheap — a single `closest()`.\n\nDO NOT cache this at `connectedCallback`. An earlier version of this comment\nadvised exactly that, and two elements followed it into a real bug: a framework\nwrapper calls `AparteChatHost.bind()` — which is what runs `attachConfig` — from\nits POST-mount hook (React `useEffect`, Vue `onMounted`, Svelte `onMount`,\nAngular `ngAfterViewInit`), so children mounted in the same commit connect\nBEFORE the boundary exists. A connect-time cache therefore freezes the global\nconfig forever, and the `config` prop every wrapper advertises silently does\nnothing for that element.\n\nResolve it live, in a getter. `closest()` on a shallow tree is not a cost worth\na correctness bug — `aparte-chat-bubble` has done it that way from the start, and\nit is the one element that was never affected.\n\nThat advice covers READERS, and it is not enough on its own. An element that\nWRITES to its config — registering a presenter, a renderer, a keyed listener —\ncannot fix the ordering by resolving live, because the write already happened.\nThose implement AparteConfigAware and re-register when told. The\nreader/writer distinction is the one this file missed the first time round: the\nsweep that applied the advice above fixed every reader and left both writers\nbroken."
|
|
10138
|
+
},
|
|
10139
|
+
{
|
|
10140
|
+
"kind": "function",
|
|
10141
|
+
"name": "runWithConfig",
|
|
10142
|
+
"return": {
|
|
10143
|
+
"type": {
|
|
10144
|
+
"text": "T"
|
|
10145
|
+
}
|
|
10146
|
+
},
|
|
10147
|
+
"parameters": [
|
|
10148
|
+
{
|
|
10149
|
+
"name": "config",
|
|
10150
|
+
"type": {
|
|
10151
|
+
"text": "AparteConfig"
|
|
10152
|
+
}
|
|
10153
|
+
},
|
|
10154
|
+
{
|
|
10155
|
+
"name": "fn",
|
|
10156
|
+
"type": {
|
|
10157
|
+
"text": "() => T"
|
|
10158
|
+
}
|
|
10159
|
+
}
|
|
10160
|
+
],
|
|
10161
|
+
"description": "Run `fn` with `config` as the ambient render config (restored after)."
|
|
10162
|
+
},
|
|
10163
|
+
{
|
|
10164
|
+
"kind": "function",
|
|
10165
|
+
"name": "contextConfig",
|
|
10166
|
+
"return": {
|
|
10167
|
+
"type": {
|
|
10168
|
+
"text": "AparteConfig"
|
|
10169
|
+
}
|
|
10170
|
+
},
|
|
10171
|
+
"parameters": [
|
|
10172
|
+
{
|
|
10173
|
+
"name": "el",
|
|
10174
|
+
"optional": true,
|
|
10175
|
+
"type": {
|
|
10176
|
+
"text": "Element | null"
|
|
10177
|
+
}
|
|
10178
|
+
}
|
|
10179
|
+
],
|
|
10180
|
+
"description": "The ambient render config set by runWithConfig, else the config\nresolved from `el` (when provided), else the global singleton. Capture it\nsynchronously at the top of a renderer — never after an `await`."
|
|
10181
|
+
}
|
|
10182
|
+
],
|
|
10183
|
+
"exports": [
|
|
10184
|
+
{
|
|
10185
|
+
"kind": "js",
|
|
10186
|
+
"name": "APARTE_HOST_ATTR",
|
|
10187
|
+
"declaration": {
|
|
10188
|
+
"name": "APARTE_HOST_ATTR",
|
|
10189
|
+
"module": "src/config/config-context.ts"
|
|
10190
|
+
}
|
|
10191
|
+
},
|
|
10192
|
+
{
|
|
10193
|
+
"kind": "js",
|
|
10194
|
+
"name": "attachConfig",
|
|
10195
|
+
"declaration": {
|
|
10196
|
+
"name": "attachConfig",
|
|
10197
|
+
"module": "src/config/config-context.ts"
|
|
10198
|
+
}
|
|
10199
|
+
},
|
|
10200
|
+
{
|
|
10201
|
+
"kind": "js",
|
|
10202
|
+
"name": "detachConfig",
|
|
10203
|
+
"declaration": {
|
|
10204
|
+
"name": "detachConfig",
|
|
10205
|
+
"module": "src/config/config-context.ts"
|
|
10206
|
+
}
|
|
10207
|
+
},
|
|
10208
|
+
{
|
|
10209
|
+
"kind": "js",
|
|
10210
|
+
"name": "resolveConfig",
|
|
10211
|
+
"declaration": {
|
|
10212
|
+
"name": "resolveConfig",
|
|
10213
|
+
"module": "src/config/config-context.ts"
|
|
10214
|
+
}
|
|
10215
|
+
},
|
|
10216
|
+
{
|
|
10217
|
+
"kind": "js",
|
|
10218
|
+
"name": "runWithConfig",
|
|
10219
|
+
"declaration": {
|
|
10220
|
+
"name": "runWithConfig",
|
|
10221
|
+
"module": "src/config/config-context.ts"
|
|
10222
|
+
}
|
|
10223
|
+
},
|
|
10224
|
+
{
|
|
10225
|
+
"kind": "js",
|
|
10226
|
+
"name": "contextConfig",
|
|
10227
|
+
"declaration": {
|
|
10228
|
+
"name": "contextConfig",
|
|
10229
|
+
"module": "src/config/config-context.ts"
|
|
10230
|
+
}
|
|
10231
|
+
}
|
|
10232
|
+
]
|
|
10233
|
+
},
|
|
10234
|
+
{
|
|
10235
|
+
"kind": "javascript-module",
|
|
10236
|
+
"path": "src/config/config-subscribe.ts",
|
|
10237
|
+
"declarations": [
|
|
10238
|
+
{
|
|
10239
|
+
"kind": "variable",
|
|
10240
|
+
"name": "APARTE_CONFIG_CHANGE",
|
|
10241
|
+
"type": {
|
|
10242
|
+
"text": "string"
|
|
10243
|
+
},
|
|
10244
|
+
"default": "'aparte-config-change'",
|
|
10245
|
+
"description": "The event `AparteConfig._notify()` dispatches on `window`."
|
|
10246
|
+
},
|
|
10247
|
+
{
|
|
10248
|
+
"kind": "function",
|
|
10249
|
+
"name": "subscribeConfigChange",
|
|
10250
|
+
"return": {
|
|
10251
|
+
"type": {
|
|
10252
|
+
"text": "() => void"
|
|
10253
|
+
}
|
|
10254
|
+
},
|
|
10255
|
+
"parameters": [
|
|
10256
|
+
{
|
|
10257
|
+
"name": "el",
|
|
10258
|
+
"type": {
|
|
10259
|
+
"text": "Element"
|
|
10260
|
+
}
|
|
10261
|
+
},
|
|
10262
|
+
{
|
|
10263
|
+
"name": "handler",
|
|
10264
|
+
"type": {
|
|
10265
|
+
"text": "() => void"
|
|
10266
|
+
}
|
|
10267
|
+
}
|
|
10268
|
+
]
|
|
10269
|
+
}
|
|
10270
|
+
],
|
|
10271
|
+
"exports": [
|
|
10272
|
+
{
|
|
10273
|
+
"kind": "js",
|
|
10274
|
+
"name": "APARTE_CONFIG_CHANGE",
|
|
10275
|
+
"declaration": {
|
|
10276
|
+
"name": "APARTE_CONFIG_CHANGE",
|
|
10277
|
+
"module": "src/config/config-subscribe.ts"
|
|
10278
|
+
}
|
|
10279
|
+
},
|
|
10280
|
+
{
|
|
10281
|
+
"kind": "js",
|
|
10282
|
+
"name": "subscribeConfigChange",
|
|
10283
|
+
"declaration": {
|
|
10284
|
+
"name": "subscribeConfigChange",
|
|
10285
|
+
"module": "src/config/config-subscribe.ts"
|
|
10286
|
+
}
|
|
10287
|
+
}
|
|
10288
|
+
]
|
|
10289
|
+
},
|
|
10290
|
+
{
|
|
10291
|
+
"kind": "javascript-module",
|
|
10292
|
+
"path": "src/config/elicitation-field-renderer.ts",
|
|
10293
|
+
"declarations": [],
|
|
10294
|
+
"exports": []
|
|
10295
|
+
},
|
|
10296
|
+
{
|
|
10297
|
+
"kind": "javascript-module",
|
|
10298
|
+
"path": "src/config/error-renderer.ts",
|
|
10299
|
+
"declarations": [],
|
|
10300
|
+
"exports": []
|
|
10301
|
+
},
|
|
10302
|
+
{
|
|
10303
|
+
"kind": "javascript-module",
|
|
10304
|
+
"path": "src/config/icon-provider.ts",
|
|
10305
|
+
"declarations": [
|
|
10306
|
+
{
|
|
10307
|
+
"kind": "variable",
|
|
10308
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
10309
|
+
"type": {
|
|
10310
|
+
"text": "Record<AparteCoreIconName, string>"
|
|
10311
|
+
},
|
|
10312
|
+
"default": "APARTE_ICON_GLYPHS",
|
|
10313
|
+
"description": "The default drawing for every name, assembled from `icons/glyphs.ts`.\n\n`getIcon()` reads this by a COMPUTED key, so a bundler cannot tell which entries a\nbuild reaches and keeps the object whole. That is the constraint that shapes the icon\nset: what belongs here is what core itself draws, and nothing else — an icon nobody\nrenders would still ship to everybody. Extra glyphs are individual exports a consumer\nimports by name, never members of this record."
|
|
10314
|
+
}
|
|
10315
|
+
],
|
|
10316
|
+
"exports": [
|
|
10317
|
+
{
|
|
10318
|
+
"kind": "js",
|
|
10319
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
10320
|
+
"declaration": {
|
|
10321
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
10322
|
+
"module": "src/config/icon-provider.ts"
|
|
10323
|
+
}
|
|
10324
|
+
}
|
|
10325
|
+
]
|
|
10326
|
+
},
|
|
10327
|
+
{
|
|
10328
|
+
"kind": "javascript-module",
|
|
10329
|
+
"path": "src/config/image-policy.ts",
|
|
10330
|
+
"declarations": [
|
|
10331
|
+
{
|
|
10332
|
+
"kind": "function",
|
|
10333
|
+
"name": "resolveImageAddress",
|
|
10334
|
+
"return": {
|
|
10335
|
+
"type": {
|
|
10336
|
+
"text": "URL | null"
|
|
10337
|
+
}
|
|
10338
|
+
},
|
|
10339
|
+
"parameters": [
|
|
10340
|
+
{
|
|
10341
|
+
"name": "address",
|
|
10342
|
+
"type": {
|
|
10343
|
+
"text": "string"
|
|
10344
|
+
}
|
|
10345
|
+
}
|
|
10346
|
+
],
|
|
10347
|
+
"description": "An address resolved the way the browser will resolve it, or `null` when it cannot be: a\nrelative one where there is no page to resolve it against (a server render), or no address."
|
|
10348
|
+
},
|
|
10349
|
+
{
|
|
10350
|
+
"kind": "function",
|
|
10351
|
+
"name": "sameImagePolicy",
|
|
10352
|
+
"return": {
|
|
10353
|
+
"type": {
|
|
10354
|
+
"text": "boolean"
|
|
10355
|
+
}
|
|
10356
|
+
},
|
|
10357
|
+
"parameters": [
|
|
10358
|
+
{
|
|
10359
|
+
"name": "a",
|
|
10360
|
+
"type": {
|
|
10361
|
+
"text": "AparteImagePolicy"
|
|
10362
|
+
}
|
|
10363
|
+
},
|
|
10364
|
+
{
|
|
10365
|
+
"name": "b",
|
|
10366
|
+
"type": {
|
|
10367
|
+
"text": "AparteImagePolicy"
|
|
10368
|
+
}
|
|
10369
|
+
}
|
|
10370
|
+
],
|
|
10371
|
+
"description": "Whether two policies say the same thing: the same function, or lists with the same entries."
|
|
10372
|
+
},
|
|
10373
|
+
{
|
|
10374
|
+
"kind": "function",
|
|
10375
|
+
"name": "compileImagePolicy",
|
|
10376
|
+
"return": {
|
|
10377
|
+
"type": {
|
|
10378
|
+
"text": "ImageDecider"
|
|
10379
|
+
}
|
|
10380
|
+
},
|
|
10381
|
+
"parameters": [
|
|
10382
|
+
{
|
|
10383
|
+
"name": "policy",
|
|
10384
|
+
"type": {
|
|
10385
|
+
"text": "AparteImagePolicy"
|
|
10386
|
+
}
|
|
10387
|
+
}
|
|
10388
|
+
],
|
|
10389
|
+
"description": "Turn a policy into the function every decision runs through."
|
|
10390
|
+
},
|
|
10391
|
+
{
|
|
10392
|
+
"kind": "function",
|
|
10393
|
+
"name": "decideImageAddress",
|
|
10394
|
+
"return": {
|
|
10395
|
+
"type": {
|
|
10396
|
+
"text": "AparteImageDecision"
|
|
10397
|
+
}
|
|
10398
|
+
},
|
|
10399
|
+
"parameters": [
|
|
10400
|
+
{
|
|
10401
|
+
"name": "decide",
|
|
10402
|
+
"type": {
|
|
10403
|
+
"text": "ImageDecider"
|
|
10404
|
+
}
|
|
10405
|
+
},
|
|
10406
|
+
{
|
|
10407
|
+
"name": "address",
|
|
10408
|
+
"type": {
|
|
10409
|
+
"text": "string"
|
|
10410
|
+
}
|
|
10411
|
+
},
|
|
10412
|
+
{
|
|
10413
|
+
"name": "shown",
|
|
10414
|
+
"optional": true,
|
|
10415
|
+
"type": {
|
|
10416
|
+
"text": "ReadonlySet<string>"
|
|
10417
|
+
}
|
|
10418
|
+
}
|
|
10419
|
+
],
|
|
10420
|
+
"description": "What the picture at `address` does. `data:` and `blob:` load, an address that is no web\naddress (`ftp:`, `mailto:`) goes, and the policy decides the rest — except that a picture the\nreader already chose to see (`shown`) loads when the policy would only have held it."
|
|
10421
|
+
},
|
|
10422
|
+
{
|
|
10423
|
+
"kind": "function",
|
|
10424
|
+
"name": "rememberShownImage",
|
|
10425
|
+
"return": {
|
|
10426
|
+
"type": {
|
|
10427
|
+
"text": "void"
|
|
10428
|
+
}
|
|
10429
|
+
},
|
|
10430
|
+
"parameters": [
|
|
10431
|
+
{
|
|
10432
|
+
"name": "owner",
|
|
10433
|
+
"type": {
|
|
10434
|
+
"text": "object"
|
|
10435
|
+
}
|
|
10436
|
+
},
|
|
10437
|
+
{
|
|
10438
|
+
"name": "address",
|
|
10439
|
+
"type": {
|
|
10440
|
+
"text": "string"
|
|
10441
|
+
}
|
|
10442
|
+
}
|
|
10443
|
+
],
|
|
10444
|
+
"description": "Remember that the reader chose to see the picture at `address`, under `owner` (a config)."
|
|
10445
|
+
},
|
|
10446
|
+
{
|
|
10447
|
+
"kind": "function",
|
|
10448
|
+
"name": "shownImagesOf",
|
|
10449
|
+
"return": {
|
|
10450
|
+
"type": {
|
|
10451
|
+
"text": "ReadonlySet<string> | undefined"
|
|
10452
|
+
}
|
|
10453
|
+
},
|
|
10454
|
+
"parameters": [
|
|
10455
|
+
{
|
|
10456
|
+
"name": "owner",
|
|
10457
|
+
"type": {
|
|
10458
|
+
"text": "object"
|
|
10459
|
+
}
|
|
10460
|
+
}
|
|
10461
|
+
],
|
|
10462
|
+
"description": "The pictures the reader chose to see under `owner`."
|
|
10463
|
+
},
|
|
10464
|
+
{
|
|
10465
|
+
"kind": "function",
|
|
10466
|
+
"name": "forgetShownImages",
|
|
10467
|
+
"return": {
|
|
10468
|
+
"type": {
|
|
10469
|
+
"text": "void"
|
|
10470
|
+
}
|
|
10471
|
+
},
|
|
10472
|
+
"parameters": [
|
|
10473
|
+
{
|
|
10474
|
+
"name": "owner",
|
|
10475
|
+
"type": {
|
|
10476
|
+
"text": "object"
|
|
10477
|
+
}
|
|
10478
|
+
}
|
|
10479
|
+
],
|
|
10480
|
+
"description": "Forget them: a reset config starts from what its policy says."
|
|
10481
|
+
},
|
|
10482
|
+
{
|
|
10483
|
+
"kind": "function",
|
|
10484
|
+
"name": "parseSrcset",
|
|
10485
|
+
"return": {
|
|
10486
|
+
"type": {
|
|
10487
|
+
"text": "SrcsetCandidate[]"
|
|
10488
|
+
}
|
|
10489
|
+
},
|
|
10490
|
+
"parameters": [
|
|
10491
|
+
{
|
|
10492
|
+
"name": "value",
|
|
10493
|
+
"type": {
|
|
10494
|
+
"text": "string"
|
|
10495
|
+
}
|
|
10496
|
+
}
|
|
10497
|
+
],
|
|
10498
|
+
"description": "A `srcset`, read as the HTML Standard's \"parse a srcset attribute\" reads it — in the details a\ndifference would turn into a request. Only ASCII whitespace separates: a JavaScript `\\s` also\nsplits on U+00A0 and U+FEFF, which a browser keeps inside an address (` data:…/../api/logout`\nis a path on the page's own site to it). An address runs to the next such space, so a `data:`\nURL keeps its commas; trailing commas end a candidate; a descriptor's parentheses do not nest\n(`1x ((), https://…` is two candidates to a browser, not one).\n\nA candidate with descriptors this does not know is left out. That is safe in one direction\nonly, and it is the direction the pass relies on: what reaches the page is never the model's\n`srcset` but one written again from these candidates (`writeSrcset`), so a browser can only\npick an address that was judged."
|
|
10499
|
+
},
|
|
10500
|
+
{
|
|
10501
|
+
"kind": "function",
|
|
10502
|
+
"name": "srcsetUrls",
|
|
10503
|
+
"return": {
|
|
10504
|
+
"type": {
|
|
10505
|
+
"text": "string[]"
|
|
10506
|
+
}
|
|
10507
|
+
},
|
|
10508
|
+
"parameters": [
|
|
10509
|
+
{
|
|
10510
|
+
"name": "value",
|
|
10511
|
+
"type": {
|
|
10512
|
+
"text": "string"
|
|
10513
|
+
}
|
|
10514
|
+
}
|
|
10515
|
+
],
|
|
10516
|
+
"description": "The addresses a `srcset` lists, as `parseSrcset` reads them."
|
|
10517
|
+
},
|
|
10518
|
+
{
|
|
10519
|
+
"kind": "function",
|
|
10520
|
+
"name": "imageHost",
|
|
10521
|
+
"return": {
|
|
10522
|
+
"type": {
|
|
10523
|
+
"text": "string"
|
|
10524
|
+
}
|
|
10525
|
+
},
|
|
10526
|
+
"parameters": [
|
|
10527
|
+
{
|
|
10528
|
+
"name": "address",
|
|
10529
|
+
"type": {
|
|
10530
|
+
"text": "string"
|
|
10531
|
+
}
|
|
10532
|
+
}
|
|
10533
|
+
],
|
|
10534
|
+
"description": "Where a held picture would load from, as the reader is shown it: the host, exactly — a\nlook-alike name is the reason to show it, which is also why its end, the part a reader\njudges by, is never cut (the chip wraps it) — and, for an address that resolves to no host\n(a relative one on a server), the address itself, cut short."
|
|
10535
|
+
},
|
|
10536
|
+
{
|
|
10537
|
+
"kind": "function",
|
|
10538
|
+
"name": "heldImageHtml",
|
|
10539
|
+
"return": {
|
|
10540
|
+
"type": {
|
|
10541
|
+
"text": "string"
|
|
10542
|
+
}
|
|
10543
|
+
},
|
|
10544
|
+
"parameters": [
|
|
10545
|
+
{
|
|
10546
|
+
"name": "address",
|
|
10547
|
+
"type": {
|
|
10548
|
+
"text": "string"
|
|
10549
|
+
}
|
|
10550
|
+
},
|
|
10551
|
+
{
|
|
10552
|
+
"name": "alt",
|
|
10553
|
+
"type": {
|
|
10554
|
+
"text": "string"
|
|
10555
|
+
}
|
|
10556
|
+
},
|
|
10557
|
+
{
|
|
10558
|
+
"name": "words",
|
|
10559
|
+
"type": {
|
|
10560
|
+
"text": "HeldImageWords"
|
|
10561
|
+
}
|
|
10562
|
+
},
|
|
10563
|
+
{
|
|
10564
|
+
"name": "inLink",
|
|
10565
|
+
"default": "false"
|
|
10566
|
+
}
|
|
10567
|
+
],
|
|
10568
|
+
"description": "A held picture: a link to it that wears the tag recipe, names where it would load from, and\ncarries what it holds in two attributes, so a later pass can draw it again from them alone.\nWithout script it opens the picture in a new tab; with core's listener it loads in place.\n\nInside a link (`[](https://ci…)`) it is a `<span role=\"button\">` instead: a\nlink inside a link is taken apart by the HTML parser, which would leave the reply's own link\nempty and the picture outside it."
|
|
10569
|
+
},
|
|
10570
|
+
{
|
|
10571
|
+
"kind": "function",
|
|
10572
|
+
"name": "applyImagePolicy",
|
|
10573
|
+
"return": {
|
|
10574
|
+
"type": {
|
|
10575
|
+
"text": "string"
|
|
10576
|
+
}
|
|
10577
|
+
},
|
|
10578
|
+
"parameters": [
|
|
10579
|
+
{
|
|
10580
|
+
"name": "html",
|
|
10581
|
+
"type": {
|
|
10582
|
+
"text": "string"
|
|
10583
|
+
}
|
|
10584
|
+
},
|
|
10585
|
+
{
|
|
10586
|
+
"name": "decide",
|
|
10587
|
+
"type": {
|
|
10588
|
+
"text": "(address: string) => AparteImageDecision"
|
|
10589
|
+
}
|
|
10590
|
+
},
|
|
10591
|
+
{
|
|
10592
|
+
"name": "words",
|
|
10593
|
+
"type": {
|
|
10594
|
+
"text": "() => HeldImageWords"
|
|
10595
|
+
}
|
|
10596
|
+
}
|
|
10597
|
+
],
|
|
10598
|
+
"description": "Apply the policy to sanitized HTML. A picture's own address — its `src`, else its first\n`srcset` one — decides what it does: it loads, it is held (drawn as `heldImageHtml`), or it\ngoes. One that loads gains `referrerpolicy=\"no-referrer\"` and keeps, of its `srcset`, only the\ncandidates that load, written again (`writeSrcset`) so the browser picks among exactly what was\njudged; a `<source>` keeps its loading candidates the same way, or goes. A held picture already\nin the HTML is drawn again from what it carries, so running the pass twice gives what running\nit once gave, and a picture the reader chose to see stays shown however it was written.\n\nIn a browser it walks an inert `<template>`, where nothing it touches is fetched; without a\nDOM it reads the tags the way the sanitizer's own DOM-free path does."
|
|
10599
|
+
},
|
|
10600
|
+
{
|
|
10601
|
+
"kind": "function",
|
|
10602
|
+
"name": "applyImagePolicyWithoutDom",
|
|
10603
|
+
"return": {
|
|
10604
|
+
"type": {
|
|
10605
|
+
"text": "string"
|
|
10606
|
+
}
|
|
10607
|
+
},
|
|
10608
|
+
"parameters": [
|
|
10609
|
+
{
|
|
10610
|
+
"name": "html",
|
|
10611
|
+
"type": {
|
|
10612
|
+
"text": "string"
|
|
10613
|
+
}
|
|
10614
|
+
},
|
|
10615
|
+
{
|
|
10616
|
+
"name": "decide",
|
|
10617
|
+
"type": {
|
|
10618
|
+
"text": "(address: string) => AparteImageDecision"
|
|
10619
|
+
}
|
|
10620
|
+
},
|
|
10621
|
+
{
|
|
10622
|
+
"name": "words",
|
|
10623
|
+
"type": {
|
|
10624
|
+
"text": "() => HeldImageWords"
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
10627
|
+
],
|
|
10628
|
+
"description": "The same pass for a runtime with no DOM (a server render, a Worker). Like the sanitizer's\nDOM-free path it is a safety net, not a parser: it reads tags with the sanitizer's own\nreader, leaves comments and raw-text elements alone, and writes back only what it changed.\nExported for the parity suite; not from the package barrel."
|
|
10629
|
+
}
|
|
10630
|
+
],
|
|
10631
|
+
"exports": [
|
|
10632
|
+
{
|
|
10633
|
+
"kind": "js",
|
|
10634
|
+
"name": "resolveImageAddress",
|
|
10635
|
+
"declaration": {
|
|
10636
|
+
"name": "resolveImageAddress",
|
|
10637
|
+
"module": "src/config/image-policy.ts"
|
|
10638
|
+
}
|
|
10639
|
+
},
|
|
10640
|
+
{
|
|
10641
|
+
"kind": "js",
|
|
10642
|
+
"name": "sameImagePolicy",
|
|
10643
|
+
"declaration": {
|
|
10644
|
+
"name": "sameImagePolicy",
|
|
10645
|
+
"module": "src/config/image-policy.ts"
|
|
10646
|
+
}
|
|
10647
|
+
},
|
|
10648
|
+
{
|
|
10649
|
+
"kind": "js",
|
|
10650
|
+
"name": "compileImagePolicy",
|
|
10651
|
+
"declaration": {
|
|
10652
|
+
"name": "compileImagePolicy",
|
|
10653
|
+
"module": "src/config/image-policy.ts"
|
|
10654
|
+
}
|
|
10655
|
+
},
|
|
10656
|
+
{
|
|
10657
|
+
"kind": "js",
|
|
10658
|
+
"name": "decideImageAddress",
|
|
10659
|
+
"declaration": {
|
|
10660
|
+
"name": "decideImageAddress",
|
|
10661
|
+
"module": "src/config/image-policy.ts"
|
|
10662
|
+
}
|
|
10663
|
+
},
|
|
10664
|
+
{
|
|
10665
|
+
"kind": "js",
|
|
10666
|
+
"name": "rememberShownImage",
|
|
10667
|
+
"declaration": {
|
|
10668
|
+
"name": "rememberShownImage",
|
|
10669
|
+
"module": "src/config/image-policy.ts"
|
|
10670
|
+
}
|
|
10671
|
+
},
|
|
10672
|
+
{
|
|
10673
|
+
"kind": "js",
|
|
10674
|
+
"name": "shownImagesOf",
|
|
10675
|
+
"declaration": {
|
|
10676
|
+
"name": "shownImagesOf",
|
|
10677
|
+
"module": "src/config/image-policy.ts"
|
|
10678
|
+
}
|
|
10679
|
+
},
|
|
10680
|
+
{
|
|
10681
|
+
"kind": "js",
|
|
10682
|
+
"name": "forgetShownImages",
|
|
10683
|
+
"declaration": {
|
|
10684
|
+
"name": "forgetShownImages",
|
|
10685
|
+
"module": "src/config/image-policy.ts"
|
|
10686
|
+
}
|
|
10687
|
+
},
|
|
10688
|
+
{
|
|
10689
|
+
"kind": "js",
|
|
10690
|
+
"name": "parseSrcset",
|
|
10691
|
+
"declaration": {
|
|
10692
|
+
"name": "parseSrcset",
|
|
10693
|
+
"module": "src/config/image-policy.ts"
|
|
10694
|
+
}
|
|
10695
|
+
},
|
|
10696
|
+
{
|
|
10697
|
+
"kind": "js",
|
|
10698
|
+
"name": "srcsetUrls",
|
|
10699
|
+
"declaration": {
|
|
10700
|
+
"name": "srcsetUrls",
|
|
10701
|
+
"module": "src/config/image-policy.ts"
|
|
10702
|
+
}
|
|
10703
|
+
},
|
|
10704
|
+
{
|
|
10705
|
+
"kind": "js",
|
|
10706
|
+
"name": "imageHost",
|
|
10707
|
+
"declaration": {
|
|
10708
|
+
"name": "imageHost",
|
|
10709
|
+
"module": "src/config/image-policy.ts"
|
|
10710
|
+
}
|
|
10711
|
+
},
|
|
10712
|
+
{
|
|
10713
|
+
"kind": "js",
|
|
10714
|
+
"name": "heldImageHtml",
|
|
10715
|
+
"declaration": {
|
|
10716
|
+
"name": "heldImageHtml",
|
|
10717
|
+
"module": "src/config/image-policy.ts"
|
|
10718
|
+
}
|
|
10719
|
+
},
|
|
10720
|
+
{
|
|
10721
|
+
"kind": "js",
|
|
10722
|
+
"name": "applyImagePolicy",
|
|
10723
|
+
"declaration": {
|
|
10724
|
+
"name": "applyImagePolicy",
|
|
10725
|
+
"module": "src/config/image-policy.ts"
|
|
10726
|
+
}
|
|
10727
|
+
},
|
|
10728
|
+
{
|
|
10729
|
+
"kind": "js",
|
|
10730
|
+
"name": "applyImagePolicyWithoutDom",
|
|
10731
|
+
"declaration": {
|
|
10732
|
+
"name": "applyImagePolicyWithoutDom",
|
|
10733
|
+
"module": "src/config/image-policy.ts"
|
|
10734
|
+
}
|
|
10735
|
+
}
|
|
10736
|
+
]
|
|
10737
|
+
},
|
|
10738
|
+
{
|
|
10739
|
+
"kind": "javascript-module",
|
|
10740
|
+
"path": "src/config/index.ts",
|
|
10741
|
+
"declarations": [],
|
|
10742
|
+
"exports": [
|
|
10743
|
+
{
|
|
10744
|
+
"kind": "js",
|
|
10745
|
+
"name": "aparteGlobalConfig",
|
|
10746
|
+
"declaration": {
|
|
10747
|
+
"name": "aparteGlobalConfig",
|
|
10748
|
+
"module": "./aparte-config.js"
|
|
10749
|
+
}
|
|
10750
|
+
},
|
|
10751
|
+
{
|
|
10752
|
+
"kind": "js",
|
|
10753
|
+
"name": "AparteConfig",
|
|
10754
|
+
"declaration": {
|
|
10755
|
+
"name": "AparteConfig",
|
|
10756
|
+
"module": "./aparte-config.js"
|
|
10757
|
+
}
|
|
10758
|
+
},
|
|
10759
|
+
{
|
|
10760
|
+
"kind": "js",
|
|
10761
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
10762
|
+
"declaration": {
|
|
10763
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
10764
|
+
"module": "./aparte-config.js"
|
|
10765
|
+
}
|
|
10766
|
+
},
|
|
10767
|
+
{
|
|
10768
|
+
"kind": "js",
|
|
10769
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
10770
|
+
"declaration": {
|
|
10771
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
10772
|
+
"module": "./aparte-config.js"
|
|
10773
|
+
}
|
|
10774
|
+
},
|
|
10775
|
+
{
|
|
10776
|
+
"kind": "js",
|
|
10777
|
+
"name": "resolveConfig",
|
|
10778
|
+
"declaration": {
|
|
10779
|
+
"name": "resolveConfig",
|
|
10780
|
+
"module": "./config-context.js"
|
|
10781
|
+
}
|
|
10782
|
+
},
|
|
10783
|
+
{
|
|
10784
|
+
"kind": "js",
|
|
10785
|
+
"name": "attachConfig",
|
|
10786
|
+
"declaration": {
|
|
10787
|
+
"name": "attachConfig",
|
|
10788
|
+
"module": "./config-context.js"
|
|
10789
|
+
}
|
|
10790
|
+
},
|
|
10791
|
+
{
|
|
10792
|
+
"kind": "js",
|
|
10793
|
+
"name": "detachConfig",
|
|
10794
|
+
"declaration": {
|
|
10795
|
+
"name": "detachConfig",
|
|
10796
|
+
"module": "./config-context.js"
|
|
10797
|
+
}
|
|
10798
|
+
},
|
|
10799
|
+
{
|
|
10800
|
+
"kind": "js",
|
|
10801
|
+
"name": "runWithConfig",
|
|
10802
|
+
"declaration": {
|
|
10803
|
+
"name": "runWithConfig",
|
|
10804
|
+
"module": "./config-context.js"
|
|
10805
|
+
}
|
|
10806
|
+
},
|
|
10807
|
+
{
|
|
10808
|
+
"kind": "js",
|
|
10809
|
+
"name": "contextConfig",
|
|
10810
|
+
"declaration": {
|
|
10811
|
+
"name": "contextConfig",
|
|
10812
|
+
"module": "./config-context.js"
|
|
10813
|
+
}
|
|
10814
|
+
},
|
|
10815
|
+
{
|
|
10816
|
+
"kind": "js",
|
|
10817
|
+
"name": "APARTE_HOST_ATTR",
|
|
10818
|
+
"declaration": {
|
|
10819
|
+
"name": "APARTE_HOST_ATTR",
|
|
10820
|
+
"module": "./config-context.js"
|
|
10821
|
+
}
|
|
10822
|
+
},
|
|
10823
|
+
{
|
|
10824
|
+
"kind": "js",
|
|
10825
|
+
"name": "subscribeConfigChange",
|
|
10826
|
+
"declaration": {
|
|
10827
|
+
"name": "subscribeConfigChange",
|
|
10828
|
+
"module": "./config-subscribe.js"
|
|
10829
|
+
}
|
|
10830
|
+
},
|
|
10831
|
+
{
|
|
10832
|
+
"kind": "js",
|
|
10833
|
+
"name": "APARTE_CONFIG_CHANGE",
|
|
10834
|
+
"declaration": {
|
|
10835
|
+
"name": "APARTE_CONFIG_CHANGE",
|
|
10836
|
+
"module": "./config-subscribe.js"
|
|
10837
|
+
}
|
|
10838
|
+
},
|
|
10839
|
+
{
|
|
10840
|
+
"kind": "js",
|
|
10841
|
+
"name": "AparteConfigAware",
|
|
10842
|
+
"declaration": {
|
|
10843
|
+
"name": "AparteConfigAware",
|
|
10844
|
+
"module": "./config-context.js"
|
|
10845
|
+
}
|
|
10846
|
+
},
|
|
10847
|
+
{
|
|
10848
|
+
"kind": "js",
|
|
10849
|
+
"name": "AparteConfigChangeEventDetail",
|
|
10850
|
+
"declaration": {
|
|
10851
|
+
"name": "AparteConfigChangeEventDetail",
|
|
10852
|
+
"module": "./aparte-config.js"
|
|
10853
|
+
}
|
|
10854
|
+
},
|
|
10855
|
+
{
|
|
10856
|
+
"kind": "js",
|
|
10857
|
+
"name": "AparteMarkdownProvider",
|
|
10858
|
+
"declaration": {
|
|
10859
|
+
"name": "AparteMarkdownProvider",
|
|
10860
|
+
"module": "./aparte-config.js"
|
|
10861
|
+
}
|
|
10862
|
+
},
|
|
10863
|
+
{
|
|
10864
|
+
"kind": "js",
|
|
10865
|
+
"name": "AparteStreamingMarkdownProvider",
|
|
10866
|
+
"declaration": {
|
|
10867
|
+
"name": "AparteStreamingMarkdownProvider",
|
|
10868
|
+
"module": "./aparte-config.js"
|
|
10869
|
+
}
|
|
10870
|
+
},
|
|
10871
|
+
{
|
|
10872
|
+
"kind": "js",
|
|
10873
|
+
"name": "AparteStreamingMarkdownRenderer",
|
|
10874
|
+
"declaration": {
|
|
10875
|
+
"name": "AparteStreamingMarkdownRenderer",
|
|
10876
|
+
"module": "./aparte-config.js"
|
|
10877
|
+
}
|
|
10878
|
+
},
|
|
10879
|
+
{
|
|
10880
|
+
"kind": "js",
|
|
10881
|
+
"name": "AparteCodeLanguageRenderer",
|
|
10882
|
+
"declaration": {
|
|
10883
|
+
"name": "AparteCodeLanguageRenderer",
|
|
10884
|
+
"module": "./aparte-config.js"
|
|
10885
|
+
}
|
|
10886
|
+
},
|
|
10887
|
+
{
|
|
10888
|
+
"kind": "js",
|
|
10889
|
+
"name": "AparteCodeLanguageContext",
|
|
10890
|
+
"declaration": {
|
|
10891
|
+
"name": "AparteCodeLanguageContext",
|
|
10892
|
+
"module": "./aparte-config.js"
|
|
10893
|
+
}
|
|
10894
|
+
},
|
|
10895
|
+
{
|
|
10896
|
+
"kind": "js",
|
|
10897
|
+
"name": "AparteHighlightProvider",
|
|
10898
|
+
"declaration": {
|
|
10899
|
+
"name": "AparteHighlightProvider",
|
|
10900
|
+
"module": "./aparte-config.js"
|
|
10901
|
+
}
|
|
10902
|
+
},
|
|
10903
|
+
{
|
|
10904
|
+
"kind": "js",
|
|
10905
|
+
"name": "AparteSystemPromptVarsProvider",
|
|
10906
|
+
"declaration": {
|
|
10907
|
+
"name": "AparteSystemPromptVarsProvider",
|
|
10908
|
+
"module": "./aparte-config.js"
|
|
10909
|
+
}
|
|
10910
|
+
},
|
|
10911
|
+
{
|
|
10912
|
+
"kind": "js",
|
|
10913
|
+
"name": "AparteModelPreference",
|
|
10914
|
+
"declaration": {
|
|
10915
|
+
"name": "AparteModelPreference",
|
|
10916
|
+
"module": "./aparte-config.js"
|
|
10917
|
+
}
|
|
10918
|
+
},
|
|
10919
|
+
{
|
|
10920
|
+
"kind": "js",
|
|
10921
|
+
"name": "AparteModelPreferenceProvider",
|
|
10922
|
+
"declaration": {
|
|
10923
|
+
"name": "AparteModelPreferenceProvider",
|
|
10924
|
+
"module": "./aparte-config.js"
|
|
10925
|
+
}
|
|
10926
|
+
},
|
|
10349
10927
|
{
|
|
10350
10928
|
"kind": "js",
|
|
10351
|
-
"name": "
|
|
10929
|
+
"name": "AparteSanitizer",
|
|
10352
10930
|
"declaration": {
|
|
10353
|
-
"name": "
|
|
10354
|
-
"module": "
|
|
10931
|
+
"name": "AparteSanitizer",
|
|
10932
|
+
"module": "./sanitize.js"
|
|
10355
10933
|
}
|
|
10356
10934
|
},
|
|
10357
10935
|
{
|
|
10358
10936
|
"kind": "js",
|
|
10359
|
-
"name": "
|
|
10937
|
+
"name": "AparteImageDecision",
|
|
10360
10938
|
"declaration": {
|
|
10361
|
-
"name": "
|
|
10362
|
-
"module": "
|
|
10939
|
+
"name": "AparteImageDecision",
|
|
10940
|
+
"module": "./image-policy.js"
|
|
10363
10941
|
}
|
|
10364
10942
|
},
|
|
10365
10943
|
{
|
|
10366
10944
|
"kind": "js",
|
|
10367
|
-
"name": "
|
|
10945
|
+
"name": "AparteImagePolicy",
|
|
10368
10946
|
"declaration": {
|
|
10369
|
-
"name": "
|
|
10370
|
-
"module": "
|
|
10947
|
+
"name": "AparteImagePolicy",
|
|
10948
|
+
"module": "./image-policy.js"
|
|
10371
10949
|
}
|
|
10372
10950
|
},
|
|
10373
10951
|
{
|
|
10374
10952
|
"kind": "js",
|
|
10375
|
-
"name": "
|
|
10953
|
+
"name": "defaultSanitizer",
|
|
10376
10954
|
"declaration": {
|
|
10377
|
-
"name": "
|
|
10378
|
-
"module": "
|
|
10955
|
+
"name": "defaultSanitizer",
|
|
10956
|
+
"module": "./sanitize.js"
|
|
10379
10957
|
}
|
|
10380
10958
|
},
|
|
10381
10959
|
{
|
|
10382
10960
|
"kind": "js",
|
|
10383
|
-
"name": "
|
|
10961
|
+
"name": "isSafeUrl",
|
|
10384
10962
|
"declaration": {
|
|
10385
|
-
"name": "
|
|
10386
|
-
"module": "
|
|
10963
|
+
"name": "isSafeUrl",
|
|
10964
|
+
"module": "./sanitize.js"
|
|
10387
10965
|
}
|
|
10388
10966
|
},
|
|
10389
10967
|
{
|
|
10390
10968
|
"kind": "js",
|
|
10391
|
-
"name": "
|
|
10969
|
+
"name": "AparteIconProvider",
|
|
10392
10970
|
"declaration": {
|
|
10393
|
-
"name": "
|
|
10394
|
-
"module": "
|
|
10971
|
+
"name": "AparteIconProvider",
|
|
10972
|
+
"module": "./icon-provider.js"
|
|
10395
10973
|
}
|
|
10396
10974
|
},
|
|
10397
10975
|
{
|
|
10398
10976
|
"kind": "js",
|
|
10399
|
-
"name": "
|
|
10977
|
+
"name": "AparteIconName",
|
|
10400
10978
|
"declaration": {
|
|
10401
|
-
"name": "
|
|
10402
|
-
"module": "
|
|
10979
|
+
"name": "AparteIconName",
|
|
10980
|
+
"module": "./icon-provider.js"
|
|
10403
10981
|
}
|
|
10404
|
-
}
|
|
10405
|
-
]
|
|
10406
|
-
},
|
|
10407
|
-
{
|
|
10408
|
-
"kind": "javascript-module",
|
|
10409
|
-
"path": "src/config/attachment-renderer.ts",
|
|
10410
|
-
"declarations": [],
|
|
10411
|
-
"exports": []
|
|
10412
|
-
},
|
|
10413
|
-
{
|
|
10414
|
-
"kind": "javascript-module",
|
|
10415
|
-
"path": "src/config/avatar-provider.ts",
|
|
10416
|
-
"declarations": [],
|
|
10417
|
-
"exports": []
|
|
10418
|
-
},
|
|
10419
|
-
{
|
|
10420
|
-
"kind": "javascript-module",
|
|
10421
|
-
"path": "src/config/bubble-shell-renderer.ts",
|
|
10422
|
-
"declarations": [],
|
|
10423
|
-
"exports": []
|
|
10424
|
-
},
|
|
10425
|
-
{
|
|
10426
|
-
"kind": "javascript-module",
|
|
10427
|
-
"path": "src/config/config-context.ts",
|
|
10428
|
-
"declarations": [
|
|
10982
|
+
},
|
|
10429
10983
|
{
|
|
10430
|
-
"kind": "
|
|
10431
|
-
"name": "
|
|
10432
|
-
"
|
|
10433
|
-
"
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
"description": "Marks an element as an instance-config boundary (used by `closest()`)."
|
|
10984
|
+
"kind": "js",
|
|
10985
|
+
"name": "AparteCoreIconName",
|
|
10986
|
+
"declaration": {
|
|
10987
|
+
"name": "AparteCoreIconName",
|
|
10988
|
+
"module": "./icon-provider.js"
|
|
10989
|
+
}
|
|
10437
10990
|
},
|
|
10438
10991
|
{
|
|
10439
|
-
"kind": "
|
|
10440
|
-
"name": "
|
|
10441
|
-
"
|
|
10442
|
-
"
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
},
|
|
10446
|
-
"parameters": [
|
|
10447
|
-
{
|
|
10448
|
-
"name": "el",
|
|
10449
|
-
"type": {
|
|
10450
|
-
"text": "HTMLElement"
|
|
10451
|
-
}
|
|
10452
|
-
},
|
|
10453
|
-
{
|
|
10454
|
-
"name": "config",
|
|
10455
|
-
"type": {
|
|
10456
|
-
"text": "AparteConfig"
|
|
10457
|
-
}
|
|
10458
|
-
}
|
|
10459
|
-
],
|
|
10460
|
-
"description": "Attach an instance config to `el`, making it a resolution boundary: every\ncomponent inside `el` resolves to `config` instead of the global singleton.\nIdempotent; pass the same element to replace its config.\n\nAnything already mounted inside `el` that implements AparteConfigAware\nis told, because attaching a boundary silently rewrites what those children\nresolve to and a registration they already made is now on the wrong object."
|
|
10992
|
+
"kind": "js",
|
|
10993
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
10994
|
+
"declaration": {
|
|
10995
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
10996
|
+
"module": "./icon-provider.js"
|
|
10997
|
+
}
|
|
10461
10998
|
},
|
|
10462
10999
|
{
|
|
10463
|
-
"kind": "
|
|
10464
|
-
"name": "
|
|
10465
|
-
"
|
|
10466
|
-
"
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
},
|
|
10470
|
-
"parameters": [
|
|
10471
|
-
{
|
|
10472
|
-
"name": "el",
|
|
10473
|
-
"type": {
|
|
10474
|
-
"text": "HTMLElement"
|
|
10475
|
-
}
|
|
10476
|
-
}
|
|
10477
|
-
],
|
|
10478
|
-
"description": "Remove the instance-config boundary from `el` (e.g. in `disconnectedCallback`).\nComponents under `el` fall back to the next boundary up, or the global.\n\nRegistrants are told BEFORE they would silently re-resolve elsewhere, which is\nthe half that leaked: a wrapper's `unbind()` detaches the boundary before the\nframework removes the DOM, so by the time `disconnectedCallback` ran, the\nelement's own `resolveConfig(this)` already returned the global — its\n\"am I still the registered one?\" guard compared against the wrong config, found\nno match, and left the instance config holding a removed element for good."
|
|
11000
|
+
"kind": "js",
|
|
11001
|
+
"name": "AparteAvatarProvider",
|
|
11002
|
+
"declaration": {
|
|
11003
|
+
"name": "AparteAvatarProvider",
|
|
11004
|
+
"module": "./avatar-provider.js"
|
|
11005
|
+
}
|
|
10479
11006
|
},
|
|
10480
11007
|
{
|
|
10481
|
-
"kind": "
|
|
10482
|
-
"name": "
|
|
10483
|
-
"
|
|
10484
|
-
"
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
},
|
|
10488
|
-
"parameters": [
|
|
10489
|
-
{
|
|
10490
|
-
"name": "el",
|
|
10491
|
-
"type": {
|
|
10492
|
-
"text": "Element | null | undefined"
|
|
10493
|
-
}
|
|
10494
|
-
}
|
|
10495
|
-
],
|
|
10496
|
-
"description": "Resolve the config governing `el`: the nearest ancestor boundary's instance\nconfig (including `el` itself), or aparteGlobalConfig when none is\npresent. Cheap — a single `closest()`.\n\nDO NOT cache this at `connectedCallback`. An earlier version of this comment\nadvised exactly that, and two elements followed it into a real bug: a framework\nwrapper calls `AparteChatHost.bind()` — which is what runs `attachConfig` — from\nits POST-mount hook (React `useEffect`, Vue `onMounted`, Svelte `onMount`,\nAngular `ngAfterViewInit`), so children mounted in the same commit connect\nBEFORE the boundary exists. A connect-time cache therefore freezes the global\nconfig forever, and the `config` prop every wrapper advertises silently does\nnothing for that element.\n\nResolve it live, in a getter. `closest()` on a shallow tree is not a cost worth\na correctness bug — `aparte-chat-bubble` has done it that way from the start, and\nit is the one element that was never affected.\n\nThat advice covers READERS, and it is not enough on its own. An element that\nWRITES to its config — registering a presenter, a renderer, a keyed listener —\ncannot fix the ordering by resolving live, because the write already happened.\nThose implement AparteConfigAware and re-register when told. The\nreader/writer distinction is the one this file missed the first time round: the\nsweep that applied the advice above fixed every reader and left both writers\nbroken."
|
|
11008
|
+
"kind": "js",
|
|
11009
|
+
"name": "AparteStatusRenderer",
|
|
11010
|
+
"declaration": {
|
|
11011
|
+
"name": "AparteStatusRenderer",
|
|
11012
|
+
"module": "./status-renderer.js"
|
|
11013
|
+
}
|
|
10497
11014
|
},
|
|
10498
11015
|
{
|
|
10499
|
-
"kind": "
|
|
10500
|
-
"name": "
|
|
10501
|
-
"
|
|
10502
|
-
"
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
},
|
|
10506
|
-
"parameters": [
|
|
10507
|
-
{
|
|
10508
|
-
"name": "config",
|
|
10509
|
-
"type": {
|
|
10510
|
-
"text": "AparteConfig"
|
|
10511
|
-
}
|
|
10512
|
-
},
|
|
10513
|
-
{
|
|
10514
|
-
"name": "fn",
|
|
10515
|
-
"type": {
|
|
10516
|
-
"text": "() => T"
|
|
10517
|
-
}
|
|
10518
|
-
}
|
|
10519
|
-
],
|
|
10520
|
-
"description": "Run `fn` with `config` as the ambient render config (restored after)."
|
|
11016
|
+
"kind": "js",
|
|
11017
|
+
"name": "AparteErrorRenderer",
|
|
11018
|
+
"declaration": {
|
|
11019
|
+
"name": "AparteErrorRenderer",
|
|
11020
|
+
"module": "./error-renderer.js"
|
|
11021
|
+
}
|
|
10521
11022
|
},
|
|
10522
11023
|
{
|
|
10523
|
-
"kind": "
|
|
10524
|
-
"name": "
|
|
10525
|
-
"
|
|
10526
|
-
"
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
"parameters": [
|
|
10531
|
-
{
|
|
10532
|
-
"name": "el",
|
|
10533
|
-
"optional": true,
|
|
10534
|
-
"type": {
|
|
10535
|
-
"text": "Element | null"
|
|
10536
|
-
}
|
|
10537
|
-
}
|
|
10538
|
-
],
|
|
10539
|
-
"description": "The ambient render config set by runWithConfig, else the config\nresolved from `el` (when provided), else the global singleton. Capture it\nsynchronously at the top of a renderer — never after an `await`."
|
|
10540
|
-
}
|
|
10541
|
-
],
|
|
10542
|
-
"exports": [
|
|
11024
|
+
"kind": "js",
|
|
11025
|
+
"name": "AparteAttachmentRenderer",
|
|
11026
|
+
"declaration": {
|
|
11027
|
+
"name": "AparteAttachmentRenderer",
|
|
11028
|
+
"module": "./attachment-renderer.js"
|
|
11029
|
+
}
|
|
11030
|
+
},
|
|
10543
11031
|
{
|
|
10544
11032
|
"kind": "js",
|
|
10545
|
-
"name": "
|
|
11033
|
+
"name": "AparteElicitationFieldRenderer",
|
|
10546
11034
|
"declaration": {
|
|
10547
|
-
"name": "
|
|
10548
|
-
"module": "
|
|
11035
|
+
"name": "AparteElicitationFieldRenderer",
|
|
11036
|
+
"module": "./elicitation-field-renderer.js"
|
|
10549
11037
|
}
|
|
10550
11038
|
},
|
|
10551
11039
|
{
|
|
10552
11040
|
"kind": "js",
|
|
10553
|
-
"name": "
|
|
11041
|
+
"name": "AparteElicitationFieldContext",
|
|
10554
11042
|
"declaration": {
|
|
10555
|
-
"name": "
|
|
10556
|
-
"module": "
|
|
11043
|
+
"name": "AparteElicitationFieldContext",
|
|
11044
|
+
"module": "./elicitation-field-renderer.js"
|
|
10557
11045
|
}
|
|
10558
11046
|
},
|
|
10559
11047
|
{
|
|
10560
11048
|
"kind": "js",
|
|
10561
|
-
"name": "
|
|
11049
|
+
"name": "AparteElicitationFieldControl",
|
|
11050
|
+
"declaration": {
|
|
11051
|
+
"name": "AparteElicitationFieldControl",
|
|
11052
|
+
"module": "./elicitation-field-renderer.js"
|
|
11053
|
+
}
|
|
11054
|
+
},
|
|
11055
|
+
{
|
|
11056
|
+
"kind": "js",
|
|
11057
|
+
"name": "AparteSiblingNavRenderer",
|
|
11058
|
+
"declaration": {
|
|
11059
|
+
"name": "AparteSiblingNavRenderer",
|
|
11060
|
+
"module": "./sibling-nav-renderer.js"
|
|
11061
|
+
}
|
|
11062
|
+
},
|
|
11063
|
+
{
|
|
11064
|
+
"kind": "js",
|
|
11065
|
+
"name": "AparteBubbleShellRenderer",
|
|
10562
11066
|
"declaration": {
|
|
10563
|
-
"name": "
|
|
10564
|
-
"module": "
|
|
11067
|
+
"name": "AparteBubbleShellRenderer",
|
|
11068
|
+
"module": "./bubble-shell-renderer.js"
|
|
10565
11069
|
}
|
|
10566
11070
|
},
|
|
10567
11071
|
{
|
|
10568
11072
|
"kind": "js",
|
|
10569
|
-
"name": "
|
|
11073
|
+
"name": "AparteLocale",
|
|
10570
11074
|
"declaration": {
|
|
10571
|
-
"name": "
|
|
10572
|
-
"module": "
|
|
11075
|
+
"name": "AparteLocale",
|
|
11076
|
+
"module": "./locale.js"
|
|
10573
11077
|
}
|
|
10574
11078
|
},
|
|
10575
11079
|
{
|
|
10576
11080
|
"kind": "js",
|
|
10577
|
-
"name": "
|
|
11081
|
+
"name": "AparteLocaleExtensions",
|
|
10578
11082
|
"declaration": {
|
|
10579
|
-
"name": "
|
|
10580
|
-
"module": "
|
|
11083
|
+
"name": "AparteLocaleExtensions",
|
|
11084
|
+
"module": "./locale.js"
|
|
10581
11085
|
}
|
|
10582
11086
|
},
|
|
10583
11087
|
{
|
|
10584
11088
|
"kind": "js",
|
|
10585
|
-
"name": "
|
|
11089
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
10586
11090
|
"declaration": {
|
|
10587
|
-
"name": "
|
|
10588
|
-
"module": "
|
|
11091
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
11092
|
+
"module": "./locale.js"
|
|
10589
11093
|
}
|
|
10590
|
-
}
|
|
10591
|
-
]
|
|
10592
|
-
},
|
|
10593
|
-
{
|
|
10594
|
-
"kind": "javascript-module",
|
|
10595
|
-
"path": "src/config/config-subscribe.ts",
|
|
10596
|
-
"declarations": [
|
|
10597
|
-
{
|
|
10598
|
-
"kind": "variable",
|
|
10599
|
-
"name": "APARTE_CONFIG_CHANGE",
|
|
10600
|
-
"type": {
|
|
10601
|
-
"text": "string"
|
|
10602
|
-
},
|
|
10603
|
-
"default": "'aparte-config-change'",
|
|
10604
|
-
"description": "The event `AparteConfig._notify()` dispatches on `window`."
|
|
10605
11094
|
},
|
|
10606
|
-
{
|
|
10607
|
-
"kind": "function",
|
|
10608
|
-
"name": "subscribeConfigChange",
|
|
10609
|
-
"return": {
|
|
10610
|
-
"type": {
|
|
10611
|
-
"text": "() => void"
|
|
10612
|
-
}
|
|
10613
|
-
},
|
|
10614
|
-
"parameters": [
|
|
10615
|
-
{
|
|
10616
|
-
"name": "el",
|
|
10617
|
-
"type": {
|
|
10618
|
-
"text": "Element"
|
|
10619
|
-
}
|
|
10620
|
-
},
|
|
10621
|
-
{
|
|
10622
|
-
"name": "handler",
|
|
10623
|
-
"type": {
|
|
10624
|
-
"text": "() => void"
|
|
10625
|
-
}
|
|
10626
|
-
}
|
|
10627
|
-
]
|
|
10628
|
-
}
|
|
10629
|
-
],
|
|
10630
|
-
"exports": [
|
|
10631
11095
|
{
|
|
10632
11096
|
"kind": "js",
|
|
10633
|
-
"name": "
|
|
11097
|
+
"name": "AparteAction",
|
|
10634
11098
|
"declaration": {
|
|
10635
|
-
"name": "
|
|
10636
|
-
"module": "
|
|
11099
|
+
"name": "AparteAction",
|
|
11100
|
+
"module": "./action-provider.js"
|
|
10637
11101
|
}
|
|
10638
11102
|
},
|
|
10639
11103
|
{
|
|
10640
11104
|
"kind": "js",
|
|
10641
|
-
"name": "
|
|
11105
|
+
"name": "AparteActionZone",
|
|
10642
11106
|
"declaration": {
|
|
10643
|
-
"name": "
|
|
10644
|
-
"module": "
|
|
11107
|
+
"name": "AparteActionZone",
|
|
11108
|
+
"module": "./action-provider.js"
|
|
10645
11109
|
}
|
|
10646
11110
|
}
|
|
10647
11111
|
]
|
|
10648
11112
|
},
|
|
10649
11113
|
{
|
|
10650
11114
|
"kind": "javascript-module",
|
|
10651
|
-
"path": "src/config/
|
|
10652
|
-
"declarations": [],
|
|
10653
|
-
"exports": []
|
|
10654
|
-
},
|
|
10655
|
-
{
|
|
10656
|
-
"kind": "javascript-module",
|
|
10657
|
-
"path": "src/config/error-renderer.ts",
|
|
10658
|
-
"declarations": [],
|
|
10659
|
-
"exports": []
|
|
10660
|
-
},
|
|
10661
|
-
{
|
|
10662
|
-
"kind": "javascript-module",
|
|
10663
|
-
"path": "src/config/icon-provider.ts",
|
|
11115
|
+
"path": "src/config/locale.ts",
|
|
10664
11116
|
"declarations": [
|
|
10665
11117
|
{
|
|
10666
11118
|
"kind": "variable",
|
|
10667
|
-
"name": "
|
|
11119
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
10668
11120
|
"type": {
|
|
10669
|
-
"text": "
|
|
11121
|
+
"text": "AparteLocale"
|
|
10670
11122
|
},
|
|
10671
|
-
"default": "
|
|
10672
|
-
"description": "
|
|
11123
|
+
"default": "{ inputPlaceholder: \"Type a message...\", sendButton: \"Send\", copy: \"Copy\", copied: \"Copied!\", retry: \"Retry\", thinking: \"Thinking\", elicitationOther: \"Other…\", elicitationOtherPlaceholder: \"Type your answer…\", elicitationOtherLabel: \"Custom answer\", submitButton: \"Submit\", stopButton: \"Stop\", elicitationRecommended: \"Recommended\", elicitationSkip: \"Skip\", elicitationHide: \"Hide for now\", elicitationWaiting: \"Waiting for your answer\", elicitationYes: \"Yes\", elicitationNo: \"No\", elicitationAnswerLabel: \"Your answer\", approvalInstructionPlaceholder: \"Or tell it what to do instead…\", approvalAsk: \"Allow {tool}?\", approvalWaiting: \"Waiting\", scrollToBottom: \"Scroll to bottom\", suggestionsLabel: \"Suggested prompts\", contextLabel: \"Context window\", contextSystem: \"System prompt\", contextTools: \"Tools\", contextSummary: \"Summary\", contextMessages: \"Messages\", contextOther: \"Other\", contextFree: \"Free\", contextTotal: \"Total\", contextReclaim: \"Compacting now would free ~{n} tokens\", contextCompactNow: \"Compact now\", checkpointCount: \"{n} messages summarised for the model\", checkpointCountOne: \"1 message summarised for the model\", checkpointLegacy: \"Earlier messages were summarised\", checkpointGroup: \"Context summary\", checkpointShow: \"Show summary\", checkpointHide: \"Hide summary\", checkpointRestore: \"Restore\", checkpointRestoreConfirm: \"Send the original messages to the model again?\", checkpointPending: \"Summarising the context…\", checkpointFailed: \"Couldn't summarise the context\", toolRunning: \"Running\", toolCompleted: \"Done\", toolRejected: \"Rejected\", toolStopped: \"Stopped\", toolFailed: \"Failed\", toolInput: \"Input\", toolOutput: \"Output\", toolRejectedSaid: \"You said: “{instruction}”\", toolRefusedByPolicy: \"Refused by policy\", toolNotRunAfterRefusal: \"Not run: an earlier call was refused\", toolTimedOut: \"Timed out\", toolUnavailable: \"Not available here\", toolNoApprover: \"No one could approve it\", toolTurnLimit: \"Turn limit reached\", maxTurnsReached: \"Stopped after {n} turns to avoid an endless loop.\", sourcesCount: \"{n} sources\", sourcesOne: \"1 source\", sourcesCard: \"Sources\", sourcePrevious: \"Previous source\", sourceNext: \"Next source\", sourcePosition: \"Source {i} of {n}\", opensInNewTab: \"(opens in a new tab)\", imageLoad: \"Load the image from {host}\", imageLoadNamed: \"Load the image “{alt}” from {host}\", questionDeclined: \"You declined to answer.\", artifactNotCreated: \"Not created\", thoughtFor: \"Thought for {duration}\", thought: \"Thought\", turnWorking: \"Working…\", turnWorked: \"Worked {duration}\", turnUsed: \"Used {tools}\", turnTools: \"one:{n} tool|other:{n} tools\", feedbackReasonTitle: 'What went wrong?', feedbackReasonDismiss: 'Not now', triggersLoading: 'Loading…', triggersEmpty: 'No results', triggersError: 'This list could not be loaded', triggersRetry: 'Try again', triggersBack: 'Back', triggersCommandNew: 'Start a new conversation', triggersCommandStop: 'Stop the reply', triggersCommandRetry: 'Answer again', triggersCommandCopy: 'Copy the last reply', triggersCommandCompact: 'Summarise the earlier messages', triggersCompactNothing: 'There is nothing to compact yet', triggersCompactBusy: 'Wait for the reply to finish', triggersCompactNoWindow: 'This model does not say how much it can read', triggersCompactFailed: 'The summary could not be written', triggersCommandModel: 'Change the model', triggersCommandApproval: 'Change the approval mode', approvalOptionsLabel: \"Your decision\", approvalArgsLabel: \"Arguments\", actionUpload: \"Attach file\", removeAttachment: \"Remove {name}\", messageFrom: \"Message from {name}\", selectSearchPlaceholder: \"Search…\", selectSearchLabel: \"Search options\", loading: \"Loading…\", download: \"Download\", openArtifact: \"Open\", closeArtifact: \"Close\", artifactVersion: \"Version {n} of {total}\", previousVersion: \"Previous version\", nextVersion: \"Next version\", modelContextWindow: \"{n} context\", previewPending: \"Press Preview to run this artifact.\", sandboxError: \"The sandbox failed during generation.\", sandboxErrorHint: \"Common cause: the model produced invalid code (undefined variable, wrong argument type). Retry the request — the model may produce different code.\", preview: \"Preview\", code: \"Code\", generating: \"Generating…\", rebuildingPreview: \"Rebuilding preview…\", typing: \"Typing\", responseCutOff: \"Cut off at the model's length limit.\", error: \"Error\", errorUnreachable: \"The assistant can’t be reached right now. Try again in a moment.\", errorTimeout: \"The answer took too long. Try again in a moment.\", errorRefused: \"The assistant isn’t allowed to answer right now.\", errorRateLimited: \"Too many requests right now. Try again in a moment.\", errorTooLong: \"This conversation is too long for the model. Start a new one.\", errorFailed: \"The assistant couldn’t answer. Try again in a moment.\", errorNoAnswer: \"The assistant couldn’t answer this request.\", running: \"Running...\", run: \"Run\", file: \"File\", modelSelectorPlaceholder: \"Select a model...\", approvalModeLabel: \"Approval mode\", roleNameUser: \"You\", roleNameAssistant: \"Assistant\", yourMessage: \"Your message\", assistantResponse: \"Assistant response\", messageActions: \"Message actions\", edit: \"Edit message\", editConfirm: \"Send\", editCancel: \"Cancel\", feedbackPositive: \"Good response\", feedbackNegative: \"Bad response\", previousResponse: \"Previous response\", nextResponse: \"Next response\", approveTool: \"Approve\", rejectTool: \"Reject\", messageInfo: \"Details\", newChat: \"New Chat\", loadingConversations: \"Loading conversations\", conversationSearchEmpty: \"No conversation matches\", conversationList: \"Conversations\", loadingConversation: \"Loading the conversation\", deleteConversation: \"Delete\", archiveConversation: \"Archive\", unarchiveConversation: \"Unarchive\", conversationActions: \"Conversation actions\", conversationRunning: \"Answering\", conversationWaiting: \"Waiting for you\", renameConversation: \"Rename\", conversationTitle: \"Conversation title\", pinConversation: \"Pin\", unpinConversation: \"Unpin\", deleteConversationConfirm: \"Delete “{title}”?\", cancel: \"Cancel\", conversationGroupPinned: \"Pinned\", conversationGroupToday: \"Today\", conversationGroupYesterday: \"Yesterday\", conversationGroupWeek: \"Previous 7 days\", conversationGroupMonth: \"Previous 30 days\", scrollRailLabel: \"Conversation outline\", sidebarLabel: \"Conversations\", splitHandleLabel: \"Resize the panes\", launcherOpen: \"Open the chat\", launcherClose: \"Close the chat\", launcherHeading: \"Chat\", launcherMaximize: \"Expand the chat\", launcherRestore: \"Shrink the chat\", transcript: \"Transcript\" }",
|
|
11124
|
+
"description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
|
|
10673
11125
|
}
|
|
10674
11126
|
],
|
|
10675
11127
|
"exports": [
|
|
10676
11128
|
{
|
|
10677
11129
|
"kind": "js",
|
|
10678
|
-
"name": "
|
|
11130
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
10679
11131
|
"declaration": {
|
|
10680
|
-
"name": "
|
|
10681
|
-
"module": "src/config/
|
|
11132
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
11133
|
+
"module": "src/config/locale.ts"
|
|
10682
11134
|
}
|
|
10683
11135
|
}
|
|
10684
11136
|
]
|
|
10685
11137
|
},
|
|
10686
11138
|
{
|
|
10687
11139
|
"kind": "javascript-module",
|
|
10688
|
-
"path": "src/config/
|
|
11140
|
+
"path": "src/config/sanitize.ts",
|
|
10689
11141
|
"declarations": [
|
|
10690
11142
|
{
|
|
10691
|
-
"kind": "
|
|
10692
|
-
"name": "
|
|
10693
|
-
"
|
|
10694
|
-
|
|
10695
|
-
"text": "URL | null"
|
|
10696
|
-
}
|
|
10697
|
-
},
|
|
10698
|
-
"parameters": [
|
|
10699
|
-
{
|
|
10700
|
-
"name": "address",
|
|
10701
|
-
"type": {
|
|
10702
|
-
"text": "string"
|
|
10703
|
-
}
|
|
10704
|
-
}
|
|
10705
|
-
],
|
|
10706
|
-
"description": "An address resolved the way the browser will resolve it, or `null` when it cannot be: a\nrelative one where there is no page to resolve it against (a server render), or no address."
|
|
10707
|
-
},
|
|
10708
|
-
{
|
|
10709
|
-
"kind": "function",
|
|
10710
|
-
"name": "sameImagePolicy",
|
|
10711
|
-
"return": {
|
|
10712
|
-
"type": {
|
|
10713
|
-
"text": "boolean"
|
|
10714
|
-
}
|
|
10715
|
-
},
|
|
10716
|
-
"parameters": [
|
|
10717
|
-
{
|
|
10718
|
-
"name": "a",
|
|
10719
|
-
"type": {
|
|
10720
|
-
"text": "AparteImagePolicy"
|
|
10721
|
-
}
|
|
10722
|
-
},
|
|
10723
|
-
{
|
|
10724
|
-
"name": "b",
|
|
10725
|
-
"type": {
|
|
10726
|
-
"text": "AparteImagePolicy"
|
|
10727
|
-
}
|
|
10728
|
-
}
|
|
10729
|
-
],
|
|
10730
|
-
"description": "Whether two policies say the same thing: the same function, or lists with the same entries."
|
|
10731
|
-
},
|
|
10732
|
-
{
|
|
10733
|
-
"kind": "function",
|
|
10734
|
-
"name": "compileImagePolicy",
|
|
10735
|
-
"return": {
|
|
10736
|
-
"type": {
|
|
10737
|
-
"text": "ImageDecider"
|
|
10738
|
-
}
|
|
10739
|
-
},
|
|
10740
|
-
"parameters": [
|
|
10741
|
-
{
|
|
10742
|
-
"name": "policy",
|
|
10743
|
-
"type": {
|
|
10744
|
-
"text": "AparteImagePolicy"
|
|
10745
|
-
}
|
|
10746
|
-
}
|
|
10747
|
-
],
|
|
10748
|
-
"description": "Turn a policy into the function every decision runs through."
|
|
10749
|
-
},
|
|
10750
|
-
{
|
|
10751
|
-
"kind": "function",
|
|
10752
|
-
"name": "decideImageAddress",
|
|
10753
|
-
"return": {
|
|
10754
|
-
"type": {
|
|
10755
|
-
"text": "AparteImageDecision"
|
|
10756
|
-
}
|
|
10757
|
-
},
|
|
10758
|
-
"parameters": [
|
|
10759
|
-
{
|
|
10760
|
-
"name": "decide",
|
|
10761
|
-
"type": {
|
|
10762
|
-
"text": "ImageDecider"
|
|
10763
|
-
}
|
|
10764
|
-
},
|
|
10765
|
-
{
|
|
10766
|
-
"name": "address",
|
|
10767
|
-
"type": {
|
|
10768
|
-
"text": "string"
|
|
10769
|
-
}
|
|
10770
|
-
},
|
|
10771
|
-
{
|
|
10772
|
-
"name": "shown",
|
|
10773
|
-
"optional": true,
|
|
10774
|
-
"type": {
|
|
10775
|
-
"text": "ReadonlySet<string>"
|
|
10776
|
-
}
|
|
10777
|
-
}
|
|
10778
|
-
],
|
|
10779
|
-
"description": "What the picture at `address` does. `data:` and `blob:` load, an address that is no web\naddress (`ftp:`, `mailto:`) goes, and the policy decides the rest — except that a picture the\nreader already chose to see (`shown`) loads when the policy would only have held it."
|
|
10780
|
-
},
|
|
10781
|
-
{
|
|
10782
|
-
"kind": "function",
|
|
10783
|
-
"name": "rememberShownImage",
|
|
10784
|
-
"return": {
|
|
10785
|
-
"type": {
|
|
10786
|
-
"text": "void"
|
|
10787
|
-
}
|
|
10788
|
-
},
|
|
10789
|
-
"parameters": [
|
|
10790
|
-
{
|
|
10791
|
-
"name": "owner",
|
|
10792
|
-
"type": {
|
|
10793
|
-
"text": "object"
|
|
10794
|
-
}
|
|
10795
|
-
},
|
|
10796
|
-
{
|
|
10797
|
-
"name": "address",
|
|
10798
|
-
"type": {
|
|
10799
|
-
"text": "string"
|
|
10800
|
-
}
|
|
10801
|
-
}
|
|
10802
|
-
],
|
|
10803
|
-
"description": "Remember that the reader chose to see the picture at `address`, under `owner` (a config)."
|
|
10804
|
-
},
|
|
10805
|
-
{
|
|
10806
|
-
"kind": "function",
|
|
10807
|
-
"name": "shownImagesOf",
|
|
10808
|
-
"return": {
|
|
10809
|
-
"type": {
|
|
10810
|
-
"text": "ReadonlySet<string> | undefined"
|
|
10811
|
-
}
|
|
10812
|
-
},
|
|
10813
|
-
"parameters": [
|
|
10814
|
-
{
|
|
10815
|
-
"name": "owner",
|
|
10816
|
-
"type": {
|
|
10817
|
-
"text": "object"
|
|
10818
|
-
}
|
|
10819
|
-
}
|
|
10820
|
-
],
|
|
10821
|
-
"description": "The pictures the reader chose to see under `owner`."
|
|
10822
|
-
},
|
|
10823
|
-
{
|
|
10824
|
-
"kind": "function",
|
|
10825
|
-
"name": "forgetShownImages",
|
|
10826
|
-
"return": {
|
|
10827
|
-
"type": {
|
|
10828
|
-
"text": "void"
|
|
10829
|
-
}
|
|
10830
|
-
},
|
|
10831
|
-
"parameters": [
|
|
10832
|
-
{
|
|
10833
|
-
"name": "owner",
|
|
10834
|
-
"type": {
|
|
10835
|
-
"text": "object"
|
|
10836
|
-
}
|
|
10837
|
-
}
|
|
10838
|
-
],
|
|
10839
|
-
"description": "Forget them: a reset config starts from what its policy says."
|
|
11143
|
+
"kind": "variable",
|
|
11144
|
+
"name": "DANGEROUS_TAGS",
|
|
11145
|
+
"default": "new Set([ 'script', 'style', 'iframe', 'frame', 'frameset', 'object', 'embed', 'applet', 'form', 'button', 'textarea', 'select', 'option', 'optgroup', 'link', 'meta', 'base', 'title', 'head', 'html', 'body', 'template', 'noscript', 'svg', 'math', 'portal', ])",
|
|
11146
|
+
"description": "Tags dropped wholesale — content and all (never unwrapped to text).\n\nExported for the DOM-free path's own suite: both of `fallbackScrub`'s regexes\nare built from this Set, and the test that proves it loops over the Set rather\nthan a copy. Not re-exported from the package barrel — it is core's list, not\na contract."
|
|
10840
11147
|
},
|
|
10841
11148
|
{
|
|
10842
|
-
"kind": "
|
|
10843
|
-
"name": "
|
|
10844
|
-
"
|
|
10845
|
-
|
|
10846
|
-
"text": "SrcsetCandidate[]"
|
|
10847
|
-
}
|
|
10848
|
-
},
|
|
10849
|
-
"parameters": [
|
|
10850
|
-
{
|
|
10851
|
-
"name": "value",
|
|
10852
|
-
"type": {
|
|
10853
|
-
"text": "string"
|
|
10854
|
-
}
|
|
10855
|
-
}
|
|
10856
|
-
],
|
|
10857
|
-
"description": "A `srcset`, read as the HTML Standard's \"parse a srcset attribute\" reads it — in the details a\ndifference would turn into a request. Only ASCII whitespace separates: a JavaScript `\\s` also\nsplits on U+00A0 and U+FEFF, which a browser keeps inside an address (` data:…/../api/logout`\nis a path on the page's own site to it). An address runs to the next such space, so a `data:`\nURL keeps its commas; trailing commas end a candidate; a descriptor's parentheses do not nest\n(`1x ((), https://…` is two candidates to a browser, not one).\n\nA candidate with descriptors this does not know is left out. That is safe in one direction\nonly, and it is the direction the pass relies on: what reaches the page is never the model's\n`srcset` but one written again from these candidates (`writeSrcset`), so a browser can only\npick an address that was judged."
|
|
11149
|
+
"kind": "variable",
|
|
11150
|
+
"name": "RESERVED_ATTRIBUTES",
|
|
11151
|
+
"default": "new Set([ 'data-aparte-chat', 'data-aparte-host', 'data-aparte-theme', 'data-aparte-split-pane', 'data-aparte-launcher-close', 'data-aparte-launcher-maximize', 'data-aparte-suggestions', 'data-aparte-bubble', 'data-aparte-empty', 'data-aparte-panel', 'data-aparte-panel-host', 'data-aparte-card-part', 'data-segment-id', 'data-action', ])",
|
|
11152
|
+
"description": "The attributes core READS, as a command or as a boundary, on an element it finds by\nwalking the DOM: a delegated click listener (`data-aparte-dialog-open`, the sidebar\nand split toggles, the launcher's close and maximize), the chat that owns a card's `send`\n(`data-aparte-chat`), the instance config a subtree resolves to (`data-aparte-host`),\nthe palette a subtree wears (`data-aparte-theme`), a checkpoint's Restore\n(`data-checkpoint-action`), the row a segment update targets (`data-segment-id`).\n\n`data-*` is otherwise kept (see `copyAttributes`), so these are the exceptions: model\nmarkup is text, and text cannot press a button or move a boundary core drew. The list\nis exact rather than the whole `data-aparte-` prefix on purpose — a Markdown provider\nwrites `data-aparte-open` before the sanitizer runs, and core marks its own state on\nDOM the sanitizer sees again (`data-aparte-highlighted`) — and\n`the-sanitizer-refuses-what-core-reads.test.ts` scans core's source so an attribute\nadded there cannot be forgotten here. Exported for that test; not from the barrel."
|
|
10858
11153
|
},
|
|
10859
11154
|
{
|
|
10860
|
-
"kind": "
|
|
10861
|
-
"name": "
|
|
10862
|
-
"
|
|
10863
|
-
"
|
|
10864
|
-
"text": "string[]"
|
|
10865
|
-
}
|
|
11155
|
+
"kind": "variable",
|
|
11156
|
+
"name": "RESERVED_ATTRIBUTE_PREFIXES",
|
|
11157
|
+
"type": {
|
|
11158
|
+
"text": "array"
|
|
10866
11159
|
},
|
|
10867
|
-
"
|
|
10868
|
-
|
|
10869
|
-
"name": "value",
|
|
10870
|
-
"type": {
|
|
10871
|
-
"text": "string"
|
|
10872
|
-
}
|
|
10873
|
-
}
|
|
10874
|
-
],
|
|
10875
|
-
"description": "The addresses a `srcset` lists, as `parseSrcset` reads them."
|
|
11160
|
+
"default": "['data-aparte-dialog-', 'data-aparte-sidebar-', 'data-checkpoint-']",
|
|
11161
|
+
"description": "Families of reserved attributes: `-open`/`-close`/`-static`, `-toggle`/`-search`, `-action`/`-reason`."
|
|
10876
11162
|
},
|
|
10877
11163
|
{
|
|
10878
11164
|
"kind": "function",
|
|
10879
|
-
"name": "
|
|
11165
|
+
"name": "isReservedAttribute",
|
|
10880
11166
|
"return": {
|
|
10881
11167
|
"type": {
|
|
10882
|
-
"text": "
|
|
11168
|
+
"text": "boolean"
|
|
10883
11169
|
}
|
|
10884
11170
|
},
|
|
10885
11171
|
"parameters": [
|
|
10886
11172
|
{
|
|
10887
|
-
"name": "
|
|
11173
|
+
"name": "name",
|
|
10888
11174
|
"type": {
|
|
10889
11175
|
"text": "string"
|
|
10890
11176
|
}
|
|
10891
11177
|
}
|
|
10892
11178
|
],
|
|
10893
|
-
"description": "
|
|
11179
|
+
"description": "True when `name` (lower case) is an attribute core reads, so model markup may not carry it."
|
|
10894
11180
|
},
|
|
10895
11181
|
{
|
|
10896
11182
|
"kind": "function",
|
|
10897
|
-
"name": "
|
|
11183
|
+
"name": "isSafeUrl",
|
|
10898
11184
|
"return": {
|
|
10899
11185
|
"type": {
|
|
10900
|
-
"text": "
|
|
11186
|
+
"text": "boolean"
|
|
10901
11187
|
}
|
|
10902
11188
|
},
|
|
10903
11189
|
"parameters": [
|
|
10904
11190
|
{
|
|
10905
|
-
"name": "
|
|
11191
|
+
"name": "value",
|
|
10906
11192
|
"type": {
|
|
10907
11193
|
"text": "string"
|
|
10908
11194
|
}
|
|
10909
11195
|
},
|
|
10910
11196
|
{
|
|
10911
|
-
"name": "
|
|
11197
|
+
"name": "tag",
|
|
10912
11198
|
"type": {
|
|
10913
11199
|
"text": "string"
|
|
10914
11200
|
}
|
|
10915
|
-
},
|
|
10916
|
-
{
|
|
10917
|
-
"name": "words",
|
|
10918
|
-
"type": {
|
|
10919
|
-
"text": "HeldImageWords"
|
|
10920
|
-
}
|
|
10921
|
-
},
|
|
10922
|
-
{
|
|
10923
|
-
"name": "inLink",
|
|
10924
|
-
"default": "false"
|
|
10925
11201
|
}
|
|
10926
|
-
]
|
|
10927
|
-
"description": "A held picture: a link to it that wears the tag recipe, names where it would load from, and\ncarries what it holds in two attributes, so a later pass can draw it again from them alone.\nWithout script it opens the picture in a new tab; with core's listener it loads in place.\n\nInside a link (`[](https://ci…)`) it is a `<span role=\"button\">` instead: a\nlink inside a link is taken apart by the HTML parser, which would leave the reply's own link\nempty and the picture outside it."
|
|
11202
|
+
]
|
|
10928
11203
|
},
|
|
10929
11204
|
{
|
|
10930
11205
|
"kind": "function",
|
|
10931
|
-
"name": "
|
|
11206
|
+
"name": "readTag",
|
|
10932
11207
|
"return": {
|
|
10933
11208
|
"type": {
|
|
10934
|
-
"text": "string"
|
|
11209
|
+
"text": "{ tag: string; attrs: Array<[string, string]>; end: number }"
|
|
10935
11210
|
}
|
|
10936
11211
|
},
|
|
10937
11212
|
"parameters": [
|
|
@@ -10942,23 +11217,17 @@
|
|
|
10942
11217
|
}
|
|
10943
11218
|
},
|
|
10944
11219
|
{
|
|
10945
|
-
"name": "
|
|
10946
|
-
"type": {
|
|
10947
|
-
"text": "(address: string) => AparteImageDecision"
|
|
10948
|
-
}
|
|
10949
|
-
},
|
|
10950
|
-
{
|
|
10951
|
-
"name": "words",
|
|
11220
|
+
"name": "nameAt",
|
|
10952
11221
|
"type": {
|
|
10953
|
-
"text": "
|
|
11222
|
+
"text": "number"
|
|
10954
11223
|
}
|
|
10955
11224
|
}
|
|
10956
11225
|
],
|
|
10957
|
-
"description": "
|
|
11226
|
+
"description": "One tag read from `nameAt` (the first letter of its name) the way a browser's tokenizer reads\nit: a quote ends where its match is, an unquoted value at a space or `>`, `/` and a closing\nquote separate attributes, the first of two equal names wins, and a value is read with the\nentities that can spell a checked character decoded. `end` is the index past its `>`, or `-1`\nwhen the text ends inside the tag.\n\nExported for the image policy's DOM-free pass (`image-policy.ts`), which has to find the same\ntags in the same text this scrub wrote; not from the package barrel."
|
|
10958
11227
|
},
|
|
10959
11228
|
{
|
|
10960
11229
|
"kind": "function",
|
|
10961
|
-
"name": "
|
|
11230
|
+
"name": "defaultSanitizer",
|
|
10962
11231
|
"return": {
|
|
10963
11232
|
"type": {
|
|
10964
11233
|
"text": "string"
|
|
@@ -10970,846 +11239,601 @@
|
|
|
10970
11239
|
"type": {
|
|
10971
11240
|
"text": "string"
|
|
10972
11241
|
}
|
|
10973
|
-
},
|
|
10974
|
-
{
|
|
10975
|
-
"name": "decide",
|
|
10976
|
-
"type": {
|
|
10977
|
-
"text": "(address: string) => AparteImageDecision"
|
|
10978
|
-
}
|
|
10979
|
-
},
|
|
10980
|
-
{
|
|
10981
|
-
"name": "words",
|
|
10982
|
-
"type": {
|
|
10983
|
-
"text": "() => HeldImageWords"
|
|
10984
|
-
}
|
|
10985
11242
|
}
|
|
10986
11243
|
],
|
|
10987
|
-
"description": "The
|
|
11244
|
+
"description": "The built-in sanitizer. Parses `html` with the platform DOMParser, rebuilds an\nallowlisted tree, and re-serializes it. Falls back to a regex scrub only when\nno DOMParser exists (non-browser runtime)."
|
|
10988
11245
|
}
|
|
10989
11246
|
],
|
|
10990
11247
|
"exports": [
|
|
10991
11248
|
{
|
|
10992
11249
|
"kind": "js",
|
|
10993
|
-
"name": "
|
|
10994
|
-
"declaration": {
|
|
10995
|
-
"name": "resolveImageAddress",
|
|
10996
|
-
"module": "src/config/image-policy.ts"
|
|
10997
|
-
}
|
|
10998
|
-
},
|
|
10999
|
-
{
|
|
11000
|
-
"kind": "js",
|
|
11001
|
-
"name": "sameImagePolicy",
|
|
11002
|
-
"declaration": {
|
|
11003
|
-
"name": "sameImagePolicy",
|
|
11004
|
-
"module": "src/config/image-policy.ts"
|
|
11005
|
-
}
|
|
11006
|
-
},
|
|
11007
|
-
{
|
|
11008
|
-
"kind": "js",
|
|
11009
|
-
"name": "compileImagePolicy",
|
|
11010
|
-
"declaration": {
|
|
11011
|
-
"name": "compileImagePolicy",
|
|
11012
|
-
"module": "src/config/image-policy.ts"
|
|
11013
|
-
}
|
|
11014
|
-
},
|
|
11015
|
-
{
|
|
11016
|
-
"kind": "js",
|
|
11017
|
-
"name": "decideImageAddress",
|
|
11018
|
-
"declaration": {
|
|
11019
|
-
"name": "decideImageAddress",
|
|
11020
|
-
"module": "src/config/image-policy.ts"
|
|
11021
|
-
}
|
|
11022
|
-
},
|
|
11023
|
-
{
|
|
11024
|
-
"kind": "js",
|
|
11025
|
-
"name": "rememberShownImage",
|
|
11250
|
+
"name": "DANGEROUS_TAGS",
|
|
11026
11251
|
"declaration": {
|
|
11027
|
-
"name": "
|
|
11028
|
-
"module": "src/config/
|
|
11252
|
+
"name": "DANGEROUS_TAGS",
|
|
11253
|
+
"module": "src/config/sanitize.ts"
|
|
11029
11254
|
}
|
|
11030
11255
|
},
|
|
11031
11256
|
{
|
|
11032
11257
|
"kind": "js",
|
|
11033
|
-
"name": "
|
|
11258
|
+
"name": "RESERVED_ATTRIBUTES",
|
|
11034
11259
|
"declaration": {
|
|
11035
|
-
"name": "
|
|
11036
|
-
"module": "src/config/
|
|
11260
|
+
"name": "RESERVED_ATTRIBUTES",
|
|
11261
|
+
"module": "src/config/sanitize.ts"
|
|
11037
11262
|
}
|
|
11038
11263
|
},
|
|
11039
11264
|
{
|
|
11040
11265
|
"kind": "js",
|
|
11041
|
-
"name": "
|
|
11266
|
+
"name": "RESERVED_ATTRIBUTE_PREFIXES",
|
|
11042
11267
|
"declaration": {
|
|
11043
|
-
"name": "
|
|
11044
|
-
"module": "src/config/
|
|
11268
|
+
"name": "RESERVED_ATTRIBUTE_PREFIXES",
|
|
11269
|
+
"module": "src/config/sanitize.ts"
|
|
11045
11270
|
}
|
|
11046
11271
|
},
|
|
11047
11272
|
{
|
|
11048
11273
|
"kind": "js",
|
|
11049
|
-
"name": "
|
|
11274
|
+
"name": "isReservedAttribute",
|
|
11050
11275
|
"declaration": {
|
|
11051
|
-
"name": "
|
|
11052
|
-
"module": "src/config/
|
|
11276
|
+
"name": "isReservedAttribute",
|
|
11277
|
+
"module": "src/config/sanitize.ts"
|
|
11053
11278
|
}
|
|
11054
11279
|
},
|
|
11055
11280
|
{
|
|
11056
11281
|
"kind": "js",
|
|
11057
|
-
"name": "
|
|
11282
|
+
"name": "isSafeUrl",
|
|
11058
11283
|
"declaration": {
|
|
11059
|
-
"name": "
|
|
11060
|
-
"module": "src/config/
|
|
11284
|
+
"name": "isSafeUrl",
|
|
11285
|
+
"module": "src/config/sanitize.ts"
|
|
11061
11286
|
}
|
|
11062
11287
|
},
|
|
11063
11288
|
{
|
|
11064
11289
|
"kind": "js",
|
|
11065
|
-
"name": "
|
|
11290
|
+
"name": "readTag",
|
|
11066
11291
|
"declaration": {
|
|
11067
|
-
"name": "
|
|
11068
|
-
"module": "src/config/
|
|
11292
|
+
"name": "readTag",
|
|
11293
|
+
"module": "src/config/sanitize.ts"
|
|
11069
11294
|
}
|
|
11070
11295
|
},
|
|
11071
11296
|
{
|
|
11072
11297
|
"kind": "js",
|
|
11073
|
-
"name": "
|
|
11298
|
+
"name": "defaultSanitizer",
|
|
11074
11299
|
"declaration": {
|
|
11075
|
-
"name": "
|
|
11076
|
-
"module": "src/config/
|
|
11300
|
+
"name": "defaultSanitizer",
|
|
11301
|
+
"module": "src/config/sanitize.ts"
|
|
11077
11302
|
}
|
|
11078
|
-
}
|
|
11303
|
+
}
|
|
11304
|
+
]
|
|
11305
|
+
},
|
|
11306
|
+
{
|
|
11307
|
+
"kind": "javascript-module",
|
|
11308
|
+
"path": "src/config/sibling-nav-renderer.ts",
|
|
11309
|
+
"declarations": [],
|
|
11310
|
+
"exports": []
|
|
11311
|
+
},
|
|
11312
|
+
{
|
|
11313
|
+
"kind": "javascript-module",
|
|
11314
|
+
"path": "src/config/status-renderer.ts",
|
|
11315
|
+
"declarations": [],
|
|
11316
|
+
"exports": []
|
|
11317
|
+
},
|
|
11318
|
+
{
|
|
11319
|
+
"kind": "javascript-module",
|
|
11320
|
+
"path": "src/config/tool-table.ts",
|
|
11321
|
+
"declarations": [
|
|
11079
11322
|
{
|
|
11080
|
-
"kind": "
|
|
11081
|
-
"
|
|
11082
|
-
"
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11323
|
+
"kind": "class",
|
|
11324
|
+
"description": "",
|
|
11325
|
+
"name": "ToolTable",
|
|
11326
|
+
"members": [
|
|
11327
|
+
{
|
|
11328
|
+
"kind": "field",
|
|
11329
|
+
"name": "exact",
|
|
11330
|
+
"privacy": "private",
|
|
11331
|
+
"readonly": true,
|
|
11332
|
+
"default": "new Map<string, T>()"
|
|
11333
|
+
},
|
|
11334
|
+
{
|
|
11335
|
+
"kind": "field",
|
|
11336
|
+
"name": "patterns",
|
|
11337
|
+
"privacy": "private",
|
|
11338
|
+
"readonly": true,
|
|
11339
|
+
"default": "new Map<string, { re: RegExp; value: T }>()"
|
|
11340
|
+
},
|
|
11341
|
+
{
|
|
11342
|
+
"kind": "field",
|
|
11343
|
+
"name": "any",
|
|
11344
|
+
"type": {
|
|
11345
|
+
"text": "T | undefined"
|
|
11346
|
+
},
|
|
11347
|
+
"privacy": "private"
|
|
11348
|
+
},
|
|
11349
|
+
{
|
|
11350
|
+
"kind": "method",
|
|
11351
|
+
"name": "get",
|
|
11352
|
+
"return": {
|
|
11353
|
+
"type": {
|
|
11354
|
+
"text": "T | undefined"
|
|
11355
|
+
}
|
|
11356
|
+
},
|
|
11357
|
+
"parameters": [
|
|
11358
|
+
{
|
|
11359
|
+
"name": "match",
|
|
11360
|
+
"type": {
|
|
11361
|
+
"text": "AparteToolMatcher"
|
|
11362
|
+
}
|
|
11363
|
+
}
|
|
11364
|
+
],
|
|
11365
|
+
"description": "The value registered under exactly this matcher — not a resolution."
|
|
11366
|
+
},
|
|
11367
|
+
{
|
|
11368
|
+
"kind": "method",
|
|
11369
|
+
"name": "set",
|
|
11370
|
+
"return": {
|
|
11371
|
+
"type": {
|
|
11372
|
+
"text": "void"
|
|
11373
|
+
}
|
|
11374
|
+
},
|
|
11375
|
+
"parameters": [
|
|
11376
|
+
{
|
|
11377
|
+
"name": "match",
|
|
11378
|
+
"type": {
|
|
11379
|
+
"text": "AparteToolMatcher"
|
|
11380
|
+
}
|
|
11381
|
+
},
|
|
11382
|
+
{
|
|
11383
|
+
"name": "value",
|
|
11384
|
+
"type": {
|
|
11385
|
+
"text": "T"
|
|
11386
|
+
}
|
|
11387
|
+
}
|
|
11388
|
+
]
|
|
11389
|
+
},
|
|
11390
|
+
{
|
|
11391
|
+
"kind": "method",
|
|
11392
|
+
"name": "delete",
|
|
11393
|
+
"return": {
|
|
11394
|
+
"type": {
|
|
11395
|
+
"text": "void"
|
|
11396
|
+
}
|
|
11397
|
+
},
|
|
11398
|
+
"parameters": [
|
|
11399
|
+
{
|
|
11400
|
+
"name": "match",
|
|
11401
|
+
"type": {
|
|
11402
|
+
"text": "AparteToolMatcher"
|
|
11403
|
+
}
|
|
11404
|
+
}
|
|
11405
|
+
]
|
|
11406
|
+
},
|
|
11407
|
+
{
|
|
11408
|
+
"kind": "method",
|
|
11409
|
+
"name": "resolve",
|
|
11410
|
+
"return": {
|
|
11411
|
+
"type": {
|
|
11412
|
+
"text": "{ value: T; level: ToolMatchLevel } | undefined"
|
|
11413
|
+
}
|
|
11414
|
+
},
|
|
11415
|
+
"parameters": [
|
|
11416
|
+
{
|
|
11417
|
+
"name": "name",
|
|
11418
|
+
"type": {
|
|
11419
|
+
"text": "string"
|
|
11420
|
+
}
|
|
11421
|
+
}
|
|
11422
|
+
],
|
|
11423
|
+
"description": "The value that applies to a tool named `name`, and how specifically it names it."
|
|
11424
|
+
},
|
|
11425
|
+
{
|
|
11426
|
+
"kind": "method",
|
|
11427
|
+
"name": "values",
|
|
11428
|
+
"return": {
|
|
11429
|
+
"type": {
|
|
11430
|
+
"text": "T[]"
|
|
11431
|
+
}
|
|
11432
|
+
},
|
|
11433
|
+
"description": "Every value registered, whatever its matcher."
|
|
11434
|
+
},
|
|
11435
|
+
{
|
|
11436
|
+
"kind": "method",
|
|
11437
|
+
"name": "clear",
|
|
11438
|
+
"return": {
|
|
11439
|
+
"type": {
|
|
11440
|
+
"text": "void"
|
|
11441
|
+
}
|
|
11442
|
+
}
|
|
11443
|
+
}
|
|
11444
|
+
]
|
|
11445
|
+
}
|
|
11446
|
+
],
|
|
11447
|
+
"exports": [
|
|
11087
11448
|
{
|
|
11088
11449
|
"kind": "js",
|
|
11089
|
-
"name": "
|
|
11450
|
+
"name": "ToolTable",
|
|
11090
11451
|
"declaration": {
|
|
11091
|
-
"name": "
|
|
11092
|
-
"module": "src/config/
|
|
11452
|
+
"name": "ToolTable",
|
|
11453
|
+
"module": "src/config/tool-table.ts"
|
|
11093
11454
|
}
|
|
11094
11455
|
}
|
|
11095
11456
|
]
|
|
11096
11457
|
},
|
|
11097
11458
|
{
|
|
11098
11459
|
"kind": "javascript-module",
|
|
11099
|
-
"path": "src/
|
|
11460
|
+
"path": "src/components/index.ts",
|
|
11100
11461
|
"declarations": [],
|
|
11101
11462
|
"exports": [
|
|
11102
11463
|
{
|
|
11103
11464
|
"kind": "js",
|
|
11104
|
-
"name": "
|
|
11105
|
-
"declaration": {
|
|
11106
|
-
"name": "aparteGlobalConfig",
|
|
11107
|
-
"module": "./aparte-config.js"
|
|
11108
|
-
}
|
|
11109
|
-
},
|
|
11110
|
-
{
|
|
11111
|
-
"kind": "js",
|
|
11112
|
-
"name": "AparteConfig",
|
|
11113
|
-
"declaration": {
|
|
11114
|
-
"name": "AparteConfig",
|
|
11115
|
-
"module": "./aparte-config.js"
|
|
11116
|
-
}
|
|
11117
|
-
},
|
|
11118
|
-
{
|
|
11119
|
-
"kind": "js",
|
|
11120
|
-
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
11121
|
-
"declaration": {
|
|
11122
|
-
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
11123
|
-
"module": "./aparte-config.js"
|
|
11124
|
-
}
|
|
11125
|
-
},
|
|
11126
|
-
{
|
|
11127
|
-
"kind": "js",
|
|
11128
|
-
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
11129
|
-
"declaration": {
|
|
11130
|
-
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
11131
|
-
"module": "./aparte-config.js"
|
|
11132
|
-
}
|
|
11133
|
-
},
|
|
11134
|
-
{
|
|
11135
|
-
"kind": "js",
|
|
11136
|
-
"name": "resolveConfig",
|
|
11137
|
-
"declaration": {
|
|
11138
|
-
"name": "resolveConfig",
|
|
11139
|
-
"module": "./config-context.js"
|
|
11140
|
-
}
|
|
11141
|
-
},
|
|
11142
|
-
{
|
|
11143
|
-
"kind": "js",
|
|
11144
|
-
"name": "attachConfig",
|
|
11145
|
-
"declaration": {
|
|
11146
|
-
"name": "attachConfig",
|
|
11147
|
-
"module": "./config-context.js"
|
|
11148
|
-
}
|
|
11149
|
-
},
|
|
11150
|
-
{
|
|
11151
|
-
"kind": "js",
|
|
11152
|
-
"name": "detachConfig",
|
|
11153
|
-
"declaration": {
|
|
11154
|
-
"name": "detachConfig",
|
|
11155
|
-
"module": "./config-context.js"
|
|
11156
|
-
}
|
|
11157
|
-
},
|
|
11158
|
-
{
|
|
11159
|
-
"kind": "js",
|
|
11160
|
-
"name": "runWithConfig",
|
|
11161
|
-
"declaration": {
|
|
11162
|
-
"name": "runWithConfig",
|
|
11163
|
-
"module": "./config-context.js"
|
|
11164
|
-
}
|
|
11165
|
-
},
|
|
11166
|
-
{
|
|
11167
|
-
"kind": "js",
|
|
11168
|
-
"name": "contextConfig",
|
|
11169
|
-
"declaration": {
|
|
11170
|
-
"name": "contextConfig",
|
|
11171
|
-
"module": "./config-context.js"
|
|
11172
|
-
}
|
|
11173
|
-
},
|
|
11174
|
-
{
|
|
11175
|
-
"kind": "js",
|
|
11176
|
-
"name": "APARTE_HOST_ATTR",
|
|
11177
|
-
"declaration": {
|
|
11178
|
-
"name": "APARTE_HOST_ATTR",
|
|
11179
|
-
"module": "./config-context.js"
|
|
11180
|
-
}
|
|
11181
|
-
},
|
|
11182
|
-
{
|
|
11183
|
-
"kind": "js",
|
|
11184
|
-
"name": "subscribeConfigChange",
|
|
11465
|
+
"name": "AparteChat",
|
|
11185
11466
|
"declaration": {
|
|
11186
|
-
"name": "
|
|
11187
|
-
"module": "./
|
|
11467
|
+
"name": "AparteChat",
|
|
11468
|
+
"module": "./chat/index.js"
|
|
11188
11469
|
}
|
|
11189
11470
|
},
|
|
11190
11471
|
{
|
|
11191
11472
|
"kind": "js",
|
|
11192
|
-
"name": "
|
|
11473
|
+
"name": "AparteChatBubble",
|
|
11193
11474
|
"declaration": {
|
|
11194
|
-
"name": "
|
|
11195
|
-
"module": "./
|
|
11475
|
+
"name": "AparteChatBubble",
|
|
11476
|
+
"module": "./bubble/index.js"
|
|
11196
11477
|
}
|
|
11197
11478
|
},
|
|
11198
11479
|
{
|
|
11199
11480
|
"kind": "js",
|
|
11200
|
-
"name": "
|
|
11481
|
+
"name": "populateBubbleFromMessage",
|
|
11201
11482
|
"declaration": {
|
|
11202
|
-
"name": "
|
|
11203
|
-
"module": "./
|
|
11483
|
+
"name": "populateBubbleFromMessage",
|
|
11484
|
+
"module": "./bubble/index.js"
|
|
11204
11485
|
}
|
|
11205
11486
|
},
|
|
11206
11487
|
{
|
|
11207
11488
|
"kind": "js",
|
|
11208
|
-
"name": "
|
|
11489
|
+
"name": "SyncableBubble",
|
|
11209
11490
|
"declaration": {
|
|
11210
|
-
"name": "
|
|
11211
|
-
"module": "./
|
|
11491
|
+
"name": "SyncableBubble",
|
|
11492
|
+
"module": "./bubble/index.js"
|
|
11212
11493
|
}
|
|
11213
11494
|
},
|
|
11214
11495
|
{
|
|
11215
11496
|
"kind": "js",
|
|
11216
|
-
"name": "
|
|
11497
|
+
"name": "AparteChatStatus",
|
|
11217
11498
|
"declaration": {
|
|
11218
|
-
"name": "
|
|
11219
|
-
"module": "./
|
|
11499
|
+
"name": "AparteChatStatus",
|
|
11500
|
+
"module": "./status/index.js"
|
|
11220
11501
|
}
|
|
11221
11502
|
},
|
|
11222
11503
|
{
|
|
11223
11504
|
"kind": "js",
|
|
11224
|
-
"name": "
|
|
11505
|
+
"name": "AparteChatViewport",
|
|
11225
11506
|
"declaration": {
|
|
11226
|
-
"name": "
|
|
11227
|
-
"module": "./
|
|
11507
|
+
"name": "AparteChatViewport",
|
|
11508
|
+
"module": "./viewport/index.js"
|
|
11228
11509
|
}
|
|
11229
11510
|
},
|
|
11230
11511
|
{
|
|
11231
11512
|
"kind": "js",
|
|
11232
|
-
"name": "
|
|
11513
|
+
"name": "AparteComposer",
|
|
11233
11514
|
"declaration": {
|
|
11234
|
-
"name": "
|
|
11235
|
-
"module": "./
|
|
11515
|
+
"name": "AparteComposer",
|
|
11516
|
+
"module": "./composer/index.js"
|
|
11236
11517
|
}
|
|
11237
11518
|
},
|
|
11238
11519
|
{
|
|
11239
11520
|
"kind": "js",
|
|
11240
|
-
"name": "
|
|
11521
|
+
"name": "AparteComposerInput",
|
|
11241
11522
|
"declaration": {
|
|
11242
|
-
"name": "
|
|
11243
|
-
"module": "./
|
|
11523
|
+
"name": "AparteComposerInput",
|
|
11524
|
+
"module": "./composer/index.js"
|
|
11244
11525
|
}
|
|
11245
11526
|
},
|
|
11246
11527
|
{
|
|
11247
11528
|
"kind": "js",
|
|
11248
|
-
"name": "
|
|
11529
|
+
"name": "AparteComposerSend",
|
|
11249
11530
|
"declaration": {
|
|
11250
|
-
"name": "
|
|
11251
|
-
"module": "./
|
|
11531
|
+
"name": "AparteComposerSend",
|
|
11532
|
+
"module": "./composer/index.js"
|
|
11252
11533
|
}
|
|
11253
11534
|
},
|
|
11254
11535
|
{
|
|
11255
11536
|
"kind": "js",
|
|
11256
|
-
"name": "
|
|
11537
|
+
"name": "AparteComposerCancel",
|
|
11257
11538
|
"declaration": {
|
|
11258
|
-
"name": "
|
|
11259
|
-
"module": "./
|
|
11539
|
+
"name": "AparteComposerCancel",
|
|
11540
|
+
"module": "./composer/index.js"
|
|
11260
11541
|
}
|
|
11261
11542
|
},
|
|
11262
11543
|
{
|
|
11263
11544
|
"kind": "js",
|
|
11264
|
-
"name": "
|
|
11545
|
+
"name": "AparteComposerAttachments",
|
|
11265
11546
|
"declaration": {
|
|
11266
|
-
"name": "
|
|
11267
|
-
"module": "./
|
|
11547
|
+
"name": "AparteComposerAttachments",
|
|
11548
|
+
"module": "./composer/index.js"
|
|
11268
11549
|
}
|
|
11269
11550
|
},
|
|
11270
11551
|
{
|
|
11271
11552
|
"kind": "js",
|
|
11272
|
-
"name": "
|
|
11553
|
+
"name": "AparteComposerAddAttachment",
|
|
11273
11554
|
"declaration": {
|
|
11274
|
-
"name": "
|
|
11275
|
-
"module": "./
|
|
11555
|
+
"name": "AparteComposerAddAttachment",
|
|
11556
|
+
"module": "./composer/index.js"
|
|
11276
11557
|
}
|
|
11277
11558
|
},
|
|
11278
11559
|
{
|
|
11279
11560
|
"kind": "js",
|
|
11280
|
-
"name": "
|
|
11561
|
+
"name": "AparteComposerAction",
|
|
11281
11562
|
"declaration": {
|
|
11282
|
-
"name": "
|
|
11283
|
-
"module": "./
|
|
11563
|
+
"name": "AparteComposerAction",
|
|
11564
|
+
"module": "./composer/index.js"
|
|
11284
11565
|
}
|
|
11285
11566
|
},
|
|
11286
11567
|
{
|
|
11287
11568
|
"kind": "js",
|
|
11288
|
-
"name": "
|
|
11569
|
+
"name": "AparteComposerToolbar",
|
|
11289
11570
|
"declaration": {
|
|
11290
|
-
"name": "
|
|
11291
|
-
"module": "./
|
|
11571
|
+
"name": "AparteComposerToolbar",
|
|
11572
|
+
"module": "./composer/index.js"
|
|
11292
11573
|
}
|
|
11293
11574
|
},
|
|
11294
11575
|
{
|
|
11295
11576
|
"kind": "js",
|
|
11296
|
-
"name": "
|
|
11577
|
+
"name": "AparteComposerEventMap",
|
|
11297
11578
|
"declaration": {
|
|
11298
|
-
"name": "
|
|
11299
|
-
"module": "./
|
|
11579
|
+
"name": "AparteComposerEventMap",
|
|
11580
|
+
"module": "./composer/index.js"
|
|
11300
11581
|
}
|
|
11301
11582
|
},
|
|
11302
11583
|
{
|
|
11303
11584
|
"kind": "js",
|
|
11304
|
-
"name": "
|
|
11585
|
+
"name": "AparteComposerEventType",
|
|
11305
11586
|
"declaration": {
|
|
11306
|
-
"name": "
|
|
11307
|
-
"module": "./
|
|
11587
|
+
"name": "AparteComposerEventType",
|
|
11588
|
+
"module": "./composer/index.js"
|
|
11308
11589
|
}
|
|
11309
11590
|
},
|
|
11310
11591
|
{
|
|
11311
11592
|
"kind": "js",
|
|
11312
|
-
"name": "
|
|
11593
|
+
"name": "AparteComposerState",
|
|
11313
11594
|
"declaration": {
|
|
11314
|
-
"name": "
|
|
11315
|
-
"module": "./
|
|
11595
|
+
"name": "AparteComposerState",
|
|
11596
|
+
"module": "./composer/index.js"
|
|
11316
11597
|
}
|
|
11317
11598
|
},
|
|
11318
11599
|
{
|
|
11319
11600
|
"kind": "js",
|
|
11320
|
-
"name": "
|
|
11601
|
+
"name": "AparteComposerChangeEventDetail",
|
|
11321
11602
|
"declaration": {
|
|
11322
|
-
"name": "
|
|
11323
|
-
"module": "./
|
|
11603
|
+
"name": "AparteComposerChangeEventDetail",
|
|
11604
|
+
"module": "./composer/index.js"
|
|
11324
11605
|
}
|
|
11325
11606
|
},
|
|
11326
11607
|
{
|
|
11327
11608
|
"kind": "js",
|
|
11328
|
-
"name": "
|
|
11609
|
+
"name": "AparteComposerPanelMode",
|
|
11329
11610
|
"declaration": {
|
|
11330
|
-
"name": "
|
|
11331
|
-
"module": "./
|
|
11611
|
+
"name": "AparteComposerPanelMode",
|
|
11612
|
+
"module": "./composer/index.js"
|
|
11332
11613
|
}
|
|
11333
11614
|
},
|
|
11334
11615
|
{
|
|
11335
11616
|
"kind": "js",
|
|
11336
|
-
"name": "
|
|
11617
|
+
"name": "AparteTypeToFocus",
|
|
11337
11618
|
"declaration": {
|
|
11338
|
-
"name": "
|
|
11339
|
-
"module": "./
|
|
11619
|
+
"name": "AparteTypeToFocus",
|
|
11620
|
+
"module": "./composer/index.js"
|
|
11340
11621
|
}
|
|
11341
11622
|
},
|
|
11342
11623
|
{
|
|
11343
11624
|
"kind": "js",
|
|
11344
|
-
"name": "
|
|
11625
|
+
"name": "AparteActionClickEventDetail",
|
|
11345
11626
|
"declaration": {
|
|
11346
|
-
"name": "
|
|
11347
|
-
"module": "./
|
|
11627
|
+
"name": "AparteActionClickEventDetail",
|
|
11628
|
+
"module": "./composer/index.js"
|
|
11348
11629
|
}
|
|
11349
11630
|
},
|
|
11350
11631
|
{
|
|
11351
11632
|
"kind": "js",
|
|
11352
|
-
"name": "
|
|
11633
|
+
"name": "AparteConversationList",
|
|
11353
11634
|
"declaration": {
|
|
11354
|
-
"name": "
|
|
11355
|
-
"module": "./
|
|
11635
|
+
"name": "AparteConversationList",
|
|
11636
|
+
"module": "./conversation-list/index.js"
|
|
11356
11637
|
}
|
|
11357
11638
|
},
|
|
11358
11639
|
{
|
|
11359
11640
|
"kind": "js",
|
|
11360
|
-
"name": "
|
|
11641
|
+
"name": "AparteConversationListItem",
|
|
11361
11642
|
"declaration": {
|
|
11362
|
-
"name": "
|
|
11363
|
-
"module": "./
|
|
11643
|
+
"name": "AparteConversationListItem",
|
|
11644
|
+
"module": "./conversation-list/index.js"
|
|
11364
11645
|
}
|
|
11365
11646
|
},
|
|
11366
11647
|
{
|
|
11367
11648
|
"kind": "js",
|
|
11368
|
-
"name": "
|
|
11649
|
+
"name": "AparteConversationSelectDetail",
|
|
11369
11650
|
"declaration": {
|
|
11370
|
-
"name": "
|
|
11371
|
-
"module": "./
|
|
11651
|
+
"name": "AparteConversationSelectDetail",
|
|
11652
|
+
"module": "./conversation-list/index.js"
|
|
11372
11653
|
}
|
|
11373
11654
|
},
|
|
11374
11655
|
{
|
|
11375
11656
|
"kind": "js",
|
|
11376
|
-
"name": "
|
|
11657
|
+
"name": "AparteConversationDeleteDetail",
|
|
11377
11658
|
"declaration": {
|
|
11378
|
-
"name": "
|
|
11379
|
-
"module": "./
|
|
11659
|
+
"name": "AparteConversationDeleteDetail",
|
|
11660
|
+
"module": "./conversation-list/index.js"
|
|
11380
11661
|
}
|
|
11381
11662
|
},
|
|
11382
11663
|
{
|
|
11383
11664
|
"kind": "js",
|
|
11384
|
-
"name": "
|
|
11665
|
+
"name": "AparteConversationArchiveDetail",
|
|
11385
11666
|
"declaration": {
|
|
11386
|
-
"name": "
|
|
11387
|
-
"module": "./
|
|
11667
|
+
"name": "AparteConversationArchiveDetail",
|
|
11668
|
+
"module": "./conversation-list/index.js"
|
|
11388
11669
|
}
|
|
11389
11670
|
},
|
|
11390
11671
|
{
|
|
11391
11672
|
"kind": "js",
|
|
11392
|
-
"name": "
|
|
11673
|
+
"name": "AparteConversationPinDetail",
|
|
11393
11674
|
"declaration": {
|
|
11394
|
-
"name": "
|
|
11395
|
-
"module": "./
|
|
11675
|
+
"name": "AparteConversationPinDetail",
|
|
11676
|
+
"module": "./conversation-list/index.js"
|
|
11396
11677
|
}
|
|
11397
11678
|
},
|
|
11398
11679
|
{
|
|
11399
11680
|
"kind": "js",
|
|
11400
|
-
"name": "
|
|
11681
|
+
"name": "AparteConversationRenameDetail",
|
|
11401
11682
|
"declaration": {
|
|
11402
|
-
"name": "
|
|
11403
|
-
"module": "./
|
|
11683
|
+
"name": "AparteConversationRenameDetail",
|
|
11684
|
+
"module": "./conversation-list/index.js"
|
|
11404
11685
|
}
|
|
11405
11686
|
},
|
|
11406
11687
|
{
|
|
11407
11688
|
"kind": "js",
|
|
11408
|
-
"name": "
|
|
11689
|
+
"name": "AparteConversationStatus",
|
|
11409
11690
|
"declaration": {
|
|
11410
|
-
"name": "
|
|
11411
|
-
"module": "./
|
|
11691
|
+
"name": "AparteConversationStatus",
|
|
11692
|
+
"module": "./conversation-list/index.js"
|
|
11412
11693
|
}
|
|
11413
11694
|
},
|
|
11414
11695
|
{
|
|
11415
11696
|
"kind": "js",
|
|
11416
|
-
"name": "
|
|
11697
|
+
"name": "AparteConversationStatusDetail",
|
|
11417
11698
|
"declaration": {
|
|
11418
|
-
"name": "
|
|
11419
|
-
"module": "./
|
|
11699
|
+
"name": "AparteConversationStatusDetail",
|
|
11700
|
+
"module": "./conversation-list/index.js"
|
|
11420
11701
|
}
|
|
11421
11702
|
},
|
|
11422
11703
|
{
|
|
11423
11704
|
"kind": "js",
|
|
11424
|
-
"name": "
|
|
11705
|
+
"name": "AparteSuggestions",
|
|
11425
11706
|
"declaration": {
|
|
11426
|
-
"name": "
|
|
11427
|
-
"module": "./
|
|
11707
|
+
"name": "AparteSuggestions",
|
|
11708
|
+
"module": "./suggestions/index.js"
|
|
11428
11709
|
}
|
|
11429
11710
|
},
|
|
11430
11711
|
{
|
|
11431
11712
|
"kind": "js",
|
|
11432
|
-
"name": "
|
|
11713
|
+
"name": "setupSuggestionBlocks",
|
|
11433
11714
|
"declaration": {
|
|
11434
|
-
"name": "
|
|
11435
|
-
"module": "./
|
|
11715
|
+
"name": "setupSuggestionBlocks",
|
|
11716
|
+
"module": "./suggestions/index.js"
|
|
11436
11717
|
}
|
|
11437
11718
|
},
|
|
11438
11719
|
{
|
|
11439
11720
|
"kind": "js",
|
|
11440
|
-
"name": "
|
|
11721
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
11441
11722
|
"declaration": {
|
|
11442
|
-
"name": "
|
|
11443
|
-
"module": "./
|
|
11723
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
11724
|
+
"module": "./suggestions/index.js"
|
|
11444
11725
|
}
|
|
11445
11726
|
},
|
|
11446
11727
|
{
|
|
11447
11728
|
"kind": "js",
|
|
11448
|
-
"name": "
|
|
11729
|
+
"name": "AparteSuggestion",
|
|
11449
11730
|
"declaration": {
|
|
11450
|
-
"name": "
|
|
11451
|
-
"module": "./
|
|
11731
|
+
"name": "AparteSuggestion",
|
|
11732
|
+
"module": "./suggestions/index.js"
|
|
11452
11733
|
}
|
|
11453
11734
|
},
|
|
11454
11735
|
{
|
|
11455
11736
|
"kind": "js",
|
|
11456
|
-
"name": "
|
|
11737
|
+
"name": "AparteSuggestionEventDetail",
|
|
11457
11738
|
"declaration": {
|
|
11458
|
-
"name": "
|
|
11459
|
-
"module": "./
|
|
11739
|
+
"name": "AparteSuggestionEventDetail",
|
|
11740
|
+
"module": "./suggestions/index.js"
|
|
11460
11741
|
}
|
|
11461
11742
|
},
|
|
11462
11743
|
{
|
|
11463
11744
|
"kind": "js",
|
|
11464
|
-
"name": "
|
|
11745
|
+
"name": "AparteContext",
|
|
11465
11746
|
"declaration": {
|
|
11466
|
-
"name": "
|
|
11467
|
-
"module": "./
|
|
11747
|
+
"name": "AparteContext",
|
|
11748
|
+
"module": "./context/index.js"
|
|
11468
11749
|
}
|
|
11469
|
-
}
|
|
11470
|
-
]
|
|
11471
|
-
},
|
|
11472
|
-
{
|
|
11473
|
-
"kind": "javascript-module",
|
|
11474
|
-
"path": "src/config/locale.ts",
|
|
11475
|
-
"declarations": [
|
|
11476
|
-
{
|
|
11477
|
-
"kind": "variable",
|
|
11478
|
-
"name": "APARTE_DEFAULT_LOCALE",
|
|
11479
|
-
"type": {
|
|
11480
|
-
"text": "AparteLocale"
|
|
11481
|
-
},
|
|
11482
|
-
"default": "{ inputPlaceholder: \"Type a message...\", sendButton: \"Send\", copy: \"Copy\", copied: \"Copied!\", retry: \"Retry\", thinking: \"Thinking\", elicitationOther: \"Other…\", elicitationOtherPlaceholder: \"Type your answer…\", elicitationOtherLabel: \"Custom answer\", submitButton: \"Submit\", stopButton: \"Stop\", elicitationRecommended: \"Recommended\", elicitationSkip: \"Skip\", elicitationHide: \"Hide for now\", elicitationWaiting: \"Waiting for your answer\", elicitationYes: \"Yes\", elicitationNo: \"No\", elicitationAnswerLabel: \"Your answer\", approvalInstructionPlaceholder: \"Or tell it what to do instead…\", approvalAsk: \"Allow {tool}?\", approvalWaiting: \"Waiting\", scrollToBottom: \"Scroll to bottom\", suggestionsLabel: \"Suggested prompts\", contextLabel: \"Context window\", contextSystem: \"System prompt\", contextTools: \"Tools\", contextSummary: \"Summary\", contextMessages: \"Messages\", contextOther: \"Other\", contextFree: \"Free\", contextTotal: \"Total\", contextReclaim: \"Compacting now would free ~{n} tokens\", contextCompactNow: \"Compact now\", checkpointCount: \"{n} messages summarised for the model\", checkpointCountOne: \"1 message summarised for the model\", checkpointLegacy: \"Earlier messages were summarised\", checkpointGroup: \"Context summary\", checkpointShow: \"Show summary\", checkpointHide: \"Hide summary\", checkpointRestore: \"Restore\", checkpointRestoreConfirm: \"Send the original messages to the model again?\", checkpointPending: \"Summarising the context…\", checkpointFailed: \"Couldn't summarise the context\", toolRunning: \"Running\", toolCompleted: \"Done\", toolRejected: \"Rejected\", toolStopped: \"Stopped\", toolFailed: \"Failed\", toolInput: \"Input\", toolOutput: \"Output\", toolRejectedSaid: \"You said: “{instruction}”\", toolRefusedByPolicy: \"Refused by policy\", toolNotRunAfterRefusal: \"Not run: an earlier call was refused\", toolTimedOut: \"Timed out\", toolUnavailable: \"Not available here\", toolNoApprover: \"No one could approve it\", toolTurnLimit: \"Turn limit reached\", maxTurnsReached: \"Stopped after {n} turns to avoid an endless loop.\", sourcesCount: \"{n} sources\", sourcesOne: \"1 source\", sourcesCard: \"Sources\", sourcePrevious: \"Previous source\", sourceNext: \"Next source\", sourcePosition: \"Source {i} of {n}\", opensInNewTab: \"(opens in a new tab)\", imageLoad: \"Load the image from {host}\", imageLoadNamed: \"Load the image “{alt}” from {host}\", questionDeclined: \"You declined to answer.\", artifactNotCreated: \"Not created\", thoughtFor: \"Thought for {duration}\", thought: \"Thought\", turnWorking: \"Working…\", turnWorked: \"Worked {duration}\", turnUsed: \"Used {tools}\", turnTools: \"one:{n} tool|other:{n} tools\", feedbackReasonTitle: 'What went wrong?', feedbackReasonDismiss: 'Not now', triggersLoading: 'Loading…', triggersEmpty: 'No results', triggersError: 'This list could not be loaded', triggersRetry: 'Try again', triggersBack: 'Back', triggersCommandNew: 'Start a new conversation', triggersCommandStop: 'Stop the reply', triggersCommandRetry: 'Answer again', triggersCommandCopy: 'Copy the last reply', triggersCommandCompact: 'Summarise the earlier messages', triggersCompactNothing: 'There is nothing to compact yet', triggersCompactBusy: 'Wait for the reply to finish', triggersCompactNoWindow: 'This model does not say how much it can read', triggersCompactFailed: 'The summary could not be written', triggersCommandModel: 'Change the model', triggersCommandApproval: 'Change the approval mode', approvalOptionsLabel: \"Your decision\", approvalArgsLabel: \"Arguments\", actionUpload: \"Attach file\", removeAttachment: \"Remove {name}\", messageFrom: \"Message from {name}\", selectSearchPlaceholder: \"Search…\", selectSearchLabel: \"Search options\", loading: \"Loading…\", download: \"Download\", openArtifact: \"Open\", closeArtifact: \"Close\", artifactVersion: \"Version {n} of {total}\", previousVersion: \"Previous version\", nextVersion: \"Next version\", modelContextWindow: \"{n} context\", previewPending: \"Press Preview to run this artifact.\", sandboxError: \"The sandbox failed during generation.\", sandboxErrorHint: \"Common cause: the model produced invalid code (undefined variable, wrong argument type). Retry the request — the model may produce different code.\", preview: \"Preview\", code: \"Code\", generating: \"Generating…\", rebuildingPreview: \"Rebuilding preview…\", typing: \"Typing\", responseCutOff: \"Cut off at the model's length limit.\", error: \"Error\", errorUnreachable: \"The assistant can’t be reached right now. Try again in a moment.\", errorTimeout: \"The answer took too long. Try again in a moment.\", errorRefused: \"The assistant isn’t allowed to answer right now.\", errorRateLimited: \"Too many requests right now. Try again in a moment.\", errorTooLong: \"This conversation is too long for the model. Start a new one.\", errorFailed: \"The assistant couldn’t answer. Try again in a moment.\", errorNoAnswer: \"The assistant couldn’t answer this request.\", running: \"Running...\", run: \"Run\", file: \"File\", modelSelectorPlaceholder: \"Select a model...\", approvalModeLabel: \"Approval mode\", roleNameUser: \"You\", roleNameAssistant: \"Assistant\", yourMessage: \"Your message\", assistantResponse: \"Assistant response\", messageActions: \"Message actions\", edit: \"Edit message\", editConfirm: \"Send\", editCancel: \"Cancel\", feedbackPositive: \"Good response\", feedbackNegative: \"Bad response\", previousResponse: \"Previous response\", nextResponse: \"Next response\", approveTool: \"Approve\", rejectTool: \"Reject\", messageInfo: \"Details\", newChat: \"New Chat\", loadingConversations: \"Loading conversations\", conversationSearchEmpty: \"No conversation matches\", conversationList: \"Conversations\", loadingConversation: \"Loading the conversation\", deleteConversation: \"Delete\", archiveConversation: \"Archive\", unarchiveConversation: \"Unarchive\", conversationActions: \"Conversation actions\", conversationRunning: \"Answering\", conversationWaiting: \"Waiting for you\", renameConversation: \"Rename\", conversationTitle: \"Conversation title\", pinConversation: \"Pin\", unpinConversation: \"Unpin\", deleteConversationConfirm: \"Delete “{title}”?\", cancel: \"Cancel\", conversationGroupPinned: \"Pinned\", conversationGroupToday: \"Today\", conversationGroupYesterday: \"Yesterday\", conversationGroupWeek: \"Previous 7 days\", conversationGroupMonth: \"Previous 30 days\", scrollRailLabel: \"Conversation outline\", sidebarLabel: \"Conversations\", splitHandleLabel: \"Resize the panes\", launcherOpen: \"Open the chat\", launcherClose: \"Close the chat\", launcherHeading: \"Chat\", launcherMaximize: \"Expand the chat\", launcherRestore: \"Shrink the chat\", transcript: \"Transcript\" }",
|
|
11483
|
-
"description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
|
|
11484
|
-
}
|
|
11485
|
-
],
|
|
11486
|
-
"exports": [
|
|
11750
|
+
},
|
|
11487
11751
|
{
|
|
11488
11752
|
"kind": "js",
|
|
11489
|
-
"name": "
|
|
11753
|
+
"name": "AparteContextLevel",
|
|
11490
11754
|
"declaration": {
|
|
11491
|
-
"name": "
|
|
11492
|
-
"module": "
|
|
11755
|
+
"name": "AparteContextLevel",
|
|
11756
|
+
"module": "./context/index.js"
|
|
11493
11757
|
}
|
|
11494
|
-
}
|
|
11495
|
-
]
|
|
11496
|
-
},
|
|
11497
|
-
{
|
|
11498
|
-
"kind": "javascript-module",
|
|
11499
|
-
"path": "src/config/sanitize.ts",
|
|
11500
|
-
"declarations": [
|
|
11501
|
-
{
|
|
11502
|
-
"kind": "variable",
|
|
11503
|
-
"name": "DANGEROUS_TAGS",
|
|
11504
|
-
"default": "new Set([ 'script', 'style', 'iframe', 'frame', 'frameset', 'object', 'embed', 'applet', 'form', 'button', 'textarea', 'select', 'option', 'optgroup', 'link', 'meta', 'base', 'title', 'head', 'html', 'body', 'template', 'noscript', 'svg', 'math', 'portal', ])",
|
|
11505
|
-
"description": "Tags dropped wholesale — content and all (never unwrapped to text).\n\nExported for the DOM-free path's own suite: both of `fallbackScrub`'s regexes\nare built from this Set, and the test that proves it loops over the Set rather\nthan a copy. Not re-exported from the package barrel — it is core's list, not\na contract."
|
|
11506
|
-
},
|
|
11507
|
-
{
|
|
11508
|
-
"kind": "variable",
|
|
11509
|
-
"name": "RESERVED_ATTRIBUTES",
|
|
11510
|
-
"default": "new Set([ 'data-aparte-chat', 'data-aparte-host', 'data-aparte-theme', 'data-aparte-split-pane', 'data-aparte-launcher-close', 'data-aparte-launcher-maximize', 'data-aparte-suggestions', 'data-aparte-bubble', 'data-aparte-empty', 'data-aparte-panel', 'data-aparte-panel-host', 'data-aparte-card-part', 'data-segment-id', 'data-action', ])",
|
|
11511
|
-
"description": "The attributes core READS, as a command or as a boundary, on an element it finds by\nwalking the DOM: a delegated click listener (`data-aparte-dialog-open`, the sidebar\nand split toggles, the launcher's close and maximize), the chat that owns a card's `send`\n(`data-aparte-chat`), the instance config a subtree resolves to (`data-aparte-host`),\nthe palette a subtree wears (`data-aparte-theme`), a checkpoint's Restore\n(`data-checkpoint-action`), the row a segment update targets (`data-segment-id`).\n\n`data-*` is otherwise kept (see `copyAttributes`), so these are the exceptions: model\nmarkup is text, and text cannot press a button or move a boundary core drew. The list\nis exact rather than the whole `data-aparte-` prefix on purpose — a Markdown provider\nwrites `data-aparte-open` before the sanitizer runs, and core marks its own state on\nDOM the sanitizer sees again (`data-aparte-highlighted`) — and\n`the-sanitizer-refuses-what-core-reads.test.ts` scans core's source so an attribute\nadded there cannot be forgotten here. Exported for that test; not from the barrel."
|
|
11512
|
-
},
|
|
11513
|
-
{
|
|
11514
|
-
"kind": "variable",
|
|
11515
|
-
"name": "RESERVED_ATTRIBUTE_PREFIXES",
|
|
11516
|
-
"type": {
|
|
11517
|
-
"text": "array"
|
|
11518
|
-
},
|
|
11519
|
-
"default": "['data-aparte-dialog-', 'data-aparte-sidebar-', 'data-checkpoint-']",
|
|
11520
|
-
"description": "Families of reserved attributes: `-open`/`-close`/`-static`, `-toggle`/`-search`, `-action`/`-reason`."
|
|
11521
|
-
},
|
|
11522
|
-
{
|
|
11523
|
-
"kind": "function",
|
|
11524
|
-
"name": "isReservedAttribute",
|
|
11525
|
-
"return": {
|
|
11526
|
-
"type": {
|
|
11527
|
-
"text": "boolean"
|
|
11528
|
-
}
|
|
11529
|
-
},
|
|
11530
|
-
"parameters": [
|
|
11531
|
-
{
|
|
11532
|
-
"name": "name",
|
|
11533
|
-
"type": {
|
|
11534
|
-
"text": "string"
|
|
11535
|
-
}
|
|
11536
|
-
}
|
|
11537
|
-
],
|
|
11538
|
-
"description": "True when `name` (lower case) is an attribute core reads, so model markup may not carry it."
|
|
11539
|
-
},
|
|
11540
|
-
{
|
|
11541
|
-
"kind": "function",
|
|
11542
|
-
"name": "isSafeUrl",
|
|
11543
|
-
"return": {
|
|
11544
|
-
"type": {
|
|
11545
|
-
"text": "boolean"
|
|
11546
|
-
}
|
|
11547
|
-
},
|
|
11548
|
-
"parameters": [
|
|
11549
|
-
{
|
|
11550
|
-
"name": "value",
|
|
11551
|
-
"type": {
|
|
11552
|
-
"text": "string"
|
|
11553
|
-
}
|
|
11554
|
-
},
|
|
11555
|
-
{
|
|
11556
|
-
"name": "tag",
|
|
11557
|
-
"type": {
|
|
11558
|
-
"text": "string"
|
|
11559
|
-
}
|
|
11560
|
-
}
|
|
11561
|
-
]
|
|
11562
|
-
},
|
|
11563
|
-
{
|
|
11564
|
-
"kind": "function",
|
|
11565
|
-
"name": "readTag",
|
|
11566
|
-
"return": {
|
|
11567
|
-
"type": {
|
|
11568
|
-
"text": "{ tag: string; attrs: Array<[string, string]>; end: number }"
|
|
11569
|
-
}
|
|
11570
|
-
},
|
|
11571
|
-
"parameters": [
|
|
11572
|
-
{
|
|
11573
|
-
"name": "html",
|
|
11574
|
-
"type": {
|
|
11575
|
-
"text": "string"
|
|
11576
|
-
}
|
|
11577
|
-
},
|
|
11578
|
-
{
|
|
11579
|
-
"name": "nameAt",
|
|
11580
|
-
"type": {
|
|
11581
|
-
"text": "number"
|
|
11582
|
-
}
|
|
11583
|
-
}
|
|
11584
|
-
],
|
|
11585
|
-
"description": "One tag read from `nameAt` (the first letter of its name) the way a browser's tokenizer reads\nit: a quote ends where its match is, an unquoted value at a space or `>`, `/` and a closing\nquote separate attributes, the first of two equal names wins, and a value is read with the\nentities that can spell a checked character decoded. `end` is the index past its `>`, or `-1`\nwhen the text ends inside the tag.\n\nExported for the image policy's DOM-free pass (`image-policy.ts`), which has to find the same\ntags in the same text this scrub wrote; not from the package barrel."
|
|
11586
11758
|
},
|
|
11587
11759
|
{
|
|
11588
|
-
"kind": "
|
|
11589
|
-
"name": "
|
|
11590
|
-
"
|
|
11591
|
-
"
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
"parameters": [
|
|
11596
|
-
{
|
|
11597
|
-
"name": "html",
|
|
11598
|
-
"type": {
|
|
11599
|
-
"text": "string"
|
|
11600
|
-
}
|
|
11601
|
-
}
|
|
11602
|
-
],
|
|
11603
|
-
"description": "The built-in sanitizer. Parses `html` with the platform DOMParser, rebuilds an\nallowlisted tree, and re-serializes it. Falls back to a regex scrub only when\nno DOMParser exists (non-browser runtime)."
|
|
11604
|
-
}
|
|
11605
|
-
],
|
|
11606
|
-
"exports": [
|
|
11760
|
+
"kind": "js",
|
|
11761
|
+
"name": "AparteContextThresholdEventDetail",
|
|
11762
|
+
"declaration": {
|
|
11763
|
+
"name": "AparteContextThresholdEventDetail",
|
|
11764
|
+
"module": "./context/index.js"
|
|
11765
|
+
}
|
|
11766
|
+
},
|
|
11607
11767
|
{
|
|
11608
11768
|
"kind": "js",
|
|
11609
|
-
"name": "
|
|
11769
|
+
"name": "AparteScrollRail",
|
|
11610
11770
|
"declaration": {
|
|
11611
|
-
"name": "
|
|
11612
|
-
"module": "
|
|
11771
|
+
"name": "AparteScrollRail",
|
|
11772
|
+
"module": "./scroll-rail/index.js"
|
|
11613
11773
|
}
|
|
11614
11774
|
},
|
|
11615
11775
|
{
|
|
11616
11776
|
"kind": "js",
|
|
11617
|
-
"name": "
|
|
11777
|
+
"name": "AparteScrollRailJumpDetail",
|
|
11618
11778
|
"declaration": {
|
|
11619
|
-
"name": "
|
|
11620
|
-
"module": "
|
|
11779
|
+
"name": "AparteScrollRailJumpDetail",
|
|
11780
|
+
"module": "./scroll-rail/index.js"
|
|
11621
11781
|
}
|
|
11622
11782
|
},
|
|
11623
11783
|
{
|
|
11624
11784
|
"kind": "js",
|
|
11625
|
-
"name": "
|
|
11785
|
+
"name": "AparteScrollRailEvery",
|
|
11626
11786
|
"declaration": {
|
|
11627
|
-
"name": "
|
|
11628
|
-
"module": "
|
|
11787
|
+
"name": "AparteScrollRailEvery",
|
|
11788
|
+
"module": "./scroll-rail/index.js"
|
|
11629
11789
|
}
|
|
11630
11790
|
},
|
|
11631
11791
|
{
|
|
11632
11792
|
"kind": "js",
|
|
11633
|
-
"name": "
|
|
11793
|
+
"name": "AparteSidebar",
|
|
11634
11794
|
"declaration": {
|
|
11635
|
-
"name": "
|
|
11636
|
-
"module": "
|
|
11795
|
+
"name": "AparteSidebar",
|
|
11796
|
+
"module": "./sidebar/index.js"
|
|
11637
11797
|
}
|
|
11638
11798
|
},
|
|
11639
11799
|
{
|
|
11640
11800
|
"kind": "js",
|
|
11641
|
-
"name": "
|
|
11801
|
+
"name": "AparteSidebarToggleDetail",
|
|
11642
11802
|
"declaration": {
|
|
11643
|
-
"name": "
|
|
11644
|
-
"module": "
|
|
11803
|
+
"name": "AparteSidebarToggleDetail",
|
|
11804
|
+
"module": "./sidebar/index.js"
|
|
11645
11805
|
}
|
|
11646
11806
|
},
|
|
11647
11807
|
{
|
|
11648
11808
|
"kind": "js",
|
|
11649
|
-
"name": "
|
|
11809
|
+
"name": "AparteSplit",
|
|
11650
11810
|
"declaration": {
|
|
11651
|
-
"name": "
|
|
11652
|
-
"module": "
|
|
11811
|
+
"name": "AparteSplit",
|
|
11812
|
+
"module": "./split/index.js"
|
|
11653
11813
|
}
|
|
11654
11814
|
},
|
|
11655
11815
|
{
|
|
11656
11816
|
"kind": "js",
|
|
11657
|
-
"name": "
|
|
11817
|
+
"name": "AparteSplitResizeDetail",
|
|
11658
11818
|
"declaration": {
|
|
11659
|
-
"name": "
|
|
11660
|
-
"module": "
|
|
11819
|
+
"name": "AparteSplitResizeDetail",
|
|
11820
|
+
"module": "./split/index.js"
|
|
11661
11821
|
}
|
|
11662
|
-
}
|
|
11663
|
-
]
|
|
11664
|
-
},
|
|
11665
|
-
{
|
|
11666
|
-
"kind": "javascript-module",
|
|
11667
|
-
"path": "src/config/sibling-nav-renderer.ts",
|
|
11668
|
-
"declarations": [],
|
|
11669
|
-
"exports": []
|
|
11670
|
-
},
|
|
11671
|
-
{
|
|
11672
|
-
"kind": "javascript-module",
|
|
11673
|
-
"path": "src/config/status-renderer.ts",
|
|
11674
|
-
"declarations": [],
|
|
11675
|
-
"exports": []
|
|
11676
|
-
},
|
|
11677
|
-
{
|
|
11678
|
-
"kind": "javascript-module",
|
|
11679
|
-
"path": "src/config/tool-table.ts",
|
|
11680
|
-
"declarations": [
|
|
11822
|
+
},
|
|
11681
11823
|
{
|
|
11682
|
-
"kind": "
|
|
11683
|
-
"
|
|
11684
|
-
"
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
"privacy": "private",
|
|
11690
|
-
"readonly": true,
|
|
11691
|
-
"default": "new Map<string, T>()"
|
|
11692
|
-
},
|
|
11693
|
-
{
|
|
11694
|
-
"kind": "field",
|
|
11695
|
-
"name": "patterns",
|
|
11696
|
-
"privacy": "private",
|
|
11697
|
-
"readonly": true,
|
|
11698
|
-
"default": "new Map<string, { re: RegExp; value: T }>()"
|
|
11699
|
-
},
|
|
11700
|
-
{
|
|
11701
|
-
"kind": "field",
|
|
11702
|
-
"name": "any",
|
|
11703
|
-
"type": {
|
|
11704
|
-
"text": "T | undefined"
|
|
11705
|
-
},
|
|
11706
|
-
"privacy": "private"
|
|
11707
|
-
},
|
|
11708
|
-
{
|
|
11709
|
-
"kind": "method",
|
|
11710
|
-
"name": "get",
|
|
11711
|
-
"return": {
|
|
11712
|
-
"type": {
|
|
11713
|
-
"text": "T | undefined"
|
|
11714
|
-
}
|
|
11715
|
-
},
|
|
11716
|
-
"parameters": [
|
|
11717
|
-
{
|
|
11718
|
-
"name": "match",
|
|
11719
|
-
"type": {
|
|
11720
|
-
"text": "AparteToolMatcher"
|
|
11721
|
-
}
|
|
11722
|
-
}
|
|
11723
|
-
],
|
|
11724
|
-
"description": "The value registered under exactly this matcher — not a resolution."
|
|
11725
|
-
},
|
|
11726
|
-
{
|
|
11727
|
-
"kind": "method",
|
|
11728
|
-
"name": "set",
|
|
11729
|
-
"return": {
|
|
11730
|
-
"type": {
|
|
11731
|
-
"text": "void"
|
|
11732
|
-
}
|
|
11733
|
-
},
|
|
11734
|
-
"parameters": [
|
|
11735
|
-
{
|
|
11736
|
-
"name": "match",
|
|
11737
|
-
"type": {
|
|
11738
|
-
"text": "AparteToolMatcher"
|
|
11739
|
-
}
|
|
11740
|
-
},
|
|
11741
|
-
{
|
|
11742
|
-
"name": "value",
|
|
11743
|
-
"type": {
|
|
11744
|
-
"text": "T"
|
|
11745
|
-
}
|
|
11746
|
-
}
|
|
11747
|
-
]
|
|
11748
|
-
},
|
|
11749
|
-
{
|
|
11750
|
-
"kind": "method",
|
|
11751
|
-
"name": "delete",
|
|
11752
|
-
"return": {
|
|
11753
|
-
"type": {
|
|
11754
|
-
"text": "void"
|
|
11755
|
-
}
|
|
11756
|
-
},
|
|
11757
|
-
"parameters": [
|
|
11758
|
-
{
|
|
11759
|
-
"name": "match",
|
|
11760
|
-
"type": {
|
|
11761
|
-
"text": "AparteToolMatcher"
|
|
11762
|
-
}
|
|
11763
|
-
}
|
|
11764
|
-
]
|
|
11765
|
-
},
|
|
11766
|
-
{
|
|
11767
|
-
"kind": "method",
|
|
11768
|
-
"name": "resolve",
|
|
11769
|
-
"return": {
|
|
11770
|
-
"type": {
|
|
11771
|
-
"text": "{ value: T; level: ToolMatchLevel } | undefined"
|
|
11772
|
-
}
|
|
11773
|
-
},
|
|
11774
|
-
"parameters": [
|
|
11775
|
-
{
|
|
11776
|
-
"name": "name",
|
|
11777
|
-
"type": {
|
|
11778
|
-
"text": "string"
|
|
11779
|
-
}
|
|
11780
|
-
}
|
|
11781
|
-
],
|
|
11782
|
-
"description": "The value that applies to a tool named `name`, and how specifically it names it."
|
|
11783
|
-
},
|
|
11784
|
-
{
|
|
11785
|
-
"kind": "method",
|
|
11786
|
-
"name": "values",
|
|
11787
|
-
"return": {
|
|
11788
|
-
"type": {
|
|
11789
|
-
"text": "T[]"
|
|
11790
|
-
}
|
|
11791
|
-
},
|
|
11792
|
-
"description": "Every value registered, whatever its matcher."
|
|
11793
|
-
},
|
|
11794
|
-
{
|
|
11795
|
-
"kind": "method",
|
|
11796
|
-
"name": "clear",
|
|
11797
|
-
"return": {
|
|
11798
|
-
"type": {
|
|
11799
|
-
"text": "void"
|
|
11800
|
-
}
|
|
11801
|
-
}
|
|
11802
|
-
}
|
|
11803
|
-
]
|
|
11804
|
-
}
|
|
11805
|
-
],
|
|
11806
|
-
"exports": [
|
|
11824
|
+
"kind": "js",
|
|
11825
|
+
"name": "AparteLauncher",
|
|
11826
|
+
"declaration": {
|
|
11827
|
+
"name": "AparteLauncher",
|
|
11828
|
+
"module": "./launcher/index.js"
|
|
11829
|
+
}
|
|
11830
|
+
},
|
|
11807
11831
|
{
|
|
11808
11832
|
"kind": "js",
|
|
11809
|
-
"name": "
|
|
11833
|
+
"name": "AparteLauncherToggleDetail",
|
|
11810
11834
|
"declaration": {
|
|
11811
|
-
"name": "
|
|
11812
|
-
"module": "
|
|
11835
|
+
"name": "AparteLauncherToggleDetail",
|
|
11836
|
+
"module": "./launcher/index.js"
|
|
11813
11837
|
}
|
|
11814
11838
|
}
|
|
11815
11839
|
]
|
|
@@ -24796,6 +24820,13 @@
|
|
|
24796
24820
|
},
|
|
24797
24821
|
"description": "Add the file picker + chips strip to the default composition (opt-in: the host must consume the files — an `AparteClient` does, a hand-rolled loop must read `event.detail.files`)"
|
|
24798
24822
|
},
|
|
24823
|
+
{
|
|
24824
|
+
"name": "type-to-focus",
|
|
24825
|
+
"type": {
|
|
24826
|
+
"text": "'chat'|'page'|'off'"
|
|
24827
|
+
},
|
|
24828
|
+
"description": "Forwarded to the composer: a key typed while no field has the caret returns to the input. `chat` (the default): only after a click or a selection in the chat. `page`: from anywhere in the page. `off`: never. The four wrappers expose it as `typeToFocus`."
|
|
24829
|
+
},
|
|
24799
24830
|
{
|
|
24800
24831
|
"type": {
|
|
24801
24832
|
"text": "boolean"
|
|
@@ -26864,6 +26895,16 @@
|
|
|
26864
26895
|
},
|
|
26865
26896
|
"description": "Mirror `locale.direction` onto ourselves, so everything inside — input, buttons,\nthe toolbar row and whatever the consumer put in it — inherits it.\n\nWithout it an RTL locale flips the conversation and leaves the composer\nleft-to-right. It is also what makes the toolbar's placement idiom real:\n`margin-inline-start: auto` in a subtree that inherits no direction is just\n`margin-left`.\n\nOne attribute on the host rather than a stamp per child: inheritance is the\nmechanism, so nothing needs to know about the consumer's markup."
|
|
26866
26897
|
},
|
|
26898
|
+
{
|
|
26899
|
+
"kind": "field",
|
|
26900
|
+
"name": "_offTypeToFocus",
|
|
26901
|
+
"type": {
|
|
26902
|
+
"text": "(() => void) | null"
|
|
26903
|
+
},
|
|
26904
|
+
"privacy": "private",
|
|
26905
|
+
"default": "null",
|
|
26906
|
+
"description": "Stops the document listeners of `type-to-focus`; null while disconnected."
|
|
26907
|
+
},
|
|
26867
26908
|
{
|
|
26868
26909
|
"kind": "field",
|
|
26869
26910
|
"name": "value",
|
|
@@ -27405,6 +27446,13 @@
|
|
|
27405
27446
|
"description": "Enter sends and Shift+Enter breaks the line (the default); set it to the string `\"false\"` to swap them. Read lazily by the `submitOnEnter` getter rather than observed.",
|
|
27406
27447
|
"name": "submit-on-enter"
|
|
27407
27448
|
},
|
|
27449
|
+
{
|
|
27450
|
+
"type": {
|
|
27451
|
+
"text": "'chat'|'page'|'off'"
|
|
27452
|
+
},
|
|
27453
|
+
"description": "A key typed while no field has the caret returns to the input. `chat` (the default): only after a click or a selection in the chat, so the page around an embedded chat keeps its own keys. `page`: from anywhere in the page, for an app whose page is the chat. `off`: never. Read at every key rather than observed.",
|
|
27454
|
+
"name": "type-to-focus"
|
|
27455
|
+
},
|
|
27408
27456
|
{
|
|
27409
27457
|
"type": {
|
|
27410
27458
|
"text": "boolean"
|
|
@@ -27705,6 +27753,14 @@
|
|
|
27705
27753
|
"module": "./aparte-composer.js"
|
|
27706
27754
|
}
|
|
27707
27755
|
},
|
|
27756
|
+
{
|
|
27757
|
+
"kind": "js",
|
|
27758
|
+
"name": "AparteTypeToFocus",
|
|
27759
|
+
"declaration": {
|
|
27760
|
+
"name": "AparteTypeToFocus",
|
|
27761
|
+
"module": "./type-to-focus.js"
|
|
27762
|
+
}
|
|
27763
|
+
},
|
|
27708
27764
|
{
|
|
27709
27765
|
"kind": "js",
|
|
27710
27766
|
"name": "AparteComposerInput",
|
|
@@ -27771,6 +27827,40 @@
|
|
|
27771
27827
|
}
|
|
27772
27828
|
]
|
|
27773
27829
|
},
|
|
27830
|
+
{
|
|
27831
|
+
"kind": "javascript-module",
|
|
27832
|
+
"path": "src/components/composer/type-to-focus.ts",
|
|
27833
|
+
"declarations": [
|
|
27834
|
+
{
|
|
27835
|
+
"kind": "function",
|
|
27836
|
+
"name": "installTypeToFocus",
|
|
27837
|
+
"return": {
|
|
27838
|
+
"type": {
|
|
27839
|
+
"text": "() => void"
|
|
27840
|
+
}
|
|
27841
|
+
},
|
|
27842
|
+
"parameters": [
|
|
27843
|
+
{
|
|
27844
|
+
"name": "composer",
|
|
27845
|
+
"type": {
|
|
27846
|
+
"text": "HTMLElement"
|
|
27847
|
+
}
|
|
27848
|
+
}
|
|
27849
|
+
],
|
|
27850
|
+
"description": "Listen for the composer; the function returned stops listening. The chat a composer\nanswers for is the one it sits in, else the one its `target` names, and always itself."
|
|
27851
|
+
}
|
|
27852
|
+
],
|
|
27853
|
+
"exports": [
|
|
27854
|
+
{
|
|
27855
|
+
"kind": "js",
|
|
27856
|
+
"name": "installTypeToFocus",
|
|
27857
|
+
"declaration": {
|
|
27858
|
+
"name": "installTypeToFocus",
|
|
27859
|
+
"module": "src/components/composer/type-to-focus.ts"
|
|
27860
|
+
}
|
|
27861
|
+
}
|
|
27862
|
+
]
|
|
27863
|
+
},
|
|
27774
27864
|
{
|
|
27775
27865
|
"kind": "javascript-module",
|
|
27776
27866
|
"path": "src/components/context/aparte-context.ts",
|