@aparte/core 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/components/chat/aparte-chat.d.ts +4 -0
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +7 -0
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/composer/index.d.ts +1 -0
- package/dist/components/composer/index.d.ts.map +1 -1
- package/dist/components/composer/type-to-focus.d.ts +29 -0
- package/dist/components/composer/type-to-focus.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/launcher/aparte-launcher.d.ts +151 -13
- package/dist/components/launcher/aparte-launcher.d.ts.map +1 -1
- package/dist/config/icon-provider.d.ts +4 -0
- package/dist/config/icon-provider.d.ts.map +1 -1
- package/dist/config/locale.d.ts +7 -1
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/config/sanitize.d.ts +1 -1
- package/dist/custom-elements.json +1059 -486
- package/dist/{defer-hydration-Oh04ScDm.js → defer-hydration-lK-7XQXf.js} +16 -2
- package/dist/defer-hydration-lK-7XQXf.js.map +1 -0
- package/dist/generated/element-attributes.d.ts +14 -0
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/{glyphs-DFp-825O.js → glyphs-LolG04CC.js} +20 -14
- package/dist/glyphs-LolG04CC.js.map +1 -0
- package/dist/icons/glyphs.d.ts +6 -0
- package/dist/icons/glyphs.d.ts.map +1 -1
- package/dist/icons.js +17 -15
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +373 -38
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/index.node.js.map +1 -1
- package/dist/interop/default-on-attributes.d.ts +17 -0
- package/dist/interop/default-on-attributes.d.ts.map +1 -0
- package/dist/interop/element-props.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/defer-hydration-Oh04ScDm.js.map +0 -1
- package/dist/glyphs-DFp-825O.js.map +0 -1
|
@@ -1425,6 +1425,14 @@
|
|
|
1425
1425
|
"module": "./components/index.js"
|
|
1426
1426
|
}
|
|
1427
1427
|
},
|
|
1428
|
+
{
|
|
1429
|
+
"kind": "js",
|
|
1430
|
+
"name": "AparteTypeToFocus",
|
|
1431
|
+
"declaration": {
|
|
1432
|
+
"name": "AparteTypeToFocus",
|
|
1433
|
+
"module": "./components/index.js"
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1428
1436
|
{
|
|
1429
1437
|
"kind": "js",
|
|
1430
1438
|
"name": "AparteActionClickEventDetail",
|
|
@@ -4267,6 +4275,14 @@
|
|
|
4267
4275
|
"module": "./components/index.js"
|
|
4268
4276
|
}
|
|
4269
4277
|
},
|
|
4278
|
+
{
|
|
4279
|
+
"kind": "js",
|
|
4280
|
+
"name": "AparteTypeToFocus",
|
|
4281
|
+
"declaration": {
|
|
4282
|
+
"name": "AparteTypeToFocus",
|
|
4283
|
+
"module": "./components/index.js"
|
|
4284
|
+
}
|
|
4285
|
+
},
|
|
4270
4286
|
{
|
|
4271
4287
|
"kind": "js",
|
|
4272
4288
|
"name": "AparteActionClickEventDetail",
|
|
@@ -5655,417 +5671,42 @@
|
|
|
5655
5671
|
},
|
|
5656
5672
|
{
|
|
5657
5673
|
"kind": "javascript-module",
|
|
5658
|
-
"path": "src/
|
|
5659
|
-
"declarations": [
|
|
5660
|
-
"exports": [
|
|
5661
|
-
{
|
|
5662
|
-
"kind": "js",
|
|
5663
|
-
"name": "AparteChat",
|
|
5664
|
-
"declaration": {
|
|
5665
|
-
"name": "AparteChat",
|
|
5666
|
-
"module": "./chat/index.js"
|
|
5667
|
-
}
|
|
5668
|
-
},
|
|
5669
|
-
{
|
|
5670
|
-
"kind": "js",
|
|
5671
|
-
"name": "AparteChatBubble",
|
|
5672
|
-
"declaration": {
|
|
5673
|
-
"name": "AparteChatBubble",
|
|
5674
|
-
"module": "./bubble/index.js"
|
|
5675
|
-
}
|
|
5676
|
-
},
|
|
5677
|
-
{
|
|
5678
|
-
"kind": "js",
|
|
5679
|
-
"name": "populateBubbleFromMessage",
|
|
5680
|
-
"declaration": {
|
|
5681
|
-
"name": "populateBubbleFromMessage",
|
|
5682
|
-
"module": "./bubble/index.js"
|
|
5683
|
-
}
|
|
5684
|
-
},
|
|
5685
|
-
{
|
|
5686
|
-
"kind": "js",
|
|
5687
|
-
"name": "SyncableBubble",
|
|
5688
|
-
"declaration": {
|
|
5689
|
-
"name": "SyncableBubble",
|
|
5690
|
-
"module": "./bubble/index.js"
|
|
5691
|
-
}
|
|
5692
|
-
},
|
|
5693
|
-
{
|
|
5694
|
-
"kind": "js",
|
|
5695
|
-
"name": "AparteChatStatus",
|
|
5696
|
-
"declaration": {
|
|
5697
|
-
"name": "AparteChatStatus",
|
|
5698
|
-
"module": "./status/index.js"
|
|
5699
|
-
}
|
|
5700
|
-
},
|
|
5701
|
-
{
|
|
5702
|
-
"kind": "js",
|
|
5703
|
-
"name": "AparteChatViewport",
|
|
5704
|
-
"declaration": {
|
|
5705
|
-
"name": "AparteChatViewport",
|
|
5706
|
-
"module": "./viewport/index.js"
|
|
5707
|
-
}
|
|
5708
|
-
},
|
|
5709
|
-
{
|
|
5710
|
-
"kind": "js",
|
|
5711
|
-
"name": "AparteComposer",
|
|
5712
|
-
"declaration": {
|
|
5713
|
-
"name": "AparteComposer",
|
|
5714
|
-
"module": "./composer/index.js"
|
|
5715
|
-
}
|
|
5716
|
-
},
|
|
5717
|
-
{
|
|
5718
|
-
"kind": "js",
|
|
5719
|
-
"name": "AparteComposerInput",
|
|
5720
|
-
"declaration": {
|
|
5721
|
-
"name": "AparteComposerInput",
|
|
5722
|
-
"module": "./composer/index.js"
|
|
5723
|
-
}
|
|
5724
|
-
},
|
|
5725
|
-
{
|
|
5726
|
-
"kind": "js",
|
|
5727
|
-
"name": "AparteComposerSend",
|
|
5728
|
-
"declaration": {
|
|
5729
|
-
"name": "AparteComposerSend",
|
|
5730
|
-
"module": "./composer/index.js"
|
|
5731
|
-
}
|
|
5732
|
-
},
|
|
5733
|
-
{
|
|
5734
|
-
"kind": "js",
|
|
5735
|
-
"name": "AparteComposerCancel",
|
|
5736
|
-
"declaration": {
|
|
5737
|
-
"name": "AparteComposerCancel",
|
|
5738
|
-
"module": "./composer/index.js"
|
|
5739
|
-
}
|
|
5740
|
-
},
|
|
5741
|
-
{
|
|
5742
|
-
"kind": "js",
|
|
5743
|
-
"name": "AparteComposerAttachments",
|
|
5744
|
-
"declaration": {
|
|
5745
|
-
"name": "AparteComposerAttachments",
|
|
5746
|
-
"module": "./composer/index.js"
|
|
5747
|
-
}
|
|
5748
|
-
},
|
|
5749
|
-
{
|
|
5750
|
-
"kind": "js",
|
|
5751
|
-
"name": "AparteComposerAddAttachment",
|
|
5752
|
-
"declaration": {
|
|
5753
|
-
"name": "AparteComposerAddAttachment",
|
|
5754
|
-
"module": "./composer/index.js"
|
|
5755
|
-
}
|
|
5756
|
-
},
|
|
5757
|
-
{
|
|
5758
|
-
"kind": "js",
|
|
5759
|
-
"name": "AparteComposerAction",
|
|
5760
|
-
"declaration": {
|
|
5761
|
-
"name": "AparteComposerAction",
|
|
5762
|
-
"module": "./composer/index.js"
|
|
5763
|
-
}
|
|
5764
|
-
},
|
|
5765
|
-
{
|
|
5766
|
-
"kind": "js",
|
|
5767
|
-
"name": "AparteComposerToolbar",
|
|
5768
|
-
"declaration": {
|
|
5769
|
-
"name": "AparteComposerToolbar",
|
|
5770
|
-
"module": "./composer/index.js"
|
|
5771
|
-
}
|
|
5772
|
-
},
|
|
5773
|
-
{
|
|
5774
|
-
"kind": "js",
|
|
5775
|
-
"name": "AparteComposerEventMap",
|
|
5776
|
-
"declaration": {
|
|
5777
|
-
"name": "AparteComposerEventMap",
|
|
5778
|
-
"module": "./composer/index.js"
|
|
5779
|
-
}
|
|
5780
|
-
},
|
|
5781
|
-
{
|
|
5782
|
-
"kind": "js",
|
|
5783
|
-
"name": "AparteComposerEventType",
|
|
5784
|
-
"declaration": {
|
|
5785
|
-
"name": "AparteComposerEventType",
|
|
5786
|
-
"module": "./composer/index.js"
|
|
5787
|
-
}
|
|
5788
|
-
},
|
|
5789
|
-
{
|
|
5790
|
-
"kind": "js",
|
|
5791
|
-
"name": "AparteComposerState",
|
|
5792
|
-
"declaration": {
|
|
5793
|
-
"name": "AparteComposerState",
|
|
5794
|
-
"module": "./composer/index.js"
|
|
5795
|
-
}
|
|
5796
|
-
},
|
|
5797
|
-
{
|
|
5798
|
-
"kind": "js",
|
|
5799
|
-
"name": "AparteComposerChangeEventDetail",
|
|
5800
|
-
"declaration": {
|
|
5801
|
-
"name": "AparteComposerChangeEventDetail",
|
|
5802
|
-
"module": "./composer/index.js"
|
|
5803
|
-
}
|
|
5804
|
-
},
|
|
5805
|
-
{
|
|
5806
|
-
"kind": "js",
|
|
5807
|
-
"name": "AparteComposerPanelMode",
|
|
5808
|
-
"declaration": {
|
|
5809
|
-
"name": "AparteComposerPanelMode",
|
|
5810
|
-
"module": "./composer/index.js"
|
|
5811
|
-
}
|
|
5812
|
-
},
|
|
5813
|
-
{
|
|
5814
|
-
"kind": "js",
|
|
5815
|
-
"name": "AparteActionClickEventDetail",
|
|
5816
|
-
"declaration": {
|
|
5817
|
-
"name": "AparteActionClickEventDetail",
|
|
5818
|
-
"module": "./composer/index.js"
|
|
5819
|
-
}
|
|
5820
|
-
},
|
|
5821
|
-
{
|
|
5822
|
-
"kind": "js",
|
|
5823
|
-
"name": "AparteConversationList",
|
|
5824
|
-
"declaration": {
|
|
5825
|
-
"name": "AparteConversationList",
|
|
5826
|
-
"module": "./conversation-list/index.js"
|
|
5827
|
-
}
|
|
5828
|
-
},
|
|
5829
|
-
{
|
|
5830
|
-
"kind": "js",
|
|
5831
|
-
"name": "AparteConversationListItem",
|
|
5832
|
-
"declaration": {
|
|
5833
|
-
"name": "AparteConversationListItem",
|
|
5834
|
-
"module": "./conversation-list/index.js"
|
|
5835
|
-
}
|
|
5836
|
-
},
|
|
5837
|
-
{
|
|
5838
|
-
"kind": "js",
|
|
5839
|
-
"name": "AparteConversationSelectDetail",
|
|
5840
|
-
"declaration": {
|
|
5841
|
-
"name": "AparteConversationSelectDetail",
|
|
5842
|
-
"module": "./conversation-list/index.js"
|
|
5843
|
-
}
|
|
5844
|
-
},
|
|
5845
|
-
{
|
|
5846
|
-
"kind": "js",
|
|
5847
|
-
"name": "AparteConversationDeleteDetail",
|
|
5848
|
-
"declaration": {
|
|
5849
|
-
"name": "AparteConversationDeleteDetail",
|
|
5850
|
-
"module": "./conversation-list/index.js"
|
|
5851
|
-
}
|
|
5852
|
-
},
|
|
5674
|
+
"path": "src/client/agent-runner.ts",
|
|
5675
|
+
"declarations": [
|
|
5853
5676
|
{
|
|
5854
|
-
"kind": "
|
|
5855
|
-
"name": "
|
|
5856
|
-
"
|
|
5857
|
-
"
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5677
|
+
"kind": "function",
|
|
5678
|
+
"name": "createAgentStreamRunner",
|
|
5679
|
+
"return": {
|
|
5680
|
+
"type": {
|
|
5681
|
+
"text": "AparteStreamRunner"
|
|
5682
|
+
}
|
|
5683
|
+
},
|
|
5684
|
+
"parameters": [
|
|
5685
|
+
{
|
|
5686
|
+
"name": "options",
|
|
5687
|
+
"type": {
|
|
5688
|
+
"text": "AgentStreamRunnerOptions"
|
|
5689
|
+
}
|
|
5690
|
+
}
|
|
5691
|
+
],
|
|
5692
|
+
"description": "An `AparteStreamRunner` that runs `AparteClient`'s loop on YOUR server — the one\n`createAparteAgentHandler` serves — and replays its events here, where the client's\nadapter draws them exactly as it draws a loop run in the page.\n\n```ts\nconst client = new AparteClient({ streamRunner: createAgentStreamRunner({ endpoint: '/api/agent' }) });\n```\n\nThe page needs no provider of its own: the server runs the model. A provider and model\nthe page selects anyway travel with the turn, and the server uses them.\n\nA pipe, nothing more. It sees no message and no segment, so it opens no panel and runs\nno tool: when the server suspends a run, the CLIENT asks the person or runs the browser\ntool, then calls this runner again with the answers in `deferral` — the same path it\ntakes when a conversation with a paused call is reloaded days later."
|
|
5693
|
+
}
|
|
5694
|
+
],
|
|
5695
|
+
"exports": [
|
|
5861
5696
|
{
|
|
5862
5697
|
"kind": "js",
|
|
5863
|
-
"name": "
|
|
5698
|
+
"name": "createAgentStreamRunner",
|
|
5864
5699
|
"declaration": {
|
|
5865
|
-
"name": "
|
|
5866
|
-
"module": "
|
|
5700
|
+
"name": "createAgentStreamRunner",
|
|
5701
|
+
"module": "src/client/agent-runner.ts"
|
|
5867
5702
|
}
|
|
5868
|
-
}
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
}
|
|
5876
|
-
},
|
|
5877
|
-
{
|
|
5878
|
-
"kind": "js",
|
|
5879
|
-
"name": "AparteConversationStatus",
|
|
5880
|
-
"declaration": {
|
|
5881
|
-
"name": "AparteConversationStatus",
|
|
5882
|
-
"module": "./conversation-list/index.js"
|
|
5883
|
-
}
|
|
5884
|
-
},
|
|
5885
|
-
{
|
|
5886
|
-
"kind": "js",
|
|
5887
|
-
"name": "AparteConversationStatusDetail",
|
|
5888
|
-
"declaration": {
|
|
5889
|
-
"name": "AparteConversationStatusDetail",
|
|
5890
|
-
"module": "./conversation-list/index.js"
|
|
5891
|
-
}
|
|
5892
|
-
},
|
|
5893
|
-
{
|
|
5894
|
-
"kind": "js",
|
|
5895
|
-
"name": "AparteSuggestions",
|
|
5896
|
-
"declaration": {
|
|
5897
|
-
"name": "AparteSuggestions",
|
|
5898
|
-
"module": "./suggestions/index.js"
|
|
5899
|
-
}
|
|
5900
|
-
},
|
|
5901
|
-
{
|
|
5902
|
-
"kind": "js",
|
|
5903
|
-
"name": "setupSuggestionBlocks",
|
|
5904
|
-
"declaration": {
|
|
5905
|
-
"name": "setupSuggestionBlocks",
|
|
5906
|
-
"module": "./suggestions/index.js"
|
|
5907
|
-
}
|
|
5908
|
-
},
|
|
5909
|
-
{
|
|
5910
|
-
"kind": "js",
|
|
5911
|
-
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
5912
|
-
"declaration": {
|
|
5913
|
-
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
5914
|
-
"module": "./suggestions/index.js"
|
|
5915
|
-
}
|
|
5916
|
-
},
|
|
5917
|
-
{
|
|
5918
|
-
"kind": "js",
|
|
5919
|
-
"name": "AparteSuggestion",
|
|
5920
|
-
"declaration": {
|
|
5921
|
-
"name": "AparteSuggestion",
|
|
5922
|
-
"module": "./suggestions/index.js"
|
|
5923
|
-
}
|
|
5924
|
-
},
|
|
5925
|
-
{
|
|
5926
|
-
"kind": "js",
|
|
5927
|
-
"name": "AparteSuggestionEventDetail",
|
|
5928
|
-
"declaration": {
|
|
5929
|
-
"name": "AparteSuggestionEventDetail",
|
|
5930
|
-
"module": "./suggestions/index.js"
|
|
5931
|
-
}
|
|
5932
|
-
},
|
|
5933
|
-
{
|
|
5934
|
-
"kind": "js",
|
|
5935
|
-
"name": "AparteContext",
|
|
5936
|
-
"declaration": {
|
|
5937
|
-
"name": "AparteContext",
|
|
5938
|
-
"module": "./context/index.js"
|
|
5939
|
-
}
|
|
5940
|
-
},
|
|
5941
|
-
{
|
|
5942
|
-
"kind": "js",
|
|
5943
|
-
"name": "AparteContextLevel",
|
|
5944
|
-
"declaration": {
|
|
5945
|
-
"name": "AparteContextLevel",
|
|
5946
|
-
"module": "./context/index.js"
|
|
5947
|
-
}
|
|
5948
|
-
},
|
|
5949
|
-
{
|
|
5950
|
-
"kind": "js",
|
|
5951
|
-
"name": "AparteContextThresholdEventDetail",
|
|
5952
|
-
"declaration": {
|
|
5953
|
-
"name": "AparteContextThresholdEventDetail",
|
|
5954
|
-
"module": "./context/index.js"
|
|
5955
|
-
}
|
|
5956
|
-
},
|
|
5957
|
-
{
|
|
5958
|
-
"kind": "js",
|
|
5959
|
-
"name": "AparteScrollRail",
|
|
5960
|
-
"declaration": {
|
|
5961
|
-
"name": "AparteScrollRail",
|
|
5962
|
-
"module": "./scroll-rail/index.js"
|
|
5963
|
-
}
|
|
5964
|
-
},
|
|
5965
|
-
{
|
|
5966
|
-
"kind": "js",
|
|
5967
|
-
"name": "AparteScrollRailJumpDetail",
|
|
5968
|
-
"declaration": {
|
|
5969
|
-
"name": "AparteScrollRailJumpDetail",
|
|
5970
|
-
"module": "./scroll-rail/index.js"
|
|
5971
|
-
}
|
|
5972
|
-
},
|
|
5973
|
-
{
|
|
5974
|
-
"kind": "js",
|
|
5975
|
-
"name": "AparteScrollRailEvery",
|
|
5976
|
-
"declaration": {
|
|
5977
|
-
"name": "AparteScrollRailEvery",
|
|
5978
|
-
"module": "./scroll-rail/index.js"
|
|
5979
|
-
}
|
|
5980
|
-
},
|
|
5981
|
-
{
|
|
5982
|
-
"kind": "js",
|
|
5983
|
-
"name": "AparteSidebar",
|
|
5984
|
-
"declaration": {
|
|
5985
|
-
"name": "AparteSidebar",
|
|
5986
|
-
"module": "./sidebar/index.js"
|
|
5987
|
-
}
|
|
5988
|
-
},
|
|
5989
|
-
{
|
|
5990
|
-
"kind": "js",
|
|
5991
|
-
"name": "AparteSidebarToggleDetail",
|
|
5992
|
-
"declaration": {
|
|
5993
|
-
"name": "AparteSidebarToggleDetail",
|
|
5994
|
-
"module": "./sidebar/index.js"
|
|
5995
|
-
}
|
|
5996
|
-
},
|
|
5997
|
-
{
|
|
5998
|
-
"kind": "js",
|
|
5999
|
-
"name": "AparteSplit",
|
|
6000
|
-
"declaration": {
|
|
6001
|
-
"name": "AparteSplit",
|
|
6002
|
-
"module": "./split/index.js"
|
|
6003
|
-
}
|
|
6004
|
-
},
|
|
6005
|
-
{
|
|
6006
|
-
"kind": "js",
|
|
6007
|
-
"name": "AparteSplitResizeDetail",
|
|
6008
|
-
"declaration": {
|
|
6009
|
-
"name": "AparteSplitResizeDetail",
|
|
6010
|
-
"module": "./split/index.js"
|
|
6011
|
-
}
|
|
6012
|
-
},
|
|
6013
|
-
{
|
|
6014
|
-
"kind": "js",
|
|
6015
|
-
"name": "AparteLauncher",
|
|
6016
|
-
"declaration": {
|
|
6017
|
-
"name": "AparteLauncher",
|
|
6018
|
-
"module": "./launcher/index.js"
|
|
6019
|
-
}
|
|
6020
|
-
},
|
|
6021
|
-
{
|
|
6022
|
-
"kind": "js",
|
|
6023
|
-
"name": "AparteLauncherToggleDetail",
|
|
6024
|
-
"declaration": {
|
|
6025
|
-
"name": "AparteLauncherToggleDetail",
|
|
6026
|
-
"module": "./launcher/index.js"
|
|
6027
|
-
}
|
|
6028
|
-
}
|
|
6029
|
-
]
|
|
6030
|
-
},
|
|
6031
|
-
{
|
|
6032
|
-
"kind": "javascript-module",
|
|
6033
|
-
"path": "src/client/agent-runner.ts",
|
|
6034
|
-
"declarations": [
|
|
6035
|
-
{
|
|
6036
|
-
"kind": "function",
|
|
6037
|
-
"name": "createAgentStreamRunner",
|
|
6038
|
-
"return": {
|
|
6039
|
-
"type": {
|
|
6040
|
-
"text": "AparteStreamRunner"
|
|
6041
|
-
}
|
|
6042
|
-
},
|
|
6043
|
-
"parameters": [
|
|
6044
|
-
{
|
|
6045
|
-
"name": "options",
|
|
6046
|
-
"type": {
|
|
6047
|
-
"text": "AgentStreamRunnerOptions"
|
|
6048
|
-
}
|
|
6049
|
-
}
|
|
6050
|
-
],
|
|
6051
|
-
"description": "An `AparteStreamRunner` that runs `AparteClient`'s loop on YOUR server — the one\n`createAparteAgentHandler` serves — and replays its events here, where the client's\nadapter draws them exactly as it draws a loop run in the page.\n\n```ts\nconst client = new AparteClient({ streamRunner: createAgentStreamRunner({ endpoint: '/api/agent' }) });\n```\n\nThe page needs no provider of its own: the server runs the model. A provider and model\nthe page selects anyway travel with the turn, and the server uses them.\n\nA pipe, nothing more. It sees no message and no segment, so it opens no panel and runs\nno tool: when the server suspends a run, the CLIENT asks the person or runs the browser\ntool, then calls this runner again with the answers in `deferral` — the same path it\ntakes when a conversation with a paused call is reloaded days later."
|
|
6052
|
-
}
|
|
6053
|
-
],
|
|
6054
|
-
"exports": [
|
|
6055
|
-
{
|
|
6056
|
-
"kind": "js",
|
|
6057
|
-
"name": "createAgentStreamRunner",
|
|
6058
|
-
"declaration": {
|
|
6059
|
-
"name": "createAgentStreamRunner",
|
|
6060
|
-
"module": "src/client/agent-runner.ts"
|
|
6061
|
-
}
|
|
6062
|
-
}
|
|
6063
|
-
]
|
|
6064
|
-
},
|
|
6065
|
-
{
|
|
6066
|
-
"kind": "javascript-module",
|
|
6067
|
-
"path": "src/client/aparte-client.ts",
|
|
6068
|
-
"declarations": [
|
|
5703
|
+
}
|
|
5704
|
+
]
|
|
5705
|
+
},
|
|
5706
|
+
{
|
|
5707
|
+
"kind": "javascript-module",
|
|
5708
|
+
"path": "src/client/aparte-client.ts",
|
|
5709
|
+
"declarations": [
|
|
6069
5710
|
{
|
|
6070
5711
|
"kind": "class",
|
|
6071
5712
|
"description": "AparteClient\n\nThe \"Automatic Transmission\" for Aparte.\nConnects the UI events (aparte-send) to the AI Providers (chat).\nHandles:\n- Listening to send events\n- Resolving API keys\n- Calling the appropriate Provider\n- Streaming the response back to the UI\n- Tool use: awaiting handlers and re-calling the provider",
|
|
@@ -11479,7 +11120,7 @@
|
|
|
11479
11120
|
"type": {
|
|
11480
11121
|
"text": "AparteLocale"
|
|
11481
11122
|
},
|
|
11482
|
-
"default": "{ inputPlaceholder: \"Type a message...\", sendButton: \"Send\", copy: \"Copy\", copied: \"Copied!\", retry: \"Retry\", thinking: \"Thinking\", elicitationOther: \"Other…\", elicitationOtherPlaceholder: \"Type your answer…\", elicitationOtherLabel: \"Custom answer\", submitButton: \"Submit\", stopButton: \"Stop\", elicitationRecommended: \"Recommended\", elicitationSkip: \"Skip\", elicitationHide: \"Hide for now\", elicitationWaiting: \"Waiting for your answer\", elicitationYes: \"Yes\", elicitationNo: \"No\", elicitationAnswerLabel: \"Your answer\", approvalInstructionPlaceholder: \"Or tell it what to do instead…\", approvalAsk: \"Allow {tool}?\", approvalWaiting: \"Waiting\", scrollToBottom: \"Scroll to bottom\", suggestionsLabel: \"Suggested prompts\", contextLabel: \"Context window\", contextSystem: \"System prompt\", contextTools: \"Tools\", contextSummary: \"Summary\", contextMessages: \"Messages\", contextOther: \"Other\", contextFree: \"Free\", contextTotal: \"Total\", contextReclaim: \"Compacting now would free ~{n} tokens\", contextCompactNow: \"Compact now\", checkpointCount: \"{n} messages summarised for the model\", checkpointCountOne: \"1 message summarised for the model\", checkpointLegacy: \"Earlier messages were summarised\", checkpointGroup: \"Context summary\", checkpointShow: \"Show summary\", checkpointHide: \"Hide summary\", checkpointRestore: \"Restore\", checkpointRestoreConfirm: \"Send the original messages to the model again?\", checkpointPending: \"Summarising the context…\", checkpointFailed: \"Couldn't summarise the context\", toolRunning: \"Running\", toolCompleted: \"Done\", toolRejected: \"Rejected\", toolStopped: \"Stopped\", toolFailed: \"Failed\", toolInput: \"Input\", toolOutput: \"Output\", toolRejectedSaid: \"You said: “{instruction}”\", toolRefusedByPolicy: \"Refused by policy\", toolNotRunAfterRefusal: \"Not run: an earlier call was refused\", toolTimedOut: \"Timed out\", toolUnavailable: \"Not available here\", toolNoApprover: \"No one could approve it\", toolTurnLimit: \"Turn limit reached\", maxTurnsReached: \"Stopped after {n} turns to avoid an endless loop.\", sourcesCount: \"{n} sources\", sourcesOne: \"1 source\", sourcesCard: \"Sources\", sourcePrevious: \"Previous source\", sourceNext: \"Next source\", sourcePosition: \"Source {i} of {n}\", opensInNewTab: \"(opens in a new tab)\", imageLoad: \"Load the image from {host}\", imageLoadNamed: \"Load the image “{alt}” from {host}\", questionDeclined: \"You declined to answer.\", artifactNotCreated: \"Not created\", thoughtFor: \"Thought for {duration}\", thought: \"Thought\", turnWorking: \"Working…\", turnWorked: \"Worked {duration}\", turnUsed: \"Used {tools}\", turnTools: \"one:{n} tool|other:{n} tools\", feedbackReasonTitle: 'What went wrong?', feedbackReasonDismiss: 'Not now', triggersLoading: 'Loading…', triggersEmpty: 'No results', triggersError: 'This list could not be loaded', triggersRetry: 'Try again', triggersBack: 'Back', triggersCommandNew: 'Start a new conversation', triggersCommandStop: 'Stop the reply', triggersCommandRetry: 'Answer again', triggersCommandCopy: 'Copy the last reply', triggersCommandCompact: 'Summarise the earlier messages', triggersCompactNothing: 'There is nothing to compact yet', triggersCompactBusy: 'Wait for the reply to finish', triggersCompactNoWindow: 'This model does not say how much it can read', triggersCompactFailed: 'The summary could not be written', triggersCommandModel: 'Change the model', triggersCommandApproval: 'Change the approval mode', approvalOptionsLabel: \"Your decision\", approvalArgsLabel: \"Arguments\", actionUpload: \"Attach file\", removeAttachment: \"Remove {name}\", messageFrom: \"Message from {name}\", selectSearchPlaceholder: \"Search…\", selectSearchLabel: \"Search options\", loading: \"Loading…\", download: \"Download\", openArtifact: \"Open\", closeArtifact: \"Close\", artifactVersion: \"Version {n} of {total}\", previousVersion: \"Previous version\", nextVersion: \"Next version\", modelContextWindow: \"{n} context\", previewPending: \"Press Preview to run this artifact.\", sandboxError: \"The sandbox failed during generation.\", sandboxErrorHint: \"Common cause: the model produced invalid code (undefined variable, wrong argument type). Retry the request — the model may produce different code.\", preview: \"Preview\", code: \"Code\", generating: \"Generating…\", rebuildingPreview: \"Rebuilding preview…\", typing: \"Typing\", responseCutOff: \"Cut off at the model's length limit.\", error: \"Error\", errorUnreachable: \"The assistant can’t be reached right now. Try again in a moment.\", errorTimeout: \"The answer took too long. Try again in a moment.\", errorRefused: \"The assistant isn’t allowed to answer right now.\", errorRateLimited: \"Too many requests right now. Try again in a moment.\", errorTooLong: \"This conversation is too long for the model. Start a new one.\", errorFailed: \"The assistant couldn’t answer. Try again in a moment.\", errorNoAnswer: \"The assistant couldn’t answer this request.\", running: \"Running...\", run: \"Run\", file: \"File\", modelSelectorPlaceholder: \"Select a model...\", approvalModeLabel: \"Approval mode\", roleNameUser: \"You\", roleNameAssistant: \"Assistant\", yourMessage: \"Your message\", assistantResponse: \"Assistant response\", messageActions: \"Message actions\", edit: \"Edit message\", editConfirm: \"Send\", editCancel: \"Cancel\", feedbackPositive: \"Good response\", feedbackNegative: \"Bad response\", previousResponse: \"Previous response\", nextResponse: \"Next response\", approveTool: \"Approve\", rejectTool: \"Reject\", messageInfo: \"Details\", newChat: \"New Chat\", loadingConversations: \"Loading conversations\", conversationSearchEmpty: \"No conversation matches\", conversationList: \"Conversations\", loadingConversation: \"Loading the conversation\", deleteConversation: \"Delete\", archiveConversation: \"Archive\", unarchiveConversation: \"Unarchive\", conversationActions: \"Conversation actions\", conversationRunning: \"Answering\", conversationWaiting: \"Waiting for you\", renameConversation: \"Rename\", conversationTitle: \"Conversation title\", pinConversation: \"Pin\", unpinConversation: \"Unpin\", deleteConversationConfirm: \"Delete “{title}”?\", cancel: \"Cancel\", conversationGroupPinned: \"Pinned\", conversationGroupToday: \"Today\", conversationGroupYesterday: \"Yesterday\", conversationGroupWeek: \"Previous 7 days\", conversationGroupMonth: \"Previous 30 days\", scrollRailLabel: \"Conversation outline\", sidebarLabel: \"Conversations\", splitHandleLabel: \"Resize the panes\", launcherOpen: \"Open the chat\", launcherClose: \"Close the chat\", transcript: \"Transcript\" }",
|
|
11123
|
+
"default": "{ inputPlaceholder: \"Type a message...\", sendButton: \"Send\", copy: \"Copy\", copied: \"Copied!\", retry: \"Retry\", thinking: \"Thinking\", elicitationOther: \"Other…\", elicitationOtherPlaceholder: \"Type your answer…\", elicitationOtherLabel: \"Custom answer\", submitButton: \"Submit\", stopButton: \"Stop\", elicitationRecommended: \"Recommended\", elicitationSkip: \"Skip\", elicitationHide: \"Hide for now\", elicitationWaiting: \"Waiting for your answer\", elicitationYes: \"Yes\", elicitationNo: \"No\", elicitationAnswerLabel: \"Your answer\", approvalInstructionPlaceholder: \"Or tell it what to do instead…\", approvalAsk: \"Allow {tool}?\", approvalWaiting: \"Waiting\", scrollToBottom: \"Scroll to bottom\", suggestionsLabel: \"Suggested prompts\", contextLabel: \"Context window\", contextSystem: \"System prompt\", contextTools: \"Tools\", contextSummary: \"Summary\", contextMessages: \"Messages\", contextOther: \"Other\", contextFree: \"Free\", contextTotal: \"Total\", contextReclaim: \"Compacting now would free ~{n} tokens\", contextCompactNow: \"Compact now\", checkpointCount: \"{n} messages summarised for the model\", checkpointCountOne: \"1 message summarised for the model\", checkpointLegacy: \"Earlier messages were summarised\", checkpointGroup: \"Context summary\", checkpointShow: \"Show summary\", checkpointHide: \"Hide summary\", checkpointRestore: \"Restore\", checkpointRestoreConfirm: \"Send the original messages to the model again?\", checkpointPending: \"Summarising the context…\", checkpointFailed: \"Couldn't summarise the context\", toolRunning: \"Running\", toolCompleted: \"Done\", toolRejected: \"Rejected\", toolStopped: \"Stopped\", toolFailed: \"Failed\", toolInput: \"Input\", toolOutput: \"Output\", toolRejectedSaid: \"You said: “{instruction}”\", toolRefusedByPolicy: \"Refused by policy\", toolNotRunAfterRefusal: \"Not run: an earlier call was refused\", toolTimedOut: \"Timed out\", toolUnavailable: \"Not available here\", toolNoApprover: \"No one could approve it\", toolTurnLimit: \"Turn limit reached\", maxTurnsReached: \"Stopped after {n} turns to avoid an endless loop.\", sourcesCount: \"{n} sources\", sourcesOne: \"1 source\", sourcesCard: \"Sources\", sourcePrevious: \"Previous source\", sourceNext: \"Next source\", sourcePosition: \"Source {i} of {n}\", opensInNewTab: \"(opens in a new tab)\", imageLoad: \"Load the image from {host}\", imageLoadNamed: \"Load the image “{alt}” from {host}\", questionDeclined: \"You declined to answer.\", artifactNotCreated: \"Not created\", thoughtFor: \"Thought for {duration}\", thought: \"Thought\", turnWorking: \"Working…\", turnWorked: \"Worked {duration}\", turnUsed: \"Used {tools}\", turnTools: \"one:{n} tool|other:{n} tools\", feedbackReasonTitle: 'What went wrong?', feedbackReasonDismiss: 'Not now', triggersLoading: 'Loading…', triggersEmpty: 'No results', triggersError: 'This list could not be loaded', triggersRetry: 'Try again', triggersBack: 'Back', triggersCommandNew: 'Start a new conversation', triggersCommandStop: 'Stop the reply', triggersCommandRetry: 'Answer again', triggersCommandCopy: 'Copy the last reply', triggersCommandCompact: 'Summarise the earlier messages', triggersCompactNothing: 'There is nothing to compact yet', triggersCompactBusy: 'Wait for the reply to finish', triggersCompactNoWindow: 'This model does not say how much it can read', triggersCompactFailed: 'The summary could not be written', triggersCommandModel: 'Change the model', triggersCommandApproval: 'Change the approval mode', approvalOptionsLabel: \"Your decision\", approvalArgsLabel: \"Arguments\", actionUpload: \"Attach file\", removeAttachment: \"Remove {name}\", messageFrom: \"Message from {name}\", selectSearchPlaceholder: \"Search…\", selectSearchLabel: \"Search options\", loading: \"Loading…\", download: \"Download\", openArtifact: \"Open\", closeArtifact: \"Close\", artifactVersion: \"Version {n} of {total}\", previousVersion: \"Previous version\", nextVersion: \"Next version\", modelContextWindow: \"{n} context\", previewPending: \"Press Preview to run this artifact.\", sandboxError: \"The sandbox failed during generation.\", sandboxErrorHint: \"Common cause: the model produced invalid code (undefined variable, wrong argument type). Retry the request — the model may produce different code.\", preview: \"Preview\", code: \"Code\", generating: \"Generating…\", rebuildingPreview: \"Rebuilding preview…\", typing: \"Typing\", responseCutOff: \"Cut off at the model's length limit.\", error: \"Error\", errorUnreachable: \"The assistant can’t be reached right now. Try again in a moment.\", errorTimeout: \"The answer took too long. Try again in a moment.\", errorRefused: \"The assistant isn’t allowed to answer right now.\", errorRateLimited: \"Too many requests right now. Try again in a moment.\", errorTooLong: \"This conversation is too long for the model. Start a new one.\", errorFailed: \"The assistant couldn’t answer. Try again in a moment.\", errorNoAnswer: \"The assistant couldn’t answer this request.\", running: \"Running...\", run: \"Run\", file: \"File\", modelSelectorPlaceholder: \"Select a model...\", approvalModeLabel: \"Approval mode\", roleNameUser: \"You\", roleNameAssistant: \"Assistant\", yourMessage: \"Your message\", assistantResponse: \"Assistant response\", messageActions: \"Message actions\", edit: \"Edit message\", editConfirm: \"Send\", editCancel: \"Cancel\", feedbackPositive: \"Good response\", feedbackNegative: \"Bad response\", previousResponse: \"Previous response\", nextResponse: \"Next response\", approveTool: \"Approve\", rejectTool: \"Reject\", messageInfo: \"Details\", newChat: \"New Chat\", loadingConversations: \"Loading conversations\", conversationSearchEmpty: \"No conversation matches\", conversationList: \"Conversations\", loadingConversation: \"Loading the conversation\", deleteConversation: \"Delete\", archiveConversation: \"Archive\", unarchiveConversation: \"Unarchive\", conversationActions: \"Conversation actions\", conversationRunning: \"Answering\", conversationWaiting: \"Waiting for you\", renameConversation: \"Rename\", conversationTitle: \"Conversation title\", pinConversation: \"Pin\", unpinConversation: \"Unpin\", deleteConversationConfirm: \"Delete “{title}”?\", cancel: \"Cancel\", conversationGroupPinned: \"Pinned\", conversationGroupToday: \"Today\", conversationGroupYesterday: \"Yesterday\", conversationGroupWeek: \"Previous 7 days\", conversationGroupMonth: \"Previous 30 days\", scrollRailLabel: \"Conversation outline\", sidebarLabel: \"Conversations\", splitHandleLabel: \"Resize the panes\", launcherOpen: \"Open the chat\", launcherClose: \"Close the chat\", launcherHeading: \"Chat\", launcherMaximize: \"Expand the chat\", launcherRestore: \"Shrink the chat\", transcript: \"Transcript\" }",
|
|
11483
11124
|
"description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
|
|
11484
11125
|
}
|
|
11485
11126
|
],
|
|
@@ -11507,8 +11148,8 @@
|
|
|
11507
11148
|
{
|
|
11508
11149
|
"kind": "variable",
|
|
11509
11150
|
"name": "RESERVED_ATTRIBUTES",
|
|
11510
|
-
"default": "new Set([ 'data-aparte-chat', 'data-aparte-host', 'data-aparte-theme', 'data-aparte-split-pane', 'data-aparte-launcher-close', 'data-aparte-suggestions', 'data-aparte-bubble', 'data-aparte-empty', 'data-aparte-panel', 'data-aparte-panel-host', 'data-aparte-card-part', 'data-segment-id', 'data-action', ])",
|
|
11511
|
-
"description": "The attributes core READS, as a command or as a boundary, on an element it finds by\nwalking the DOM: a delegated click listener (`data-aparte-dialog-open`, the sidebar\nand split toggles, the launcher's close), 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."
|
|
11151
|
+
"default": "new Set([ 'data-aparte-chat', 'data-aparte-host', 'data-aparte-theme', 'data-aparte-split-pane', 'data-aparte-launcher-close', 'data-aparte-launcher-maximize', 'data-aparte-suggestions', 'data-aparte-bubble', 'data-aparte-empty', 'data-aparte-panel', 'data-aparte-panel-host', 'data-aparte-card-part', 'data-segment-id', 'data-action', ])",
|
|
11152
|
+
"description": "The attributes core READS, as a command or as a boundary, on an element it finds by\nwalking the DOM: a delegated click listener (`data-aparte-dialog-open`, the sidebar\nand split toggles, the launcher's close and maximize), the chat that owns a card's `send`\n(`data-aparte-chat`), the instance config a subtree resolves to (`data-aparte-host`),\nthe palette a subtree wears (`data-aparte-theme`), a checkpoint's Restore\n(`data-checkpoint-action`), the row a segment update targets (`data-segment-id`).\n\n`data-*` is otherwise kept (see `copyAttributes`), so these are the exceptions: model\nmarkup is text, and text cannot press a button or move a boundary core drew. The list\nis exact rather than the whole `data-aparte-` prefix on purpose — a Markdown provider\nwrites `data-aparte-open` before the sanitizer runs, and core marks its own state on\nDOM the sanitizer sees again (`data-aparte-highlighted`) — and\n`the-sanitizer-refuses-what-core-reads.test.ts` scans core's source so an attribute\nadded there cannot be forgotten here. Exported for that test; not from the barrel."
|
|
11512
11153
|
},
|
|
11513
11154
|
{
|
|
11514
11155
|
"kind": "variable",
|
|
@@ -11816,63 +11457,446 @@
|
|
|
11816
11457
|
},
|
|
11817
11458
|
{
|
|
11818
11459
|
"kind": "javascript-module",
|
|
11819
|
-
"path": "src/
|
|
11820
|
-
"declarations": [
|
|
11460
|
+
"path": "src/components/index.ts",
|
|
11461
|
+
"declarations": [],
|
|
11462
|
+
"exports": [
|
|
11821
11463
|
{
|
|
11822
|
-
"kind": "
|
|
11823
|
-
"name": "
|
|
11824
|
-
"
|
|
11825
|
-
"
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
},
|
|
11829
|
-
"parameters": [
|
|
11830
|
-
{
|
|
11831
|
-
"name": "el",
|
|
11832
|
-
"type": {
|
|
11833
|
-
"text": "Element"
|
|
11834
|
-
}
|
|
11835
|
-
}
|
|
11836
|
-
],
|
|
11837
|
-
"description": "The id of the chat `el` belongs to: the nearest `<aparte-chat>` or `[data-aparte-chat]`\nabove it that HAS one, `undefined` for an unnamed chat. The same climb the bubble, the\ncomposer and the gauge make for their own events, so an event naming a chat and an element\nanswering for it agree about which is which."
|
|
11464
|
+
"kind": "js",
|
|
11465
|
+
"name": "AparteChat",
|
|
11466
|
+
"declaration": {
|
|
11467
|
+
"name": "AparteChat",
|
|
11468
|
+
"module": "./chat/index.js"
|
|
11469
|
+
}
|
|
11838
11470
|
},
|
|
11839
11471
|
{
|
|
11840
|
-
"kind": "
|
|
11841
|
-
"
|
|
11842
|
-
"
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11472
|
+
"kind": "js",
|
|
11473
|
+
"name": "AparteChatBubble",
|
|
11474
|
+
"declaration": {
|
|
11475
|
+
"name": "AparteChatBubble",
|
|
11476
|
+
"module": "./bubble/index.js"
|
|
11477
|
+
}
|
|
11478
|
+
},
|
|
11479
|
+
{
|
|
11480
|
+
"kind": "js",
|
|
11481
|
+
"name": "populateBubbleFromMessage",
|
|
11482
|
+
"declaration": {
|
|
11483
|
+
"name": "populateBubbleFromMessage",
|
|
11484
|
+
"module": "./bubble/index.js"
|
|
11485
|
+
}
|
|
11486
|
+
},
|
|
11487
|
+
{
|
|
11488
|
+
"kind": "js",
|
|
11489
|
+
"name": "SyncableBubble",
|
|
11490
|
+
"declaration": {
|
|
11491
|
+
"name": "SyncableBubble",
|
|
11492
|
+
"module": "./bubble/index.js"
|
|
11493
|
+
}
|
|
11494
|
+
},
|
|
11495
|
+
{
|
|
11496
|
+
"kind": "js",
|
|
11497
|
+
"name": "AparteChatStatus",
|
|
11498
|
+
"declaration": {
|
|
11499
|
+
"name": "AparteChatStatus",
|
|
11500
|
+
"module": "./status/index.js"
|
|
11501
|
+
}
|
|
11502
|
+
},
|
|
11503
|
+
{
|
|
11504
|
+
"kind": "js",
|
|
11505
|
+
"name": "AparteChatViewport",
|
|
11506
|
+
"declaration": {
|
|
11507
|
+
"name": "AparteChatViewport",
|
|
11508
|
+
"module": "./viewport/index.js"
|
|
11509
|
+
}
|
|
11510
|
+
},
|
|
11511
|
+
{
|
|
11512
|
+
"kind": "js",
|
|
11513
|
+
"name": "AparteComposer",
|
|
11514
|
+
"declaration": {
|
|
11515
|
+
"name": "AparteComposer",
|
|
11516
|
+
"module": "./composer/index.js"
|
|
11517
|
+
}
|
|
11518
|
+
},
|
|
11519
|
+
{
|
|
11520
|
+
"kind": "js",
|
|
11521
|
+
"name": "AparteComposerInput",
|
|
11522
|
+
"declaration": {
|
|
11523
|
+
"name": "AparteComposerInput",
|
|
11524
|
+
"module": "./composer/index.js"
|
|
11525
|
+
}
|
|
11526
|
+
},
|
|
11527
|
+
{
|
|
11528
|
+
"kind": "js",
|
|
11529
|
+
"name": "AparteComposerSend",
|
|
11530
|
+
"declaration": {
|
|
11531
|
+
"name": "AparteComposerSend",
|
|
11532
|
+
"module": "./composer/index.js"
|
|
11533
|
+
}
|
|
11534
|
+
},
|
|
11535
|
+
{
|
|
11536
|
+
"kind": "js",
|
|
11537
|
+
"name": "AparteComposerCancel",
|
|
11538
|
+
"declaration": {
|
|
11539
|
+
"name": "AparteComposerCancel",
|
|
11540
|
+
"module": "./composer/index.js"
|
|
11541
|
+
}
|
|
11542
|
+
},
|
|
11543
|
+
{
|
|
11544
|
+
"kind": "js",
|
|
11545
|
+
"name": "AparteComposerAttachments",
|
|
11546
|
+
"declaration": {
|
|
11547
|
+
"name": "AparteComposerAttachments",
|
|
11548
|
+
"module": "./composer/index.js"
|
|
11549
|
+
}
|
|
11550
|
+
},
|
|
11551
|
+
{
|
|
11552
|
+
"kind": "js",
|
|
11553
|
+
"name": "AparteComposerAddAttachment",
|
|
11554
|
+
"declaration": {
|
|
11555
|
+
"name": "AparteComposerAddAttachment",
|
|
11556
|
+
"module": "./composer/index.js"
|
|
11557
|
+
}
|
|
11558
|
+
},
|
|
11559
|
+
{
|
|
11560
|
+
"kind": "js",
|
|
11561
|
+
"name": "AparteComposerAction",
|
|
11562
|
+
"declaration": {
|
|
11563
|
+
"name": "AparteComposerAction",
|
|
11564
|
+
"module": "./composer/index.js"
|
|
11565
|
+
}
|
|
11566
|
+
},
|
|
11567
|
+
{
|
|
11568
|
+
"kind": "js",
|
|
11569
|
+
"name": "AparteComposerToolbar",
|
|
11570
|
+
"declaration": {
|
|
11571
|
+
"name": "AparteComposerToolbar",
|
|
11572
|
+
"module": "./composer/index.js"
|
|
11573
|
+
}
|
|
11574
|
+
},
|
|
11575
|
+
{
|
|
11576
|
+
"kind": "js",
|
|
11577
|
+
"name": "AparteComposerEventMap",
|
|
11578
|
+
"declaration": {
|
|
11579
|
+
"name": "AparteComposerEventMap",
|
|
11580
|
+
"module": "./composer/index.js"
|
|
11581
|
+
}
|
|
11582
|
+
},
|
|
11583
|
+
{
|
|
11584
|
+
"kind": "js",
|
|
11585
|
+
"name": "AparteComposerEventType",
|
|
11586
|
+
"declaration": {
|
|
11587
|
+
"name": "AparteComposerEventType",
|
|
11588
|
+
"module": "./composer/index.js"
|
|
11589
|
+
}
|
|
11590
|
+
},
|
|
11591
|
+
{
|
|
11592
|
+
"kind": "js",
|
|
11593
|
+
"name": "AparteComposerState",
|
|
11594
|
+
"declaration": {
|
|
11595
|
+
"name": "AparteComposerState",
|
|
11596
|
+
"module": "./composer/index.js"
|
|
11597
|
+
}
|
|
11598
|
+
},
|
|
11599
|
+
{
|
|
11600
|
+
"kind": "js",
|
|
11601
|
+
"name": "AparteComposerChangeEventDetail",
|
|
11602
|
+
"declaration": {
|
|
11603
|
+
"name": "AparteComposerChangeEventDetail",
|
|
11604
|
+
"module": "./composer/index.js"
|
|
11605
|
+
}
|
|
11606
|
+
},
|
|
11607
|
+
{
|
|
11608
|
+
"kind": "js",
|
|
11609
|
+
"name": "AparteComposerPanelMode",
|
|
11610
|
+
"declaration": {
|
|
11611
|
+
"name": "AparteComposerPanelMode",
|
|
11612
|
+
"module": "./composer/index.js"
|
|
11613
|
+
}
|
|
11614
|
+
},
|
|
11615
|
+
{
|
|
11616
|
+
"kind": "js",
|
|
11617
|
+
"name": "AparteTypeToFocus",
|
|
11618
|
+
"declaration": {
|
|
11619
|
+
"name": "AparteTypeToFocus",
|
|
11620
|
+
"module": "./composer/index.js"
|
|
11621
|
+
}
|
|
11622
|
+
},
|
|
11623
|
+
{
|
|
11624
|
+
"kind": "js",
|
|
11625
|
+
"name": "AparteActionClickEventDetail",
|
|
11626
|
+
"declaration": {
|
|
11627
|
+
"name": "AparteActionClickEventDetail",
|
|
11628
|
+
"module": "./composer/index.js"
|
|
11629
|
+
}
|
|
11630
|
+
},
|
|
11631
|
+
{
|
|
11632
|
+
"kind": "js",
|
|
11633
|
+
"name": "AparteConversationList",
|
|
11634
|
+
"declaration": {
|
|
11635
|
+
"name": "AparteConversationList",
|
|
11636
|
+
"module": "./conversation-list/index.js"
|
|
11637
|
+
}
|
|
11638
|
+
},
|
|
11639
|
+
{
|
|
11640
|
+
"kind": "js",
|
|
11641
|
+
"name": "AparteConversationListItem",
|
|
11642
|
+
"declaration": {
|
|
11643
|
+
"name": "AparteConversationListItem",
|
|
11644
|
+
"module": "./conversation-list/index.js"
|
|
11645
|
+
}
|
|
11646
|
+
},
|
|
11647
|
+
{
|
|
11648
|
+
"kind": "js",
|
|
11649
|
+
"name": "AparteConversationSelectDetail",
|
|
11650
|
+
"declaration": {
|
|
11651
|
+
"name": "AparteConversationSelectDetail",
|
|
11652
|
+
"module": "./conversation-list/index.js"
|
|
11653
|
+
}
|
|
11654
|
+
},
|
|
11655
|
+
{
|
|
11656
|
+
"kind": "js",
|
|
11657
|
+
"name": "AparteConversationDeleteDetail",
|
|
11658
|
+
"declaration": {
|
|
11659
|
+
"name": "AparteConversationDeleteDetail",
|
|
11660
|
+
"module": "./conversation-list/index.js"
|
|
11661
|
+
}
|
|
11662
|
+
},
|
|
11663
|
+
{
|
|
11664
|
+
"kind": "js",
|
|
11665
|
+
"name": "AparteConversationArchiveDetail",
|
|
11666
|
+
"declaration": {
|
|
11667
|
+
"name": "AparteConversationArchiveDetail",
|
|
11668
|
+
"module": "./conversation-list/index.js"
|
|
11669
|
+
}
|
|
11670
|
+
},
|
|
11671
|
+
{
|
|
11672
|
+
"kind": "js",
|
|
11673
|
+
"name": "AparteConversationPinDetail",
|
|
11674
|
+
"declaration": {
|
|
11675
|
+
"name": "AparteConversationPinDetail",
|
|
11676
|
+
"module": "./conversation-list/index.js"
|
|
11677
|
+
}
|
|
11678
|
+
},
|
|
11679
|
+
{
|
|
11680
|
+
"kind": "js",
|
|
11681
|
+
"name": "AparteConversationRenameDetail",
|
|
11682
|
+
"declaration": {
|
|
11683
|
+
"name": "AparteConversationRenameDetail",
|
|
11684
|
+
"module": "./conversation-list/index.js"
|
|
11685
|
+
}
|
|
11686
|
+
},
|
|
11687
|
+
{
|
|
11688
|
+
"kind": "js",
|
|
11689
|
+
"name": "AparteConversationStatus",
|
|
11690
|
+
"declaration": {
|
|
11691
|
+
"name": "AparteConversationStatus",
|
|
11692
|
+
"module": "./conversation-list/index.js"
|
|
11693
|
+
}
|
|
11694
|
+
},
|
|
11695
|
+
{
|
|
11696
|
+
"kind": "js",
|
|
11697
|
+
"name": "AparteConversationStatusDetail",
|
|
11698
|
+
"declaration": {
|
|
11699
|
+
"name": "AparteConversationStatusDetail",
|
|
11700
|
+
"module": "./conversation-list/index.js"
|
|
11701
|
+
}
|
|
11702
|
+
},
|
|
11703
|
+
{
|
|
11704
|
+
"kind": "js",
|
|
11705
|
+
"name": "AparteSuggestions",
|
|
11706
|
+
"declaration": {
|
|
11707
|
+
"name": "AparteSuggestions",
|
|
11708
|
+
"module": "./suggestions/index.js"
|
|
11709
|
+
}
|
|
11710
|
+
},
|
|
11711
|
+
{
|
|
11712
|
+
"kind": "js",
|
|
11713
|
+
"name": "setupSuggestionBlocks",
|
|
11714
|
+
"declaration": {
|
|
11715
|
+
"name": "setupSuggestionBlocks",
|
|
11716
|
+
"module": "./suggestions/index.js"
|
|
11717
|
+
}
|
|
11718
|
+
},
|
|
11719
|
+
{
|
|
11720
|
+
"kind": "js",
|
|
11721
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
11722
|
+
"declaration": {
|
|
11723
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
11724
|
+
"module": "./suggestions/index.js"
|
|
11725
|
+
}
|
|
11726
|
+
},
|
|
11727
|
+
{
|
|
11728
|
+
"kind": "js",
|
|
11729
|
+
"name": "AparteSuggestion",
|
|
11730
|
+
"declaration": {
|
|
11731
|
+
"name": "AparteSuggestion",
|
|
11732
|
+
"module": "./suggestions/index.js"
|
|
11733
|
+
}
|
|
11734
|
+
},
|
|
11735
|
+
{
|
|
11736
|
+
"kind": "js",
|
|
11737
|
+
"name": "AparteSuggestionEventDetail",
|
|
11738
|
+
"declaration": {
|
|
11739
|
+
"name": "AparteSuggestionEventDetail",
|
|
11740
|
+
"module": "./suggestions/index.js"
|
|
11741
|
+
}
|
|
11742
|
+
},
|
|
11743
|
+
{
|
|
11744
|
+
"kind": "js",
|
|
11745
|
+
"name": "AparteContext",
|
|
11746
|
+
"declaration": {
|
|
11747
|
+
"name": "AparteContext",
|
|
11748
|
+
"module": "./context/index.js"
|
|
11749
|
+
}
|
|
11750
|
+
},
|
|
11751
|
+
{
|
|
11752
|
+
"kind": "js",
|
|
11753
|
+
"name": "AparteContextLevel",
|
|
11754
|
+
"declaration": {
|
|
11755
|
+
"name": "AparteContextLevel",
|
|
11756
|
+
"module": "./context/index.js"
|
|
11757
|
+
}
|
|
11758
|
+
},
|
|
11759
|
+
{
|
|
11760
|
+
"kind": "js",
|
|
11761
|
+
"name": "AparteContextThresholdEventDetail",
|
|
11762
|
+
"declaration": {
|
|
11763
|
+
"name": "AparteContextThresholdEventDetail",
|
|
11764
|
+
"module": "./context/index.js"
|
|
11765
|
+
}
|
|
11766
|
+
},
|
|
11767
|
+
{
|
|
11768
|
+
"kind": "js",
|
|
11769
|
+
"name": "AparteScrollRail",
|
|
11770
|
+
"declaration": {
|
|
11771
|
+
"name": "AparteScrollRail",
|
|
11772
|
+
"module": "./scroll-rail/index.js"
|
|
11773
|
+
}
|
|
11774
|
+
},
|
|
11775
|
+
{
|
|
11776
|
+
"kind": "js",
|
|
11777
|
+
"name": "AparteScrollRailJumpDetail",
|
|
11778
|
+
"declaration": {
|
|
11779
|
+
"name": "AparteScrollRailJumpDetail",
|
|
11780
|
+
"module": "./scroll-rail/index.js"
|
|
11781
|
+
}
|
|
11782
|
+
},
|
|
11783
|
+
{
|
|
11784
|
+
"kind": "js",
|
|
11785
|
+
"name": "AparteScrollRailEvery",
|
|
11786
|
+
"declaration": {
|
|
11787
|
+
"name": "AparteScrollRailEvery",
|
|
11788
|
+
"module": "./scroll-rail/index.js"
|
|
11789
|
+
}
|
|
11790
|
+
},
|
|
11791
|
+
{
|
|
11792
|
+
"kind": "js",
|
|
11793
|
+
"name": "AparteSidebar",
|
|
11794
|
+
"declaration": {
|
|
11795
|
+
"name": "AparteSidebar",
|
|
11796
|
+
"module": "./sidebar/index.js"
|
|
11797
|
+
}
|
|
11798
|
+
},
|
|
11799
|
+
{
|
|
11800
|
+
"kind": "js",
|
|
11801
|
+
"name": "AparteSidebarToggleDetail",
|
|
11802
|
+
"declaration": {
|
|
11803
|
+
"name": "AparteSidebarToggleDetail",
|
|
11804
|
+
"module": "./sidebar/index.js"
|
|
11805
|
+
}
|
|
11806
|
+
},
|
|
11807
|
+
{
|
|
11808
|
+
"kind": "js",
|
|
11809
|
+
"name": "AparteSplit",
|
|
11810
|
+
"declaration": {
|
|
11811
|
+
"name": "AparteSplit",
|
|
11812
|
+
"module": "./split/index.js"
|
|
11813
|
+
}
|
|
11814
|
+
},
|
|
11815
|
+
{
|
|
11816
|
+
"kind": "js",
|
|
11817
|
+
"name": "AparteSplitResizeDetail",
|
|
11818
|
+
"declaration": {
|
|
11819
|
+
"name": "AparteSplitResizeDetail",
|
|
11820
|
+
"module": "./split/index.js"
|
|
11821
|
+
}
|
|
11822
|
+
},
|
|
11823
|
+
{
|
|
11824
|
+
"kind": "js",
|
|
11825
|
+
"name": "AparteLauncher",
|
|
11826
|
+
"declaration": {
|
|
11827
|
+
"name": "AparteLauncher",
|
|
11828
|
+
"module": "./launcher/index.js"
|
|
11829
|
+
}
|
|
11830
|
+
},
|
|
11831
|
+
{
|
|
11832
|
+
"kind": "js",
|
|
11833
|
+
"name": "AparteLauncherToggleDetail",
|
|
11834
|
+
"declaration": {
|
|
11835
|
+
"name": "AparteLauncherToggleDetail",
|
|
11836
|
+
"module": "./launcher/index.js"
|
|
11837
|
+
}
|
|
11838
|
+
}
|
|
11839
|
+
]
|
|
11840
|
+
},
|
|
11841
|
+
{
|
|
11842
|
+
"kind": "javascript-module",
|
|
11843
|
+
"path": "src/context/checkpoint-state.ts",
|
|
11844
|
+
"declarations": [
|
|
11845
|
+
{
|
|
11846
|
+
"kind": "function",
|
|
11847
|
+
"name": "chatIdOf",
|
|
11848
|
+
"return": {
|
|
11849
|
+
"type": {
|
|
11850
|
+
"text": "string | undefined"
|
|
11851
|
+
}
|
|
11852
|
+
},
|
|
11853
|
+
"parameters": [
|
|
11854
|
+
{
|
|
11855
|
+
"name": "el",
|
|
11856
|
+
"type": {
|
|
11857
|
+
"text": "Element"
|
|
11858
|
+
}
|
|
11859
|
+
}
|
|
11860
|
+
],
|
|
11861
|
+
"description": "The id of the chat `el` belongs to: the nearest `<aparte-chat>` or `[data-aparte-chat]`\nabove it that HAS one, `undefined` for an unnamed chat. The same climb the bubble, the\ncomposer and the gauge make for their own events, so an event naming a chat and an element\nanswering for it agree about which is which."
|
|
11862
|
+
},
|
|
11863
|
+
{
|
|
11864
|
+
"kind": "class",
|
|
11865
|
+
"description": "Says on the bubble what a compaction is doing to the message it will sit on.\n\nA checkpoint is written onto the first message the model keeps verbatim, and the\ncompaction names that message the moment it starts (`aparte-compact-start.messageId`).\nFrom then on, until the summary arrives or fails, that bubble carries\n`data-checkpoint=\"pending\"` and the separator above it says the context is being\nsummarised; on a failure it carries `data-checkpoint=\"failed\"` (and\n`data-checkpoint-reason`) and the separator offers Retry. The bubble draws it — this only\nsets the two attributes, so the vanilla viewport and the framework host, which have\ndifferent bubbles to find and different lifetimes, share one rule for WHEN.\n\nWhat clears it, and what must not:\n- a `-done` for that very message, unless it was skipped (a skipped run did not write\n what the pending line announced, so the line stays until something answers it);\n- the next `-start`, which names a message of its own;\n- a conversation switch (`clear()`), because the bubble is not that chat's any more.\nA `-done` or `-error` for another message, or for another chat on the page, changes\nnothing: two chats compact at the same time, and one of them finishing must not wipe the\nline of the other. A chat with no id is addressed by events with no id, as everywhere, and\nan event is acted on only when its message is in this chat's transcript (`owns`).\n\nThe state is remembered here as well as written to the bubble, because under a framework\nthe bubble can be created after the event (`reapply()` writes it again on every sync).",
|
|
11866
|
+
"name": "CheckpointStateWatcher",
|
|
11867
|
+
"members": [
|
|
11868
|
+
{
|
|
11869
|
+
"kind": "field",
|
|
11870
|
+
"name": "_messageId",
|
|
11871
|
+
"type": {
|
|
11872
|
+
"text": "string | null"
|
|
11873
|
+
},
|
|
11874
|
+
"privacy": "private",
|
|
11875
|
+
"default": "null"
|
|
11876
|
+
},
|
|
11877
|
+
{
|
|
11878
|
+
"kind": "field",
|
|
11879
|
+
"name": "_state",
|
|
11880
|
+
"type": {
|
|
11881
|
+
"text": "'pending' | 'failed' | null"
|
|
11882
|
+
},
|
|
11883
|
+
"privacy": "private",
|
|
11884
|
+
"default": "null"
|
|
11885
|
+
},
|
|
11886
|
+
{
|
|
11887
|
+
"kind": "field",
|
|
11888
|
+
"name": "_reason",
|
|
11889
|
+
"type": {
|
|
11890
|
+
"text": "string"
|
|
11891
|
+
},
|
|
11892
|
+
"privacy": "private",
|
|
11893
|
+
"default": "''"
|
|
11894
|
+
},
|
|
11895
|
+
{
|
|
11896
|
+
"kind": "field",
|
|
11897
|
+
"name": "_marked",
|
|
11898
|
+
"type": {
|
|
11899
|
+
"text": "HTMLElement | null"
|
|
11876
11900
|
},
|
|
11877
11901
|
"privacy": "private",
|
|
11878
11902
|
"default": "null",
|
|
@@ -15668,6 +15692,18 @@
|
|
|
15668
15692
|
"default": "`<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5.5 14.5 12 8l6.5 6.5\"/></svg>`",
|
|
15669
15693
|
"description": "Collapse/show less icon"
|
|
15670
15694
|
},
|
|
15695
|
+
{
|
|
15696
|
+
"kind": "variable",
|
|
15697
|
+
"name": "maximizeIcon",
|
|
15698
|
+
"default": "`<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14 4.5h5.5V10\"/><path d=\"M10 19.5H4.5V14\"/><path d=\"m19.5 4.5-6 6\"/><path d=\"m4.5 19.5 6-6\"/></svg>`",
|
|
15699
|
+
"description": "Maximize — two corners pulled outward, along the diagonal."
|
|
15700
|
+
},
|
|
15701
|
+
{
|
|
15702
|
+
"kind": "variable",
|
|
15703
|
+
"name": "minimizeIcon",
|
|
15704
|
+
"default": "`<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19.5 10H14V4.5\"/><path d=\"M4.5 14H10v5.5\"/><path d=\"m14 10 5.5-5.5\"/><path d=\"m10 14-5.5 5.5\"/></svg>`",
|
|
15705
|
+
"description": "Minimize — the same two corners pushed back in, the inverse of `maximize`."
|
|
15706
|
+
},
|
|
15671
15707
|
{
|
|
15672
15708
|
"kind": "variable",
|
|
15673
15709
|
"name": "terminalIcon",
|
|
@@ -15822,9 +15858,9 @@
|
|
|
15822
15858
|
"kind": "variable",
|
|
15823
15859
|
"name": "APARTE_ICON_GLYPHS",
|
|
15824
15860
|
"type": {
|
|
15825
|
-
"text": "{\n copy: copyIcon,\n check: checkIcon,\n send: sendIcon,\n loading: loadingIcon,\n error: errorIcon,\n expand: expandIcon,\n collapse: collapseIcon,\n terminal: terminalIcon,\n paperclip: paperclipIcon,\n image: imageIcon,\n file: fileIcon,\n scrollDown: scrollDownIcon,\n retry: retryIcon,\n edit: editIcon,\n thumbUp: thumbUpIcon,\n thumbDown: thumbDownIcon,\n prevBranch: prevBranchIcon,\n nextBranch: nextBranchIcon,\n tool: toolIcon,\n close: closeIcon,\n stop: stopIcon,\n pause: pauseIcon,\n info: infoIcon,\n archive: archiveIcon,\n unarchive: unarchiveIcon,\n download: downloadIcon,\n more: moreIcon,\n pin: pinIcon,\n trash: trashIcon,\n menu: menuIcon,\n alertTriangle: alertTriangleIcon,\n messageSquare: messageSquareIcon,\n}"
|
|
15861
|
+
"text": "{\n copy: copyIcon,\n check: checkIcon,\n send: sendIcon,\n loading: loadingIcon,\n error: errorIcon,\n expand: expandIcon,\n collapse: collapseIcon,\n maximize: maximizeIcon,\n minimize: minimizeIcon,\n terminal: terminalIcon,\n paperclip: paperclipIcon,\n image: imageIcon,\n file: fileIcon,\n scrollDown: scrollDownIcon,\n retry: retryIcon,\n edit: editIcon,\n thumbUp: thumbUpIcon,\n thumbDown: thumbDownIcon,\n prevBranch: prevBranchIcon,\n nextBranch: nextBranchIcon,\n tool: toolIcon,\n close: closeIcon,\n stop: stopIcon,\n pause: pauseIcon,\n info: infoIcon,\n archive: archiveIcon,\n unarchive: unarchiveIcon,\n download: downloadIcon,\n more: moreIcon,\n pin: pinIcon,\n trash: trashIcon,\n menu: menuIcon,\n alertTriangle: alertTriangleIcon,\n messageSquare: messageSquareIcon,\n}"
|
|
15826
15862
|
},
|
|
15827
|
-
"default": "{ copy: copyIcon, check: checkIcon, send: sendIcon, loading: loadingIcon, error: errorIcon, expand: expandIcon, collapse: collapseIcon, terminal: terminalIcon, paperclip: paperclipIcon, image: imageIcon, file: fileIcon, scrollDown: scrollDownIcon, retry: retryIcon, edit: editIcon, thumbUp: thumbUpIcon, thumbDown: thumbDownIcon, prevBranch: prevBranchIcon, nextBranch: nextBranchIcon, tool: toolIcon, close: closeIcon, stop: stopIcon, pause: pauseIcon, info: infoIcon, archive: archiveIcon, unarchive: unarchiveIcon, download: downloadIcon, more: moreIcon, pin: pinIcon, trash: trashIcon, menu: menuIcon, alertTriangle: alertTriangleIcon, messageSquare: messageSquareIcon, }"
|
|
15863
|
+
"default": "{ copy: copyIcon, check: checkIcon, send: sendIcon, loading: loadingIcon, error: errorIcon, expand: expandIcon, collapse: collapseIcon, maximize: maximizeIcon, minimize: minimizeIcon, terminal: terminalIcon, paperclip: paperclipIcon, image: imageIcon, file: fileIcon, scrollDown: scrollDownIcon, retry: retryIcon, edit: editIcon, thumbUp: thumbUpIcon, thumbDown: thumbDownIcon, prevBranch: prevBranchIcon, nextBranch: nextBranchIcon, tool: toolIcon, close: closeIcon, stop: stopIcon, pause: pauseIcon, info: infoIcon, archive: archiveIcon, unarchive: unarchiveIcon, download: downloadIcon, more: moreIcon, pin: pinIcon, trash: trashIcon, menu: menuIcon, alertTriangle: alertTriangleIcon, messageSquare: messageSquareIcon, }"
|
|
15828
15864
|
}
|
|
15829
15865
|
],
|
|
15830
15866
|
"exports": [
|
|
@@ -15884,6 +15920,22 @@
|
|
|
15884
15920
|
"module": "src/icons/glyphs.ts"
|
|
15885
15921
|
}
|
|
15886
15922
|
},
|
|
15923
|
+
{
|
|
15924
|
+
"kind": "js",
|
|
15925
|
+
"name": "maximizeIcon",
|
|
15926
|
+
"declaration": {
|
|
15927
|
+
"name": "maximizeIcon",
|
|
15928
|
+
"module": "src/icons/glyphs.ts"
|
|
15929
|
+
}
|
|
15930
|
+
},
|
|
15931
|
+
{
|
|
15932
|
+
"kind": "js",
|
|
15933
|
+
"name": "minimizeIcon",
|
|
15934
|
+
"declaration": {
|
|
15935
|
+
"name": "minimizeIcon",
|
|
15936
|
+
"module": "src/icons/glyphs.ts"
|
|
15937
|
+
}
|
|
15938
|
+
},
|
|
15887
15939
|
{
|
|
15888
15940
|
"kind": "js",
|
|
15889
15941
|
"name": "terminalIcon",
|
|
@@ -16117,6 +16169,63 @@
|
|
|
16117
16169
|
}
|
|
16118
16170
|
]
|
|
16119
16171
|
},
|
|
16172
|
+
{
|
|
16173
|
+
"kind": "javascript-module",
|
|
16174
|
+
"path": "src/interop/default-on-attributes.ts",
|
|
16175
|
+
"declarations": [
|
|
16176
|
+
{
|
|
16177
|
+
"kind": "variable",
|
|
16178
|
+
"name": "APARTE_DEFAULT_ON_ATTRIBUTES",
|
|
16179
|
+
"type": {
|
|
16180
|
+
"text": "Readonly<Record<string, readonly string[]>>"
|
|
16181
|
+
},
|
|
16182
|
+
"default": "{ 'aparte-composer-add-attachment': ['multiple'], 'aparte-composer': ['submit-on-enter'], 'aparte-launcher': ['header'], }",
|
|
16183
|
+
"description": "The boolean attributes whose default is ON, turned off only by the string `\"false\"`.\n\nThe element reads them as `getAttribute(name) !== 'false'`, so an ABSENT attribute is ON,\nand a prop bag's `false` that removes it — what a presence attribute wants — turns the\ncontrol on instead. `applyElementProps` reads this list to write `\"false\"` there, which is\nthe path every wrapper's `AparteUi` takes. The Angular directives are generated from the\nsame knowledge (`threeStateBooleans` in `element-bindings.config.mjs`), and\n`default-on-attributes.test.ts` keeps the two lists equal: a runtime list cannot be read from\nthe generated registry, which is built, not committed.\n\nInternal: not exported from the package barrel."
|
|
16184
|
+
},
|
|
16185
|
+
{
|
|
16186
|
+
"kind": "function",
|
|
16187
|
+
"name": "isDefaultOn",
|
|
16188
|
+
"return": {
|
|
16189
|
+
"type": {
|
|
16190
|
+
"text": "boolean"
|
|
16191
|
+
}
|
|
16192
|
+
},
|
|
16193
|
+
"parameters": [
|
|
16194
|
+
{
|
|
16195
|
+
"name": "el",
|
|
16196
|
+
"type": {
|
|
16197
|
+
"text": "Element"
|
|
16198
|
+
}
|
|
16199
|
+
},
|
|
16200
|
+
{
|
|
16201
|
+
"name": "name",
|
|
16202
|
+
"type": {
|
|
16203
|
+
"text": "string"
|
|
16204
|
+
}
|
|
16205
|
+
}
|
|
16206
|
+
],
|
|
16207
|
+
"description": "Whether `name` is ON by default on `el`, so its OFF is the string `\"false\"`."
|
|
16208
|
+
}
|
|
16209
|
+
],
|
|
16210
|
+
"exports": [
|
|
16211
|
+
{
|
|
16212
|
+
"kind": "js",
|
|
16213
|
+
"name": "APARTE_DEFAULT_ON_ATTRIBUTES",
|
|
16214
|
+
"declaration": {
|
|
16215
|
+
"name": "APARTE_DEFAULT_ON_ATTRIBUTES",
|
|
16216
|
+
"module": "src/interop/default-on-attributes.ts"
|
|
16217
|
+
}
|
|
16218
|
+
},
|
|
16219
|
+
{
|
|
16220
|
+
"kind": "js",
|
|
16221
|
+
"name": "isDefaultOn",
|
|
16222
|
+
"declaration": {
|
|
16223
|
+
"name": "isDefaultOn",
|
|
16224
|
+
"module": "src/interop/default-on-attributes.ts"
|
|
16225
|
+
}
|
|
16226
|
+
}
|
|
16227
|
+
]
|
|
16228
|
+
},
|
|
16120
16229
|
{
|
|
16121
16230
|
"kind": "javascript-module",
|
|
16122
16231
|
"path": "src/interop/defer-hydration.ts",
|
|
@@ -24711,6 +24820,13 @@
|
|
|
24711
24820
|
},
|
|
24712
24821
|
"description": "Add the file picker + chips strip to the default composition (opt-in: the host must consume the files — an `AparteClient` does, a hand-rolled loop must read `event.detail.files`)"
|
|
24713
24822
|
},
|
|
24823
|
+
{
|
|
24824
|
+
"name": "type-to-focus",
|
|
24825
|
+
"type": {
|
|
24826
|
+
"text": "'chat'|'page'|'off'"
|
|
24827
|
+
},
|
|
24828
|
+
"description": "Forwarded to the composer: a key typed while no field has the caret returns to the input. `chat` (the default): only after a click or a selection in the chat. `page`: from anywhere in the page. `off`: never. The four wrappers expose it as `typeToFocus`."
|
|
24829
|
+
},
|
|
24714
24830
|
{
|
|
24715
24831
|
"type": {
|
|
24716
24832
|
"text": "boolean"
|
|
@@ -26779,6 +26895,16 @@
|
|
|
26779
26895
|
},
|
|
26780
26896
|
"description": "Mirror `locale.direction` onto ourselves, so everything inside — input, buttons,\nthe toolbar row and whatever the consumer put in it — inherits it.\n\nWithout it an RTL locale flips the conversation and leaves the composer\nleft-to-right. It is also what makes the toolbar's placement idiom real:\n`margin-inline-start: auto` in a subtree that inherits no direction is just\n`margin-left`.\n\nOne attribute on the host rather than a stamp per child: inheritance is the\nmechanism, so nothing needs to know about the consumer's markup."
|
|
26781
26897
|
},
|
|
26898
|
+
{
|
|
26899
|
+
"kind": "field",
|
|
26900
|
+
"name": "_offTypeToFocus",
|
|
26901
|
+
"type": {
|
|
26902
|
+
"text": "(() => void) | null"
|
|
26903
|
+
},
|
|
26904
|
+
"privacy": "private",
|
|
26905
|
+
"default": "null",
|
|
26906
|
+
"description": "Stops the document listeners of `type-to-focus`; null while disconnected."
|
|
26907
|
+
},
|
|
26782
26908
|
{
|
|
26783
26909
|
"kind": "field",
|
|
26784
26910
|
"name": "value",
|
|
@@ -27320,6 +27446,13 @@
|
|
|
27320
27446
|
"description": "Enter sends and Shift+Enter breaks the line (the default); set it to the string `\"false\"` to swap them. Read lazily by the `submitOnEnter` getter rather than observed.",
|
|
27321
27447
|
"name": "submit-on-enter"
|
|
27322
27448
|
},
|
|
27449
|
+
{
|
|
27450
|
+
"type": {
|
|
27451
|
+
"text": "'chat'|'page'|'off'"
|
|
27452
|
+
},
|
|
27453
|
+
"description": "A key typed while no field has the caret returns to the input. `chat` (the default): only after a click or a selection in the chat, so the page around an embedded chat keeps its own keys. `page`: from anywhere in the page, for an app whose page is the chat. `off`: never. Read at every key rather than observed.",
|
|
27454
|
+
"name": "type-to-focus"
|
|
27455
|
+
},
|
|
27323
27456
|
{
|
|
27324
27457
|
"type": {
|
|
27325
27458
|
"text": "boolean"
|
|
@@ -27620,6 +27753,14 @@
|
|
|
27620
27753
|
"module": "./aparte-composer.js"
|
|
27621
27754
|
}
|
|
27622
27755
|
},
|
|
27756
|
+
{
|
|
27757
|
+
"kind": "js",
|
|
27758
|
+
"name": "AparteTypeToFocus",
|
|
27759
|
+
"declaration": {
|
|
27760
|
+
"name": "AparteTypeToFocus",
|
|
27761
|
+
"module": "./type-to-focus.js"
|
|
27762
|
+
}
|
|
27763
|
+
},
|
|
27623
27764
|
{
|
|
27624
27765
|
"kind": "js",
|
|
27625
27766
|
"name": "AparteComposerInput",
|
|
@@ -27686,6 +27827,40 @@
|
|
|
27686
27827
|
}
|
|
27687
27828
|
]
|
|
27688
27829
|
},
|
|
27830
|
+
{
|
|
27831
|
+
"kind": "javascript-module",
|
|
27832
|
+
"path": "src/components/composer/type-to-focus.ts",
|
|
27833
|
+
"declarations": [
|
|
27834
|
+
{
|
|
27835
|
+
"kind": "function",
|
|
27836
|
+
"name": "installTypeToFocus",
|
|
27837
|
+
"return": {
|
|
27838
|
+
"type": {
|
|
27839
|
+
"text": "() => void"
|
|
27840
|
+
}
|
|
27841
|
+
},
|
|
27842
|
+
"parameters": [
|
|
27843
|
+
{
|
|
27844
|
+
"name": "composer",
|
|
27845
|
+
"type": {
|
|
27846
|
+
"text": "HTMLElement"
|
|
27847
|
+
}
|
|
27848
|
+
}
|
|
27849
|
+
],
|
|
27850
|
+
"description": "Listen for the composer; the function returned stops listening. The chat a composer\nanswers for is the one it sits in, else the one its `target` names, and always itself."
|
|
27851
|
+
}
|
|
27852
|
+
],
|
|
27853
|
+
"exports": [
|
|
27854
|
+
{
|
|
27855
|
+
"kind": "js",
|
|
27856
|
+
"name": "installTypeToFocus",
|
|
27857
|
+
"declaration": {
|
|
27858
|
+
"name": "installTypeToFocus",
|
|
27859
|
+
"module": "src/components/composer/type-to-focus.ts"
|
|
27860
|
+
}
|
|
27861
|
+
}
|
|
27862
|
+
]
|
|
27863
|
+
},
|
|
27689
27864
|
{
|
|
27690
27865
|
"kind": "javascript-module",
|
|
27691
27866
|
"path": "src/components/context/aparte-context.ts",
|
|
@@ -29479,7 +29654,7 @@
|
|
|
29479
29654
|
"declarations": [
|
|
29480
29655
|
{
|
|
29481
29656
|
"kind": "class",
|
|
29482
|
-
"description": "A chat that floats in a corner of the page — the support widget every product site has,\nas an element. A round button sits at the bottom of the window, on the inline-end side;\na click opens the chat above it as a card, and a second click, Escape or any control\nmarked `data-aparte-launcher-close` inside closes it again.\n\nChildren are yours: put the chat in it — an `<aparte-chat>`, or your own card with a\nheader above one. The element adds its button after them and shows them only while it is\nopen, so a closed launcher keeps the chat mounted (the conversation and the client stay)\nbut out of the tab order and the accessibility tree. Nothing is stored: listen to\n`aparte-launcher-toggle` to remember the state.\n\n**On a phone.** Under `breakpoint` (30rem of window, wide or high, unless you set a width) the open chat\nfills the window as a sheet, Tab stays inside it
|
|
29657
|
+
"description": "A chat that floats in a corner of the page — the support widget every product site has,\nas an element. A round button sits at the bottom of the window, on the inline-end side;\na click opens the chat above it as a card, and a second click, Escape or any control\nmarked `data-aparte-launcher-close` inside closes it again.\n\nChildren are yours: put the chat in it — an `<aparte-chat>`, or your own card with a\nheader above one. The element adds its button after them and shows them only while it is\nopen, so a closed launcher keeps the chat mounted (the conversation and the client stay)\nbut out of the tab order and the accessibility tree. Nothing is stored: listen to\n`aparte-launcher-toggle` to remember the state.\n\n**The header.** Over a card that has none, the element draws one: the assistant's avatar,\nas the config's avatar provider draws it in the messages (`setAvatarProvider`) and none\nwithout one, a title (`heading`, else the button's `label`, else the locale's\n`launcherHeading`), a line under it (`subheading`), and a ✕ that\ncloses the chat. A card that brings its own keeps it, and the element draws none: a\n`<header>` at the card's top level. `header=\"false\"` takes it away in any case. It is a `div` wearing the\n`aparte-app-header` recipe rather than a `<header>`, which outside a section is the\npage's banner landmark.\n\n**Maximize.** `maximizable` adds a button to that header which makes the open chat fill\nthe window — the sheet a phone gets, on any window — and brings the card back; so does\nEscape, before a second Escape closes the chat.\n`maximizable=\"panel\"` keeps the page in view instead: maximized, the chat is a panel the\nwindow's height along its inline-end edge, `--aparte-launcher-panel-width` wide. The\nbutton's name changes with the state, the way a window's Maximize turns into Restore: the\nlocale's `launcherMaximize`, then `launcherRestore`. In a header of your own, mark any\ncontrol `data-aparte-launcher-maximize`: it toggles the same state, and the element keeps\nits `aria-pressed`. The state is `maximized`, reflected and settable; `covers` says whether\nthe open chat covers the whole window, and `aparte-launcher-toggle` reports both. A sheet\nunder the breakpoint already fills the window, so it hides every maximize control.\n\n**On a phone.** Under `breakpoint` (30rem of window, wide or high, unless you set a width) the open chat\nfills the window as a sheet, under its header, and Tab stays inside it. The header's ✕\ncloses it; without a close control in the card (`header=\"false\"`), the button moves to\nthe top corner to close it. The element reflects `data-sheet` while the window is that\nnarrow.\n\n**The button** shows a speech bubble, or the bubble and your `label` (`label=\"Help\"`)\nas a pill; it is named by the locale's `launcherOpen`/`launcherClose` when it shows no\ntext. Its two icons are the `launcherOpen` and `launcherClose` icons when the config holds\nthem (`registerIcons`), else `messageSquare` and `close` — so a theme redraws this button\nwithout redrawing every close button in the chat. Opening with the button hands the focus to the composer, or to the first control of\nyour card; `show()` and `open` set from a script move no focus, so a page that restores the\nstate on load does not steal it. Closing gives the focus back to the button when it was\ninside.\n\n**Server rendering.** The button and the header are drawn when the element connects,\nwhich on a server-rendered page is before the framework hydrates, and hydration removes\nwhat it did not render. Put `defer-hydration` on the launcher in the server's HTML and call\n`releaseDeferredHydration` once your framework has hydrated, so the element draws itself\nthen; if something takes the button or the header out anyway, the element puts it back.",
|
|
29483
29658
|
"name": "AparteLauncher",
|
|
29484
29659
|
"cssProperties": [
|
|
29485
29660
|
{
|
|
@@ -29488,10 +29663,20 @@
|
|
|
29488
29663
|
"default": "23.75rem"
|
|
29489
29664
|
},
|
|
29490
29665
|
{
|
|
29491
|
-
"description": "Height of the open card, shortened to fit a short window.",
|
|
29666
|
+
"description": "Height of the open card, the element's header included, shortened to fit a short window.",
|
|
29492
29667
|
"name": "--aparte-launcher-height",
|
|
29493
29668
|
"default": "37.5rem"
|
|
29494
29669
|
},
|
|
29670
|
+
{
|
|
29671
|
+
"description": "Width of the maximized chat with `maximizable=\"panel\"`, never wider than the window.",
|
|
29672
|
+
"name": "--aparte-launcher-panel-width",
|
|
29673
|
+
"default": "36rem"
|
|
29674
|
+
},
|
|
29675
|
+
{
|
|
29676
|
+
"description": "Least height of the element's header, which grows with what a theme puts in it (a larger title, more padding); the card's height includes it.",
|
|
29677
|
+
"name": "--aparte-launcher-header-height",
|
|
29678
|
+
"default": "3.5rem"
|
|
29679
|
+
},
|
|
29495
29680
|
{
|
|
29496
29681
|
"description": "Distance from the window's edges to the button and the card.",
|
|
29497
29682
|
"name": "--aparte-launcher-offset",
|
|
@@ -29518,6 +29703,80 @@
|
|
|
29518
29703
|
"privacy": "private",
|
|
29519
29704
|
"default": "null"
|
|
29520
29705
|
},
|
|
29706
|
+
{
|
|
29707
|
+
"kind": "field",
|
|
29708
|
+
"name": "_header",
|
|
29709
|
+
"type": {
|
|
29710
|
+
"text": "HTMLElement | null"
|
|
29711
|
+
},
|
|
29712
|
+
"privacy": "private",
|
|
29713
|
+
"default": "null",
|
|
29714
|
+
"description": "The element's header and the parts of it a render updates. Built once and updated in\nplace, never redrawn: the maximize button is what the person just pressed, and a new\nnode would take the focus out from under them."
|
|
29715
|
+
},
|
|
29716
|
+
{
|
|
29717
|
+
"kind": "field",
|
|
29718
|
+
"name": "_avatar",
|
|
29719
|
+
"type": {
|
|
29720
|
+
"text": "HTMLElement | null"
|
|
29721
|
+
},
|
|
29722
|
+
"privacy": "private",
|
|
29723
|
+
"default": "null"
|
|
29724
|
+
},
|
|
29725
|
+
{
|
|
29726
|
+
"kind": "field",
|
|
29727
|
+
"name": "_avatarDrawnBy",
|
|
29728
|
+
"type": {
|
|
29729
|
+
"text": "AparteAvatarProvider | null"
|
|
29730
|
+
},
|
|
29731
|
+
"privacy": "private",
|
|
29732
|
+
"default": "null",
|
|
29733
|
+
"description": "The provider that drew the header's avatar, and what it returned to undo it."
|
|
29734
|
+
},
|
|
29735
|
+
{
|
|
29736
|
+
"kind": "field",
|
|
29737
|
+
"name": "_avatarCleanup",
|
|
29738
|
+
"type": {
|
|
29739
|
+
"text": "(() => void) | null"
|
|
29740
|
+
},
|
|
29741
|
+
"privacy": "private",
|
|
29742
|
+
"default": "null"
|
|
29743
|
+
},
|
|
29744
|
+
{
|
|
29745
|
+
"kind": "field",
|
|
29746
|
+
"name": "_title",
|
|
29747
|
+
"type": {
|
|
29748
|
+
"text": "HTMLElement | null"
|
|
29749
|
+
},
|
|
29750
|
+
"privacy": "private",
|
|
29751
|
+
"default": "null"
|
|
29752
|
+
},
|
|
29753
|
+
{
|
|
29754
|
+
"kind": "field",
|
|
29755
|
+
"name": "_subtitle",
|
|
29756
|
+
"type": {
|
|
29757
|
+
"text": "HTMLElement | null"
|
|
29758
|
+
},
|
|
29759
|
+
"privacy": "private",
|
|
29760
|
+
"default": "null"
|
|
29761
|
+
},
|
|
29762
|
+
{
|
|
29763
|
+
"kind": "field",
|
|
29764
|
+
"name": "_maximize",
|
|
29765
|
+
"type": {
|
|
29766
|
+
"text": "HTMLButtonElement | null"
|
|
29767
|
+
},
|
|
29768
|
+
"privacy": "private",
|
|
29769
|
+
"default": "null"
|
|
29770
|
+
},
|
|
29771
|
+
{
|
|
29772
|
+
"kind": "field",
|
|
29773
|
+
"name": "_closeControl",
|
|
29774
|
+
"type": {
|
|
29775
|
+
"text": "HTMLButtonElement | null"
|
|
29776
|
+
},
|
|
29777
|
+
"privacy": "private",
|
|
29778
|
+
"default": "null"
|
|
29779
|
+
},
|
|
29521
29780
|
{
|
|
29522
29781
|
"kind": "field",
|
|
29523
29782
|
"name": "_childWatch",
|
|
@@ -29544,44 +29803,79 @@
|
|
|
29544
29803
|
"type": {
|
|
29545
29804
|
"text": "MediaQueryList | null"
|
|
29546
29805
|
},
|
|
29547
|
-
"privacy": "private",
|
|
29548
|
-
"default": "null"
|
|
29806
|
+
"privacy": "private",
|
|
29807
|
+
"default": "null"
|
|
29808
|
+
},
|
|
29809
|
+
{
|
|
29810
|
+
"kind": "field",
|
|
29811
|
+
"name": "_lastOpen",
|
|
29812
|
+
"type": {
|
|
29813
|
+
"text": "boolean | null"
|
|
29814
|
+
},
|
|
29815
|
+
"privacy": "private",
|
|
29816
|
+
"default": "null"
|
|
29817
|
+
},
|
|
29818
|
+
{
|
|
29819
|
+
"kind": "field",
|
|
29820
|
+
"name": "_ready",
|
|
29821
|
+
"type": {
|
|
29822
|
+
"text": "boolean"
|
|
29823
|
+
},
|
|
29824
|
+
"privacy": "private",
|
|
29825
|
+
"default": "false",
|
|
29826
|
+
"description": "`connectedCallback` has run. During an UPGRADE `attributeChangedCallback` fires for\nevery authored attribute before it — `<aparte-launcher open>` server-rendered and\nupgraded when the module loads — and announcing a toggle there tells the host its\nchat just opened when all that happened is that the markup was read."
|
|
29827
|
+
},
|
|
29828
|
+
{
|
|
29829
|
+
"kind": "field",
|
|
29830
|
+
"name": "open",
|
|
29831
|
+
"type": {
|
|
29832
|
+
"text": "boolean"
|
|
29833
|
+
},
|
|
29834
|
+
"description": "The chat is open."
|
|
29835
|
+
},
|
|
29836
|
+
{
|
|
29837
|
+
"kind": "field",
|
|
29838
|
+
"name": "sheet",
|
|
29839
|
+
"type": {
|
|
29840
|
+
"text": "boolean"
|
|
29841
|
+
},
|
|
29842
|
+
"description": "True while the window is under the breakpoint, where the open chat fills it.",
|
|
29843
|
+
"readonly": true
|
|
29549
29844
|
},
|
|
29550
29845
|
{
|
|
29551
29846
|
"kind": "field",
|
|
29552
|
-
"name": "
|
|
29847
|
+
"name": "maximized",
|
|
29553
29848
|
"type": {
|
|
29554
|
-
"text": "boolean
|
|
29849
|
+
"text": "boolean"
|
|
29555
29850
|
},
|
|
29556
|
-
"
|
|
29557
|
-
"default": "null"
|
|
29851
|
+
"description": "The open chat is maximized: the whole window, or a panel along its edge with `maximizable=\"panel\"`."
|
|
29558
29852
|
},
|
|
29559
29853
|
{
|
|
29560
29854
|
"kind": "field",
|
|
29561
|
-
"name": "
|
|
29855
|
+
"name": "covers",
|
|
29562
29856
|
"type": {
|
|
29563
29857
|
"text": "boolean"
|
|
29564
29858
|
},
|
|
29565
|
-
"
|
|
29566
|
-
"
|
|
29567
|
-
"description": "`connectedCallback` has run. During an UPGRADE `attributeChangedCallback` fires for\nevery authored attribute before it — `<aparte-launcher open>` server-rendered and\nupgraded when the module loads — and announcing a toggle there tells the host its\nchat just opened when all that happened is that the markup was read."
|
|
29859
|
+
"description": "The open chat covers the whole window: a sheet under the breakpoint, or maximized\nwithout `maximizable=\"panel\"`. What a page reads to take itself out of reach — the\nlauncher keeps Tab inside it meanwhile, and does not own the page.",
|
|
29860
|
+
"readonly": true
|
|
29568
29861
|
},
|
|
29569
29862
|
{
|
|
29570
29863
|
"kind": "field",
|
|
29571
|
-
"name": "
|
|
29864
|
+
"name": "_panel",
|
|
29572
29865
|
"type": {
|
|
29573
29866
|
"text": "boolean"
|
|
29574
29867
|
},
|
|
29575
|
-
"
|
|
29868
|
+
"privacy": "private",
|
|
29869
|
+
"description": "Maximized, the chat is a panel along the window's edge rather than the whole window.",
|
|
29870
|
+
"readonly": true
|
|
29576
29871
|
},
|
|
29577
29872
|
{
|
|
29578
29873
|
"kind": "field",
|
|
29579
|
-
"name": "
|
|
29874
|
+
"name": "header",
|
|
29580
29875
|
"type": {
|
|
29581
29876
|
"text": "boolean"
|
|
29582
29877
|
},
|
|
29583
|
-
"description": "
|
|
29584
|
-
"readonly": true
|
|
29878
|
+
"description": "The element draws its header over a card that has none. A property as well as the\nattribute because the attribute's OFF is a value, `\"false\"`, and a framework handed\n`header={false}` removes a boolean attribute instead — which here means ON."
|
|
29585
29879
|
},
|
|
29586
29880
|
{
|
|
29587
29881
|
"kind": "method",
|
|
@@ -29623,6 +29917,26 @@
|
|
|
29623
29917
|
},
|
|
29624
29918
|
"description": "Open the chat when it is closed, close it when it is open."
|
|
29625
29919
|
},
|
|
29920
|
+
{
|
|
29921
|
+
"kind": "method",
|
|
29922
|
+
"name": "maximize",
|
|
29923
|
+
"return": {
|
|
29924
|
+
"type": {
|
|
29925
|
+
"text": "void"
|
|
29926
|
+
}
|
|
29927
|
+
},
|
|
29928
|
+
"description": "Maximize the chat: the whole window, or a panel along its edge with\n`maximizable=\"panel\"`. Kept while the chat is closed, so it opens maximized."
|
|
29929
|
+
},
|
|
29930
|
+
{
|
|
29931
|
+
"kind": "method",
|
|
29932
|
+
"name": "restore",
|
|
29933
|
+
"return": {
|
|
29934
|
+
"type": {
|
|
29935
|
+
"text": "void"
|
|
29936
|
+
}
|
|
29937
|
+
},
|
|
29938
|
+
"description": "Bring the chat back to its card."
|
|
29939
|
+
},
|
|
29626
29940
|
{
|
|
29627
29941
|
"kind": "field",
|
|
29628
29942
|
"name": "_onButtonClick",
|
|
@@ -29634,6 +29948,28 @@
|
|
|
29634
29948
|
"name": "_onConfigChange",
|
|
29635
29949
|
"privacy": "private"
|
|
29636
29950
|
},
|
|
29951
|
+
{
|
|
29952
|
+
"kind": "method",
|
|
29953
|
+
"name": "_render",
|
|
29954
|
+
"privacy": "private",
|
|
29955
|
+
"return": {
|
|
29956
|
+
"type": {
|
|
29957
|
+
"text": "void"
|
|
29958
|
+
}
|
|
29959
|
+
},
|
|
29960
|
+
"description": "Everything the element draws, for the state it is in and the config it answers to."
|
|
29961
|
+
},
|
|
29962
|
+
{
|
|
29963
|
+
"kind": "method",
|
|
29964
|
+
"name": "_onChildren",
|
|
29965
|
+
"privacy": "private",
|
|
29966
|
+
"return": {
|
|
29967
|
+
"type": {
|
|
29968
|
+
"text": "void"
|
|
29969
|
+
}
|
|
29970
|
+
},
|
|
29971
|
+
"description": "The children changed: a framework reconciled them, hydration took out what it did not\nrender, a card arrived late. The button and the header go back if they were taken out,\nand a card that now brings a header of its own is no longer given a second one."
|
|
29972
|
+
},
|
|
29637
29973
|
{
|
|
29638
29974
|
"kind": "method",
|
|
29639
29975
|
"name": "_config",
|
|
@@ -29665,8 +30001,199 @@
|
|
|
29665
30001
|
"text": "void"
|
|
29666
30002
|
}
|
|
29667
30003
|
},
|
|
30004
|
+
"parameters": [
|
|
30005
|
+
{
|
|
30006
|
+
"name": "config",
|
|
30007
|
+
"type": {
|
|
30008
|
+
"text": "AparteConfig"
|
|
30009
|
+
}
|
|
30010
|
+
}
|
|
30011
|
+
],
|
|
29668
30012
|
"description": "The button, for the state it is in: the bubble (and the label, as a pill) while\nclosed, a close glyph while open. Its name comes from the locale when it shows no\ntext, and from that text when it does — a visible label the name did not contain\nis what speech users cannot say to press it. `aria-expanded` is the disclosure's whole\ncontract: there is no `aria-controls`, since the one element it could name without\nwriting an id on the host's card is the launcher itself, the button's own ancestor."
|
|
29669
30013
|
},
|
|
30014
|
+
{
|
|
30015
|
+
"kind": "method",
|
|
30016
|
+
"name": "_glyph",
|
|
30017
|
+
"privacy": "private",
|
|
30018
|
+
"static": true,
|
|
30019
|
+
"return": {
|
|
30020
|
+
"type": {
|
|
30021
|
+
"text": "HTMLElement"
|
|
30022
|
+
}
|
|
30023
|
+
},
|
|
30024
|
+
"parameters": [
|
|
30025
|
+
{
|
|
30026
|
+
"name": "svg",
|
|
30027
|
+
"type": {
|
|
30028
|
+
"text": "string"
|
|
30029
|
+
}
|
|
30030
|
+
}
|
|
30031
|
+
],
|
|
30032
|
+
"description": "A glyph, out of the accessibility tree: what holds it is named by its label."
|
|
30033
|
+
},
|
|
30034
|
+
{
|
|
30035
|
+
"kind": "method",
|
|
30036
|
+
"name": "_cardHasHeader",
|
|
30037
|
+
"privacy": "private",
|
|
30038
|
+
"return": {
|
|
30039
|
+
"type": {
|
|
30040
|
+
"text": "boolean"
|
|
30041
|
+
}
|
|
30042
|
+
},
|
|
30043
|
+
"description": "A card that brings its own header: a `<header>` at its top level — how every card in\nthis repository with a header of its own is written, so they keep theirs and are not\ngiven a second. A close control alone is not one: an \"End chat\" in a card's footer is a\nclose control too, and took the header away when it counted."
|
|
30044
|
+
},
|
|
30045
|
+
{
|
|
30046
|
+
"kind": "method",
|
|
30047
|
+
"name": "_touchesParts",
|
|
30048
|
+
"privacy": "private",
|
|
30049
|
+
"static": true,
|
|
30050
|
+
"return": {
|
|
30051
|
+
"type": {
|
|
30052
|
+
"text": "boolean"
|
|
30053
|
+
}
|
|
30054
|
+
},
|
|
30055
|
+
"parameters": [
|
|
30056
|
+
{
|
|
30057
|
+
"name": "record",
|
|
30058
|
+
"type": {
|
|
30059
|
+
"text": "MutationRecord"
|
|
30060
|
+
}
|
|
30061
|
+
}
|
|
30062
|
+
],
|
|
30063
|
+
"description": "A change deeper in the card that the element answers: a header, or a maximize\ncontrol, arriving or leaving — a framework rendering a card's header after the card,\na conditional control. A streamed reply adds text and spans, so it calls for nothing."
|
|
30064
|
+
},
|
|
30065
|
+
{
|
|
30066
|
+
"kind": "method",
|
|
30067
|
+
"name": "_headerButton",
|
|
30068
|
+
"privacy": "private",
|
|
30069
|
+
"static": true,
|
|
30070
|
+
"return": {
|
|
30071
|
+
"type": {
|
|
30072
|
+
"text": "HTMLButtonElement"
|
|
30073
|
+
}
|
|
30074
|
+
},
|
|
30075
|
+
"parameters": [
|
|
30076
|
+
{
|
|
30077
|
+
"name": "part",
|
|
30078
|
+
"type": {
|
|
30079
|
+
"text": "string"
|
|
30080
|
+
}
|
|
30081
|
+
}
|
|
30082
|
+
],
|
|
30083
|
+
"description": "An icon-only control of the header: the recipe's ghost icon button."
|
|
30084
|
+
},
|
|
30085
|
+
{
|
|
30086
|
+
"kind": "method",
|
|
30087
|
+
"name": "_name",
|
|
30088
|
+
"privacy": "private",
|
|
30089
|
+
"static": true,
|
|
30090
|
+
"return": {
|
|
30091
|
+
"type": {
|
|
30092
|
+
"text": "void"
|
|
30093
|
+
}
|
|
30094
|
+
},
|
|
30095
|
+
"parameters": [
|
|
30096
|
+
{
|
|
30097
|
+
"name": "button",
|
|
30098
|
+
"type": {
|
|
30099
|
+
"text": "HTMLElement"
|
|
30100
|
+
}
|
|
30101
|
+
},
|
|
30102
|
+
{
|
|
30103
|
+
"name": "name",
|
|
30104
|
+
"type": {
|
|
30105
|
+
"text": "string"
|
|
30106
|
+
}
|
|
30107
|
+
},
|
|
30108
|
+
{
|
|
30109
|
+
"name": "svg",
|
|
30110
|
+
"type": {
|
|
30111
|
+
"text": "string"
|
|
30112
|
+
}
|
|
30113
|
+
}
|
|
30114
|
+
],
|
|
30115
|
+
"description": "A control's name, spoken and shown on hover: an icon alone says nothing to a pointer."
|
|
30116
|
+
},
|
|
30117
|
+
{
|
|
30118
|
+
"kind": "method",
|
|
30119
|
+
"name": "_buildHeader",
|
|
30120
|
+
"privacy": "private",
|
|
30121
|
+
"return": {
|
|
30122
|
+
"type": {
|
|
30123
|
+
"text": "HTMLElement"
|
|
30124
|
+
}
|
|
30125
|
+
}
|
|
30126
|
+
},
|
|
30127
|
+
{
|
|
30128
|
+
"kind": "method",
|
|
30129
|
+
"name": "_renderHeader",
|
|
30130
|
+
"privacy": "private",
|
|
30131
|
+
"return": {
|
|
30132
|
+
"type": {
|
|
30133
|
+
"text": "void"
|
|
30134
|
+
}
|
|
30135
|
+
},
|
|
30136
|
+
"parameters": [
|
|
30137
|
+
{
|
|
30138
|
+
"name": "config",
|
|
30139
|
+
"type": {
|
|
30140
|
+
"text": "AparteConfig"
|
|
30141
|
+
}
|
|
30142
|
+
}
|
|
30143
|
+
],
|
|
30144
|
+
"description": "The header, when the element draws one: the title, the line under it, the maximize\nbutton for its state, the ✕. It goes first among the children, and the stylesheet\njoins it to the card under it."
|
|
30145
|
+
},
|
|
30146
|
+
{
|
|
30147
|
+
"kind": "method",
|
|
30148
|
+
"name": "_drawAvatar",
|
|
30149
|
+
"privacy": "private",
|
|
30150
|
+
"return": {
|
|
30151
|
+
"type": {
|
|
30152
|
+
"text": "void"
|
|
30153
|
+
}
|
|
30154
|
+
},
|
|
30155
|
+
"parameters": [
|
|
30156
|
+
{
|
|
30157
|
+
"name": "config",
|
|
30158
|
+
"type": {
|
|
30159
|
+
"text": "AparteConfig"
|
|
30160
|
+
}
|
|
30161
|
+
}
|
|
30162
|
+
],
|
|
30163
|
+
"description": "The assistant's avatar, by the provider that draws it in the messages — the one place an\napp says what its assistant looks like, a framework component included. Drawn again only\nwhen the provider changes, since a render runs on every attribute and a provider may\nmount a component. Empty without one, and the stylesheet folds an empty slot away."
|
|
30164
|
+
},
|
|
30165
|
+
{
|
|
30166
|
+
"kind": "method",
|
|
30167
|
+
"name": "_markAvatarImage",
|
|
30168
|
+
"privacy": "private",
|
|
30169
|
+
"return": {
|
|
30170
|
+
"type": {
|
|
30171
|
+
"text": "void"
|
|
30172
|
+
}
|
|
30173
|
+
},
|
|
30174
|
+
"description": "A picture from the stylesheet alone (`--aparte-avatar-image-assistant`), as a message's\nslot shows it: an empty slot that has one is marked, which lifts the rule folding an empty\nslot away. Read after the header is in the document, where its style resolves."
|
|
30175
|
+
},
|
|
30176
|
+
{
|
|
30177
|
+
"kind": "method",
|
|
30178
|
+
"name": "_clearAvatar",
|
|
30179
|
+
"privacy": "private",
|
|
30180
|
+
"return": {
|
|
30181
|
+
"type": {
|
|
30182
|
+
"text": "void"
|
|
30183
|
+
}
|
|
30184
|
+
}
|
|
30185
|
+
},
|
|
30186
|
+
{
|
|
30187
|
+
"kind": "method",
|
|
30188
|
+
"name": "_syncMaximizeControls",
|
|
30189
|
+
"privacy": "private",
|
|
30190
|
+
"return": {
|
|
30191
|
+
"type": {
|
|
30192
|
+
"text": "void"
|
|
30193
|
+
}
|
|
30194
|
+
},
|
|
30195
|
+
"description": "A maximize control of the host's says what it does: `aria-pressed` follows the state.\nThe element's own button is the exception, because it changes its NAME with the state\ninstead, and a toggle whose name changes must not also say it is pressed."
|
|
30196
|
+
},
|
|
29670
30197
|
{
|
|
29671
30198
|
"kind": "field",
|
|
29672
30199
|
"name": "_onMediaChange",
|
|
@@ -29722,13 +30249,24 @@
|
|
|
29722
30249
|
"text": "void"
|
|
29723
30250
|
}
|
|
29724
30251
|
},
|
|
29725
|
-
"description": "The composer when there is one — the person opened the chat to write — else the\nfirst thing in the card that holds focus. The button itself never: it is what the\nperson just pressed."
|
|
30252
|
+
"description": "The composer when there is one — the person opened the chat to write — else the\nfirst thing in the card that holds focus. The button itself never: it is what the\nperson just pressed. Nor the element's header, which comes first in the DOM: its ✕\nis not what anyone opened the chat for, and focus landing there would read the way\nout before the way in."
|
|
30253
|
+
},
|
|
30254
|
+
{
|
|
30255
|
+
"kind": "method",
|
|
30256
|
+
"name": "_focusTarget",
|
|
30257
|
+
"privacy": "private",
|
|
30258
|
+
"return": {
|
|
30259
|
+
"type": {
|
|
30260
|
+
"text": "HTMLElement | undefined"
|
|
30261
|
+
}
|
|
30262
|
+
},
|
|
30263
|
+
"description": "Where the focus goes in the chat: the composer, else the card's first control, else —\nwhen the chat covers the window and its button is hidden — the header's ✕, the one way\nout left on screen."
|
|
29726
30264
|
},
|
|
29727
30265
|
{
|
|
29728
30266
|
"kind": "field",
|
|
29729
30267
|
"name": "_onClick",
|
|
29730
30268
|
"privacy": "private",
|
|
29731
|
-
"description": "A `[data-aparte-launcher-close]` inside closes the chat — no script in your card."
|
|
30269
|
+
"description": "A `[data-aparte-launcher-close]` inside closes the chat, and a\n`[data-aparte-launcher-maximize]` enlarges it or brings it back — no script in your card."
|
|
29732
30270
|
},
|
|
29733
30271
|
{
|
|
29734
30272
|
"kind": "method",
|
|
@@ -29761,7 +30299,7 @@
|
|
|
29761
30299
|
"type": {
|
|
29762
30300
|
"text": "CustomEvent<AparteLauncherToggleDetail>"
|
|
29763
30301
|
},
|
|
29764
|
-
"description": "The chat opened or closed, by the button, by Escape, by a close control or by `open` being set — or, while it is open, turned into a sheet or back as the window crossed the breakpoint. Bubbles."
|
|
30302
|
+
"description": "The chat opened or closed, by the button, by Escape, by a close control or by `open` being set — or, while it is open, turned into a sheet or back as the window crossed the breakpoint — or it was maximized or brought back, by a control or by `maximized` being set. Bubbles."
|
|
29765
30303
|
}
|
|
29766
30304
|
],
|
|
29767
30305
|
"attributes": [
|
|
@@ -29786,6 +30324,41 @@
|
|
|
29786
30324
|
},
|
|
29787
30325
|
"description": "The window width under which the open chat fills the window: a length, or `none` for a card at any size. Unset, a window under 30rem wide or 30rem high."
|
|
29788
30326
|
},
|
|
30327
|
+
{
|
|
30328
|
+
"name": "header",
|
|
30329
|
+
"type": {
|
|
30330
|
+
"text": "boolean"
|
|
30331
|
+
},
|
|
30332
|
+
"description": "The header the element draws over a card that has none. On unless set to the string `\"false\"`; a card with a header of its own keeps it, whatever this says."
|
|
30333
|
+
},
|
|
30334
|
+
{
|
|
30335
|
+
"name": "heading",
|
|
30336
|
+
"type": {
|
|
30337
|
+
"text": "string"
|
|
30338
|
+
},
|
|
30339
|
+
"description": "The header's title. Unset, the button's `label`, else the locale's `launcherHeading` (\"Chat\"); set but empty, no title."
|
|
30340
|
+
},
|
|
30341
|
+
{
|
|
30342
|
+
"name": "subheading",
|
|
30343
|
+
"type": {
|
|
30344
|
+
"text": "string"
|
|
30345
|
+
},
|
|
30346
|
+
"description": "A line under the title, smaller and quieter: who answers, how fast."
|
|
30347
|
+
},
|
|
30348
|
+
{
|
|
30349
|
+
"name": "maximizable",
|
|
30350
|
+
"type": {
|
|
30351
|
+
"text": "boolean | '' | 'panel'"
|
|
30352
|
+
},
|
|
30353
|
+
"description": "Adds the maximize button to the element's header, beside its ✕. Maximized, the chat fills the window; with `\"panel\"`, it is a panel the window's height along its inline-end edge, and the page stays in view."
|
|
30354
|
+
},
|
|
30355
|
+
{
|
|
30356
|
+
"name": "maximized",
|
|
30357
|
+
"type": {
|
|
30358
|
+
"text": "boolean"
|
|
30359
|
+
},
|
|
30360
|
+
"description": "The open chat is maximized: it fills the window, as the sheet does on a phone, or with `maximizable=\"panel\"` runs the window's height along its edge. Reflected; set it to start maximized."
|
|
30361
|
+
},
|
|
29789
30362
|
{
|
|
29790
30363
|
"type": {
|
|
29791
30364
|
"text": "boolean"
|
|
@@ -29800,7 +30373,7 @@
|
|
|
29800
30373
|
"tagName": "aparte-launcher",
|
|
29801
30374
|
"customElement": true,
|
|
29802
30375
|
"examples": [
|
|
29803
|
-
"<!-- In a page it floats over the window; here, over a 30rem frame. -->\n<div style=\"height: 30rem\"></div>\n<aparte-launcher label=\"Help\" open breakpoint=\"none\" style=\"--aparte-launcher-height: 24rem\">\n <aparte-chat></aparte-chat>\n</aparte-launcher>"
|
|
30376
|
+
"<!-- In a page it floats over the window; here, over a 30rem frame. -->\n<div style=\"height: 30rem\"></div>\n<aparte-launcher label=\"Help\" heading=\"Kilnhouse support\" subheading=\"Usually answers in a minute\"\n maximizable open breakpoint=\"none\" style=\"--aparte-launcher-height: 24rem\">\n <aparte-chat></aparte-chat>\n</aparte-launcher>"
|
|
29804
30377
|
]
|
|
29805
30378
|
}
|
|
29806
30379
|
],
|