@aparte/core 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/bubble/aparte-chat-bubble.d.ts +21 -0
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/bubble/bubble-sync.d.ts.map +1 -1
- package/dist/custom-elements.json +1333 -1303
- package/dist/{defer-hydration-Dw5D80FC.js → defer-hydration-_SZv5PeY.js} +18 -5
- package/dist/defer-hydration-_SZv5PeY.js.map +1 -0
- package/dist/index.js +40 -7
- package/dist/index.js.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/renderers/segments/text.d.ts.map +1 -1
- package/dist/renderers/segments/thinking.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/defer-hydration-Dw5D80FC.js.map +0 -1
|
@@ -7122,6 +7122,381 @@
|
|
|
7122
7122
|
}
|
|
7123
7123
|
]
|
|
7124
7124
|
},
|
|
7125
|
+
{
|
|
7126
|
+
"kind": "javascript-module",
|
|
7127
|
+
"path": "src/components/index.ts",
|
|
7128
|
+
"declarations": [],
|
|
7129
|
+
"exports": [
|
|
7130
|
+
{
|
|
7131
|
+
"kind": "js",
|
|
7132
|
+
"name": "AparteChat",
|
|
7133
|
+
"declaration": {
|
|
7134
|
+
"name": "AparteChat",
|
|
7135
|
+
"module": "./chat/index.js"
|
|
7136
|
+
}
|
|
7137
|
+
},
|
|
7138
|
+
{
|
|
7139
|
+
"kind": "js",
|
|
7140
|
+
"name": "AparteChatBubble",
|
|
7141
|
+
"declaration": {
|
|
7142
|
+
"name": "AparteChatBubble",
|
|
7143
|
+
"module": "./bubble/index.js"
|
|
7144
|
+
}
|
|
7145
|
+
},
|
|
7146
|
+
{
|
|
7147
|
+
"kind": "js",
|
|
7148
|
+
"name": "populateBubbleFromMessage",
|
|
7149
|
+
"declaration": {
|
|
7150
|
+
"name": "populateBubbleFromMessage",
|
|
7151
|
+
"module": "./bubble/index.js"
|
|
7152
|
+
}
|
|
7153
|
+
},
|
|
7154
|
+
{
|
|
7155
|
+
"kind": "js",
|
|
7156
|
+
"name": "SyncableBubble",
|
|
7157
|
+
"declaration": {
|
|
7158
|
+
"name": "SyncableBubble",
|
|
7159
|
+
"module": "./bubble/index.js"
|
|
7160
|
+
}
|
|
7161
|
+
},
|
|
7162
|
+
{
|
|
7163
|
+
"kind": "js",
|
|
7164
|
+
"name": "AparteChatStatus",
|
|
7165
|
+
"declaration": {
|
|
7166
|
+
"name": "AparteChatStatus",
|
|
7167
|
+
"module": "./status/index.js"
|
|
7168
|
+
}
|
|
7169
|
+
},
|
|
7170
|
+
{
|
|
7171
|
+
"kind": "js",
|
|
7172
|
+
"name": "AparteChatViewport",
|
|
7173
|
+
"declaration": {
|
|
7174
|
+
"name": "AparteChatViewport",
|
|
7175
|
+
"module": "./viewport/index.js"
|
|
7176
|
+
}
|
|
7177
|
+
},
|
|
7178
|
+
{
|
|
7179
|
+
"kind": "js",
|
|
7180
|
+
"name": "AparteComposer",
|
|
7181
|
+
"declaration": {
|
|
7182
|
+
"name": "AparteComposer",
|
|
7183
|
+
"module": "./composer/index.js"
|
|
7184
|
+
}
|
|
7185
|
+
},
|
|
7186
|
+
{
|
|
7187
|
+
"kind": "js",
|
|
7188
|
+
"name": "AparteComposerInput",
|
|
7189
|
+
"declaration": {
|
|
7190
|
+
"name": "AparteComposerInput",
|
|
7191
|
+
"module": "./composer/index.js"
|
|
7192
|
+
}
|
|
7193
|
+
},
|
|
7194
|
+
{
|
|
7195
|
+
"kind": "js",
|
|
7196
|
+
"name": "AparteComposerSend",
|
|
7197
|
+
"declaration": {
|
|
7198
|
+
"name": "AparteComposerSend",
|
|
7199
|
+
"module": "./composer/index.js"
|
|
7200
|
+
}
|
|
7201
|
+
},
|
|
7202
|
+
{
|
|
7203
|
+
"kind": "js",
|
|
7204
|
+
"name": "AparteComposerCancel",
|
|
7205
|
+
"declaration": {
|
|
7206
|
+
"name": "AparteComposerCancel",
|
|
7207
|
+
"module": "./composer/index.js"
|
|
7208
|
+
}
|
|
7209
|
+
},
|
|
7210
|
+
{
|
|
7211
|
+
"kind": "js",
|
|
7212
|
+
"name": "AparteComposerAttachments",
|
|
7213
|
+
"declaration": {
|
|
7214
|
+
"name": "AparteComposerAttachments",
|
|
7215
|
+
"module": "./composer/index.js"
|
|
7216
|
+
}
|
|
7217
|
+
},
|
|
7218
|
+
{
|
|
7219
|
+
"kind": "js",
|
|
7220
|
+
"name": "AparteComposerAddAttachment",
|
|
7221
|
+
"declaration": {
|
|
7222
|
+
"name": "AparteComposerAddAttachment",
|
|
7223
|
+
"module": "./composer/index.js"
|
|
7224
|
+
}
|
|
7225
|
+
},
|
|
7226
|
+
{
|
|
7227
|
+
"kind": "js",
|
|
7228
|
+
"name": "AparteComposerAction",
|
|
7229
|
+
"declaration": {
|
|
7230
|
+
"name": "AparteComposerAction",
|
|
7231
|
+
"module": "./composer/index.js"
|
|
7232
|
+
}
|
|
7233
|
+
},
|
|
7234
|
+
{
|
|
7235
|
+
"kind": "js",
|
|
7236
|
+
"name": "AparteComposerToolbar",
|
|
7237
|
+
"declaration": {
|
|
7238
|
+
"name": "AparteComposerToolbar",
|
|
7239
|
+
"module": "./composer/index.js"
|
|
7240
|
+
}
|
|
7241
|
+
},
|
|
7242
|
+
{
|
|
7243
|
+
"kind": "js",
|
|
7244
|
+
"name": "AparteComposerEventMap",
|
|
7245
|
+
"declaration": {
|
|
7246
|
+
"name": "AparteComposerEventMap",
|
|
7247
|
+
"module": "./composer/index.js"
|
|
7248
|
+
}
|
|
7249
|
+
},
|
|
7250
|
+
{
|
|
7251
|
+
"kind": "js",
|
|
7252
|
+
"name": "AparteComposerEventType",
|
|
7253
|
+
"declaration": {
|
|
7254
|
+
"name": "AparteComposerEventType",
|
|
7255
|
+
"module": "./composer/index.js"
|
|
7256
|
+
}
|
|
7257
|
+
},
|
|
7258
|
+
{
|
|
7259
|
+
"kind": "js",
|
|
7260
|
+
"name": "AparteComposerState",
|
|
7261
|
+
"declaration": {
|
|
7262
|
+
"name": "AparteComposerState",
|
|
7263
|
+
"module": "./composer/index.js"
|
|
7264
|
+
}
|
|
7265
|
+
},
|
|
7266
|
+
{
|
|
7267
|
+
"kind": "js",
|
|
7268
|
+
"name": "AparteComposerChangeEventDetail",
|
|
7269
|
+
"declaration": {
|
|
7270
|
+
"name": "AparteComposerChangeEventDetail",
|
|
7271
|
+
"module": "./composer/index.js"
|
|
7272
|
+
}
|
|
7273
|
+
},
|
|
7274
|
+
{
|
|
7275
|
+
"kind": "js",
|
|
7276
|
+
"name": "AparteComposerPanelMode",
|
|
7277
|
+
"declaration": {
|
|
7278
|
+
"name": "AparteComposerPanelMode",
|
|
7279
|
+
"module": "./composer/index.js"
|
|
7280
|
+
}
|
|
7281
|
+
},
|
|
7282
|
+
{
|
|
7283
|
+
"kind": "js",
|
|
7284
|
+
"name": "AparteActionClickEventDetail",
|
|
7285
|
+
"declaration": {
|
|
7286
|
+
"name": "AparteActionClickEventDetail",
|
|
7287
|
+
"module": "./composer/index.js"
|
|
7288
|
+
}
|
|
7289
|
+
},
|
|
7290
|
+
{
|
|
7291
|
+
"kind": "js",
|
|
7292
|
+
"name": "AparteConversationList",
|
|
7293
|
+
"declaration": {
|
|
7294
|
+
"name": "AparteConversationList",
|
|
7295
|
+
"module": "./conversation-list/index.js"
|
|
7296
|
+
}
|
|
7297
|
+
},
|
|
7298
|
+
{
|
|
7299
|
+
"kind": "js",
|
|
7300
|
+
"name": "AparteConversationListItem",
|
|
7301
|
+
"declaration": {
|
|
7302
|
+
"name": "AparteConversationListItem",
|
|
7303
|
+
"module": "./conversation-list/index.js"
|
|
7304
|
+
}
|
|
7305
|
+
},
|
|
7306
|
+
{
|
|
7307
|
+
"kind": "js",
|
|
7308
|
+
"name": "AparteConversationSelectDetail",
|
|
7309
|
+
"declaration": {
|
|
7310
|
+
"name": "AparteConversationSelectDetail",
|
|
7311
|
+
"module": "./conversation-list/index.js"
|
|
7312
|
+
}
|
|
7313
|
+
},
|
|
7314
|
+
{
|
|
7315
|
+
"kind": "js",
|
|
7316
|
+
"name": "AparteConversationDeleteDetail",
|
|
7317
|
+
"declaration": {
|
|
7318
|
+
"name": "AparteConversationDeleteDetail",
|
|
7319
|
+
"module": "./conversation-list/index.js"
|
|
7320
|
+
}
|
|
7321
|
+
},
|
|
7322
|
+
{
|
|
7323
|
+
"kind": "js",
|
|
7324
|
+
"name": "AparteConversationArchiveDetail",
|
|
7325
|
+
"declaration": {
|
|
7326
|
+
"name": "AparteConversationArchiveDetail",
|
|
7327
|
+
"module": "./conversation-list/index.js"
|
|
7328
|
+
}
|
|
7329
|
+
},
|
|
7330
|
+
{
|
|
7331
|
+
"kind": "js",
|
|
7332
|
+
"name": "AparteConversationPinDetail",
|
|
7333
|
+
"declaration": {
|
|
7334
|
+
"name": "AparteConversationPinDetail",
|
|
7335
|
+
"module": "./conversation-list/index.js"
|
|
7336
|
+
}
|
|
7337
|
+
},
|
|
7338
|
+
{
|
|
7339
|
+
"kind": "js",
|
|
7340
|
+
"name": "AparteConversationRenameDetail",
|
|
7341
|
+
"declaration": {
|
|
7342
|
+
"name": "AparteConversationRenameDetail",
|
|
7343
|
+
"module": "./conversation-list/index.js"
|
|
7344
|
+
}
|
|
7345
|
+
},
|
|
7346
|
+
{
|
|
7347
|
+
"kind": "js",
|
|
7348
|
+
"name": "AparteConversationStatus",
|
|
7349
|
+
"declaration": {
|
|
7350
|
+
"name": "AparteConversationStatus",
|
|
7351
|
+
"module": "./conversation-list/index.js"
|
|
7352
|
+
}
|
|
7353
|
+
},
|
|
7354
|
+
{
|
|
7355
|
+
"kind": "js",
|
|
7356
|
+
"name": "AparteConversationStatusDetail",
|
|
7357
|
+
"declaration": {
|
|
7358
|
+
"name": "AparteConversationStatusDetail",
|
|
7359
|
+
"module": "./conversation-list/index.js"
|
|
7360
|
+
}
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
"kind": "js",
|
|
7364
|
+
"name": "AparteSuggestions",
|
|
7365
|
+
"declaration": {
|
|
7366
|
+
"name": "AparteSuggestions",
|
|
7367
|
+
"module": "./suggestions/index.js"
|
|
7368
|
+
}
|
|
7369
|
+
},
|
|
7370
|
+
{
|
|
7371
|
+
"kind": "js",
|
|
7372
|
+
"name": "setupSuggestionBlocks",
|
|
7373
|
+
"declaration": {
|
|
7374
|
+
"name": "setupSuggestionBlocks",
|
|
7375
|
+
"module": "./suggestions/index.js"
|
|
7376
|
+
}
|
|
7377
|
+
},
|
|
7378
|
+
{
|
|
7379
|
+
"kind": "js",
|
|
7380
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
7381
|
+
"declaration": {
|
|
7382
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
7383
|
+
"module": "./suggestions/index.js"
|
|
7384
|
+
}
|
|
7385
|
+
},
|
|
7386
|
+
{
|
|
7387
|
+
"kind": "js",
|
|
7388
|
+
"name": "AparteSuggestion",
|
|
7389
|
+
"declaration": {
|
|
7390
|
+
"name": "AparteSuggestion",
|
|
7391
|
+
"module": "./suggestions/index.js"
|
|
7392
|
+
}
|
|
7393
|
+
},
|
|
7394
|
+
{
|
|
7395
|
+
"kind": "js",
|
|
7396
|
+
"name": "AparteSuggestionEventDetail",
|
|
7397
|
+
"declaration": {
|
|
7398
|
+
"name": "AparteSuggestionEventDetail",
|
|
7399
|
+
"module": "./suggestions/index.js"
|
|
7400
|
+
}
|
|
7401
|
+
},
|
|
7402
|
+
{
|
|
7403
|
+
"kind": "js",
|
|
7404
|
+
"name": "AparteContext",
|
|
7405
|
+
"declaration": {
|
|
7406
|
+
"name": "AparteContext",
|
|
7407
|
+
"module": "./context/index.js"
|
|
7408
|
+
}
|
|
7409
|
+
},
|
|
7410
|
+
{
|
|
7411
|
+
"kind": "js",
|
|
7412
|
+
"name": "AparteContextLevel",
|
|
7413
|
+
"declaration": {
|
|
7414
|
+
"name": "AparteContextLevel",
|
|
7415
|
+
"module": "./context/index.js"
|
|
7416
|
+
}
|
|
7417
|
+
},
|
|
7418
|
+
{
|
|
7419
|
+
"kind": "js",
|
|
7420
|
+
"name": "AparteContextThresholdEventDetail",
|
|
7421
|
+
"declaration": {
|
|
7422
|
+
"name": "AparteContextThresholdEventDetail",
|
|
7423
|
+
"module": "./context/index.js"
|
|
7424
|
+
}
|
|
7425
|
+
},
|
|
7426
|
+
{
|
|
7427
|
+
"kind": "js",
|
|
7428
|
+
"name": "AparteScrollRail",
|
|
7429
|
+
"declaration": {
|
|
7430
|
+
"name": "AparteScrollRail",
|
|
7431
|
+
"module": "./scroll-rail/index.js"
|
|
7432
|
+
}
|
|
7433
|
+
},
|
|
7434
|
+
{
|
|
7435
|
+
"kind": "js",
|
|
7436
|
+
"name": "AparteScrollRailJumpDetail",
|
|
7437
|
+
"declaration": {
|
|
7438
|
+
"name": "AparteScrollRailJumpDetail",
|
|
7439
|
+
"module": "./scroll-rail/index.js"
|
|
7440
|
+
}
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
"kind": "js",
|
|
7444
|
+
"name": "AparteScrollRailEvery",
|
|
7445
|
+
"declaration": {
|
|
7446
|
+
"name": "AparteScrollRailEvery",
|
|
7447
|
+
"module": "./scroll-rail/index.js"
|
|
7448
|
+
}
|
|
7449
|
+
},
|
|
7450
|
+
{
|
|
7451
|
+
"kind": "js",
|
|
7452
|
+
"name": "AparteSidebar",
|
|
7453
|
+
"declaration": {
|
|
7454
|
+
"name": "AparteSidebar",
|
|
7455
|
+
"module": "./sidebar/index.js"
|
|
7456
|
+
}
|
|
7457
|
+
},
|
|
7458
|
+
{
|
|
7459
|
+
"kind": "js",
|
|
7460
|
+
"name": "AparteSidebarToggleDetail",
|
|
7461
|
+
"declaration": {
|
|
7462
|
+
"name": "AparteSidebarToggleDetail",
|
|
7463
|
+
"module": "./sidebar/index.js"
|
|
7464
|
+
}
|
|
7465
|
+
},
|
|
7466
|
+
{
|
|
7467
|
+
"kind": "js",
|
|
7468
|
+
"name": "AparteSplit",
|
|
7469
|
+
"declaration": {
|
|
7470
|
+
"name": "AparteSplit",
|
|
7471
|
+
"module": "./split/index.js"
|
|
7472
|
+
}
|
|
7473
|
+
},
|
|
7474
|
+
{
|
|
7475
|
+
"kind": "js",
|
|
7476
|
+
"name": "AparteSplitResizeDetail",
|
|
7477
|
+
"declaration": {
|
|
7478
|
+
"name": "AparteSplitResizeDetail",
|
|
7479
|
+
"module": "./split/index.js"
|
|
7480
|
+
}
|
|
7481
|
+
},
|
|
7482
|
+
{
|
|
7483
|
+
"kind": "js",
|
|
7484
|
+
"name": "AparteLauncher",
|
|
7485
|
+
"declaration": {
|
|
7486
|
+
"name": "AparteLauncher",
|
|
7487
|
+
"module": "./launcher/index.js"
|
|
7488
|
+
}
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
"kind": "js",
|
|
7492
|
+
"name": "AparteLauncherToggleDetail",
|
|
7493
|
+
"declaration": {
|
|
7494
|
+
"name": "AparteLauncherToggleDetail",
|
|
7495
|
+
"module": "./launcher/index.js"
|
|
7496
|
+
}
|
|
7497
|
+
}
|
|
7498
|
+
]
|
|
7499
|
+
},
|
|
7125
7500
|
{
|
|
7126
7501
|
"kind": "javascript-module",
|
|
7127
7502
|
"path": "src/config/action-provider.ts",
|
|
@@ -9622,814 +9997,231 @@
|
|
|
9622
9997
|
"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."
|
|
9623
9998
|
}
|
|
9624
9999
|
],
|
|
9625
|
-
"exports": [
|
|
9626
|
-
{
|
|
9627
|
-
"kind": "js",
|
|
9628
|
-
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
9629
|
-
"declaration": {
|
|
9630
|
-
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
9631
|
-
"module": "src/config/aparte-config.ts"
|
|
9632
|
-
}
|
|
9633
|
-
},
|
|
9634
|
-
{
|
|
9635
|
-
"kind": "js",
|
|
9636
|
-
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
9637
|
-
"declaration": {
|
|
9638
|
-
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
9639
|
-
"module": "src/config/aparte-config.ts"
|
|
9640
|
-
}
|
|
9641
|
-
},
|
|
9642
|
-
{
|
|
9643
|
-
"kind": "js",
|
|
9644
|
-
"name": "renderingVersionOf",
|
|
9645
|
-
"declaration": {
|
|
9646
|
-
"name": "renderingVersionOf",
|
|
9647
|
-
"module": "src/config/aparte-config.ts"
|
|
9648
|
-
}
|
|
9649
|
-
},
|
|
9650
|
-
{
|
|
9651
|
-
"kind": "js",
|
|
9652
|
-
"name": "onRenderersChange",
|
|
9653
|
-
"declaration": {
|
|
9654
|
-
"name": "onRenderersChange",
|
|
9655
|
-
"module": "src/config/aparte-config.ts"
|
|
9656
|
-
}
|
|
9657
|
-
},
|
|
9658
|
-
{
|
|
9659
|
-
"kind": "js",
|
|
9660
|
-
"name": "notifyRenderersChanged",
|
|
9661
|
-
"declaration": {
|
|
9662
|
-
"name": "notifyRenderersChanged",
|
|
9663
|
-
"module": "src/config/aparte-config.ts"
|
|
9664
|
-
}
|
|
9665
|
-
},
|
|
9666
|
-
{
|
|
9667
|
-
"kind": "js",
|
|
9668
|
-
"name": "AparteConfig",
|
|
9669
|
-
"declaration": {
|
|
9670
|
-
"name": "AparteConfig",
|
|
9671
|
-
"module": "src/config/aparte-config.ts"
|
|
9672
|
-
}
|
|
9673
|
-
},
|
|
9674
|
-
{
|
|
9675
|
-
"kind": "js",
|
|
9676
|
-
"name": "aparteGlobalConfig",
|
|
9677
|
-
"declaration": {
|
|
9678
|
-
"name": "aparteGlobalConfig",
|
|
9679
|
-
"module": "src/config/aparte-config.ts"
|
|
9680
|
-
}
|
|
9681
|
-
}
|
|
9682
|
-
]
|
|
9683
|
-
},
|
|
9684
|
-
{
|
|
9685
|
-
"kind": "javascript-module",
|
|
9686
|
-
"path": "src/config/attachment-renderer.ts",
|
|
9687
|
-
"declarations": [],
|
|
9688
|
-
"exports": []
|
|
9689
|
-
},
|
|
9690
|
-
{
|
|
9691
|
-
"kind": "javascript-module",
|
|
9692
|
-
"path": "src/config/avatar-provider.ts",
|
|
9693
|
-
"declarations": [],
|
|
9694
|
-
"exports": []
|
|
9695
|
-
},
|
|
9696
|
-
{
|
|
9697
|
-
"kind": "javascript-module",
|
|
9698
|
-
"path": "src/config/bubble-shell-renderer.ts",
|
|
9699
|
-
"declarations": [],
|
|
9700
|
-
"exports": []
|
|
9701
|
-
},
|
|
9702
|
-
{
|
|
9703
|
-
"kind": "javascript-module",
|
|
9704
|
-
"path": "src/config/config-context.ts",
|
|
9705
|
-
"declarations": [
|
|
9706
|
-
{
|
|
9707
|
-
"kind": "variable",
|
|
9708
|
-
"name": "APARTE_HOST_ATTR",
|
|
9709
|
-
"type": {
|
|
9710
|
-
"text": "string"
|
|
9711
|
-
},
|
|
9712
|
-
"default": "'data-aparte-host'",
|
|
9713
|
-
"description": "Marks an element as an instance-config boundary (used by `closest()`)."
|
|
9714
|
-
},
|
|
9715
|
-
{
|
|
9716
|
-
"kind": "function",
|
|
9717
|
-
"name": "attachConfig",
|
|
9718
|
-
"return": {
|
|
9719
|
-
"type": {
|
|
9720
|
-
"text": "void"
|
|
9721
|
-
}
|
|
9722
|
-
},
|
|
9723
|
-
"parameters": [
|
|
9724
|
-
{
|
|
9725
|
-
"name": "el",
|
|
9726
|
-
"type": {
|
|
9727
|
-
"text": "HTMLElement"
|
|
9728
|
-
}
|
|
9729
|
-
},
|
|
9730
|
-
{
|
|
9731
|
-
"name": "config",
|
|
9732
|
-
"type": {
|
|
9733
|
-
"text": "AparteConfig"
|
|
9734
|
-
}
|
|
9735
|
-
}
|
|
9736
|
-
],
|
|
9737
|
-
"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."
|
|
9738
|
-
},
|
|
9739
|
-
{
|
|
9740
|
-
"kind": "function",
|
|
9741
|
-
"name": "detachConfig",
|
|
9742
|
-
"return": {
|
|
9743
|
-
"type": {
|
|
9744
|
-
"text": "void"
|
|
9745
|
-
}
|
|
9746
|
-
},
|
|
9747
|
-
"parameters": [
|
|
9748
|
-
{
|
|
9749
|
-
"name": "el",
|
|
9750
|
-
"type": {
|
|
9751
|
-
"text": "HTMLElement"
|
|
9752
|
-
}
|
|
9753
|
-
}
|
|
9754
|
-
],
|
|
9755
|
-
"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."
|
|
9756
|
-
},
|
|
9757
|
-
{
|
|
9758
|
-
"kind": "function",
|
|
9759
|
-
"name": "resolveConfig",
|
|
9760
|
-
"return": {
|
|
9761
|
-
"type": {
|
|
9762
|
-
"text": "AparteConfig"
|
|
9763
|
-
}
|
|
9764
|
-
},
|
|
9765
|
-
"parameters": [
|
|
9766
|
-
{
|
|
9767
|
-
"name": "el",
|
|
9768
|
-
"type": {
|
|
9769
|
-
"text": "Element | null | undefined"
|
|
9770
|
-
}
|
|
9771
|
-
}
|
|
9772
|
-
],
|
|
9773
|
-
"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."
|
|
9774
|
-
},
|
|
9775
|
-
{
|
|
9776
|
-
"kind": "function",
|
|
9777
|
-
"name": "runWithConfig",
|
|
9778
|
-
"return": {
|
|
9779
|
-
"type": {
|
|
9780
|
-
"text": "T"
|
|
9781
|
-
}
|
|
9782
|
-
},
|
|
9783
|
-
"parameters": [
|
|
9784
|
-
{
|
|
9785
|
-
"name": "config",
|
|
9786
|
-
"type": {
|
|
9787
|
-
"text": "AparteConfig"
|
|
9788
|
-
}
|
|
9789
|
-
},
|
|
9790
|
-
{
|
|
9791
|
-
"name": "fn",
|
|
9792
|
-
"type": {
|
|
9793
|
-
"text": "() => T"
|
|
9794
|
-
}
|
|
9795
|
-
}
|
|
9796
|
-
],
|
|
9797
|
-
"description": "Run `fn` with `config` as the ambient render config (restored after)."
|
|
9798
|
-
},
|
|
9799
|
-
{
|
|
9800
|
-
"kind": "function",
|
|
9801
|
-
"name": "contextConfig",
|
|
9802
|
-
"return": {
|
|
9803
|
-
"type": {
|
|
9804
|
-
"text": "AparteConfig"
|
|
9805
|
-
}
|
|
9806
|
-
},
|
|
9807
|
-
"parameters": [
|
|
9808
|
-
{
|
|
9809
|
-
"name": "el",
|
|
9810
|
-
"optional": true,
|
|
9811
|
-
"type": {
|
|
9812
|
-
"text": "Element | null"
|
|
9813
|
-
}
|
|
9814
|
-
}
|
|
9815
|
-
],
|
|
9816
|
-
"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`."
|
|
9817
|
-
}
|
|
9818
|
-
],
|
|
9819
|
-
"exports": [
|
|
9820
|
-
{
|
|
9821
|
-
"kind": "js",
|
|
9822
|
-
"name": "APARTE_HOST_ATTR",
|
|
9823
|
-
"declaration": {
|
|
9824
|
-
"name": "APARTE_HOST_ATTR",
|
|
9825
|
-
"module": "src/config/config-context.ts"
|
|
9826
|
-
}
|
|
9827
|
-
},
|
|
10000
|
+
"exports": [
|
|
9828
10001
|
{
|
|
9829
10002
|
"kind": "js",
|
|
9830
|
-
"name": "
|
|
10003
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
9831
10004
|
"declaration": {
|
|
9832
|
-
"name": "
|
|
9833
|
-
"module": "src/config/config
|
|
10005
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
10006
|
+
"module": "src/config/aparte-config.ts"
|
|
9834
10007
|
}
|
|
9835
10008
|
},
|
|
9836
10009
|
{
|
|
9837
10010
|
"kind": "js",
|
|
9838
|
-
"name": "
|
|
10011
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
9839
10012
|
"declaration": {
|
|
9840
|
-
"name": "
|
|
9841
|
-
"module": "src/config/config
|
|
10013
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
10014
|
+
"module": "src/config/aparte-config.ts"
|
|
9842
10015
|
}
|
|
9843
10016
|
},
|
|
9844
10017
|
{
|
|
9845
10018
|
"kind": "js",
|
|
9846
|
-
"name": "
|
|
10019
|
+
"name": "renderingVersionOf",
|
|
9847
10020
|
"declaration": {
|
|
9848
|
-
"name": "
|
|
9849
|
-
"module": "src/config/config
|
|
10021
|
+
"name": "renderingVersionOf",
|
|
10022
|
+
"module": "src/config/aparte-config.ts"
|
|
9850
10023
|
}
|
|
9851
10024
|
},
|
|
9852
10025
|
{
|
|
9853
10026
|
"kind": "js",
|
|
9854
|
-
"name": "
|
|
10027
|
+
"name": "onRenderersChange",
|
|
9855
10028
|
"declaration": {
|
|
9856
|
-
"name": "
|
|
9857
|
-
"module": "src/config/config
|
|
10029
|
+
"name": "onRenderersChange",
|
|
10030
|
+
"module": "src/config/aparte-config.ts"
|
|
9858
10031
|
}
|
|
9859
10032
|
},
|
|
9860
10033
|
{
|
|
9861
10034
|
"kind": "js",
|
|
9862
|
-
"name": "
|
|
10035
|
+
"name": "notifyRenderersChanged",
|
|
9863
10036
|
"declaration": {
|
|
9864
|
-
"name": "
|
|
9865
|
-
"module": "src/config/config
|
|
10037
|
+
"name": "notifyRenderersChanged",
|
|
10038
|
+
"module": "src/config/aparte-config.ts"
|
|
9866
10039
|
}
|
|
9867
|
-
}
|
|
9868
|
-
]
|
|
9869
|
-
},
|
|
9870
|
-
{
|
|
9871
|
-
"kind": "javascript-module",
|
|
9872
|
-
"path": "src/config/config-subscribe.ts",
|
|
9873
|
-
"declarations": [
|
|
9874
|
-
{
|
|
9875
|
-
"kind": "variable",
|
|
9876
|
-
"name": "APARTE_CONFIG_CHANGE",
|
|
9877
|
-
"type": {
|
|
9878
|
-
"text": "string"
|
|
9879
|
-
},
|
|
9880
|
-
"default": "'aparte-config-change'",
|
|
9881
|
-
"description": "The event `AparteConfig._notify()` dispatches on `window`."
|
|
9882
10040
|
},
|
|
9883
|
-
{
|
|
9884
|
-
"kind": "function",
|
|
9885
|
-
"name": "subscribeConfigChange",
|
|
9886
|
-
"return": {
|
|
9887
|
-
"type": {
|
|
9888
|
-
"text": "() => void"
|
|
9889
|
-
}
|
|
9890
|
-
},
|
|
9891
|
-
"parameters": [
|
|
9892
|
-
{
|
|
9893
|
-
"name": "el",
|
|
9894
|
-
"type": {
|
|
9895
|
-
"text": "Element"
|
|
9896
|
-
}
|
|
9897
|
-
},
|
|
9898
|
-
{
|
|
9899
|
-
"name": "handler",
|
|
9900
|
-
"type": {
|
|
9901
|
-
"text": "() => void"
|
|
9902
|
-
}
|
|
9903
|
-
}
|
|
9904
|
-
]
|
|
9905
|
-
}
|
|
9906
|
-
],
|
|
9907
|
-
"exports": [
|
|
9908
10041
|
{
|
|
9909
10042
|
"kind": "js",
|
|
9910
|
-
"name": "
|
|
10043
|
+
"name": "AparteConfig",
|
|
9911
10044
|
"declaration": {
|
|
9912
|
-
"name": "
|
|
9913
|
-
"module": "src/config/config
|
|
10045
|
+
"name": "AparteConfig",
|
|
10046
|
+
"module": "src/config/aparte-config.ts"
|
|
9914
10047
|
}
|
|
9915
10048
|
},
|
|
9916
10049
|
{
|
|
9917
10050
|
"kind": "js",
|
|
9918
|
-
"name": "
|
|
10051
|
+
"name": "aparteGlobalConfig",
|
|
9919
10052
|
"declaration": {
|
|
9920
|
-
"name": "
|
|
9921
|
-
"module": "src/config/config
|
|
10053
|
+
"name": "aparteGlobalConfig",
|
|
10054
|
+
"module": "src/config/aparte-config.ts"
|
|
9922
10055
|
}
|
|
9923
10056
|
}
|
|
9924
10057
|
]
|
|
9925
10058
|
},
|
|
9926
10059
|
{
|
|
9927
10060
|
"kind": "javascript-module",
|
|
9928
|
-
"path": "src/config/
|
|
10061
|
+
"path": "src/config/attachment-renderer.ts",
|
|
9929
10062
|
"declarations": [],
|
|
9930
10063
|
"exports": []
|
|
9931
10064
|
},
|
|
9932
10065
|
{
|
|
9933
10066
|
"kind": "javascript-module",
|
|
9934
|
-
"path": "src/config/
|
|
10067
|
+
"path": "src/config/avatar-provider.ts",
|
|
9935
10068
|
"declarations": [],
|
|
9936
10069
|
"exports": []
|
|
9937
10070
|
},
|
|
9938
10071
|
{
|
|
9939
10072
|
"kind": "javascript-module",
|
|
9940
|
-
"path": "src/config/
|
|
9941
|
-
"declarations": [
|
|
9942
|
-
|
|
9943
|
-
"kind": "variable",
|
|
9944
|
-
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
9945
|
-
"type": {
|
|
9946
|
-
"text": "Record<AparteCoreIconName, string>"
|
|
9947
|
-
},
|
|
9948
|
-
"default": "APARTE_ICON_GLYPHS",
|
|
9949
|
-
"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."
|
|
9950
|
-
}
|
|
9951
|
-
],
|
|
9952
|
-
"exports": [
|
|
9953
|
-
{
|
|
9954
|
-
"kind": "js",
|
|
9955
|
-
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
9956
|
-
"declaration": {
|
|
9957
|
-
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
9958
|
-
"module": "src/config/icon-provider.ts"
|
|
9959
|
-
}
|
|
9960
|
-
}
|
|
9961
|
-
]
|
|
10073
|
+
"path": "src/config/bubble-shell-renderer.ts",
|
|
10074
|
+
"declarations": [],
|
|
10075
|
+
"exports": []
|
|
9962
10076
|
},
|
|
9963
10077
|
{
|
|
9964
10078
|
"kind": "javascript-module",
|
|
9965
|
-
"path": "src/config/
|
|
10079
|
+
"path": "src/config/config-context.ts",
|
|
9966
10080
|
"declarations": [
|
|
9967
10081
|
{
|
|
9968
|
-
"kind": "
|
|
9969
|
-
"name": "
|
|
9970
|
-
"
|
|
9971
|
-
"
|
|
9972
|
-
"text": "URL | null"
|
|
9973
|
-
}
|
|
9974
|
-
},
|
|
9975
|
-
"parameters": [
|
|
9976
|
-
{
|
|
9977
|
-
"name": "address",
|
|
9978
|
-
"type": {
|
|
9979
|
-
"text": "string"
|
|
9980
|
-
}
|
|
9981
|
-
}
|
|
9982
|
-
],
|
|
9983
|
-
"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."
|
|
9984
|
-
},
|
|
9985
|
-
{
|
|
9986
|
-
"kind": "function",
|
|
9987
|
-
"name": "sameImagePolicy",
|
|
9988
|
-
"return": {
|
|
9989
|
-
"type": {
|
|
9990
|
-
"text": "boolean"
|
|
9991
|
-
}
|
|
9992
|
-
},
|
|
9993
|
-
"parameters": [
|
|
9994
|
-
{
|
|
9995
|
-
"name": "a",
|
|
9996
|
-
"type": {
|
|
9997
|
-
"text": "AparteImagePolicy"
|
|
9998
|
-
}
|
|
9999
|
-
},
|
|
10000
|
-
{
|
|
10001
|
-
"name": "b",
|
|
10002
|
-
"type": {
|
|
10003
|
-
"text": "AparteImagePolicy"
|
|
10004
|
-
}
|
|
10005
|
-
}
|
|
10006
|
-
],
|
|
10007
|
-
"description": "Whether two policies say the same thing: the same function, or lists with the same entries."
|
|
10008
|
-
},
|
|
10009
|
-
{
|
|
10010
|
-
"kind": "function",
|
|
10011
|
-
"name": "compileImagePolicy",
|
|
10012
|
-
"return": {
|
|
10013
|
-
"type": {
|
|
10014
|
-
"text": "ImageDecider"
|
|
10015
|
-
}
|
|
10016
|
-
},
|
|
10017
|
-
"parameters": [
|
|
10018
|
-
{
|
|
10019
|
-
"name": "policy",
|
|
10020
|
-
"type": {
|
|
10021
|
-
"text": "AparteImagePolicy"
|
|
10022
|
-
}
|
|
10023
|
-
}
|
|
10024
|
-
],
|
|
10025
|
-
"description": "Turn a policy into the function every decision runs through."
|
|
10026
|
-
},
|
|
10027
|
-
{
|
|
10028
|
-
"kind": "function",
|
|
10029
|
-
"name": "decideImageAddress",
|
|
10030
|
-
"return": {
|
|
10031
|
-
"type": {
|
|
10032
|
-
"text": "AparteImageDecision"
|
|
10033
|
-
}
|
|
10034
|
-
},
|
|
10035
|
-
"parameters": [
|
|
10036
|
-
{
|
|
10037
|
-
"name": "decide",
|
|
10038
|
-
"type": {
|
|
10039
|
-
"text": "ImageDecider"
|
|
10040
|
-
}
|
|
10041
|
-
},
|
|
10042
|
-
{
|
|
10043
|
-
"name": "address",
|
|
10044
|
-
"type": {
|
|
10045
|
-
"text": "string"
|
|
10046
|
-
}
|
|
10047
|
-
},
|
|
10048
|
-
{
|
|
10049
|
-
"name": "shown",
|
|
10050
|
-
"optional": true,
|
|
10051
|
-
"type": {
|
|
10052
|
-
"text": "ReadonlySet<string>"
|
|
10053
|
-
}
|
|
10054
|
-
}
|
|
10055
|
-
],
|
|
10056
|
-
"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."
|
|
10057
|
-
},
|
|
10058
|
-
{
|
|
10059
|
-
"kind": "function",
|
|
10060
|
-
"name": "rememberShownImage",
|
|
10061
|
-
"return": {
|
|
10062
|
-
"type": {
|
|
10063
|
-
"text": "void"
|
|
10064
|
-
}
|
|
10065
|
-
},
|
|
10066
|
-
"parameters": [
|
|
10067
|
-
{
|
|
10068
|
-
"name": "owner",
|
|
10069
|
-
"type": {
|
|
10070
|
-
"text": "object"
|
|
10071
|
-
}
|
|
10072
|
-
},
|
|
10073
|
-
{
|
|
10074
|
-
"name": "address",
|
|
10075
|
-
"type": {
|
|
10076
|
-
"text": "string"
|
|
10077
|
-
}
|
|
10078
|
-
}
|
|
10079
|
-
],
|
|
10080
|
-
"description": "Remember that the reader chose to see the picture at `address`, under `owner` (a config)."
|
|
10081
|
-
},
|
|
10082
|
-
{
|
|
10083
|
-
"kind": "function",
|
|
10084
|
-
"name": "shownImagesOf",
|
|
10085
|
-
"return": {
|
|
10086
|
-
"type": {
|
|
10087
|
-
"text": "ReadonlySet<string> | undefined"
|
|
10088
|
-
}
|
|
10089
|
-
},
|
|
10090
|
-
"parameters": [
|
|
10091
|
-
{
|
|
10092
|
-
"name": "owner",
|
|
10093
|
-
"type": {
|
|
10094
|
-
"text": "object"
|
|
10095
|
-
}
|
|
10096
|
-
}
|
|
10097
|
-
],
|
|
10098
|
-
"description": "The pictures the reader chose to see under `owner`."
|
|
10099
|
-
},
|
|
10100
|
-
{
|
|
10101
|
-
"kind": "function",
|
|
10102
|
-
"name": "forgetShownImages",
|
|
10103
|
-
"return": {
|
|
10104
|
-
"type": {
|
|
10105
|
-
"text": "void"
|
|
10106
|
-
}
|
|
10082
|
+
"kind": "variable",
|
|
10083
|
+
"name": "APARTE_HOST_ATTR",
|
|
10084
|
+
"type": {
|
|
10085
|
+
"text": "string"
|
|
10107
10086
|
},
|
|
10108
|
-
"
|
|
10109
|
-
|
|
10110
|
-
"name": "owner",
|
|
10111
|
-
"type": {
|
|
10112
|
-
"text": "object"
|
|
10113
|
-
}
|
|
10114
|
-
}
|
|
10115
|
-
],
|
|
10116
|
-
"description": "Forget them: a reset config starts from what its policy says."
|
|
10087
|
+
"default": "'data-aparte-host'",
|
|
10088
|
+
"description": "Marks an element as an instance-config boundary (used by `closest()`)."
|
|
10117
10089
|
},
|
|
10118
10090
|
{
|
|
10119
10091
|
"kind": "function",
|
|
10120
|
-
"name": "
|
|
10092
|
+
"name": "attachConfig",
|
|
10121
10093
|
"return": {
|
|
10122
10094
|
"type": {
|
|
10123
|
-
"text": "
|
|
10095
|
+
"text": "void"
|
|
10124
10096
|
}
|
|
10125
10097
|
},
|
|
10126
10098
|
"parameters": [
|
|
10127
10099
|
{
|
|
10128
|
-
"name": "
|
|
10100
|
+
"name": "el",
|
|
10129
10101
|
"type": {
|
|
10130
|
-
"text": "
|
|
10102
|
+
"text": "HTMLElement"
|
|
10131
10103
|
}
|
|
10132
|
-
}
|
|
10133
|
-
],
|
|
10134
|
-
"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."
|
|
10135
|
-
},
|
|
10136
|
-
{
|
|
10137
|
-
"kind": "function",
|
|
10138
|
-
"name": "srcsetUrls",
|
|
10139
|
-
"return": {
|
|
10140
|
-
"type": {
|
|
10141
|
-
"text": "string[]"
|
|
10142
|
-
}
|
|
10143
|
-
},
|
|
10144
|
-
"parameters": [
|
|
10104
|
+
},
|
|
10145
10105
|
{
|
|
10146
|
-
"name": "
|
|
10106
|
+
"name": "config",
|
|
10147
10107
|
"type": {
|
|
10148
|
-
"text": "
|
|
10108
|
+
"text": "AparteConfig"
|
|
10149
10109
|
}
|
|
10150
10110
|
}
|
|
10151
10111
|
],
|
|
10152
|
-
"description": "
|
|
10112
|
+
"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."
|
|
10153
10113
|
},
|
|
10154
10114
|
{
|
|
10155
10115
|
"kind": "function",
|
|
10156
|
-
"name": "
|
|
10116
|
+
"name": "detachConfig",
|
|
10157
10117
|
"return": {
|
|
10158
10118
|
"type": {
|
|
10159
|
-
"text": "
|
|
10119
|
+
"text": "void"
|
|
10160
10120
|
}
|
|
10161
10121
|
},
|
|
10162
10122
|
"parameters": [
|
|
10163
10123
|
{
|
|
10164
|
-
"name": "
|
|
10124
|
+
"name": "el",
|
|
10165
10125
|
"type": {
|
|
10166
|
-
"text": "
|
|
10126
|
+
"text": "HTMLElement"
|
|
10167
10127
|
}
|
|
10168
10128
|
}
|
|
10169
10129
|
],
|
|
10170
|
-
"description": "
|
|
10130
|
+
"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."
|
|
10171
10131
|
},
|
|
10172
10132
|
{
|
|
10173
10133
|
"kind": "function",
|
|
10174
|
-
"name": "
|
|
10134
|
+
"name": "resolveConfig",
|
|
10175
10135
|
"return": {
|
|
10176
10136
|
"type": {
|
|
10177
|
-
"text": "
|
|
10137
|
+
"text": "AparteConfig"
|
|
10178
10138
|
}
|
|
10179
10139
|
},
|
|
10180
10140
|
"parameters": [
|
|
10181
10141
|
{
|
|
10182
|
-
"name": "
|
|
10183
|
-
"type": {
|
|
10184
|
-
"text": "string"
|
|
10185
|
-
}
|
|
10186
|
-
},
|
|
10187
|
-
{
|
|
10188
|
-
"name": "alt",
|
|
10189
|
-
"type": {
|
|
10190
|
-
"text": "string"
|
|
10191
|
-
}
|
|
10192
|
-
},
|
|
10193
|
-
{
|
|
10194
|
-
"name": "words",
|
|
10142
|
+
"name": "el",
|
|
10195
10143
|
"type": {
|
|
10196
|
-
"text": "
|
|
10144
|
+
"text": "Element | null | undefined"
|
|
10197
10145
|
}
|
|
10198
|
-
},
|
|
10199
|
-
{
|
|
10200
|
-
"name": "inLink",
|
|
10201
|
-
"default": "false"
|
|
10202
10146
|
}
|
|
10203
10147
|
],
|
|
10204
|
-
"description": "
|
|
10148
|
+
"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."
|
|
10205
10149
|
},
|
|
10206
10150
|
{
|
|
10207
10151
|
"kind": "function",
|
|
10208
|
-
"name": "
|
|
10152
|
+
"name": "runWithConfig",
|
|
10209
10153
|
"return": {
|
|
10210
10154
|
"type": {
|
|
10211
|
-
"text": "
|
|
10155
|
+
"text": "T"
|
|
10212
10156
|
}
|
|
10213
10157
|
},
|
|
10214
10158
|
"parameters": [
|
|
10215
10159
|
{
|
|
10216
|
-
"name": "
|
|
10217
|
-
"type": {
|
|
10218
|
-
"text": "string"
|
|
10219
|
-
}
|
|
10220
|
-
},
|
|
10221
|
-
{
|
|
10222
|
-
"name": "decide",
|
|
10160
|
+
"name": "config",
|
|
10223
10161
|
"type": {
|
|
10224
|
-
"text": "
|
|
10162
|
+
"text": "AparteConfig"
|
|
10225
10163
|
}
|
|
10226
10164
|
},
|
|
10227
10165
|
{
|
|
10228
|
-
"name": "
|
|
10166
|
+
"name": "fn",
|
|
10229
10167
|
"type": {
|
|
10230
|
-
"text": "() =>
|
|
10168
|
+
"text": "() => T"
|
|
10231
10169
|
}
|
|
10232
10170
|
}
|
|
10233
10171
|
],
|
|
10234
|
-
"description": "
|
|
10172
|
+
"description": "Run `fn` with `config` as the ambient render config (restored after)."
|
|
10235
10173
|
},
|
|
10236
10174
|
{
|
|
10237
10175
|
"kind": "function",
|
|
10238
|
-
"name": "
|
|
10176
|
+
"name": "contextConfig",
|
|
10239
10177
|
"return": {
|
|
10240
10178
|
"type": {
|
|
10241
|
-
"text": "
|
|
10179
|
+
"text": "AparteConfig"
|
|
10242
10180
|
}
|
|
10243
10181
|
},
|
|
10244
10182
|
"parameters": [
|
|
10245
10183
|
{
|
|
10246
|
-
"name": "
|
|
10247
|
-
"
|
|
10248
|
-
"text": "string"
|
|
10249
|
-
}
|
|
10250
|
-
},
|
|
10251
|
-
{
|
|
10252
|
-
"name": "decide",
|
|
10253
|
-
"type": {
|
|
10254
|
-
"text": "(address: string) => AparteImageDecision"
|
|
10255
|
-
}
|
|
10256
|
-
},
|
|
10257
|
-
{
|
|
10258
|
-
"name": "words",
|
|
10184
|
+
"name": "el",
|
|
10185
|
+
"optional": true,
|
|
10259
10186
|
"type": {
|
|
10260
|
-
"text": "
|
|
10187
|
+
"text": "Element | null"
|
|
10261
10188
|
}
|
|
10262
10189
|
}
|
|
10263
10190
|
],
|
|
10264
|
-
"description": "The
|
|
10265
|
-
}
|
|
10266
|
-
],
|
|
10267
|
-
"exports": [
|
|
10268
|
-
{
|
|
10269
|
-
"kind": "js",
|
|
10270
|
-
"name": "resolveImageAddress",
|
|
10271
|
-
"declaration": {
|
|
10272
|
-
"name": "resolveImageAddress",
|
|
10273
|
-
"module": "src/config/image-policy.ts"
|
|
10274
|
-
}
|
|
10275
|
-
},
|
|
10276
|
-
{
|
|
10277
|
-
"kind": "js",
|
|
10278
|
-
"name": "sameImagePolicy",
|
|
10279
|
-
"declaration": {
|
|
10280
|
-
"name": "sameImagePolicy",
|
|
10281
|
-
"module": "src/config/image-policy.ts"
|
|
10282
|
-
}
|
|
10283
|
-
},
|
|
10284
|
-
{
|
|
10285
|
-
"kind": "js",
|
|
10286
|
-
"name": "compileImagePolicy",
|
|
10287
|
-
"declaration": {
|
|
10288
|
-
"name": "compileImagePolicy",
|
|
10289
|
-
"module": "src/config/image-policy.ts"
|
|
10290
|
-
}
|
|
10291
|
-
},
|
|
10292
|
-
{
|
|
10293
|
-
"kind": "js",
|
|
10294
|
-
"name": "decideImageAddress",
|
|
10295
|
-
"declaration": {
|
|
10296
|
-
"name": "decideImageAddress",
|
|
10297
|
-
"module": "src/config/image-policy.ts"
|
|
10298
|
-
}
|
|
10299
|
-
},
|
|
10300
|
-
{
|
|
10301
|
-
"kind": "js",
|
|
10302
|
-
"name": "rememberShownImage",
|
|
10303
|
-
"declaration": {
|
|
10304
|
-
"name": "rememberShownImage",
|
|
10305
|
-
"module": "src/config/image-policy.ts"
|
|
10306
|
-
}
|
|
10307
|
-
},
|
|
10308
|
-
{
|
|
10309
|
-
"kind": "js",
|
|
10310
|
-
"name": "shownImagesOf",
|
|
10311
|
-
"declaration": {
|
|
10312
|
-
"name": "shownImagesOf",
|
|
10313
|
-
"module": "src/config/image-policy.ts"
|
|
10314
|
-
}
|
|
10315
|
-
},
|
|
10316
|
-
{
|
|
10317
|
-
"kind": "js",
|
|
10318
|
-
"name": "forgetShownImages",
|
|
10319
|
-
"declaration": {
|
|
10320
|
-
"name": "forgetShownImages",
|
|
10321
|
-
"module": "src/config/image-policy.ts"
|
|
10322
|
-
}
|
|
10323
|
-
},
|
|
10324
|
-
{
|
|
10325
|
-
"kind": "js",
|
|
10326
|
-
"name": "parseSrcset",
|
|
10327
|
-
"declaration": {
|
|
10328
|
-
"name": "parseSrcset",
|
|
10329
|
-
"module": "src/config/image-policy.ts"
|
|
10330
|
-
}
|
|
10331
|
-
},
|
|
10332
|
-
{
|
|
10333
|
-
"kind": "js",
|
|
10334
|
-
"name": "srcsetUrls",
|
|
10335
|
-
"declaration": {
|
|
10336
|
-
"name": "srcsetUrls",
|
|
10337
|
-
"module": "src/config/image-policy.ts"
|
|
10338
|
-
}
|
|
10339
|
-
},
|
|
10340
|
-
{
|
|
10341
|
-
"kind": "js",
|
|
10342
|
-
"name": "imageHost",
|
|
10343
|
-
"declaration": {
|
|
10344
|
-
"name": "imageHost",
|
|
10345
|
-
"module": "src/config/image-policy.ts"
|
|
10346
|
-
}
|
|
10347
|
-
},
|
|
10348
|
-
{
|
|
10349
|
-
"kind": "js",
|
|
10350
|
-
"name": "heldImageHtml",
|
|
10351
|
-
"declaration": {
|
|
10352
|
-
"name": "heldImageHtml",
|
|
10353
|
-
"module": "src/config/image-policy.ts"
|
|
10354
|
-
}
|
|
10355
|
-
},
|
|
10356
|
-
{
|
|
10357
|
-
"kind": "js",
|
|
10358
|
-
"name": "applyImagePolicy",
|
|
10359
|
-
"declaration": {
|
|
10360
|
-
"name": "applyImagePolicy",
|
|
10361
|
-
"module": "src/config/image-policy.ts"
|
|
10362
|
-
}
|
|
10363
|
-
},
|
|
10364
|
-
{
|
|
10365
|
-
"kind": "js",
|
|
10366
|
-
"name": "applyImagePolicyWithoutDom",
|
|
10367
|
-
"declaration": {
|
|
10368
|
-
"name": "applyImagePolicyWithoutDom",
|
|
10369
|
-
"module": "src/config/image-policy.ts"
|
|
10370
|
-
}
|
|
10371
|
-
}
|
|
10372
|
-
]
|
|
10373
|
-
},
|
|
10374
|
-
{
|
|
10375
|
-
"kind": "javascript-module",
|
|
10376
|
-
"path": "src/config/index.ts",
|
|
10377
|
-
"declarations": [],
|
|
10378
|
-
"exports": [
|
|
10379
|
-
{
|
|
10380
|
-
"kind": "js",
|
|
10381
|
-
"name": "aparteGlobalConfig",
|
|
10382
|
-
"declaration": {
|
|
10383
|
-
"name": "aparteGlobalConfig",
|
|
10384
|
-
"module": "./aparte-config.js"
|
|
10385
|
-
}
|
|
10386
|
-
},
|
|
10387
|
-
{
|
|
10388
|
-
"kind": "js",
|
|
10389
|
-
"name": "AparteConfig",
|
|
10390
|
-
"declaration": {
|
|
10391
|
-
"name": "AparteConfig",
|
|
10392
|
-
"module": "./aparte-config.js"
|
|
10393
|
-
}
|
|
10394
|
-
},
|
|
10395
|
-
{
|
|
10396
|
-
"kind": "js",
|
|
10397
|
-
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
10398
|
-
"declaration": {
|
|
10399
|
-
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
10400
|
-
"module": "./aparte-config.js"
|
|
10401
|
-
}
|
|
10402
|
-
},
|
|
10191
|
+
"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`."
|
|
10192
|
+
}
|
|
10193
|
+
],
|
|
10194
|
+
"exports": [
|
|
10403
10195
|
{
|
|
10404
10196
|
"kind": "js",
|
|
10405
|
-
"name": "
|
|
10197
|
+
"name": "APARTE_HOST_ATTR",
|
|
10406
10198
|
"declaration": {
|
|
10407
|
-
"name": "
|
|
10408
|
-
"module": "
|
|
10199
|
+
"name": "APARTE_HOST_ATTR",
|
|
10200
|
+
"module": "src/config/config-context.ts"
|
|
10409
10201
|
}
|
|
10410
10202
|
},
|
|
10411
10203
|
{
|
|
10412
10204
|
"kind": "js",
|
|
10413
|
-
"name": "
|
|
10205
|
+
"name": "attachConfig",
|
|
10414
10206
|
"declaration": {
|
|
10415
|
-
"name": "
|
|
10416
|
-
"module": "
|
|
10207
|
+
"name": "attachConfig",
|
|
10208
|
+
"module": "src/config/config-context.ts"
|
|
10417
10209
|
}
|
|
10418
10210
|
},
|
|
10419
10211
|
{
|
|
10420
10212
|
"kind": "js",
|
|
10421
|
-
"name": "
|
|
10213
|
+
"name": "detachConfig",
|
|
10422
10214
|
"declaration": {
|
|
10423
|
-
"name": "
|
|
10424
|
-
"module": "
|
|
10215
|
+
"name": "detachConfig",
|
|
10216
|
+
"module": "src/config/config-context.ts"
|
|
10425
10217
|
}
|
|
10426
10218
|
},
|
|
10427
10219
|
{
|
|
10428
10220
|
"kind": "js",
|
|
10429
|
-
"name": "
|
|
10221
|
+
"name": "resolveConfig",
|
|
10430
10222
|
"declaration": {
|
|
10431
|
-
"name": "
|
|
10432
|
-
"module": "
|
|
10223
|
+
"name": "resolveConfig",
|
|
10224
|
+
"module": "src/config/config-context.ts"
|
|
10433
10225
|
}
|
|
10434
10226
|
},
|
|
10435
10227
|
{
|
|
@@ -10437,7 +10229,7 @@
|
|
|
10437
10229
|
"name": "runWithConfig",
|
|
10438
10230
|
"declaration": {
|
|
10439
10231
|
"name": "runWithConfig",
|
|
10440
|
-
"module": "
|
|
10232
|
+
"module": "src/config/config-context.ts"
|
|
10441
10233
|
}
|
|
10442
10234
|
},
|
|
10443
10235
|
{
|
|
@@ -10445,1023 +10237,1231 @@
|
|
|
10445
10237
|
"name": "contextConfig",
|
|
10446
10238
|
"declaration": {
|
|
10447
10239
|
"name": "contextConfig",
|
|
10448
|
-
"module": "
|
|
10240
|
+
"module": "src/config/config-context.ts"
|
|
10449
10241
|
}
|
|
10450
|
-
}
|
|
10242
|
+
}
|
|
10243
|
+
]
|
|
10244
|
+
},
|
|
10245
|
+
{
|
|
10246
|
+
"kind": "javascript-module",
|
|
10247
|
+
"path": "src/config/config-subscribe.ts",
|
|
10248
|
+
"declarations": [
|
|
10451
10249
|
{
|
|
10452
|
-
"kind": "
|
|
10453
|
-
"name": "
|
|
10454
|
-
"
|
|
10455
|
-
"
|
|
10456
|
-
|
|
10457
|
-
|
|
10250
|
+
"kind": "variable",
|
|
10251
|
+
"name": "APARTE_CONFIG_CHANGE",
|
|
10252
|
+
"type": {
|
|
10253
|
+
"text": "string"
|
|
10254
|
+
},
|
|
10255
|
+
"default": "'aparte-config-change'",
|
|
10256
|
+
"description": "The event `AparteConfig._notify()` dispatches on `window`."
|
|
10458
10257
|
},
|
|
10459
10258
|
{
|
|
10460
|
-
"kind": "
|
|
10259
|
+
"kind": "function",
|
|
10461
10260
|
"name": "subscribeConfigChange",
|
|
10462
|
-
"
|
|
10463
|
-
"
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10261
|
+
"return": {
|
|
10262
|
+
"type": {
|
|
10263
|
+
"text": "() => void"
|
|
10264
|
+
}
|
|
10265
|
+
},
|
|
10266
|
+
"parameters": [
|
|
10267
|
+
{
|
|
10268
|
+
"name": "el",
|
|
10269
|
+
"type": {
|
|
10270
|
+
"text": "Element"
|
|
10271
|
+
}
|
|
10272
|
+
},
|
|
10273
|
+
{
|
|
10274
|
+
"name": "handler",
|
|
10275
|
+
"type": {
|
|
10276
|
+
"text": "() => void"
|
|
10277
|
+
}
|
|
10278
|
+
}
|
|
10279
|
+
]
|
|
10280
|
+
}
|
|
10281
|
+
],
|
|
10282
|
+
"exports": [
|
|
10467
10283
|
{
|
|
10468
10284
|
"kind": "js",
|
|
10469
10285
|
"name": "APARTE_CONFIG_CHANGE",
|
|
10470
10286
|
"declaration": {
|
|
10471
10287
|
"name": "APARTE_CONFIG_CHANGE",
|
|
10472
|
-
"module": "
|
|
10473
|
-
}
|
|
10474
|
-
},
|
|
10475
|
-
{
|
|
10476
|
-
"kind": "js",
|
|
10477
|
-
"name": "AparteConfigAware",
|
|
10478
|
-
"declaration": {
|
|
10479
|
-
"name": "AparteConfigAware",
|
|
10480
|
-
"module": "./config-context.js"
|
|
10481
|
-
}
|
|
10482
|
-
},
|
|
10483
|
-
{
|
|
10484
|
-
"kind": "js",
|
|
10485
|
-
"name": "AparteConfigChangeEventDetail",
|
|
10486
|
-
"declaration": {
|
|
10487
|
-
"name": "AparteConfigChangeEventDetail",
|
|
10488
|
-
"module": "./aparte-config.js"
|
|
10489
|
-
}
|
|
10490
|
-
},
|
|
10491
|
-
{
|
|
10492
|
-
"kind": "js",
|
|
10493
|
-
"name": "AparteMarkdownProvider",
|
|
10494
|
-
"declaration": {
|
|
10495
|
-
"name": "AparteMarkdownProvider",
|
|
10496
|
-
"module": "./aparte-config.js"
|
|
10497
|
-
}
|
|
10498
|
-
},
|
|
10499
|
-
{
|
|
10500
|
-
"kind": "js",
|
|
10501
|
-
"name": "AparteStreamingMarkdownProvider",
|
|
10502
|
-
"declaration": {
|
|
10503
|
-
"name": "AparteStreamingMarkdownProvider",
|
|
10504
|
-
"module": "./aparte-config.js"
|
|
10505
|
-
}
|
|
10506
|
-
},
|
|
10507
|
-
{
|
|
10508
|
-
"kind": "js",
|
|
10509
|
-
"name": "AparteStreamingMarkdownRenderer",
|
|
10510
|
-
"declaration": {
|
|
10511
|
-
"name": "AparteStreamingMarkdownRenderer",
|
|
10512
|
-
"module": "./aparte-config.js"
|
|
10513
|
-
}
|
|
10514
|
-
},
|
|
10515
|
-
{
|
|
10516
|
-
"kind": "js",
|
|
10517
|
-
"name": "AparteCodeLanguageRenderer",
|
|
10518
|
-
"declaration": {
|
|
10519
|
-
"name": "AparteCodeLanguageRenderer",
|
|
10520
|
-
"module": "./aparte-config.js"
|
|
10288
|
+
"module": "src/config/config-subscribe.ts"
|
|
10521
10289
|
}
|
|
10522
10290
|
},
|
|
10523
10291
|
{
|
|
10524
10292
|
"kind": "js",
|
|
10525
|
-
"name": "
|
|
10293
|
+
"name": "subscribeConfigChange",
|
|
10526
10294
|
"declaration": {
|
|
10527
|
-
"name": "
|
|
10528
|
-
"module": "
|
|
10295
|
+
"name": "subscribeConfigChange",
|
|
10296
|
+
"module": "src/config/config-subscribe.ts"
|
|
10529
10297
|
}
|
|
10530
|
-
}
|
|
10298
|
+
}
|
|
10299
|
+
]
|
|
10300
|
+
},
|
|
10301
|
+
{
|
|
10302
|
+
"kind": "javascript-module",
|
|
10303
|
+
"path": "src/config/elicitation-field-renderer.ts",
|
|
10304
|
+
"declarations": [],
|
|
10305
|
+
"exports": []
|
|
10306
|
+
},
|
|
10307
|
+
{
|
|
10308
|
+
"kind": "javascript-module",
|
|
10309
|
+
"path": "src/config/error-renderer.ts",
|
|
10310
|
+
"declarations": [],
|
|
10311
|
+
"exports": []
|
|
10312
|
+
},
|
|
10313
|
+
{
|
|
10314
|
+
"kind": "javascript-module",
|
|
10315
|
+
"path": "src/config/icon-provider.ts",
|
|
10316
|
+
"declarations": [
|
|
10531
10317
|
{
|
|
10532
|
-
"kind": "
|
|
10533
|
-
"name": "
|
|
10534
|
-
"
|
|
10535
|
-
"
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10318
|
+
"kind": "variable",
|
|
10319
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
10320
|
+
"type": {
|
|
10321
|
+
"text": "Record<AparteCoreIconName, string>"
|
|
10322
|
+
},
|
|
10323
|
+
"default": "APARTE_ICON_GLYPHS",
|
|
10324
|
+
"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."
|
|
10325
|
+
}
|
|
10326
|
+
],
|
|
10327
|
+
"exports": [
|
|
10539
10328
|
{
|
|
10540
10329
|
"kind": "js",
|
|
10541
|
-
"name": "
|
|
10330
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
10542
10331
|
"declaration": {
|
|
10543
|
-
"name": "
|
|
10544
|
-
"module": "
|
|
10332
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
10333
|
+
"module": "src/config/icon-provider.ts"
|
|
10545
10334
|
}
|
|
10546
|
-
}
|
|
10335
|
+
}
|
|
10336
|
+
]
|
|
10337
|
+
},
|
|
10338
|
+
{
|
|
10339
|
+
"kind": "javascript-module",
|
|
10340
|
+
"path": "src/config/image-policy.ts",
|
|
10341
|
+
"declarations": [
|
|
10547
10342
|
{
|
|
10548
|
-
"kind": "
|
|
10549
|
-
"name": "
|
|
10550
|
-
"
|
|
10551
|
-
"
|
|
10552
|
-
|
|
10553
|
-
|
|
10343
|
+
"kind": "function",
|
|
10344
|
+
"name": "resolveImageAddress",
|
|
10345
|
+
"return": {
|
|
10346
|
+
"type": {
|
|
10347
|
+
"text": "URL | null"
|
|
10348
|
+
}
|
|
10349
|
+
},
|
|
10350
|
+
"parameters": [
|
|
10351
|
+
{
|
|
10352
|
+
"name": "address",
|
|
10353
|
+
"type": {
|
|
10354
|
+
"text": "string"
|
|
10355
|
+
}
|
|
10356
|
+
}
|
|
10357
|
+
],
|
|
10358
|
+
"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."
|
|
10554
10359
|
},
|
|
10555
10360
|
{
|
|
10556
|
-
"kind": "
|
|
10557
|
-
"name": "
|
|
10558
|
-
"
|
|
10559
|
-
"
|
|
10560
|
-
|
|
10561
|
-
|
|
10361
|
+
"kind": "function",
|
|
10362
|
+
"name": "sameImagePolicy",
|
|
10363
|
+
"return": {
|
|
10364
|
+
"type": {
|
|
10365
|
+
"text": "boolean"
|
|
10366
|
+
}
|
|
10367
|
+
},
|
|
10368
|
+
"parameters": [
|
|
10369
|
+
{
|
|
10370
|
+
"name": "a",
|
|
10371
|
+
"type": {
|
|
10372
|
+
"text": "AparteImagePolicy"
|
|
10373
|
+
}
|
|
10374
|
+
},
|
|
10375
|
+
{
|
|
10376
|
+
"name": "b",
|
|
10377
|
+
"type": {
|
|
10378
|
+
"text": "AparteImagePolicy"
|
|
10379
|
+
}
|
|
10380
|
+
}
|
|
10381
|
+
],
|
|
10382
|
+
"description": "Whether two policies say the same thing: the same function, or lists with the same entries."
|
|
10562
10383
|
},
|
|
10563
10384
|
{
|
|
10564
|
-
"kind": "
|
|
10565
|
-
"name": "
|
|
10566
|
-
"
|
|
10567
|
-
"
|
|
10568
|
-
|
|
10569
|
-
|
|
10385
|
+
"kind": "function",
|
|
10386
|
+
"name": "compileImagePolicy",
|
|
10387
|
+
"return": {
|
|
10388
|
+
"type": {
|
|
10389
|
+
"text": "ImageDecider"
|
|
10390
|
+
}
|
|
10391
|
+
},
|
|
10392
|
+
"parameters": [
|
|
10393
|
+
{
|
|
10394
|
+
"name": "policy",
|
|
10395
|
+
"type": {
|
|
10396
|
+
"text": "AparteImagePolicy"
|
|
10397
|
+
}
|
|
10398
|
+
}
|
|
10399
|
+
],
|
|
10400
|
+
"description": "Turn a policy into the function every decision runs through."
|
|
10570
10401
|
},
|
|
10571
10402
|
{
|
|
10572
|
-
"kind": "
|
|
10573
|
-
"name": "
|
|
10574
|
-
"
|
|
10575
|
-
"
|
|
10576
|
-
|
|
10577
|
-
|
|
10403
|
+
"kind": "function",
|
|
10404
|
+
"name": "decideImageAddress",
|
|
10405
|
+
"return": {
|
|
10406
|
+
"type": {
|
|
10407
|
+
"text": "AparteImageDecision"
|
|
10408
|
+
}
|
|
10409
|
+
},
|
|
10410
|
+
"parameters": [
|
|
10411
|
+
{
|
|
10412
|
+
"name": "decide",
|
|
10413
|
+
"type": {
|
|
10414
|
+
"text": "ImageDecider"
|
|
10415
|
+
}
|
|
10416
|
+
},
|
|
10417
|
+
{
|
|
10418
|
+
"name": "address",
|
|
10419
|
+
"type": {
|
|
10420
|
+
"text": "string"
|
|
10421
|
+
}
|
|
10422
|
+
},
|
|
10423
|
+
{
|
|
10424
|
+
"name": "shown",
|
|
10425
|
+
"optional": true,
|
|
10426
|
+
"type": {
|
|
10427
|
+
"text": "ReadonlySet<string>"
|
|
10428
|
+
}
|
|
10429
|
+
}
|
|
10430
|
+
],
|
|
10431
|
+
"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."
|
|
10578
10432
|
},
|
|
10579
10433
|
{
|
|
10580
|
-
"kind": "
|
|
10581
|
-
"name": "
|
|
10582
|
-
"
|
|
10583
|
-
"
|
|
10584
|
-
|
|
10585
|
-
|
|
10434
|
+
"kind": "function",
|
|
10435
|
+
"name": "rememberShownImage",
|
|
10436
|
+
"return": {
|
|
10437
|
+
"type": {
|
|
10438
|
+
"text": "void"
|
|
10439
|
+
}
|
|
10440
|
+
},
|
|
10441
|
+
"parameters": [
|
|
10442
|
+
{
|
|
10443
|
+
"name": "owner",
|
|
10444
|
+
"type": {
|
|
10445
|
+
"text": "object"
|
|
10446
|
+
}
|
|
10447
|
+
},
|
|
10448
|
+
{
|
|
10449
|
+
"name": "address",
|
|
10450
|
+
"type": {
|
|
10451
|
+
"text": "string"
|
|
10452
|
+
}
|
|
10453
|
+
}
|
|
10454
|
+
],
|
|
10455
|
+
"description": "Remember that the reader chose to see the picture at `address`, under `owner` (a config)."
|
|
10586
10456
|
},
|
|
10587
10457
|
{
|
|
10588
|
-
"kind": "
|
|
10589
|
-
"name": "
|
|
10590
|
-
"
|
|
10591
|
-
"
|
|
10592
|
-
|
|
10593
|
-
|
|
10458
|
+
"kind": "function",
|
|
10459
|
+
"name": "shownImagesOf",
|
|
10460
|
+
"return": {
|
|
10461
|
+
"type": {
|
|
10462
|
+
"text": "ReadonlySet<string> | undefined"
|
|
10463
|
+
}
|
|
10464
|
+
},
|
|
10465
|
+
"parameters": [
|
|
10466
|
+
{
|
|
10467
|
+
"name": "owner",
|
|
10468
|
+
"type": {
|
|
10469
|
+
"text": "object"
|
|
10470
|
+
}
|
|
10471
|
+
}
|
|
10472
|
+
],
|
|
10473
|
+
"description": "The pictures the reader chose to see under `owner`."
|
|
10594
10474
|
},
|
|
10595
10475
|
{
|
|
10596
|
-
"kind": "
|
|
10597
|
-
"name": "
|
|
10598
|
-
"
|
|
10599
|
-
"
|
|
10600
|
-
|
|
10601
|
-
|
|
10476
|
+
"kind": "function",
|
|
10477
|
+
"name": "forgetShownImages",
|
|
10478
|
+
"return": {
|
|
10479
|
+
"type": {
|
|
10480
|
+
"text": "void"
|
|
10481
|
+
}
|
|
10482
|
+
},
|
|
10483
|
+
"parameters": [
|
|
10484
|
+
{
|
|
10485
|
+
"name": "owner",
|
|
10486
|
+
"type": {
|
|
10487
|
+
"text": "object"
|
|
10488
|
+
}
|
|
10489
|
+
}
|
|
10490
|
+
],
|
|
10491
|
+
"description": "Forget them: a reset config starts from what its policy says."
|
|
10602
10492
|
},
|
|
10603
10493
|
{
|
|
10604
|
-
"kind": "
|
|
10605
|
-
"name": "
|
|
10606
|
-
"
|
|
10607
|
-
"
|
|
10608
|
-
|
|
10609
|
-
|
|
10494
|
+
"kind": "function",
|
|
10495
|
+
"name": "parseSrcset",
|
|
10496
|
+
"return": {
|
|
10497
|
+
"type": {
|
|
10498
|
+
"text": "SrcsetCandidate[]"
|
|
10499
|
+
}
|
|
10500
|
+
},
|
|
10501
|
+
"parameters": [
|
|
10502
|
+
{
|
|
10503
|
+
"name": "value",
|
|
10504
|
+
"type": {
|
|
10505
|
+
"text": "string"
|
|
10506
|
+
}
|
|
10507
|
+
}
|
|
10508
|
+
],
|
|
10509
|
+
"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."
|
|
10610
10510
|
},
|
|
10611
10511
|
{
|
|
10612
|
-
"kind": "
|
|
10613
|
-
"name": "
|
|
10614
|
-
"
|
|
10615
|
-
"
|
|
10616
|
-
|
|
10617
|
-
|
|
10512
|
+
"kind": "function",
|
|
10513
|
+
"name": "srcsetUrls",
|
|
10514
|
+
"return": {
|
|
10515
|
+
"type": {
|
|
10516
|
+
"text": "string[]"
|
|
10517
|
+
}
|
|
10518
|
+
},
|
|
10519
|
+
"parameters": [
|
|
10520
|
+
{
|
|
10521
|
+
"name": "value",
|
|
10522
|
+
"type": {
|
|
10523
|
+
"text": "string"
|
|
10524
|
+
}
|
|
10525
|
+
}
|
|
10526
|
+
],
|
|
10527
|
+
"description": "The addresses a `srcset` lists, as `parseSrcset` reads them."
|
|
10618
10528
|
},
|
|
10619
10529
|
{
|
|
10620
|
-
"kind": "
|
|
10621
|
-
"name": "
|
|
10622
|
-
"
|
|
10623
|
-
"
|
|
10624
|
-
|
|
10625
|
-
|
|
10530
|
+
"kind": "function",
|
|
10531
|
+
"name": "imageHost",
|
|
10532
|
+
"return": {
|
|
10533
|
+
"type": {
|
|
10534
|
+
"text": "string"
|
|
10535
|
+
}
|
|
10536
|
+
},
|
|
10537
|
+
"parameters": [
|
|
10538
|
+
{
|
|
10539
|
+
"name": "address",
|
|
10540
|
+
"type": {
|
|
10541
|
+
"text": "string"
|
|
10542
|
+
}
|
|
10543
|
+
}
|
|
10544
|
+
],
|
|
10545
|
+
"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."
|
|
10626
10546
|
},
|
|
10627
10547
|
{
|
|
10628
|
-
"kind": "
|
|
10629
|
-
"name": "
|
|
10630
|
-
"
|
|
10631
|
-
"
|
|
10632
|
-
|
|
10633
|
-
|
|
10548
|
+
"kind": "function",
|
|
10549
|
+
"name": "heldImageHtml",
|
|
10550
|
+
"return": {
|
|
10551
|
+
"type": {
|
|
10552
|
+
"text": "string"
|
|
10553
|
+
}
|
|
10554
|
+
},
|
|
10555
|
+
"parameters": [
|
|
10556
|
+
{
|
|
10557
|
+
"name": "address",
|
|
10558
|
+
"type": {
|
|
10559
|
+
"text": "string"
|
|
10560
|
+
}
|
|
10561
|
+
},
|
|
10562
|
+
{
|
|
10563
|
+
"name": "alt",
|
|
10564
|
+
"type": {
|
|
10565
|
+
"text": "string"
|
|
10566
|
+
}
|
|
10567
|
+
},
|
|
10568
|
+
{
|
|
10569
|
+
"name": "words",
|
|
10570
|
+
"type": {
|
|
10571
|
+
"text": "HeldImageWords"
|
|
10572
|
+
}
|
|
10573
|
+
},
|
|
10574
|
+
{
|
|
10575
|
+
"name": "inLink",
|
|
10576
|
+
"default": "false"
|
|
10577
|
+
}
|
|
10578
|
+
],
|
|
10579
|
+
"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."
|
|
10634
10580
|
},
|
|
10635
10581
|
{
|
|
10636
|
-
"kind": "
|
|
10637
|
-
"name": "
|
|
10638
|
-
"
|
|
10639
|
-
"
|
|
10640
|
-
|
|
10641
|
-
|
|
10582
|
+
"kind": "function",
|
|
10583
|
+
"name": "applyImagePolicy",
|
|
10584
|
+
"return": {
|
|
10585
|
+
"type": {
|
|
10586
|
+
"text": "string"
|
|
10587
|
+
}
|
|
10588
|
+
},
|
|
10589
|
+
"parameters": [
|
|
10590
|
+
{
|
|
10591
|
+
"name": "html",
|
|
10592
|
+
"type": {
|
|
10593
|
+
"text": "string"
|
|
10594
|
+
}
|
|
10595
|
+
},
|
|
10596
|
+
{
|
|
10597
|
+
"name": "decide",
|
|
10598
|
+
"type": {
|
|
10599
|
+
"text": "(address: string) => AparteImageDecision"
|
|
10600
|
+
}
|
|
10601
|
+
},
|
|
10602
|
+
{
|
|
10603
|
+
"name": "words",
|
|
10604
|
+
"type": {
|
|
10605
|
+
"text": "() => HeldImageWords"
|
|
10606
|
+
}
|
|
10607
|
+
}
|
|
10608
|
+
],
|
|
10609
|
+
"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."
|
|
10642
10610
|
},
|
|
10611
|
+
{
|
|
10612
|
+
"kind": "function",
|
|
10613
|
+
"name": "applyImagePolicyWithoutDom",
|
|
10614
|
+
"return": {
|
|
10615
|
+
"type": {
|
|
10616
|
+
"text": "string"
|
|
10617
|
+
}
|
|
10618
|
+
},
|
|
10619
|
+
"parameters": [
|
|
10620
|
+
{
|
|
10621
|
+
"name": "html",
|
|
10622
|
+
"type": {
|
|
10623
|
+
"text": "string"
|
|
10624
|
+
}
|
|
10625
|
+
},
|
|
10626
|
+
{
|
|
10627
|
+
"name": "decide",
|
|
10628
|
+
"type": {
|
|
10629
|
+
"text": "(address: string) => AparteImageDecision"
|
|
10630
|
+
}
|
|
10631
|
+
},
|
|
10632
|
+
{
|
|
10633
|
+
"name": "words",
|
|
10634
|
+
"type": {
|
|
10635
|
+
"text": "() => HeldImageWords"
|
|
10636
|
+
}
|
|
10637
|
+
}
|
|
10638
|
+
],
|
|
10639
|
+
"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."
|
|
10640
|
+
}
|
|
10641
|
+
],
|
|
10642
|
+
"exports": [
|
|
10643
10643
|
{
|
|
10644
10644
|
"kind": "js",
|
|
10645
|
-
"name": "
|
|
10645
|
+
"name": "resolveImageAddress",
|
|
10646
10646
|
"declaration": {
|
|
10647
|
-
"name": "
|
|
10648
|
-
"module": "
|
|
10647
|
+
"name": "resolveImageAddress",
|
|
10648
|
+
"module": "src/config/image-policy.ts"
|
|
10649
10649
|
}
|
|
10650
10650
|
},
|
|
10651
10651
|
{
|
|
10652
10652
|
"kind": "js",
|
|
10653
|
-
"name": "
|
|
10653
|
+
"name": "sameImagePolicy",
|
|
10654
10654
|
"declaration": {
|
|
10655
|
-
"name": "
|
|
10656
|
-
"module": "
|
|
10655
|
+
"name": "sameImagePolicy",
|
|
10656
|
+
"module": "src/config/image-policy.ts"
|
|
10657
10657
|
}
|
|
10658
10658
|
},
|
|
10659
10659
|
{
|
|
10660
10660
|
"kind": "js",
|
|
10661
|
-
"name": "
|
|
10661
|
+
"name": "compileImagePolicy",
|
|
10662
10662
|
"declaration": {
|
|
10663
|
-
"name": "
|
|
10664
|
-
"module": "
|
|
10663
|
+
"name": "compileImagePolicy",
|
|
10664
|
+
"module": "src/config/image-policy.ts"
|
|
10665
10665
|
}
|
|
10666
10666
|
},
|
|
10667
10667
|
{
|
|
10668
10668
|
"kind": "js",
|
|
10669
|
-
"name": "
|
|
10669
|
+
"name": "decideImageAddress",
|
|
10670
10670
|
"declaration": {
|
|
10671
|
-
"name": "
|
|
10672
|
-
"module": "
|
|
10671
|
+
"name": "decideImageAddress",
|
|
10672
|
+
"module": "src/config/image-policy.ts"
|
|
10673
10673
|
}
|
|
10674
10674
|
},
|
|
10675
10675
|
{
|
|
10676
10676
|
"kind": "js",
|
|
10677
|
-
"name": "
|
|
10677
|
+
"name": "rememberShownImage",
|
|
10678
10678
|
"declaration": {
|
|
10679
|
-
"name": "
|
|
10680
|
-
"module": "
|
|
10679
|
+
"name": "rememberShownImage",
|
|
10680
|
+
"module": "src/config/image-policy.ts"
|
|
10681
10681
|
}
|
|
10682
10682
|
},
|
|
10683
10683
|
{
|
|
10684
10684
|
"kind": "js",
|
|
10685
|
-
"name": "
|
|
10685
|
+
"name": "shownImagesOf",
|
|
10686
10686
|
"declaration": {
|
|
10687
|
-
"name": "
|
|
10688
|
-
"module": "
|
|
10687
|
+
"name": "shownImagesOf",
|
|
10688
|
+
"module": "src/config/image-policy.ts"
|
|
10689
10689
|
}
|
|
10690
10690
|
},
|
|
10691
10691
|
{
|
|
10692
10692
|
"kind": "js",
|
|
10693
|
-
"name": "
|
|
10693
|
+
"name": "forgetShownImages",
|
|
10694
10694
|
"declaration": {
|
|
10695
|
-
"name": "
|
|
10696
|
-
"module": "
|
|
10695
|
+
"name": "forgetShownImages",
|
|
10696
|
+
"module": "src/config/image-policy.ts"
|
|
10697
10697
|
}
|
|
10698
10698
|
},
|
|
10699
10699
|
{
|
|
10700
10700
|
"kind": "js",
|
|
10701
|
-
"name": "
|
|
10701
|
+
"name": "parseSrcset",
|
|
10702
10702
|
"declaration": {
|
|
10703
|
-
"name": "
|
|
10704
|
-
"module": "
|
|
10703
|
+
"name": "parseSrcset",
|
|
10704
|
+
"module": "src/config/image-policy.ts"
|
|
10705
10705
|
}
|
|
10706
10706
|
},
|
|
10707
10707
|
{
|
|
10708
10708
|
"kind": "js",
|
|
10709
|
-
"name": "
|
|
10709
|
+
"name": "srcsetUrls",
|
|
10710
10710
|
"declaration": {
|
|
10711
|
-
"name": "
|
|
10712
|
-
"module": "
|
|
10711
|
+
"name": "srcsetUrls",
|
|
10712
|
+
"module": "src/config/image-policy.ts"
|
|
10713
10713
|
}
|
|
10714
10714
|
},
|
|
10715
10715
|
{
|
|
10716
10716
|
"kind": "js",
|
|
10717
|
-
"name": "
|
|
10717
|
+
"name": "imageHost",
|
|
10718
10718
|
"declaration": {
|
|
10719
|
-
"name": "
|
|
10720
|
-
"module": "
|
|
10719
|
+
"name": "imageHost",
|
|
10720
|
+
"module": "src/config/image-policy.ts"
|
|
10721
10721
|
}
|
|
10722
10722
|
},
|
|
10723
10723
|
{
|
|
10724
10724
|
"kind": "js",
|
|
10725
|
-
"name": "
|
|
10725
|
+
"name": "heldImageHtml",
|
|
10726
10726
|
"declaration": {
|
|
10727
|
-
"name": "
|
|
10728
|
-
"module": "
|
|
10727
|
+
"name": "heldImageHtml",
|
|
10728
|
+
"module": "src/config/image-policy.ts"
|
|
10729
10729
|
}
|
|
10730
10730
|
},
|
|
10731
10731
|
{
|
|
10732
10732
|
"kind": "js",
|
|
10733
|
-
"name": "
|
|
10733
|
+
"name": "applyImagePolicy",
|
|
10734
10734
|
"declaration": {
|
|
10735
|
-
"name": "
|
|
10736
|
-
"module": "
|
|
10735
|
+
"name": "applyImagePolicy",
|
|
10736
|
+
"module": "src/config/image-policy.ts"
|
|
10737
10737
|
}
|
|
10738
10738
|
},
|
|
10739
10739
|
{
|
|
10740
10740
|
"kind": "js",
|
|
10741
|
-
"name": "
|
|
10741
|
+
"name": "applyImagePolicyWithoutDom",
|
|
10742
10742
|
"declaration": {
|
|
10743
|
-
"name": "
|
|
10744
|
-
"module": "
|
|
10743
|
+
"name": "applyImagePolicyWithoutDom",
|
|
10744
|
+
"module": "src/config/image-policy.ts"
|
|
10745
10745
|
}
|
|
10746
10746
|
}
|
|
10747
10747
|
]
|
|
10748
10748
|
},
|
|
10749
10749
|
{
|
|
10750
10750
|
"kind": "javascript-module",
|
|
10751
|
-
"path": "src/config/
|
|
10752
|
-
"declarations": [
|
|
10753
|
-
{
|
|
10754
|
-
"kind": "variable",
|
|
10755
|
-
"name": "APARTE_DEFAULT_LOCALE",
|
|
10756
|
-
"type": {
|
|
10757
|
-
"text": "AparteLocale"
|
|
10758
|
-
},
|
|
10759
|
-
"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\", 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\", 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\", transcript: \"Transcript\" }",
|
|
10760
|
-
"description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
|
|
10761
|
-
}
|
|
10762
|
-
],
|
|
10751
|
+
"path": "src/config/index.ts",
|
|
10752
|
+
"declarations": [],
|
|
10763
10753
|
"exports": [
|
|
10764
10754
|
{
|
|
10765
10755
|
"kind": "js",
|
|
10766
|
-
"name": "
|
|
10756
|
+
"name": "aparteGlobalConfig",
|
|
10767
10757
|
"declaration": {
|
|
10768
|
-
"name": "
|
|
10769
|
-
"module": "
|
|
10758
|
+
"name": "aparteGlobalConfig",
|
|
10759
|
+
"module": "./aparte-config.js"
|
|
10770
10760
|
}
|
|
10771
|
-
}
|
|
10772
|
-
]
|
|
10773
|
-
},
|
|
10774
|
-
{
|
|
10775
|
-
"kind": "javascript-module",
|
|
10776
|
-
"path": "src/config/sanitize.ts",
|
|
10777
|
-
"declarations": [
|
|
10778
|
-
{
|
|
10779
|
-
"kind": "variable",
|
|
10780
|
-
"name": "DANGEROUS_TAGS",
|
|
10781
|
-
"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', ])",
|
|
10782
|
-
"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."
|
|
10783
|
-
},
|
|
10784
|
-
{
|
|
10785
|
-
"kind": "variable",
|
|
10786
|
-
"name": "RESERVED_ATTRIBUTES",
|
|
10787
|
-
"default": "new Set([ 'data-aparte-chat', 'data-aparte-host', 'data-aparte-theme', 'data-aparte-split-pane', 'data-aparte-launcher-close', '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', ])",
|
|
10788
|
-
"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), 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."
|
|
10789
|
-
},
|
|
10790
|
-
{
|
|
10791
|
-
"kind": "variable",
|
|
10792
|
-
"name": "RESERVED_ATTRIBUTE_PREFIXES",
|
|
10793
|
-
"type": {
|
|
10794
|
-
"text": "array"
|
|
10795
|
-
},
|
|
10796
|
-
"default": "['data-aparte-dialog-', 'data-aparte-sidebar-', 'data-checkpoint-']",
|
|
10797
|
-
"description": "Families of reserved attributes: `-open`/`-close`/`-static`, `-toggle`/`-search`, `-action`/`-reason`."
|
|
10798
|
-
},
|
|
10799
|
-
{
|
|
10800
|
-
"kind": "function",
|
|
10801
|
-
"name": "isReservedAttribute",
|
|
10802
|
-
"return": {
|
|
10803
|
-
"type": {
|
|
10804
|
-
"text": "boolean"
|
|
10805
|
-
}
|
|
10806
|
-
},
|
|
10807
|
-
"parameters": [
|
|
10808
|
-
{
|
|
10809
|
-
"name": "name",
|
|
10810
|
-
"type": {
|
|
10811
|
-
"text": "string"
|
|
10812
|
-
}
|
|
10813
|
-
}
|
|
10814
|
-
],
|
|
10815
|
-
"description": "True when `name` (lower case) is an attribute core reads, so model markup may not carry it."
|
|
10816
10761
|
},
|
|
10817
10762
|
{
|
|
10818
|
-
"kind": "
|
|
10819
|
-
"name": "
|
|
10820
|
-
"
|
|
10821
|
-
"
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
},
|
|
10825
|
-
"parameters": [
|
|
10826
|
-
{
|
|
10827
|
-
"name": "value",
|
|
10828
|
-
"type": {
|
|
10829
|
-
"text": "string"
|
|
10830
|
-
}
|
|
10831
|
-
},
|
|
10832
|
-
{
|
|
10833
|
-
"name": "tag",
|
|
10834
|
-
"type": {
|
|
10835
|
-
"text": "string"
|
|
10836
|
-
}
|
|
10837
|
-
}
|
|
10838
|
-
]
|
|
10763
|
+
"kind": "js",
|
|
10764
|
+
"name": "AparteConfig",
|
|
10765
|
+
"declaration": {
|
|
10766
|
+
"name": "AparteConfig",
|
|
10767
|
+
"module": "./aparte-config.js"
|
|
10768
|
+
}
|
|
10839
10769
|
},
|
|
10840
10770
|
{
|
|
10841
|
-
"kind": "
|
|
10842
|
-
"name": "
|
|
10843
|
-
"
|
|
10844
|
-
"
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
},
|
|
10848
|
-
"parameters": [
|
|
10849
|
-
{
|
|
10850
|
-
"name": "html",
|
|
10851
|
-
"type": {
|
|
10852
|
-
"text": "string"
|
|
10853
|
-
}
|
|
10854
|
-
},
|
|
10855
|
-
{
|
|
10856
|
-
"name": "nameAt",
|
|
10857
|
-
"type": {
|
|
10858
|
-
"text": "number"
|
|
10859
|
-
}
|
|
10860
|
-
}
|
|
10861
|
-
],
|
|
10862
|
-
"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."
|
|
10771
|
+
"kind": "js",
|
|
10772
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
10773
|
+
"declaration": {
|
|
10774
|
+
"name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
|
|
10775
|
+
"module": "./aparte-config.js"
|
|
10776
|
+
}
|
|
10863
10777
|
},
|
|
10864
|
-
{
|
|
10865
|
-
"kind": "function",
|
|
10866
|
-
"name": "defaultSanitizer",
|
|
10867
|
-
"return": {
|
|
10868
|
-
"type": {
|
|
10869
|
-
"text": "string"
|
|
10870
|
-
}
|
|
10871
|
-
},
|
|
10872
|
-
"parameters": [
|
|
10873
|
-
{
|
|
10874
|
-
"name": "html",
|
|
10875
|
-
"type": {
|
|
10876
|
-
"text": "string"
|
|
10877
|
-
}
|
|
10878
|
-
}
|
|
10879
|
-
],
|
|
10880
|
-
"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)."
|
|
10881
|
-
}
|
|
10882
|
-
],
|
|
10883
|
-
"exports": [
|
|
10884
10778
|
{
|
|
10885
10779
|
"kind": "js",
|
|
10886
|
-
"name": "
|
|
10780
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
10887
10781
|
"declaration": {
|
|
10888
|
-
"name": "
|
|
10889
|
-
"module": "
|
|
10782
|
+
"name": "APARTE_DEFAULT_HOST_HANDLERS",
|
|
10783
|
+
"module": "./aparte-config.js"
|
|
10890
10784
|
}
|
|
10891
10785
|
},
|
|
10892
10786
|
{
|
|
10893
10787
|
"kind": "js",
|
|
10894
|
-
"name": "
|
|
10788
|
+
"name": "resolveConfig",
|
|
10895
10789
|
"declaration": {
|
|
10896
|
-
"name": "
|
|
10897
|
-
"module": "
|
|
10790
|
+
"name": "resolveConfig",
|
|
10791
|
+
"module": "./config-context.js"
|
|
10898
10792
|
}
|
|
10899
10793
|
},
|
|
10900
10794
|
{
|
|
10901
10795
|
"kind": "js",
|
|
10902
|
-
"name": "
|
|
10796
|
+
"name": "attachConfig",
|
|
10903
10797
|
"declaration": {
|
|
10904
|
-
"name": "
|
|
10905
|
-
"module": "
|
|
10798
|
+
"name": "attachConfig",
|
|
10799
|
+
"module": "./config-context.js"
|
|
10906
10800
|
}
|
|
10907
10801
|
},
|
|
10908
10802
|
{
|
|
10909
10803
|
"kind": "js",
|
|
10910
|
-
"name": "
|
|
10804
|
+
"name": "detachConfig",
|
|
10911
10805
|
"declaration": {
|
|
10912
|
-
"name": "
|
|
10913
|
-
"module": "
|
|
10806
|
+
"name": "detachConfig",
|
|
10807
|
+
"module": "./config-context.js"
|
|
10914
10808
|
}
|
|
10915
10809
|
},
|
|
10916
10810
|
{
|
|
10917
10811
|
"kind": "js",
|
|
10918
|
-
"name": "
|
|
10812
|
+
"name": "runWithConfig",
|
|
10919
10813
|
"declaration": {
|
|
10920
|
-
"name": "
|
|
10921
|
-
"module": "
|
|
10814
|
+
"name": "runWithConfig",
|
|
10815
|
+
"module": "./config-context.js"
|
|
10922
10816
|
}
|
|
10923
10817
|
},
|
|
10924
10818
|
{
|
|
10925
10819
|
"kind": "js",
|
|
10926
|
-
"name": "
|
|
10820
|
+
"name": "contextConfig",
|
|
10927
10821
|
"declaration": {
|
|
10928
|
-
"name": "
|
|
10929
|
-
"module": "
|
|
10822
|
+
"name": "contextConfig",
|
|
10823
|
+
"module": "./config-context.js"
|
|
10930
10824
|
}
|
|
10931
10825
|
},
|
|
10932
10826
|
{
|
|
10933
10827
|
"kind": "js",
|
|
10934
|
-
"name": "
|
|
10828
|
+
"name": "APARTE_HOST_ATTR",
|
|
10935
10829
|
"declaration": {
|
|
10936
|
-
"name": "
|
|
10937
|
-
"module": "
|
|
10830
|
+
"name": "APARTE_HOST_ATTR",
|
|
10831
|
+
"module": "./config-context.js"
|
|
10938
10832
|
}
|
|
10939
|
-
}
|
|
10940
|
-
]
|
|
10941
|
-
},
|
|
10942
|
-
{
|
|
10943
|
-
"kind": "javascript-module",
|
|
10944
|
-
"path": "src/config/sibling-nav-renderer.ts",
|
|
10945
|
-
"declarations": [],
|
|
10946
|
-
"exports": []
|
|
10947
|
-
},
|
|
10948
|
-
{
|
|
10949
|
-
"kind": "javascript-module",
|
|
10950
|
-
"path": "src/config/status-renderer.ts",
|
|
10951
|
-
"declarations": [],
|
|
10952
|
-
"exports": []
|
|
10953
|
-
},
|
|
10954
|
-
{
|
|
10955
|
-
"kind": "javascript-module",
|
|
10956
|
-
"path": "src/config/tool-table.ts",
|
|
10957
|
-
"declarations": [
|
|
10958
|
-
{
|
|
10959
|
-
"kind": "class",
|
|
10960
|
-
"description": "",
|
|
10961
|
-
"name": "ToolTable",
|
|
10962
|
-
"members": [
|
|
10963
|
-
{
|
|
10964
|
-
"kind": "field",
|
|
10965
|
-
"name": "exact",
|
|
10966
|
-
"privacy": "private",
|
|
10967
|
-
"readonly": true,
|
|
10968
|
-
"default": "new Map<string, T>()"
|
|
10969
|
-
},
|
|
10970
|
-
{
|
|
10971
|
-
"kind": "field",
|
|
10972
|
-
"name": "patterns",
|
|
10973
|
-
"privacy": "private",
|
|
10974
|
-
"readonly": true,
|
|
10975
|
-
"default": "new Map<string, { re: RegExp; value: T }>()"
|
|
10976
|
-
},
|
|
10977
|
-
{
|
|
10978
|
-
"kind": "field",
|
|
10979
|
-
"name": "any",
|
|
10980
|
-
"type": {
|
|
10981
|
-
"text": "T | undefined"
|
|
10982
|
-
},
|
|
10983
|
-
"privacy": "private"
|
|
10984
|
-
},
|
|
10985
|
-
{
|
|
10986
|
-
"kind": "method",
|
|
10987
|
-
"name": "get",
|
|
10988
|
-
"return": {
|
|
10989
|
-
"type": {
|
|
10990
|
-
"text": "T | undefined"
|
|
10991
|
-
}
|
|
10992
|
-
},
|
|
10993
|
-
"parameters": [
|
|
10994
|
-
{
|
|
10995
|
-
"name": "match",
|
|
10996
|
-
"type": {
|
|
10997
|
-
"text": "AparteToolMatcher"
|
|
10998
|
-
}
|
|
10999
|
-
}
|
|
11000
|
-
],
|
|
11001
|
-
"description": "The value registered under exactly this matcher — not a resolution."
|
|
11002
|
-
},
|
|
11003
|
-
{
|
|
11004
|
-
"kind": "method",
|
|
11005
|
-
"name": "set",
|
|
11006
|
-
"return": {
|
|
11007
|
-
"type": {
|
|
11008
|
-
"text": "void"
|
|
11009
|
-
}
|
|
11010
|
-
},
|
|
11011
|
-
"parameters": [
|
|
11012
|
-
{
|
|
11013
|
-
"name": "match",
|
|
11014
|
-
"type": {
|
|
11015
|
-
"text": "AparteToolMatcher"
|
|
11016
|
-
}
|
|
11017
|
-
},
|
|
11018
|
-
{
|
|
11019
|
-
"name": "value",
|
|
11020
|
-
"type": {
|
|
11021
|
-
"text": "T"
|
|
11022
|
-
}
|
|
11023
|
-
}
|
|
11024
|
-
]
|
|
11025
|
-
},
|
|
11026
|
-
{
|
|
11027
|
-
"kind": "method",
|
|
11028
|
-
"name": "delete",
|
|
11029
|
-
"return": {
|
|
11030
|
-
"type": {
|
|
11031
|
-
"text": "void"
|
|
11032
|
-
}
|
|
11033
|
-
},
|
|
11034
|
-
"parameters": [
|
|
11035
|
-
{
|
|
11036
|
-
"name": "match",
|
|
11037
|
-
"type": {
|
|
11038
|
-
"text": "AparteToolMatcher"
|
|
11039
|
-
}
|
|
11040
|
-
}
|
|
11041
|
-
]
|
|
11042
|
-
},
|
|
11043
|
-
{
|
|
11044
|
-
"kind": "method",
|
|
11045
|
-
"name": "resolve",
|
|
11046
|
-
"return": {
|
|
11047
|
-
"type": {
|
|
11048
|
-
"text": "{ value: T; level: ToolMatchLevel } | undefined"
|
|
11049
|
-
}
|
|
11050
|
-
},
|
|
11051
|
-
"parameters": [
|
|
11052
|
-
{
|
|
11053
|
-
"name": "name",
|
|
11054
|
-
"type": {
|
|
11055
|
-
"text": "string"
|
|
11056
|
-
}
|
|
11057
|
-
}
|
|
11058
|
-
],
|
|
11059
|
-
"description": "The value that applies to a tool named `name`, and how specifically it names it."
|
|
11060
|
-
},
|
|
11061
|
-
{
|
|
11062
|
-
"kind": "method",
|
|
11063
|
-
"name": "values",
|
|
11064
|
-
"return": {
|
|
11065
|
-
"type": {
|
|
11066
|
-
"text": "T[]"
|
|
11067
|
-
}
|
|
11068
|
-
},
|
|
11069
|
-
"description": "Every value registered, whatever its matcher."
|
|
11070
|
-
},
|
|
11071
|
-
{
|
|
11072
|
-
"kind": "method",
|
|
11073
|
-
"name": "clear",
|
|
11074
|
-
"return": {
|
|
11075
|
-
"type": {
|
|
11076
|
-
"text": "void"
|
|
11077
|
-
}
|
|
11078
|
-
}
|
|
11079
|
-
}
|
|
11080
|
-
]
|
|
11081
|
-
}
|
|
11082
|
-
],
|
|
11083
|
-
"exports": [
|
|
10833
|
+
},
|
|
11084
10834
|
{
|
|
11085
10835
|
"kind": "js",
|
|
11086
|
-
"name": "
|
|
10836
|
+
"name": "subscribeConfigChange",
|
|
11087
10837
|
"declaration": {
|
|
11088
|
-
"name": "
|
|
11089
|
-
"module": "
|
|
10838
|
+
"name": "subscribeConfigChange",
|
|
10839
|
+
"module": "./config-subscribe.js"
|
|
11090
10840
|
}
|
|
11091
|
-
}
|
|
11092
|
-
]
|
|
11093
|
-
},
|
|
11094
|
-
{
|
|
11095
|
-
"kind": "javascript-module",
|
|
11096
|
-
"path": "src/components/index.ts",
|
|
11097
|
-
"declarations": [],
|
|
11098
|
-
"exports": [
|
|
10841
|
+
},
|
|
11099
10842
|
{
|
|
11100
10843
|
"kind": "js",
|
|
11101
|
-
"name": "
|
|
10844
|
+
"name": "APARTE_CONFIG_CHANGE",
|
|
11102
10845
|
"declaration": {
|
|
11103
|
-
"name": "
|
|
11104
|
-
"module": "./
|
|
10846
|
+
"name": "APARTE_CONFIG_CHANGE",
|
|
10847
|
+
"module": "./config-subscribe.js"
|
|
11105
10848
|
}
|
|
11106
10849
|
},
|
|
11107
10850
|
{
|
|
11108
10851
|
"kind": "js",
|
|
11109
|
-
"name": "
|
|
10852
|
+
"name": "AparteConfigAware",
|
|
11110
10853
|
"declaration": {
|
|
11111
|
-
"name": "
|
|
11112
|
-
"module": "./
|
|
10854
|
+
"name": "AparteConfigAware",
|
|
10855
|
+
"module": "./config-context.js"
|
|
11113
10856
|
}
|
|
11114
10857
|
},
|
|
11115
10858
|
{
|
|
11116
10859
|
"kind": "js",
|
|
11117
|
-
"name": "
|
|
10860
|
+
"name": "AparteConfigChangeEventDetail",
|
|
11118
10861
|
"declaration": {
|
|
11119
|
-
"name": "
|
|
11120
|
-
"module": "./
|
|
10862
|
+
"name": "AparteConfigChangeEventDetail",
|
|
10863
|
+
"module": "./aparte-config.js"
|
|
11121
10864
|
}
|
|
11122
10865
|
},
|
|
11123
10866
|
{
|
|
11124
10867
|
"kind": "js",
|
|
11125
|
-
"name": "
|
|
10868
|
+
"name": "AparteMarkdownProvider",
|
|
11126
10869
|
"declaration": {
|
|
11127
|
-
"name": "
|
|
11128
|
-
"module": "./
|
|
10870
|
+
"name": "AparteMarkdownProvider",
|
|
10871
|
+
"module": "./aparte-config.js"
|
|
11129
10872
|
}
|
|
11130
10873
|
},
|
|
11131
10874
|
{
|
|
11132
10875
|
"kind": "js",
|
|
11133
|
-
"name": "
|
|
10876
|
+
"name": "AparteStreamingMarkdownProvider",
|
|
11134
10877
|
"declaration": {
|
|
11135
|
-
"name": "
|
|
11136
|
-
"module": "./
|
|
10878
|
+
"name": "AparteStreamingMarkdownProvider",
|
|
10879
|
+
"module": "./aparte-config.js"
|
|
11137
10880
|
}
|
|
11138
10881
|
},
|
|
11139
10882
|
{
|
|
11140
10883
|
"kind": "js",
|
|
11141
|
-
"name": "
|
|
10884
|
+
"name": "AparteStreamingMarkdownRenderer",
|
|
11142
10885
|
"declaration": {
|
|
11143
|
-
"name": "
|
|
11144
|
-
"module": "./
|
|
10886
|
+
"name": "AparteStreamingMarkdownRenderer",
|
|
10887
|
+
"module": "./aparte-config.js"
|
|
11145
10888
|
}
|
|
11146
10889
|
},
|
|
11147
10890
|
{
|
|
11148
10891
|
"kind": "js",
|
|
11149
|
-
"name": "
|
|
10892
|
+
"name": "AparteCodeLanguageRenderer",
|
|
11150
10893
|
"declaration": {
|
|
11151
|
-
"name": "
|
|
11152
|
-
"module": "./
|
|
10894
|
+
"name": "AparteCodeLanguageRenderer",
|
|
10895
|
+
"module": "./aparte-config.js"
|
|
11153
10896
|
}
|
|
11154
10897
|
},
|
|
11155
10898
|
{
|
|
11156
10899
|
"kind": "js",
|
|
11157
|
-
"name": "
|
|
10900
|
+
"name": "AparteCodeLanguageContext",
|
|
11158
10901
|
"declaration": {
|
|
11159
|
-
"name": "
|
|
11160
|
-
"module": "./
|
|
10902
|
+
"name": "AparteCodeLanguageContext",
|
|
10903
|
+
"module": "./aparte-config.js"
|
|
11161
10904
|
}
|
|
11162
10905
|
},
|
|
11163
10906
|
{
|
|
11164
10907
|
"kind": "js",
|
|
11165
|
-
"name": "
|
|
10908
|
+
"name": "AparteHighlightProvider",
|
|
11166
10909
|
"declaration": {
|
|
11167
|
-
"name": "
|
|
11168
|
-
"module": "./
|
|
10910
|
+
"name": "AparteHighlightProvider",
|
|
10911
|
+
"module": "./aparte-config.js"
|
|
11169
10912
|
}
|
|
11170
10913
|
},
|
|
11171
10914
|
{
|
|
11172
10915
|
"kind": "js",
|
|
11173
|
-
"name": "
|
|
10916
|
+
"name": "AparteSystemPromptVarsProvider",
|
|
11174
10917
|
"declaration": {
|
|
11175
|
-
"name": "
|
|
11176
|
-
"module": "./
|
|
10918
|
+
"name": "AparteSystemPromptVarsProvider",
|
|
10919
|
+
"module": "./aparte-config.js"
|
|
11177
10920
|
}
|
|
11178
10921
|
},
|
|
11179
10922
|
{
|
|
11180
10923
|
"kind": "js",
|
|
11181
|
-
"name": "
|
|
10924
|
+
"name": "AparteModelPreference",
|
|
11182
10925
|
"declaration": {
|
|
11183
|
-
"name": "
|
|
11184
|
-
"module": "./
|
|
10926
|
+
"name": "AparteModelPreference",
|
|
10927
|
+
"module": "./aparte-config.js"
|
|
11185
10928
|
}
|
|
11186
10929
|
},
|
|
11187
10930
|
{
|
|
11188
10931
|
"kind": "js",
|
|
11189
|
-
"name": "
|
|
10932
|
+
"name": "AparteModelPreferenceProvider",
|
|
11190
10933
|
"declaration": {
|
|
11191
|
-
"name": "
|
|
11192
|
-
"module": "./
|
|
10934
|
+
"name": "AparteModelPreferenceProvider",
|
|
10935
|
+
"module": "./aparte-config.js"
|
|
11193
10936
|
}
|
|
11194
10937
|
},
|
|
11195
10938
|
{
|
|
11196
10939
|
"kind": "js",
|
|
11197
|
-
"name": "
|
|
10940
|
+
"name": "AparteSanitizer",
|
|
11198
10941
|
"declaration": {
|
|
11199
|
-
"name": "
|
|
11200
|
-
"module": "./
|
|
10942
|
+
"name": "AparteSanitizer",
|
|
10943
|
+
"module": "./sanitize.js"
|
|
11201
10944
|
}
|
|
11202
10945
|
},
|
|
11203
10946
|
{
|
|
11204
10947
|
"kind": "js",
|
|
11205
|
-
"name": "
|
|
10948
|
+
"name": "AparteImageDecision",
|
|
11206
10949
|
"declaration": {
|
|
11207
|
-
"name": "
|
|
11208
|
-
"module": "./
|
|
10950
|
+
"name": "AparteImageDecision",
|
|
10951
|
+
"module": "./image-policy.js"
|
|
11209
10952
|
}
|
|
11210
10953
|
},
|
|
11211
10954
|
{
|
|
11212
10955
|
"kind": "js",
|
|
11213
|
-
"name": "
|
|
10956
|
+
"name": "AparteImagePolicy",
|
|
11214
10957
|
"declaration": {
|
|
11215
|
-
"name": "
|
|
11216
|
-
"module": "./
|
|
10958
|
+
"name": "AparteImagePolicy",
|
|
10959
|
+
"module": "./image-policy.js"
|
|
11217
10960
|
}
|
|
11218
10961
|
},
|
|
11219
10962
|
{
|
|
11220
10963
|
"kind": "js",
|
|
11221
|
-
"name": "
|
|
10964
|
+
"name": "defaultSanitizer",
|
|
11222
10965
|
"declaration": {
|
|
11223
|
-
"name": "
|
|
11224
|
-
"module": "./
|
|
10966
|
+
"name": "defaultSanitizer",
|
|
10967
|
+
"module": "./sanitize.js"
|
|
11225
10968
|
}
|
|
11226
10969
|
},
|
|
11227
10970
|
{
|
|
11228
10971
|
"kind": "js",
|
|
11229
|
-
"name": "
|
|
10972
|
+
"name": "isSafeUrl",
|
|
11230
10973
|
"declaration": {
|
|
11231
|
-
"name": "
|
|
11232
|
-
"module": "./
|
|
10974
|
+
"name": "isSafeUrl",
|
|
10975
|
+
"module": "./sanitize.js"
|
|
11233
10976
|
}
|
|
11234
10977
|
},
|
|
11235
10978
|
{
|
|
11236
10979
|
"kind": "js",
|
|
11237
|
-
"name": "
|
|
10980
|
+
"name": "AparteIconProvider",
|
|
11238
10981
|
"declaration": {
|
|
11239
|
-
"name": "
|
|
11240
|
-
"module": "./
|
|
10982
|
+
"name": "AparteIconProvider",
|
|
10983
|
+
"module": "./icon-provider.js"
|
|
11241
10984
|
}
|
|
11242
10985
|
},
|
|
11243
10986
|
{
|
|
11244
10987
|
"kind": "js",
|
|
11245
|
-
"name": "
|
|
10988
|
+
"name": "AparteIconName",
|
|
11246
10989
|
"declaration": {
|
|
11247
|
-
"name": "
|
|
11248
|
-
"module": "./
|
|
10990
|
+
"name": "AparteIconName",
|
|
10991
|
+
"module": "./icon-provider.js"
|
|
11249
10992
|
}
|
|
11250
10993
|
},
|
|
11251
10994
|
{
|
|
11252
10995
|
"kind": "js",
|
|
11253
|
-
"name": "
|
|
10996
|
+
"name": "AparteCoreIconName",
|
|
11254
10997
|
"declaration": {
|
|
11255
|
-
"name": "
|
|
11256
|
-
"module": "./
|
|
10998
|
+
"name": "AparteCoreIconName",
|
|
10999
|
+
"module": "./icon-provider.js"
|
|
11257
11000
|
}
|
|
11258
11001
|
},
|
|
11259
11002
|
{
|
|
11260
11003
|
"kind": "js",
|
|
11261
|
-
"name": "
|
|
11004
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
11262
11005
|
"declaration": {
|
|
11263
|
-
"name": "
|
|
11264
|
-
"module": "./
|
|
11006
|
+
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
11007
|
+
"module": "./icon-provider.js"
|
|
11265
11008
|
}
|
|
11266
11009
|
},
|
|
11267
11010
|
{
|
|
11268
11011
|
"kind": "js",
|
|
11269
|
-
"name": "
|
|
11012
|
+
"name": "AparteAvatarProvider",
|
|
11270
11013
|
"declaration": {
|
|
11271
|
-
"name": "
|
|
11272
|
-
"module": "./
|
|
11014
|
+
"name": "AparteAvatarProvider",
|
|
11015
|
+
"module": "./avatar-provider.js"
|
|
11273
11016
|
}
|
|
11274
11017
|
},
|
|
11275
11018
|
{
|
|
11276
11019
|
"kind": "js",
|
|
11277
|
-
"name": "
|
|
11020
|
+
"name": "AparteStatusRenderer",
|
|
11278
11021
|
"declaration": {
|
|
11279
|
-
"name": "
|
|
11280
|
-
"module": "./
|
|
11022
|
+
"name": "AparteStatusRenderer",
|
|
11023
|
+
"module": "./status-renderer.js"
|
|
11281
11024
|
}
|
|
11282
11025
|
},
|
|
11283
11026
|
{
|
|
11284
11027
|
"kind": "js",
|
|
11285
|
-
"name": "
|
|
11028
|
+
"name": "AparteErrorRenderer",
|
|
11286
11029
|
"declaration": {
|
|
11287
|
-
"name": "
|
|
11288
|
-
"module": "./
|
|
11030
|
+
"name": "AparteErrorRenderer",
|
|
11031
|
+
"module": "./error-renderer.js"
|
|
11289
11032
|
}
|
|
11290
11033
|
},
|
|
11291
11034
|
{
|
|
11292
11035
|
"kind": "js",
|
|
11293
|
-
"name": "
|
|
11036
|
+
"name": "AparteAttachmentRenderer",
|
|
11294
11037
|
"declaration": {
|
|
11295
|
-
"name": "
|
|
11296
|
-
"module": "./
|
|
11038
|
+
"name": "AparteAttachmentRenderer",
|
|
11039
|
+
"module": "./attachment-renderer.js"
|
|
11297
11040
|
}
|
|
11298
11041
|
},
|
|
11299
11042
|
{
|
|
11300
11043
|
"kind": "js",
|
|
11301
|
-
"name": "
|
|
11044
|
+
"name": "AparteElicitationFieldRenderer",
|
|
11302
11045
|
"declaration": {
|
|
11303
|
-
"name": "
|
|
11304
|
-
"module": "./
|
|
11046
|
+
"name": "AparteElicitationFieldRenderer",
|
|
11047
|
+
"module": "./elicitation-field-renderer.js"
|
|
11305
11048
|
}
|
|
11306
11049
|
},
|
|
11307
11050
|
{
|
|
11308
11051
|
"kind": "js",
|
|
11309
|
-
"name": "
|
|
11052
|
+
"name": "AparteElicitationFieldContext",
|
|
11310
11053
|
"declaration": {
|
|
11311
|
-
"name": "
|
|
11312
|
-
"module": "./
|
|
11054
|
+
"name": "AparteElicitationFieldContext",
|
|
11055
|
+
"module": "./elicitation-field-renderer.js"
|
|
11313
11056
|
}
|
|
11314
11057
|
},
|
|
11315
11058
|
{
|
|
11316
11059
|
"kind": "js",
|
|
11317
|
-
"name": "
|
|
11060
|
+
"name": "AparteElicitationFieldControl",
|
|
11318
11061
|
"declaration": {
|
|
11319
|
-
"name": "
|
|
11320
|
-
"module": "./
|
|
11062
|
+
"name": "AparteElicitationFieldControl",
|
|
11063
|
+
"module": "./elicitation-field-renderer.js"
|
|
11321
11064
|
}
|
|
11322
11065
|
},
|
|
11323
11066
|
{
|
|
11324
11067
|
"kind": "js",
|
|
11325
|
-
"name": "
|
|
11068
|
+
"name": "AparteSiblingNavRenderer",
|
|
11326
11069
|
"declaration": {
|
|
11327
|
-
"name": "
|
|
11328
|
-
"module": "./
|
|
11070
|
+
"name": "AparteSiblingNavRenderer",
|
|
11071
|
+
"module": "./sibling-nav-renderer.js"
|
|
11329
11072
|
}
|
|
11330
11073
|
},
|
|
11331
11074
|
{
|
|
11332
11075
|
"kind": "js",
|
|
11333
|
-
"name": "
|
|
11076
|
+
"name": "AparteBubbleShellRenderer",
|
|
11334
11077
|
"declaration": {
|
|
11335
|
-
"name": "
|
|
11336
|
-
"module": "./
|
|
11078
|
+
"name": "AparteBubbleShellRenderer",
|
|
11079
|
+
"module": "./bubble-shell-renderer.js"
|
|
11337
11080
|
}
|
|
11338
11081
|
},
|
|
11339
11082
|
{
|
|
11340
11083
|
"kind": "js",
|
|
11341
|
-
"name": "
|
|
11084
|
+
"name": "AparteLocale",
|
|
11342
11085
|
"declaration": {
|
|
11343
|
-
"name": "
|
|
11344
|
-
"module": "./
|
|
11086
|
+
"name": "AparteLocale",
|
|
11087
|
+
"module": "./locale.js"
|
|
11345
11088
|
}
|
|
11346
11089
|
},
|
|
11347
11090
|
{
|
|
11348
11091
|
"kind": "js",
|
|
11349
|
-
"name": "
|
|
11092
|
+
"name": "AparteLocaleExtensions",
|
|
11350
11093
|
"declaration": {
|
|
11351
|
-
"name": "
|
|
11352
|
-
"module": "./
|
|
11094
|
+
"name": "AparteLocaleExtensions",
|
|
11095
|
+
"module": "./locale.js"
|
|
11353
11096
|
}
|
|
11354
11097
|
},
|
|
11355
11098
|
{
|
|
11356
11099
|
"kind": "js",
|
|
11357
|
-
"name": "
|
|
11100
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
11358
11101
|
"declaration": {
|
|
11359
|
-
"name": "
|
|
11360
|
-
"module": "./
|
|
11102
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
11103
|
+
"module": "./locale.js"
|
|
11361
11104
|
}
|
|
11362
11105
|
},
|
|
11363
11106
|
{
|
|
11364
11107
|
"kind": "js",
|
|
11365
|
-
"name": "
|
|
11108
|
+
"name": "AparteAction",
|
|
11366
11109
|
"declaration": {
|
|
11367
|
-
"name": "
|
|
11368
|
-
"module": "./
|
|
11110
|
+
"name": "AparteAction",
|
|
11111
|
+
"module": "./action-provider.js"
|
|
11369
11112
|
}
|
|
11370
11113
|
},
|
|
11371
11114
|
{
|
|
11372
11115
|
"kind": "js",
|
|
11373
|
-
"name": "
|
|
11116
|
+
"name": "AparteActionZone",
|
|
11374
11117
|
"declaration": {
|
|
11375
|
-
"name": "
|
|
11376
|
-
"module": "./
|
|
11118
|
+
"name": "AparteActionZone",
|
|
11119
|
+
"module": "./action-provider.js"
|
|
11377
11120
|
}
|
|
11378
|
-
}
|
|
11121
|
+
}
|
|
11122
|
+
]
|
|
11123
|
+
},
|
|
11124
|
+
{
|
|
11125
|
+
"kind": "javascript-module",
|
|
11126
|
+
"path": "src/config/locale.ts",
|
|
11127
|
+
"declarations": [
|
|
11128
|
+
{
|
|
11129
|
+
"kind": "variable",
|
|
11130
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
11131
|
+
"type": {
|
|
11132
|
+
"text": "AparteLocale"
|
|
11133
|
+
},
|
|
11134
|
+
"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\", 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\", 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\", transcript: \"Transcript\" }",
|
|
11135
|
+
"description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
|
|
11136
|
+
}
|
|
11137
|
+
],
|
|
11138
|
+
"exports": [
|
|
11379
11139
|
{
|
|
11380
11140
|
"kind": "js",
|
|
11381
|
-
"name": "
|
|
11141
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
11382
11142
|
"declaration": {
|
|
11383
|
-
"name": "
|
|
11384
|
-
"module": "
|
|
11143
|
+
"name": "APARTE_DEFAULT_LOCALE",
|
|
11144
|
+
"module": "src/config/locale.ts"
|
|
11385
11145
|
}
|
|
11146
|
+
}
|
|
11147
|
+
]
|
|
11148
|
+
},
|
|
11149
|
+
{
|
|
11150
|
+
"kind": "javascript-module",
|
|
11151
|
+
"path": "src/config/sanitize.ts",
|
|
11152
|
+
"declarations": [
|
|
11153
|
+
{
|
|
11154
|
+
"kind": "variable",
|
|
11155
|
+
"name": "DANGEROUS_TAGS",
|
|
11156
|
+
"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', ])",
|
|
11157
|
+
"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."
|
|
11158
|
+
},
|
|
11159
|
+
{
|
|
11160
|
+
"kind": "variable",
|
|
11161
|
+
"name": "RESERVED_ATTRIBUTES",
|
|
11162
|
+
"default": "new Set([ 'data-aparte-chat', 'data-aparte-host', 'data-aparte-theme', 'data-aparte-split-pane', 'data-aparte-launcher-close', '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', ])",
|
|
11163
|
+
"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), 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."
|
|
11164
|
+
},
|
|
11165
|
+
{
|
|
11166
|
+
"kind": "variable",
|
|
11167
|
+
"name": "RESERVED_ATTRIBUTE_PREFIXES",
|
|
11168
|
+
"type": {
|
|
11169
|
+
"text": "array"
|
|
11170
|
+
},
|
|
11171
|
+
"default": "['data-aparte-dialog-', 'data-aparte-sidebar-', 'data-checkpoint-']",
|
|
11172
|
+
"description": "Families of reserved attributes: `-open`/`-close`/`-static`, `-toggle`/`-search`, `-action`/`-reason`."
|
|
11173
|
+
},
|
|
11174
|
+
{
|
|
11175
|
+
"kind": "function",
|
|
11176
|
+
"name": "isReservedAttribute",
|
|
11177
|
+
"return": {
|
|
11178
|
+
"type": {
|
|
11179
|
+
"text": "boolean"
|
|
11180
|
+
}
|
|
11181
|
+
},
|
|
11182
|
+
"parameters": [
|
|
11183
|
+
{
|
|
11184
|
+
"name": "name",
|
|
11185
|
+
"type": {
|
|
11186
|
+
"text": "string"
|
|
11187
|
+
}
|
|
11188
|
+
}
|
|
11189
|
+
],
|
|
11190
|
+
"description": "True when `name` (lower case) is an attribute core reads, so model markup may not carry it."
|
|
11191
|
+
},
|
|
11192
|
+
{
|
|
11193
|
+
"kind": "function",
|
|
11194
|
+
"name": "isSafeUrl",
|
|
11195
|
+
"return": {
|
|
11196
|
+
"type": {
|
|
11197
|
+
"text": "boolean"
|
|
11198
|
+
}
|
|
11199
|
+
},
|
|
11200
|
+
"parameters": [
|
|
11201
|
+
{
|
|
11202
|
+
"name": "value",
|
|
11203
|
+
"type": {
|
|
11204
|
+
"text": "string"
|
|
11205
|
+
}
|
|
11206
|
+
},
|
|
11207
|
+
{
|
|
11208
|
+
"name": "tag",
|
|
11209
|
+
"type": {
|
|
11210
|
+
"text": "string"
|
|
11211
|
+
}
|
|
11212
|
+
}
|
|
11213
|
+
]
|
|
11214
|
+
},
|
|
11215
|
+
{
|
|
11216
|
+
"kind": "function",
|
|
11217
|
+
"name": "readTag",
|
|
11218
|
+
"return": {
|
|
11219
|
+
"type": {
|
|
11220
|
+
"text": "{ tag: string; attrs: Array<[string, string]>; end: number }"
|
|
11221
|
+
}
|
|
11222
|
+
},
|
|
11223
|
+
"parameters": [
|
|
11224
|
+
{
|
|
11225
|
+
"name": "html",
|
|
11226
|
+
"type": {
|
|
11227
|
+
"text": "string"
|
|
11228
|
+
}
|
|
11229
|
+
},
|
|
11230
|
+
{
|
|
11231
|
+
"name": "nameAt",
|
|
11232
|
+
"type": {
|
|
11233
|
+
"text": "number"
|
|
11234
|
+
}
|
|
11235
|
+
}
|
|
11236
|
+
],
|
|
11237
|
+
"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."
|
|
11386
11238
|
},
|
|
11387
11239
|
{
|
|
11388
|
-
"kind": "
|
|
11389
|
-
"name": "
|
|
11390
|
-
"
|
|
11391
|
-
"
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11240
|
+
"kind": "function",
|
|
11241
|
+
"name": "defaultSanitizer",
|
|
11242
|
+
"return": {
|
|
11243
|
+
"type": {
|
|
11244
|
+
"text": "string"
|
|
11245
|
+
}
|
|
11246
|
+
},
|
|
11247
|
+
"parameters": [
|
|
11248
|
+
{
|
|
11249
|
+
"name": "html",
|
|
11250
|
+
"type": {
|
|
11251
|
+
"text": "string"
|
|
11252
|
+
}
|
|
11253
|
+
}
|
|
11254
|
+
],
|
|
11255
|
+
"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)."
|
|
11256
|
+
}
|
|
11257
|
+
],
|
|
11258
|
+
"exports": [
|
|
11395
11259
|
{
|
|
11396
11260
|
"kind": "js",
|
|
11397
|
-
"name": "
|
|
11261
|
+
"name": "DANGEROUS_TAGS",
|
|
11398
11262
|
"declaration": {
|
|
11399
|
-
"name": "
|
|
11400
|
-
"module": "
|
|
11263
|
+
"name": "DANGEROUS_TAGS",
|
|
11264
|
+
"module": "src/config/sanitize.ts"
|
|
11401
11265
|
}
|
|
11402
11266
|
},
|
|
11403
11267
|
{
|
|
11404
11268
|
"kind": "js",
|
|
11405
|
-
"name": "
|
|
11269
|
+
"name": "RESERVED_ATTRIBUTES",
|
|
11406
11270
|
"declaration": {
|
|
11407
|
-
"name": "
|
|
11408
|
-
"module": "
|
|
11271
|
+
"name": "RESERVED_ATTRIBUTES",
|
|
11272
|
+
"module": "src/config/sanitize.ts"
|
|
11409
11273
|
}
|
|
11410
11274
|
},
|
|
11411
11275
|
{
|
|
11412
11276
|
"kind": "js",
|
|
11413
|
-
"name": "
|
|
11277
|
+
"name": "RESERVED_ATTRIBUTE_PREFIXES",
|
|
11414
11278
|
"declaration": {
|
|
11415
|
-
"name": "
|
|
11416
|
-
"module": "
|
|
11279
|
+
"name": "RESERVED_ATTRIBUTE_PREFIXES",
|
|
11280
|
+
"module": "src/config/sanitize.ts"
|
|
11417
11281
|
}
|
|
11418
11282
|
},
|
|
11419
11283
|
{
|
|
11420
11284
|
"kind": "js",
|
|
11421
|
-
"name": "
|
|
11285
|
+
"name": "isReservedAttribute",
|
|
11422
11286
|
"declaration": {
|
|
11423
|
-
"name": "
|
|
11424
|
-
"module": "
|
|
11287
|
+
"name": "isReservedAttribute",
|
|
11288
|
+
"module": "src/config/sanitize.ts"
|
|
11425
11289
|
}
|
|
11426
11290
|
},
|
|
11427
11291
|
{
|
|
11428
11292
|
"kind": "js",
|
|
11429
|
-
"name": "
|
|
11293
|
+
"name": "isSafeUrl",
|
|
11430
11294
|
"declaration": {
|
|
11431
|
-
"name": "
|
|
11432
|
-
"module": "
|
|
11295
|
+
"name": "isSafeUrl",
|
|
11296
|
+
"module": "src/config/sanitize.ts"
|
|
11433
11297
|
}
|
|
11434
11298
|
},
|
|
11435
11299
|
{
|
|
11436
11300
|
"kind": "js",
|
|
11437
|
-
"name": "
|
|
11301
|
+
"name": "readTag",
|
|
11438
11302
|
"declaration": {
|
|
11439
|
-
"name": "
|
|
11440
|
-
"module": "
|
|
11303
|
+
"name": "readTag",
|
|
11304
|
+
"module": "src/config/sanitize.ts"
|
|
11441
11305
|
}
|
|
11442
11306
|
},
|
|
11443
11307
|
{
|
|
11444
11308
|
"kind": "js",
|
|
11445
|
-
"name": "
|
|
11309
|
+
"name": "defaultSanitizer",
|
|
11446
11310
|
"declaration": {
|
|
11447
|
-
"name": "
|
|
11448
|
-
"module": "
|
|
11311
|
+
"name": "defaultSanitizer",
|
|
11312
|
+
"module": "src/config/sanitize.ts"
|
|
11449
11313
|
}
|
|
11450
|
-
}
|
|
11314
|
+
}
|
|
11315
|
+
]
|
|
11316
|
+
},
|
|
11317
|
+
{
|
|
11318
|
+
"kind": "javascript-module",
|
|
11319
|
+
"path": "src/config/sibling-nav-renderer.ts",
|
|
11320
|
+
"declarations": [],
|
|
11321
|
+
"exports": []
|
|
11322
|
+
},
|
|
11323
|
+
{
|
|
11324
|
+
"kind": "javascript-module",
|
|
11325
|
+
"path": "src/config/status-renderer.ts",
|
|
11326
|
+
"declarations": [],
|
|
11327
|
+
"exports": []
|
|
11328
|
+
},
|
|
11329
|
+
{
|
|
11330
|
+
"kind": "javascript-module",
|
|
11331
|
+
"path": "src/config/tool-table.ts",
|
|
11332
|
+
"declarations": [
|
|
11451
11333
|
{
|
|
11452
|
-
"kind": "
|
|
11453
|
-
"
|
|
11454
|
-
"
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11334
|
+
"kind": "class",
|
|
11335
|
+
"description": "",
|
|
11336
|
+
"name": "ToolTable",
|
|
11337
|
+
"members": [
|
|
11338
|
+
{
|
|
11339
|
+
"kind": "field",
|
|
11340
|
+
"name": "exact",
|
|
11341
|
+
"privacy": "private",
|
|
11342
|
+
"readonly": true,
|
|
11343
|
+
"default": "new Map<string, T>()"
|
|
11344
|
+
},
|
|
11345
|
+
{
|
|
11346
|
+
"kind": "field",
|
|
11347
|
+
"name": "patterns",
|
|
11348
|
+
"privacy": "private",
|
|
11349
|
+
"readonly": true,
|
|
11350
|
+
"default": "new Map<string, { re: RegExp; value: T }>()"
|
|
11351
|
+
},
|
|
11352
|
+
{
|
|
11353
|
+
"kind": "field",
|
|
11354
|
+
"name": "any",
|
|
11355
|
+
"type": {
|
|
11356
|
+
"text": "T | undefined"
|
|
11357
|
+
},
|
|
11358
|
+
"privacy": "private"
|
|
11359
|
+
},
|
|
11360
|
+
{
|
|
11361
|
+
"kind": "method",
|
|
11362
|
+
"name": "get",
|
|
11363
|
+
"return": {
|
|
11364
|
+
"type": {
|
|
11365
|
+
"text": "T | undefined"
|
|
11366
|
+
}
|
|
11367
|
+
},
|
|
11368
|
+
"parameters": [
|
|
11369
|
+
{
|
|
11370
|
+
"name": "match",
|
|
11371
|
+
"type": {
|
|
11372
|
+
"text": "AparteToolMatcher"
|
|
11373
|
+
}
|
|
11374
|
+
}
|
|
11375
|
+
],
|
|
11376
|
+
"description": "The value registered under exactly this matcher — not a resolution."
|
|
11377
|
+
},
|
|
11378
|
+
{
|
|
11379
|
+
"kind": "method",
|
|
11380
|
+
"name": "set",
|
|
11381
|
+
"return": {
|
|
11382
|
+
"type": {
|
|
11383
|
+
"text": "void"
|
|
11384
|
+
}
|
|
11385
|
+
},
|
|
11386
|
+
"parameters": [
|
|
11387
|
+
{
|
|
11388
|
+
"name": "match",
|
|
11389
|
+
"type": {
|
|
11390
|
+
"text": "AparteToolMatcher"
|
|
11391
|
+
}
|
|
11392
|
+
},
|
|
11393
|
+
{
|
|
11394
|
+
"name": "value",
|
|
11395
|
+
"type": {
|
|
11396
|
+
"text": "T"
|
|
11397
|
+
}
|
|
11398
|
+
}
|
|
11399
|
+
]
|
|
11400
|
+
},
|
|
11401
|
+
{
|
|
11402
|
+
"kind": "method",
|
|
11403
|
+
"name": "delete",
|
|
11404
|
+
"return": {
|
|
11405
|
+
"type": {
|
|
11406
|
+
"text": "void"
|
|
11407
|
+
}
|
|
11408
|
+
},
|
|
11409
|
+
"parameters": [
|
|
11410
|
+
{
|
|
11411
|
+
"name": "match",
|
|
11412
|
+
"type": {
|
|
11413
|
+
"text": "AparteToolMatcher"
|
|
11414
|
+
}
|
|
11415
|
+
}
|
|
11416
|
+
]
|
|
11417
|
+
},
|
|
11418
|
+
{
|
|
11419
|
+
"kind": "method",
|
|
11420
|
+
"name": "resolve",
|
|
11421
|
+
"return": {
|
|
11422
|
+
"type": {
|
|
11423
|
+
"text": "{ value: T; level: ToolMatchLevel } | undefined"
|
|
11424
|
+
}
|
|
11425
|
+
},
|
|
11426
|
+
"parameters": [
|
|
11427
|
+
{
|
|
11428
|
+
"name": "name",
|
|
11429
|
+
"type": {
|
|
11430
|
+
"text": "string"
|
|
11431
|
+
}
|
|
11432
|
+
}
|
|
11433
|
+
],
|
|
11434
|
+
"description": "The value that applies to a tool named `name`, and how specifically it names it."
|
|
11435
|
+
},
|
|
11436
|
+
{
|
|
11437
|
+
"kind": "method",
|
|
11438
|
+
"name": "values",
|
|
11439
|
+
"return": {
|
|
11440
|
+
"type": {
|
|
11441
|
+
"text": "T[]"
|
|
11442
|
+
}
|
|
11443
|
+
},
|
|
11444
|
+
"description": "Every value registered, whatever its matcher."
|
|
11445
|
+
},
|
|
11446
|
+
{
|
|
11447
|
+
"kind": "method",
|
|
11448
|
+
"name": "clear",
|
|
11449
|
+
"return": {
|
|
11450
|
+
"type": {
|
|
11451
|
+
"text": "void"
|
|
11452
|
+
}
|
|
11453
|
+
}
|
|
11454
|
+
}
|
|
11455
|
+
]
|
|
11456
|
+
}
|
|
11457
|
+
],
|
|
11458
|
+
"exports": [
|
|
11459
11459
|
{
|
|
11460
11460
|
"kind": "js",
|
|
11461
|
-
"name": "
|
|
11461
|
+
"name": "ToolTable",
|
|
11462
11462
|
"declaration": {
|
|
11463
|
-
"name": "
|
|
11464
|
-
"module": "
|
|
11463
|
+
"name": "ToolTable",
|
|
11464
|
+
"module": "src/config/tool-table.ts"
|
|
11465
11465
|
}
|
|
11466
11466
|
}
|
|
11467
11467
|
]
|
|
@@ -21982,10 +21982,40 @@
|
|
|
21982
21982
|
"type": {
|
|
21983
21983
|
"text": "AparteSegmentRenderer | undefined"
|
|
21984
21984
|
}
|
|
21985
|
+
},
|
|
21986
|
+
{
|
|
21987
|
+
"name": "drawnAs",
|
|
21988
|
+
"default": "segment",
|
|
21989
|
+
"type": {
|
|
21990
|
+
"text": "AparteSegment"
|
|
21991
|
+
}
|
|
21985
21992
|
}
|
|
21986
21993
|
],
|
|
21987
21994
|
"description": "Record a segment as drawn, set it up, then read back which tool renderer is behind the\nrow (tool-call.ts records it as the row is set up — one record, not a second lookup).\nRecorded BEFORE `setup`: a setup that throws (a framework mount) leaves an element that\nwill still be cleaned up. The same id drawn twice releases the first element."
|
|
21988
21995
|
},
|
|
21996
|
+
{
|
|
21997
|
+
"kind": "method",
|
|
21998
|
+
"name": "_drawnAs",
|
|
21999
|
+
"privacy": "private",
|
|
22000
|
+
"return": {
|
|
22001
|
+
"type": {
|
|
22002
|
+
"text": "AparteSegment"
|
|
22003
|
+
}
|
|
22004
|
+
},
|
|
22005
|
+
"parameters": [
|
|
22006
|
+
{
|
|
22007
|
+
"name": "segment",
|
|
22008
|
+
"type": {
|
|
22009
|
+
"text": "AparteSegment"
|
|
22010
|
+
}
|
|
22011
|
+
},
|
|
22012
|
+
{
|
|
22013
|
+
"name": "added",
|
|
22014
|
+
"default": "false"
|
|
22015
|
+
}
|
|
22016
|
+
],
|
|
22017
|
+
"description": "The segment as its renderer's `setup` sees it: one ADDED while the message streams is\narriving, flag or no flag.\n\nA text or reasoning segment flagged `isStreaming: true` is written by its renderer's\n`setup` through the streaming renderer, from its first chunk. The stream parser's text\ncarries no flag at all, though: `update` reads a missing flag as \"still arriving\",\n`setup` cannot, because a restored message's segments carry none either and are\nfinished. So its first chunk — drawn by `render` and `setup`, while `update` only runs\nfrom the second — went through the one-shot provider, which reads `Done: **Book ` as\nfinished text: with marked, the `**` showed raw until the next chunk reached the\nstreaming renderer, which completes it. `addSegment` on a streaming message is a segment\narriving, and the bubble is what knows the message streams, so it tells `setup`\n(`render` keeps the segment as stored: the reasoning label reads the flag, and would lose\nits shimmer again at the next chunk). `setSegments` infers nothing — a hand-set text is\nfinished, and the streaming renderer would keep back what may still open a token (the\nfull stop after `**bold**`) until the turn ends; a framework host flags the segment\nitself (`populateBubbleFromMessage`). Either way the segment joins `_written`, to be\nsettled — flushed, then drawn whole — when the message stops."
|
|
22018
|
+
},
|
|
21989
22019
|
{
|
|
21990
22020
|
"kind": "method",
|
|
21991
22021
|
"name": "_release",
|
|
@@ -34416,7 +34446,7 @@
|
|
|
34416
34446
|
"type": {
|
|
34417
34447
|
"text": "AparteSegmentRenderer<AparteTextSegment>"
|
|
34418
34448
|
},
|
|
34419
|
-
"default": "{ type: 'text', render: (segment) => `<div class=\"aparte-segment aparte-segment-text\" data-segment-id=\"${escapeHtml(segment.id)}\"><div class=\"aparte-segment-content\" dir=\"auto\">${contextConfig().renderMarkdown(segment.content)}</div></div>`, /* * A fence in a settled text segment is highlighted, as the thinking renderer does for * its own. The parser turns a streamed fence into a `code` segment, so this only ever * mattered for text built by hand (`setSegments`, a restored message, a server's) — and * the bubble's own pass skips any message that has segments, so that fence stayed bare. */ setup: (el, segment) => { const contentEl = el.querySelector('.aparte-segment-content'); // Only a segment marked streaming is still being written: one with no flag at all — // `setSegments`, an `appendMessage` with segments — is finished, and is highlighted. if (!contentEl) return;
|
|
34449
|
+
"default": "{ type: 'text', render: (segment) => `<div class=\"aparte-segment aparte-segment-text\" data-segment-id=\"${escapeHtml(segment.id)}\"><div class=\"aparte-segment-content\" dir=\"auto\">${contextConfig().renderMarkdown(segment.content)}</div></div>`, /* * A fence in a settled text segment is highlighted, as the thinking renderer does for * its own. The parser turns a streamed fence into a `code` segment, so this only ever * mattered for text built by hand (`setSegments`, a restored message, a server's) — and * the bubble's own pass skips any message that has segments, so that fence stayed bare. */ setup: (el, segment) => { const contentEl = el.querySelector('.aparte-segment-content'); // Only a segment marked streaming is still being written: one with no flag at all — // `setSegments`, an `appendMessage` with segments — is finished, and is highlighted. if (!contentEl) return; if (segment.isStreaming === true) { // Drawn mid-stream (its first chunk, or a redraw): the streaming renderer writes // it, as it writes every chunk after. `render` went through the one-shot provider, // which reads `Done: **Book ` as finished text — marked showed that `**` raw until // the second chunk reached the streaming side, which completes it. writeStreamedMarkdown(el as AparteMarkdownStreamHost, contentEl, segment.content, true); } else { renderCodeLanguages(contentEl, { streaming: false }); highlightMarkdownFences(contentEl); } renderCitations(contentEl as HTMLElement, segment); }, update: (el, segment) => { const contentEl = el.querySelector('.aparte-segment-content'); if (!contentEl) return; writeStreamedMarkdown( el as AparteMarkdownStreamHost, contentEl, segment.content, segment.isStreaming !== false, ); if (segment.isStreaming === false) highlightMarkdownFences(contentEl); // Every write: the text a chip sat in may have been written anew. renderCitations(contentEl as HTMLElement, segment); }, getStyles: () => `` }",
|
|
34420
34450
|
"description": "Text segment renderer.\n\nThe incremental-vs-one-shot Markdown machinery lives in\n`../markdown-stream.ts`, shared with the thinking renderer — see that file for\nwhy appending beats rebuilding, and what the settling update flushes."
|
|
34421
34451
|
}
|
|
34422
34452
|
],
|
|
@@ -34441,7 +34471,7 @@
|
|
|
34441
34471
|
"type": {
|
|
34442
34472
|
"text": "AparteSegmentRenderer<AparteThinkingSegment>"
|
|
34443
34473
|
},
|
|
34444
|
-
"default": "{ type: 'thinking', /* * Markdown, like every other prose surface. * * The reasoning was rendered as escaped plain text in a `white-space: pre-wrap` * box, so a model that formats its thinking — headings, lists, `**bold**`, a * fenced snippet, which is most of them — showed its own syntax as literal * characters. Nothing said that was deliberate; it read as one, because the * `pre-wrap` made it look like a chosen preformatted block. * * `renderMarkdown` sanitizes its provider's output before it reaches innerHTML, * so this is exactly the text renderer's path, with the same guarantees and no * new class of risk. With no Markdown provider registered it degrades to the * zero-dependency default (escape + `<br>`), which is what it used to be. */ /* * WEARS THE ACCORDION RECIPE. A reasoning block is a disclosure — `<details>`, a * `<summary>` you press, a panel, a chevron that turns — which is exactly what * `surface/accordion.css` already draws, and this renderer used to draw a second * time under four classes of its own. Two costs, both visible: it looked unrelated * to every other disclosure in the library, and its chevron was the CHARACTER `▼`, * a fourth way to draw a chevron here and the only one that is not a glyph — so it * could not take `--aparte-icon-size`, could not be replaced through the icon * provider, and rendered in whatever the platform font felt like. * * What stays thinking's own is the left rail and the quieter tone, which is the * only part that is genuinely about reasoning rather than about disclosure. * `.aparte-thinking-label` stays too: `relabel` below queries it. */ render: (segment) => `<details class=\"aparte-segment aparte-segment-thinking aparte-accordion__item\" data-segment-id=\"${escapeHtml(segment.id)}\" ${segment.collapsed === false ? 'open' : ''}><summary class=\"aparte-accordion__header aparte-thinking-header\"><span class=\"aparte-thinking-label${escapeAttr(arriving(segment) ? ' aparte-shimmer' : '')}\">${escapeHtml(labelOf(segment))}</span><span class=\"aparte-accordion__icon\">${contextConfig().getIcon('expand')}</span></summary><div class=\"aparte-accordion__panel aparte-thinking-content\" dir=\"auto\" role=\"region\" tabindex=\"0\" aria-label=\"${escapeAttr(labelOf(segment))}\">${contextConfig().renderMarkdown(segment.content)}</div></details>`, /** * The default label is the only config-derived text here — and `segment.label` * still wins, exactly as in `render`, because that string is the app's. */ relabel: (el, segment) => setLabel(el, segment), /** A block restored from storage is drawn here: `update` only runs on one that changes. */ setup: (el, segment) => { const contentEl = el.querySelector('.aparte-thinking-content'); if (contentEl)
|
|
34474
|
+
"default": "{ type: 'thinking', /* * Markdown, like every other prose surface. * * The reasoning was rendered as escaped plain text in a `white-space: pre-wrap` * box, so a model that formats its thinking — headings, lists, `**bold**`, a * fenced snippet, which is most of them — showed its own syntax as literal * characters. Nothing said that was deliberate; it read as one, because the * `pre-wrap` made it look like a chosen preformatted block. * * `renderMarkdown` sanitizes its provider's output before it reaches innerHTML, * so this is exactly the text renderer's path, with the same guarantees and no * new class of risk. With no Markdown provider registered it degrades to the * zero-dependency default (escape + `<br>`), which is what it used to be. */ /* * WEARS THE ACCORDION RECIPE. A reasoning block is a disclosure — `<details>`, a * `<summary>` you press, a panel, a chevron that turns — which is exactly what * `surface/accordion.css` already draws, and this renderer used to draw a second * time under four classes of its own. Two costs, both visible: it looked unrelated * to every other disclosure in the library, and its chevron was the CHARACTER `▼`, * a fourth way to draw a chevron here and the only one that is not a glyph — so it * could not take `--aparte-icon-size`, could not be replaced through the icon * provider, and rendered in whatever the platform font felt like. * * What stays thinking's own is the left rail and the quieter tone, which is the * only part that is genuinely about reasoning rather than about disclosure. * `.aparte-thinking-label` stays too: `relabel` below queries it. */ render: (segment) => `<details class=\"aparte-segment aparte-segment-thinking aparte-accordion__item\" data-segment-id=\"${escapeHtml(segment.id)}\" ${segment.collapsed === false ? 'open' : ''}><summary class=\"aparte-accordion__header aparte-thinking-header\"><span class=\"aparte-thinking-label${escapeAttr(arriving(segment) ? ' aparte-shimmer' : '')}\">${escapeHtml(labelOf(segment))}</span><span class=\"aparte-accordion__icon\">${contextConfig().getIcon('expand')}</span></summary><div class=\"aparte-accordion__panel aparte-thinking-content\" dir=\"auto\" role=\"region\" tabindex=\"0\" aria-label=\"${escapeAttr(labelOf(segment))}\">${contextConfig().renderMarkdown(segment.content)}</div></details>`, /** * The default label is the only config-derived text here — and `segment.label` * still wins, exactly as in `render`, because that string is the app's. */ relabel: (el, segment) => setLabel(el, segment), /** A block restored from storage is drawn here: `update` only runs on one that changes. */ setup: (el, segment) => { const contentEl = el.querySelector('.aparte-thinking-content'); if (!contentEl) return; // Drawn mid-stream, the streaming renderer writes it from the first chunk — as the // text renderer does, and for the same reason: `render`'s one-shot pass shows an // unclosed `**` raw until the next chunk. if (arriving(segment)) writeStreamedMarkdown(el as AparteMarkdownStreamHost, contentEl, segment.content, true); else renderCodeLanguages(contentEl, { streaming: false }); }, update: (el, segment) => { // The label follows the block: \"Thinking\" becomes its duration when it settles. setLabel(el, segment); // collapsed state is managed by _applySegmentUpdate based on explicit updates only — // never override what the user set by clicking <summary> const contentEl = el.querySelector('.aparte-thinking-content'); if (!contentEl) return; // Anchor to the bottom while the reasoning streams — but only if the reader // was already there. // // `.aparte-thinking-content` is its own scroll container (`max-height` + // `overflow-y: auto`), and this update replaced its text without touching // `scrollTop`. So every delta pushed the newest line below the fold and the // block sat frozen on the first 300px of a reasoning trace that kept // growing. Same rule as the transcript itself: follow the stream, unless the // reader has scrolled up to read — then leave their position alone. No // scroll-to-bottom button; being at the bottom is the whole signal. // // The measurement MUST happen before the write. Afterwards `scrollHeight` // has already grown by the new text, so the distance to the bottom is // whatever just arrived and the answer is always \"not at the bottom\" — the // block would then anchor exactly never. The transcript's own scroll // handling cost five wrong attempts on this ordering; it is written down // here so the sixth is not in this file. const wasAtBottom = contentEl.scrollHeight - contentEl.scrollTop - contentEl.clientHeight <= THINKING_ANCHOR_SLACK; const streaming = segment.isStreaming !== false; writeStreamedMarkdown(el as AparteMarkdownStreamHost, contentEl, segment.content, streaming); // Highlight on settle only, exactly like the code renderer: running a // highlighter on every token is the paint storm the incremental writer // exists to avoid. A fence inside reasoning is not a `code` SEGMENT — the // parser accumulates a thinking block raw until its closing delimiter — so // without this it would be the one code block in the transcript with no // highlighting. No copy button here: that would need real nested segments, // which is a design change and not this fix. if (!streaming) highlightMarkdownFences(contentEl); if (wasAtBottom) contentEl.scrollTop = contentEl.scrollHeight; }, getStyles: () => `` }"
|
|
34445
34475
|
}
|
|
34446
34476
|
],
|
|
34447
34477
|
"exports": [
|