@scalar/agent-chat 0.12.44 → 0.12.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.test.d.ts +2 -0
- package/dist/App.test.d.ts.map +1 -0
- package/dist/App.vue.d.ts +4 -0
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/App.vue.js.map +1 -1
- package/dist/App.vue.script.js +2 -0
- package/dist/App.vue.script.js.map +1 -1
- package/dist/Chat.vue.d.ts.map +1 -1
- package/dist/Chat.vue.js.map +1 -1
- package/dist/Chat.vue.script.js +13 -5
- package/dist/Chat.vue.script.js.map +1 -1
- package/dist/components/UploadSection.vue.js +1 -1
- package/dist/components/UploadSection.vue.js.map +1 -1
- package/dist/components/UploadSection.vue.script.js +2 -2
- package/dist/components/UploadSection.vue.script.js.map +1 -1
- package/dist/entities/tools/get-openapi-specs-summary.d.ts +3 -2
- package/dist/entities/tools/get-openapi-specs-summary.d.ts.map +1 -1
- package/dist/entities/tools/get-openapi-specs-summary.js.map +1 -1
- package/dist/entities/tools/search-openapi-operations.d.ts +2 -1
- package/dist/entities/tools/search-openapi-operations.d.ts.map +1 -1
- package/dist/entities/tools/search-openapi-operations.js.map +1 -1
- package/dist/helpers/get-search-result-labels.d.ts +3 -0
- package/dist/helpers/get-search-result-labels.d.ts.map +1 -0
- package/dist/helpers/get-search-result-labels.js +38 -0
- package/dist/helpers/get-search-result-labels.js.map +1 -0
- package/dist/helpers/get-search-result-labels.test.d.ts +2 -0
- package/dist/helpers/get-search-result-labels.test.d.ts.map +1 -0
- package/dist/helpers.d.ts +0 -3
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +2 -5
- package/dist/helpers.js.map +1 -1
- package/dist/hooks/use-agent-key-documents.js +1 -1
- package/dist/hooks/use-agent-key-documents.js.map +1 -1
- package/dist/hooks/use-upload-tmp-document.d.ts +1 -1
- package/dist/hooks/use-upload-tmp-document.d.ts.map +1 -1
- package/dist/hooks/use-upload-tmp-document.js +24 -17
- package/dist/hooks/use-upload-tmp-document.js.map +1 -1
- package/dist/package.json +2 -1
- package/dist/registry/add-documents-to-store.d.ts.map +1 -1
- package/dist/registry/add-documents-to-store.js.map +1 -1
- package/dist/state/state.d.ts +5 -1
- package/dist/state/state.d.ts.map +1 -1
- package/dist/state/state.js +15 -6
- package/dist/state/state.js.map +1 -1
- package/dist/state/state.test.d.ts +2 -0
- package/dist/state/state.test.d.ts.map +1 -0
- package/dist/style.css +79 -71
- package/dist/views/Chat/Messages/AskForAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Chat/Messages/AskForAuthentication.vue.js +1 -1
- package/dist/views/Chat/Messages/AskForAuthentication.vue.js.map +1 -1
- package/dist/views/Chat/Messages/AskForAuthentication.vue.script.js +44 -35
- package/dist/views/Chat/Messages/AskForAuthentication.vue.script.js.map +1 -1
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts.map +1 -1
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js +1 -1
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js.map +1 -1
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.script.js +8 -3
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.script.js.map +1 -1
- package/dist/views/Chat/Messages/SearchOpenAPIOperationsTool.vue.d.ts.map +1 -1
- package/dist/views/Chat/Messages/SearchOpenAPIOperationsTool.vue.js +1 -1
- package/dist/views/Chat/Messages/SearchOpenAPIOperationsTool.vue.js.map +1 -1
- package/dist/views/Chat/Messages/SearchOpenAPIOperationsTool.vue.script.js +6 -9
- package/dist/views/Chat/Messages/SearchOpenAPIOperationsTool.vue.script.js.map +1 -1
- package/dist/views/PromptForm.vue.d.ts.map +1 -1
- package/dist/views/PromptForm.vue.js +1 -1
- package/dist/views/PromptForm.vue.js.map +1 -1
- package/dist/views/PromptForm.vue.script.js +0 -1
- package/dist/views/PromptForm.vue.script.js.map +1 -1
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.js +1 -1
- package/dist/views/Settings/Settings.vue.js.map +1 -1
- package/dist/views/Settings/Settings.vue.script.js +10 -6
- package/dist/views/Settings/Settings.vue.script.js.map +1 -1
- package/dist/views/Start.vue.js +1 -1
- package/dist/views/Start.vue.js.map +1 -1
- package/dist/views/Start.vue.script.js +1 -1
- package/dist/views/Start.vue.script.js.map +1 -1
- package/dist/vue-styles.css +71 -71
- package/package.json +7 -6
package/dist/style.css
CHANGED
|
@@ -2987,6 +2987,10 @@ input[data-v-029a43f5]::placeholder {
|
|
|
2987
2987
|
flex: 1;
|
|
2988
2988
|
}
|
|
2989
2989
|
|
|
2990
|
+
.scalar-app .flex-auto {
|
|
2991
|
+
flex: auto;
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2990
2994
|
.scalar-app .flex-shrink, .scalar-app .shrink {
|
|
2991
2995
|
flex-shrink: 1;
|
|
2992
2996
|
}
|
|
@@ -3525,6 +3529,10 @@ input[data-v-029a43f5]::placeholder {
|
|
|
3525
3529
|
text-align: center;
|
|
3526
3530
|
}
|
|
3527
3531
|
|
|
3532
|
+
.scalar-app .text-end {
|
|
3533
|
+
text-align: end;
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3528
3536
|
.scalar-app .text-left {
|
|
3529
3537
|
text-align: left;
|
|
3530
3538
|
}
|
|
@@ -4697,7 +4705,7 @@ input[data-v-029a43f5]::placeholder {
|
|
|
4697
4705
|
position: relative;
|
|
4698
4706
|
}
|
|
4699
4707
|
|
|
4700
|
-
.askForAuthentication[data-v-
|
|
4708
|
+
.askForAuthentication[data-v-508e8718] {
|
|
4701
4709
|
display: flex;
|
|
4702
4710
|
flex-direction: column;
|
|
4703
4711
|
width: 100%;
|
|
@@ -4710,7 +4718,7 @@ input[data-v-029a43f5]::placeholder {
|
|
|
4710
4718
|
0 calc(-1 * var(--scalar-border-width)) 0 var(--scalar-background-1);
|
|
4711
4719
|
padding: 0;
|
|
4712
4720
|
}
|
|
4713
|
-
.authContent[data-v-
|
|
4721
|
+
.authContent[data-v-508e8718] {
|
|
4714
4722
|
display: grid;
|
|
4715
4723
|
grid-template-rows: 0fr;
|
|
4716
4724
|
min-height: 0;
|
|
@@ -4720,19 +4728,19 @@ input[data-v-029a43f5]::placeholder {
|
|
|
4720
4728
|
margin: auto;
|
|
4721
4729
|
width: 100%;
|
|
4722
4730
|
}
|
|
4723
|
-
.authContentInner[data-v-
|
|
4731
|
+
.authContentInner[data-v-508e8718] > div {
|
|
4724
4732
|
margin: 36px 0 48px 0;
|
|
4725
4733
|
}
|
|
4726
|
-
.authContent[data-v-
|
|
4734
|
+
.authContent[data-v-508e8718] .markdown {
|
|
4727
4735
|
margin-bottom: 0 !important;
|
|
4728
4736
|
}
|
|
4729
|
-
.askForAuthentication.open .authContent[data-v-
|
|
4737
|
+
.askForAuthentication.open .authContent[data-v-508e8718] {
|
|
4730
4738
|
grid-template-rows: 1fr;
|
|
4731
4739
|
}
|
|
4732
|
-
.continueButton[data-v-
|
|
4740
|
+
.continueButton[data-v-508e8718] {
|
|
4733
4741
|
align-self: flex-end;
|
|
4734
4742
|
}
|
|
4735
|
-
.toggleButton[data-v-
|
|
4743
|
+
.toggleButton[data-v-508e8718] {
|
|
4736
4744
|
background: none;
|
|
4737
4745
|
border: none;
|
|
4738
4746
|
cursor: pointer;
|
|
@@ -4744,11 +4752,11 @@ input[data-v-029a43f5]::placeholder {
|
|
|
4744
4752
|
justify-content: space-between;
|
|
4745
4753
|
border-radius: var(--scalar-radius-lg);
|
|
4746
4754
|
}
|
|
4747
|
-
.authContentInner[data-v-
|
|
4755
|
+
.authContentInner[data-v-508e8718] {
|
|
4748
4756
|
min-height: 0;
|
|
4749
4757
|
overflow: hidden;
|
|
4750
4758
|
}
|
|
4751
|
-
.authorizeButton[data-v-
|
|
4759
|
+
.authorizeButton[data-v-508e8718] {
|
|
4752
4760
|
background: var(--scalar-color-blue) !important;
|
|
4753
4761
|
color: white !important;
|
|
4754
4762
|
margin: 0 !important;
|
|
@@ -5017,7 +5025,7 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5017
5025
|
text-decoration: underline;
|
|
5018
5026
|
}
|
|
5019
5027
|
|
|
5020
|
-
.executeRequestTool[data-v-
|
|
5028
|
+
.executeRequestTool[data-v-0c85bad4] {
|
|
5021
5029
|
display: flex;
|
|
5022
5030
|
flex-direction: column;
|
|
5023
5031
|
gap: 10px;
|
|
@@ -5187,17 +5195,17 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5187
5195
|
}
|
|
5188
5196
|
}
|
|
5189
5197
|
|
|
5190
|
-
.operations[data-v-
|
|
5198
|
+
.operations[data-v-fa6f5acc] {
|
|
5191
5199
|
display: flex;
|
|
5192
5200
|
gap: 5px;
|
|
5193
5201
|
align-items: center;
|
|
5194
5202
|
flex-wrap: wrap;
|
|
5195
5203
|
margin-bottom: 12px;
|
|
5196
5204
|
}
|
|
5197
|
-
.operations[data-v-
|
|
5205
|
+
.operations[data-v-fa6f5acc]:empty {
|
|
5198
5206
|
margin-bottom: -12px;
|
|
5199
5207
|
}
|
|
5200
|
-
.overflowPopover[data-v-
|
|
5208
|
+
.overflowPopover[data-v-fa6f5acc] {
|
|
5201
5209
|
display: flex;
|
|
5202
5210
|
flex-direction: column;
|
|
5203
5211
|
gap: 5px;
|
|
@@ -5544,7 +5552,7 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5544
5552
|
margin: 10px;
|
|
5545
5553
|
}
|
|
5546
5554
|
|
|
5547
|
-
.uploadSection[data-v-
|
|
5555
|
+
.uploadSection[data-v-b82d2f3a] {
|
|
5548
5556
|
width: 100%;
|
|
5549
5557
|
margin-bottom: -16px;
|
|
5550
5558
|
padding: 8px 8px 24px 12px;
|
|
@@ -5563,30 +5571,30 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5563
5571
|
top: 0;
|
|
5564
5572
|
transform: translate3d(0, calc(-100% + 16px), 0);
|
|
5565
5573
|
}
|
|
5566
|
-
.uploadSection.error[data-v-
|
|
5574
|
+
.uploadSection.error[data-v-b82d2f3a] {
|
|
5567
5575
|
background: color-mix(
|
|
5568
5576
|
in srgb,
|
|
5569
5577
|
var(--scalar-color-red),
|
|
5570
5578
|
var(--scalar-background-1) 95%
|
|
5571
5579
|
);
|
|
5572
5580
|
}
|
|
5573
|
-
.uploadSection.done[data-v-
|
|
5581
|
+
.uploadSection.done[data-v-b82d2f3a] {
|
|
5574
5582
|
background: color-mix(
|
|
5575
5583
|
in srgb,
|
|
5576
5584
|
var(--scalar-color-green),
|
|
5577
5585
|
var(--scalar-background-1) 95%
|
|
5578
5586
|
);
|
|
5579
5587
|
}
|
|
5580
|
-
.uploadText[data-v-
|
|
5588
|
+
.uploadText[data-v-b82d2f3a] {
|
|
5581
5589
|
font-weight: var(--scalar-semibold);
|
|
5582
5590
|
font-size: var(--scalar-font-size-3);
|
|
5583
5591
|
}
|
|
5584
|
-
.icon[data-v-
|
|
5592
|
+
.icon[data-v-b82d2f3a] {
|
|
5585
5593
|
height: 20px;
|
|
5586
5594
|
width: 20px;
|
|
5587
5595
|
}
|
|
5588
5596
|
|
|
5589
|
-
.actionContainer[data-v-
|
|
5597
|
+
.actionContainer[data-v-6aae4d61] {
|
|
5590
5598
|
background: color-mix(
|
|
5591
5599
|
in srgb,
|
|
5592
5600
|
var(--scalar-background-2),
|
|
@@ -5599,7 +5607,7 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5599
5607
|
/* visually hides overflowing text below */
|
|
5600
5608
|
box-shadow: 0 24px 0 2px var(--scalar-background-1);
|
|
5601
5609
|
}
|
|
5602
|
-
.promptForm[data-v-
|
|
5610
|
+
.promptForm[data-v-6aae4d61] {
|
|
5603
5611
|
width: 100%;
|
|
5604
5612
|
position: relative;
|
|
5605
5613
|
display: flex;
|
|
@@ -5610,23 +5618,23 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5610
5618
|
0 0 0 var(--scalar-border-width) var(--scalar-border-color);
|
|
5611
5619
|
border-radius: var(--scalar-radius-3xl);
|
|
5612
5620
|
}
|
|
5613
|
-
.inputActionsContainer[data-v-
|
|
5621
|
+
.inputActionsContainer[data-v-6aae4d61] {
|
|
5614
5622
|
display: flex;
|
|
5615
5623
|
justify-content: space-between;
|
|
5616
5624
|
padding: 0 8px 8px 8px;
|
|
5617
5625
|
}
|
|
5618
|
-
.inputActionsLeft[data-v-
|
|
5626
|
+
.inputActionsLeft[data-v-6aae4d61] {
|
|
5619
5627
|
display: flex;
|
|
5620
5628
|
flex-wrap: wrap; /* key: allows pills to go to next line */
|
|
5621
5629
|
align-items: center;
|
|
5622
5630
|
gap: 5px; /* spacing between pills */
|
|
5623
5631
|
}
|
|
5624
|
-
.inputActionsRight[data-v-
|
|
5632
|
+
.inputActionsRight[data-v-6aae4d61] {
|
|
5625
5633
|
display: flex;
|
|
5626
5634
|
gap: 5px;
|
|
5627
5635
|
position: relative;
|
|
5628
5636
|
}
|
|
5629
|
-
.apiPill[data-v-
|
|
5637
|
+
.apiPill[data-v-6aae4d61] {
|
|
5630
5638
|
font-size: var(--scalar-font-size-3);
|
|
5631
5639
|
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
5632
5640
|
color: var(--scalar-color-2);
|
|
@@ -5641,10 +5649,10 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5641
5649
|
gap: 4px;
|
|
5642
5650
|
user-select: none;
|
|
5643
5651
|
}
|
|
5644
|
-
.apiPillLogo[data-v-
|
|
5652
|
+
.apiPillLogo[data-v-6aae4d61] {
|
|
5645
5653
|
width: 15px;
|
|
5646
5654
|
}
|
|
5647
|
-
.apiPillRemove[data-v-
|
|
5655
|
+
.apiPillRemove[data-v-6aae4d61] {
|
|
5648
5656
|
width: 24px;
|
|
5649
5657
|
height: 24px;
|
|
5650
5658
|
margin-right: -6px;
|
|
@@ -5653,16 +5661,16 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5653
5661
|
align-items: center;
|
|
5654
5662
|
justify-content: center;
|
|
5655
5663
|
}
|
|
5656
|
-
.apiPill:hover .apiPillRemove[data-v-
|
|
5664
|
+
.apiPill:hover .apiPillRemove[data-v-6aae4d61] {
|
|
5657
5665
|
background: var(--scalar-background-2);
|
|
5658
5666
|
}
|
|
5659
|
-
.dark-mode .apiPill:hover .apiPillRemove[data-v-
|
|
5667
|
+
.dark-mode .apiPill:hover .apiPillRemove[data-v-6aae4d61] {
|
|
5660
5668
|
background: var(--scalar-background-3);
|
|
5661
5669
|
}
|
|
5662
|
-
.apiPillRemove[data-v-
|
|
5670
|
+
.apiPillRemove[data-v-6aae4d61]:hover {
|
|
5663
5671
|
color: var(--scalar-color-1);
|
|
5664
5672
|
}
|
|
5665
|
-
.prompt[data-v-
|
|
5673
|
+
.prompt[data-v-6aae4d61] {
|
|
5666
5674
|
width: 100%;
|
|
5667
5675
|
outline: none;
|
|
5668
5676
|
border: none;
|
|
@@ -5679,13 +5687,13 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5679
5687
|
font-size: 16px;
|
|
5680
5688
|
padding: 12px 12px 14px 12px;
|
|
5681
5689
|
}
|
|
5682
|
-
.dark-mode .promptForm[data-v-
|
|
5690
|
+
.dark-mode .promptForm[data-v-6aae4d61] {
|
|
5683
5691
|
background: var(--scalar-background-2);
|
|
5684
5692
|
}
|
|
5685
|
-
.prompt[data-v-
|
|
5693
|
+
.prompt[data-v-6aae4d61]:disabled {
|
|
5686
5694
|
color: var(--scalar-color-3);
|
|
5687
5695
|
}
|
|
5688
|
-
.addAPIButton[data-v-
|
|
5696
|
+
.addAPIButton[data-v-6aae4d61] {
|
|
5689
5697
|
display: flex;
|
|
5690
5698
|
align-items: center;
|
|
5691
5699
|
justify-content: center;
|
|
@@ -5702,7 +5710,7 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5702
5710
|
z-index: 1;
|
|
5703
5711
|
box-shadow: 0 0 0 var(--scalar-border-width) var(--scalar-border-color);
|
|
5704
5712
|
}
|
|
5705
|
-
.addAPIButton[data-v-
|
|
5713
|
+
.addAPIButton[data-v-6aae4d61]:hover {
|
|
5706
5714
|
background: color-mix(
|
|
5707
5715
|
in srgb,
|
|
5708
5716
|
var(--scalar-background-2),
|
|
@@ -5710,47 +5718,47 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5710
5718
|
);
|
|
5711
5719
|
box-shadow: 0 0 0 var(--scalar-border-width) var(--scalar-border-color);
|
|
5712
5720
|
}
|
|
5713
|
-
.dark-mode .addAPIButton[data-v-
|
|
5721
|
+
.dark-mode .addAPIButton[data-v-6aae4d61]:hover {
|
|
5714
5722
|
background: var(--scalar-background-3);
|
|
5715
5723
|
}
|
|
5716
|
-
.settingsButton[data-v-
|
|
5724
|
+
.settingsButton[data-v-6aae4d61] {
|
|
5717
5725
|
color: var(--scalar-color-3) !important;
|
|
5718
5726
|
border-radius: var(--scalar-radius-full) !important;
|
|
5719
5727
|
margin: 0 !important;
|
|
5720
5728
|
z-index: 1;
|
|
5721
5729
|
}
|
|
5722
|
-
.settingsButton[aria-disabled='true'][data-v-
|
|
5730
|
+
.settingsButton[aria-disabled='true'][data-v-6aae4d61] {
|
|
5723
5731
|
background: var(--scalar-background-2);
|
|
5724
5732
|
}
|
|
5725
|
-
.dark-mode .settingsButton[data-v-
|
|
5733
|
+
.dark-mode .settingsButton[data-v-6aae4d61]:hover {
|
|
5726
5734
|
background: var(--scalar-background-3);
|
|
5727
5735
|
}
|
|
5728
|
-
.sendButton[data-v-
|
|
5736
|
+
.sendButton[data-v-6aae4d61] {
|
|
5729
5737
|
background: var(--scalar-color-blue) !important;
|
|
5730
5738
|
border-radius: var(--scalar-radius-full) !important;
|
|
5731
5739
|
margin: 0 !important;
|
|
5732
5740
|
z-index: 1;
|
|
5733
5741
|
border: var(--scalar-border-width) solid var(--scalar-color-blue);
|
|
5734
5742
|
}
|
|
5735
|
-
.sendButton[data-v-
|
|
5743
|
+
.sendButton[data-v-6aae4d61]:not([aria-disabled='true']) {
|
|
5736
5744
|
color: white !important;
|
|
5737
5745
|
}
|
|
5738
|
-
.sendButton[data-v-
|
|
5746
|
+
.sendButton[data-v-6aae4d61]:not([aria-disabled='true']):hover {
|
|
5739
5747
|
background: color-mix(
|
|
5740
5748
|
in srgb,
|
|
5741
5749
|
var(--scalar-color-blue),
|
|
5742
5750
|
transparent 10%
|
|
5743
5751
|
) !important;
|
|
5744
5752
|
}
|
|
5745
|
-
.sendButton[aria-disabled='true'][data-v-
|
|
5753
|
+
.sendButton[aria-disabled='true'][data-v-6aae4d61] {
|
|
5746
5754
|
background: var(--scalar-background-2) !important;
|
|
5747
5755
|
color: var(--scalar-color-3) !important;
|
|
5748
5756
|
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
5749
5757
|
}
|
|
5750
|
-
.dark-mode .sendButton[aria-disabled='true'][data-v-
|
|
5758
|
+
.dark-mode .sendButton[aria-disabled='true'][data-v-6aae4d61] {
|
|
5751
5759
|
background: var(--scalar-background-3) !important;
|
|
5752
5760
|
}
|
|
5753
|
-
.contextContainer[data-v-
|
|
5761
|
+
.contextContainer[data-v-6aae4d61] {
|
|
5754
5762
|
display: flex;
|
|
5755
5763
|
width: 100%;
|
|
5756
5764
|
padding: 10px 12px 12px 12px;
|
|
@@ -5759,25 +5767,25 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5759
5767
|
user-select: none;
|
|
5760
5768
|
justify-content: space-between;
|
|
5761
5769
|
}
|
|
5762
|
-
.settingsButton[data-v-
|
|
5770
|
+
.settingsButton[data-v-6aae4d61] {
|
|
5763
5771
|
font-weight: var(--scalar-semibold);
|
|
5764
5772
|
border-radius: var(--scalar-radius-lg);
|
|
5765
5773
|
padding: 4px 6px;
|
|
5766
5774
|
margin: -4px -6px;
|
|
5767
5775
|
}
|
|
5768
|
-
.settingsButton[data-v-
|
|
5776
|
+
.settingsButton[data-v-6aae4d61]:hover {
|
|
5769
5777
|
background: var(--scalar-background-2);
|
|
5770
5778
|
box-shadow: 0 0 var(--scalar-border-width) 0 var(--scalar-border-color);
|
|
5771
5779
|
cursor: pointer;
|
|
5772
5780
|
}
|
|
5773
|
-
.agentLabel[data-v-
|
|
5781
|
+
.agentLabel[data-v-6aae4d61] {
|
|
5774
5782
|
font-size: 0px;
|
|
5775
5783
|
position: absolute;
|
|
5776
5784
|
width: 100%;
|
|
5777
5785
|
height: 100%;
|
|
5778
5786
|
cursor: text;
|
|
5779
5787
|
}
|
|
5780
|
-
.sendCheckboxContinue[data-v-
|
|
5788
|
+
.sendCheckboxContinue[data-v-6aae4d61]:has(input) {
|
|
5781
5789
|
display: flex;
|
|
5782
5790
|
align-items: center;
|
|
5783
5791
|
border-radius: var(--scalar-radius-3xl);
|
|
@@ -5789,11 +5797,11 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5789
5797
|
user-select: none;
|
|
5790
5798
|
height: 28px;
|
|
5791
5799
|
}
|
|
5792
|
-
.dark-mode .sendCheckboxContinue[data-v-
|
|
5800
|
+
.dark-mode .sendCheckboxContinue[data-v-6aae4d61]:has(input) {
|
|
5793
5801
|
background: var(--scalar-background-3);
|
|
5794
5802
|
box-shadow: 0 0 0 1.5px var(--scalar-background-3);
|
|
5795
5803
|
}
|
|
5796
|
-
.addMoreContext[data-v-
|
|
5804
|
+
.addMoreContext[data-v-6aae4d61] {
|
|
5797
5805
|
height: 40px;
|
|
5798
5806
|
display: flex;
|
|
5799
5807
|
position: relative;
|
|
@@ -5802,7 +5810,7 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5802
5810
|
padding: 0 8px 0 12px;
|
|
5803
5811
|
align-items: center;
|
|
5804
5812
|
}
|
|
5805
|
-
.addMoreContext[data-v-
|
|
5813
|
+
.addMoreContext[data-v-6aae4d61]:before {
|
|
5806
5814
|
content: '';
|
|
5807
5815
|
width: 8px;
|
|
5808
5816
|
height: 8px;
|
|
@@ -5819,10 +5827,10 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5819
5827
|
-0.5px -0.5px 0 var(--scalar-border-color),
|
|
5820
5828
|
inset 0.5px 0.5px 1px var(--scalar-border-color);
|
|
5821
5829
|
}
|
|
5822
|
-
.dark-mode .addMoreContext[data-v-
|
|
5830
|
+
.dark-mode .addMoreContext[data-v-6aae4d61]:before {
|
|
5823
5831
|
box-shadow: -0.5px -0.5px 0 var(--scalar-border-color);
|
|
5824
5832
|
}
|
|
5825
|
-
.addAPIContext[data-v-
|
|
5833
|
+
.addAPIContext[data-v-6aae4d61] {
|
|
5826
5834
|
width: 28px;
|
|
5827
5835
|
height: 28px;
|
|
5828
5836
|
border-radius: var(--scalar-radius-full);
|
|
@@ -5831,7 +5839,7 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5831
5839
|
justify-content: center;
|
|
5832
5840
|
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
5833
5841
|
}
|
|
5834
|
-
.termsAgree[data-v-
|
|
5842
|
+
.termsAgree[data-v-6aae4d61] {
|
|
5835
5843
|
display: flex;
|
|
5836
5844
|
cursor: pointer;
|
|
5837
5845
|
height: inherit;
|
|
@@ -5840,14 +5848,14 @@ input[data-v-029a43f5]::placeholder {
|
|
|
5840
5848
|
gap: 5px;
|
|
5841
5849
|
margin: 0px 5px;
|
|
5842
5850
|
}
|
|
5843
|
-
.termsAgree[data-v-
|
|
5851
|
+
.termsAgree[data-v-6aae4d61]:hover {
|
|
5844
5852
|
color: var(--scalar-color-1);
|
|
5845
5853
|
}
|
|
5846
|
-
.termsAgree:hover .termsAgreeIcon[data-v-
|
|
5854
|
+
.termsAgree:hover .termsAgreeIcon[data-v-6aae4d61] {
|
|
5847
5855
|
background: var(--scalar-color-1);
|
|
5848
5856
|
color: var(--scalar-background-1);
|
|
5849
5857
|
}
|
|
5850
|
-
.termsAgreeIcon[data-v-
|
|
5858
|
+
.termsAgreeIcon[data-v-6aae4d61] {
|
|
5851
5859
|
width: inherit;
|
|
5852
5860
|
height: inherit;
|
|
5853
5861
|
padding: 2px;
|
|
@@ -5898,10 +5906,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
5898
5906
|
margin-bottom: 12px;
|
|
5899
5907
|
}
|
|
5900
5908
|
|
|
5901
|
-
.agentLogo[data-v-
|
|
5909
|
+
.agentLogo[data-v-b27bdc01] {
|
|
5902
5910
|
margin-bottom: 15px;
|
|
5903
5911
|
}
|
|
5904
|
-
.startContainer[data-v-
|
|
5912
|
+
.startContainer[data-v-b27bdc01] {
|
|
5905
5913
|
display: flex;
|
|
5906
5914
|
flex-direction: column;
|
|
5907
5915
|
align-items: center;
|
|
@@ -5911,12 +5919,12 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
5911
5919
|
max-width: 720px;
|
|
5912
5920
|
position: relative;
|
|
5913
5921
|
}
|
|
5914
|
-
.promptText[data-v-
|
|
5922
|
+
.promptText[data-v-b27bdc01] {
|
|
5915
5923
|
font-size: 1.5rem;
|
|
5916
5924
|
font-weight: var(--scalar-font-bold);
|
|
5917
5925
|
margin-bottom: 50px;
|
|
5918
5926
|
}
|
|
5919
|
-
.disclaimerText[data-v-
|
|
5927
|
+
.disclaimerText[data-v-b27bdc01] {
|
|
5920
5928
|
text-align: center;
|
|
5921
5929
|
color: var(--scalar-color-3);
|
|
5922
5930
|
font-size: var(--scalar-font-size-3);
|
|
@@ -5924,7 +5932,7 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
5924
5932
|
line-height: 1.44;
|
|
5925
5933
|
margin-top: 40px;
|
|
5926
5934
|
}
|
|
5927
|
-
.disclaimerLink[data-v-
|
|
5935
|
+
.disclaimerLink[data-v-b27bdc01] {
|
|
5928
5936
|
text-decoration: underline;
|
|
5929
5937
|
}
|
|
5930
5938
|
|
|
@@ -5957,13 +5965,13 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
5957
5965
|
overflow-x: hidden;
|
|
5958
5966
|
}
|
|
5959
5967
|
|
|
5960
|
-
.documentList[data-v-
|
|
5968
|
+
.documentList[data-v-1a8828eb] {
|
|
5961
5969
|
display: flex;
|
|
5962
5970
|
flex-direction: column;
|
|
5963
5971
|
font-size: var(--scalar-font-size-3);
|
|
5964
5972
|
margin-bottom: 12px;
|
|
5965
5973
|
}
|
|
5966
|
-
.document[data-v-
|
|
5974
|
+
.document[data-v-1a8828eb] {
|
|
5967
5975
|
display: flex;
|
|
5968
5976
|
flex-direction: column;
|
|
5969
5977
|
width: calc(100% + 24px);
|
|
@@ -5973,10 +5981,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
5973
5981
|
border-top: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
5974
5982
|
border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
5975
5983
|
}
|
|
5976
|
-
.document[data-v-
|
|
5984
|
+
.document[data-v-1a8828eb]:first-of-type:not(:last-of-type) {
|
|
5977
5985
|
border-bottom: none;
|
|
5978
5986
|
}
|
|
5979
|
-
.documentName[data-v-
|
|
5987
|
+
.documentName[data-v-1a8828eb] {
|
|
5980
5988
|
gap: 4px;
|
|
5981
5989
|
display: flex;
|
|
5982
5990
|
align-items: center;
|
|
@@ -5984,10 +5992,10 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
5984
5992
|
color: var(--scalar-color-2);
|
|
5985
5993
|
padding: 12px 0;
|
|
5986
5994
|
}
|
|
5987
|
-
.documentNameActive[data-v-
|
|
5995
|
+
.documentNameActive[data-v-1a8828eb] {
|
|
5988
5996
|
color: var(--scalar-color-1);
|
|
5989
5997
|
}
|
|
5990
|
-
.settingsHeading[data-v-
|
|
5998
|
+
.settingsHeading[data-v-1a8828eb] {
|
|
5991
5999
|
font-size: 19px;
|
|
5992
6000
|
margin-bottom: 12px;
|
|
5993
6001
|
display: flex;
|
|
@@ -5995,16 +6003,16 @@ div + .userMessage[data-v-6573ec87] {
|
|
|
5995
6003
|
align-items: center;
|
|
5996
6004
|
font-weight: var(--scalar-semibold);
|
|
5997
6005
|
}
|
|
5998
|
-
.proxyUrlContainer[data-v-
|
|
6006
|
+
.proxyUrlContainer[data-v-1a8828eb] {
|
|
5999
6007
|
font-size: var(--scalar-font-size-3);
|
|
6000
6008
|
display: flex;
|
|
6001
6009
|
gap: 5px;
|
|
6002
6010
|
flex-direction: column;
|
|
6003
6011
|
}
|
|
6004
|
-
.proxyUrlContainer label[data-v-
|
|
6012
|
+
.proxyUrlContainer label[data-v-1a8828eb] {
|
|
6005
6013
|
font-weight: var(--scalar-semibold);
|
|
6006
6014
|
}
|
|
6007
|
-
.noDocuments[data-v-
|
|
6015
|
+
.noDocuments[data-v-1a8828eb] {
|
|
6008
6016
|
color: var(--scalar-color-2);
|
|
6009
6017
|
margin-bottom: 10px;
|
|
6010
6018
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AskForAuthentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Chat/Messages/AskForAuthentication.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AskForAuthentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Chat/Messages/AskForAuthentication.vue"],"names":[],"mappings":"AA8LA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AACpC,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAIxC,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAA;AAC1F,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,eAAe,CAAA;AAGpD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,GAAG,CACd,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,gCAAgC,CAAC,CAAC,CACjE,CAAA;CACF,CAAC;AAsMF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -2,7 +2,7 @@ import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_exp
|
|
|
2
2
|
import AskForAuthentication_vue_vue_type_script_setup_true_lang_default from "./AskForAuthentication.vue.script.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/views/Chat/Messages/AskForAuthentication.vue
|
|
5
|
-
var AskForAuthentication_default = /*#__PURE__*/ _plugin_vue_export_helper_default(AskForAuthentication_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var AskForAuthentication_default = /*#__PURE__*/ _plugin_vue_export_helper_default(AskForAuthentication_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-508e8718"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AskForAuthentication_default as default };
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AskForAuthentication.vue.js","names":[],"sources":["../../../../src/views/Chat/Messages/AskForAuthentication.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarIconArrowRight } from '@scalar/icons'\nimport {\n getActiveEnvironment,\n getSelectedServer,\n getServers,\n} from '@scalar/workspace-store/request-example'\nimport { isOpenApiDocument } from '@scalar/workspace-store/schemas/type-guards'\nimport type { ToolUIPart } from 'ai'\nimport { computed, type Ref } from 'vue'\n\nimport AuthenticationProvided from '@/components/AuthenticationProvided.vue'\nimport AuthenticationRequired from '@/components/AuthenticationRequired.vue'\nimport { ASK_FOR_AUTHENTICATION_TOOL_NAME } from '@/entities/tools/ask-for-authentication'\nimport { useState, type Tools } from '@/state/state'\nimport Auth from '@/views/Settings/Auth.vue'\n\nconst { messagePart } = defineProps<{\n messagePart: Ref<\n ToolUIPart<Pick<Tools, typeof ASK_FOR_AUTHENTICATION_TOOL_NAME>>\n >\n}>()\n\nconst { workspaceStore, eventBus, config, chat } = useState()\n\nconst documentName = computed(() => messagePart.value.input?.documentName)\n\nconst document = computed(() => {\n if (!documentName.value) {\n return\n }\n\n const doc = workspaceStore.workspace.documents[documentName.value]\n return isOpenApiDocument(doc) ? doc : undefined\n})\n\nconst environment = computed(() => {\n if (!document.value) {\n return\n }\n\n return getActiveEnvironment(workspaceStore, document.value).environment\n})\n\nconst selectedServer = computed(() => {\n if (!document.value) {\n return\n }\n\n const servers = getServers(document.value.servers, {\n documentUrl: document.value['x-scalar-original-source-url'],\n })\n\n return getSelectedServer(document.value, null, null, servers)\n})\n\nconst isAuthenticationExpanded = computed(\n () => documentName.value && environment.value && selectedServer.value,\n)\n\nasync function authorizeClicked() {\n await chat.addToolOutput({\n toolCallId: messagePart.value.toolCallId,\n output: 'Authentication provided.',\n tool: ASK_FOR_AUTHENTICATION_TOOL_NAME,\n state: 'output-available',\n })\n}\n</script>\n\n<template>\n <div\n class=\"askForAuthentication\"\n :class=\"{\n open: isAuthenticationExpanded,\n }\">\n <div class=\"toggleButton\">\n <AuthenticationProvided\n v-if=\"messagePart.value.state === 'output-available'\" />\n <AuthenticationRequired\n v-if=\"messagePart.value.state === 'input-available'\" />\n <ScalarButton\n v-if=\"messagePart.value.state === 'input-available'\"\n class=\"authorizeButton\"\n size=\"xs\"\n @click=\"authorizeClicked\">\n Authorize\n <ScalarIconArrowRight weight=\"bold\" />\n </ScalarButton>\n </div>\n <div class=\"authContent\">\n <div class=\"authContentInner\">\n <Auth\n v-if=\"documentName && document && environment && selectedServer\"\n :authStore=\"workspaceStore.auth\"\n :document\n :environment\n :eventBus\n :name=\"documentName\"\n :options=\"config\"\n :selectedServer />\n </div>\n </div>\n </div>\n</template>\n\n<style scoped>\n.askForAuthentication {\n display: flex;\n flex-direction: column;\n width: 100%;\n position: relative;\n border-top: var(--scalar-border-width) solid var(--scalar-border-color);\n border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);\n margin-bottom: 12px;\n box-shadow:\n 0 var(--scalar-border-width) 0 var(--scalar-background-1),\n 0 calc(-1 * var(--scalar-border-width)) 0 var(--scalar-background-1);\n padding: 0;\n}\n\n.authContent {\n display: grid;\n grid-template-rows: 0fr;\n min-height: 0;\n overflow: hidden;\n transition: grid-template-rows 0.2s ease-out;\n max-width: 520px;\n margin: auto;\n width: 100%;\n}\n.authContentInner :deep(> div) {\n margin: 36px 0 48px 0;\n}\n.authContent :deep(.markdown) {\n margin-bottom: 0 !important;\n}\n.askForAuthentication.open .authContent {\n grid-template-rows: 1fr;\n}\n\n.continueButton {\n align-self: flex-end;\n}\n\n.toggleButton {\n background: none;\n border: none;\n cursor: pointer;\n text-align: left;\n position: relative;\n display: flex;\n align-items: center;\n color: var(--scalar-color-3);\n justify-content: space-between;\n border-radius: var(--scalar-radius-lg);\n}\n\n.authContentInner {\n min-height: 0;\n overflow: hidden;\n}\n\n.authorizeButton {\n background: var(--scalar-color-blue) !important;\n color: white !important;\n margin: 0 !important;\n z-index: 1;\n display: flex;\n gap: 5px;\n}\n</style>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"AskForAuthentication.vue.js","names":[],"sources":["../../../../src/views/Chat/Messages/AskForAuthentication.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton } from '@scalar/components/button'\nimport { ScalarIconArrowRight } from '@scalar/icons'\nimport {\n getActiveEnvironment,\n getSelectedServer,\n getServers,\n} from '@scalar/workspace-store/request-example'\nimport { isOpenApiDocument } from '@scalar/workspace-store/schemas/type-guards'\nimport type { ToolUIPart } from 'ai'\nimport { computed, type Ref } from 'vue'\n\nimport AuthenticationProvided from '@/components/AuthenticationProvided.vue'\nimport AuthenticationRequired from '@/components/AuthenticationRequired.vue'\nimport { ASK_FOR_AUTHENTICATION_TOOL_NAME } from '@/entities/tools/ask-for-authentication'\nimport { useState, type Tools } from '@/state/state'\nimport Auth from '@/views/Settings/Auth.vue'\n\nconst { messagePart } = defineProps<{\n messagePart: Ref<\n ToolUIPart<Pick<Tools, typeof ASK_FOR_AUTHENTICATION_TOOL_NAME>>\n >\n}>()\n\nconst { workspaceStore, eventBus, config, chat } = useState()\n\nconst documentName = computed(() => messagePart.value.input?.documentName)\n\nconst document = computed(() => {\n if (!documentName.value) {\n return\n }\n\n const doc = workspaceStore.workspace.documents[documentName.value]\n return isOpenApiDocument(doc) ? doc : undefined\n})\n\nconst environment = computed(() => {\n if (!document.value) {\n return\n }\n\n return getActiveEnvironment(workspaceStore, document.value).environment\n})\n\nconst selectedServer = computed(() => {\n if (!document.value) {\n return\n }\n\n const servers = getServers(document.value.servers, {\n documentUrl: document.value['x-scalar-original-source-url'],\n })\n\n return getSelectedServer(document.value, null, null, servers)\n})\n\nconst isAuthenticationExpanded = computed(\n () => documentName.value && environment.value && selectedServer.value,\n)\n\nasync function authorizeClicked() {\n await chat.addToolOutput({\n toolCallId: messagePart.value.toolCallId,\n output: 'Authentication provided.',\n tool: ASK_FOR_AUTHENTICATION_TOOL_NAME,\n state: 'output-available',\n })\n}\n</script>\n\n<template>\n <div\n class=\"askForAuthentication\"\n :class=\"{\n open: isAuthenticationExpanded,\n }\">\n <p\n v-if=\"messagePart.value.state === 'output-error'\"\n class=\"text-c-2 py-3\"\n role=\"status\">\n {{ messagePart.value.errorText }}\n </p>\n <div class=\"toggleButton\">\n <AuthenticationProvided\n v-if=\"messagePart.value.state === 'output-available'\" />\n <AuthenticationRequired\n v-if=\"messagePart.value.state === 'input-available'\" />\n <ScalarButton\n v-if=\"messagePart.value.state === 'input-available'\"\n class=\"authorizeButton\"\n size=\"xs\"\n @click=\"authorizeClicked\">\n Authorize\n <ScalarIconArrowRight weight=\"bold\" />\n </ScalarButton>\n </div>\n <div class=\"authContent\">\n <div class=\"authContentInner\">\n <Auth\n v-if=\"documentName && document && environment && selectedServer\"\n :authStore=\"workspaceStore.auth\"\n :document\n :environment\n :eventBus\n :name=\"documentName\"\n :options=\"config\"\n :selectedServer />\n </div>\n </div>\n </div>\n</template>\n\n<style scoped>\n.askForAuthentication {\n display: flex;\n flex-direction: column;\n width: 100%;\n position: relative;\n border-top: var(--scalar-border-width) solid var(--scalar-border-color);\n border-bottom: var(--scalar-border-width) solid var(--scalar-border-color);\n margin-bottom: 12px;\n box-shadow:\n 0 var(--scalar-border-width) 0 var(--scalar-background-1),\n 0 calc(-1 * var(--scalar-border-width)) 0 var(--scalar-background-1);\n padding: 0;\n}\n\n.authContent {\n display: grid;\n grid-template-rows: 0fr;\n min-height: 0;\n overflow: hidden;\n transition: grid-template-rows 0.2s ease-out;\n max-width: 520px;\n margin: auto;\n width: 100%;\n}\n.authContentInner :deep(> div) {\n margin: 36px 0 48px 0;\n}\n.authContent :deep(.markdown) {\n margin-bottom: 0 !important;\n}\n.askForAuthentication.open .authContent {\n grid-template-rows: 1fr;\n}\n\n.continueButton {\n align-self: flex-end;\n}\n\n.toggleButton {\n background: none;\n border: none;\n cursor: pointer;\n text-align: left;\n position: relative;\n display: flex;\n align-items: center;\n color: var(--scalar-color-3);\n justify-content: space-between;\n border-radius: var(--scalar-radius-lg);\n}\n\n.authContentInner {\n min-height: 0;\n overflow: hidden;\n}\n\n.authorizeButton {\n background: var(--scalar-color-blue) !important;\n color: white !important;\n margin: 0 !important;\n z-index: 1;\n display: flex;\n gap: 5px;\n}\n</style>\n"],"mappings":""}
|
|
@@ -3,15 +3,20 @@ import { useState } from "../../../state/state.js";
|
|
|
3
3
|
import AuthenticationProvided_default from "../../../components/AuthenticationProvided.vue.js";
|
|
4
4
|
import AuthenticationRequired_default from "../../../components/AuthenticationRequired.vue.js";
|
|
5
5
|
import Auth_default from "../../Settings/Auth.vue.js";
|
|
6
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, unref, withCtx } from "vue";
|
|
7
|
-
import { getActiveEnvironment, getSelectedServer, getServers } from "@scalar/workspace-store/request-example";
|
|
6
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref, withCtx } from "vue";
|
|
8
7
|
import { isOpenApiDocument } from "@scalar/workspace-store/schemas/type-guards";
|
|
8
|
+
import { getActiveEnvironment, getSelectedServer, getServers } from "@scalar/workspace-store/request-example";
|
|
9
9
|
import { ScalarButton } from "@scalar/components/button";
|
|
10
10
|
import { ScalarIconArrowRight } from "@scalar/icons";
|
|
11
11
|
//#region src/views/Chat/Messages/AskForAuthentication.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var _hoisted_1 = {
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
var _hoisted_1 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "text-c-2 py-3",
|
|
15
|
+
role: "status"
|
|
16
|
+
};
|
|
17
|
+
var _hoisted_2 = { class: "toggleButton" };
|
|
18
|
+
var _hoisted_3 = { class: "authContent" };
|
|
19
|
+
var _hoisted_4 = { class: "authContentInner" };
|
|
15
20
|
var AskForAuthentication_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
16
21
|
__name: "AskForAuthentication",
|
|
17
22
|
props: { messagePart: {} },
|
|
@@ -42,36 +47,40 @@ var AskForAuthentication_vue_vue_type_script_setup_true_lang_default = /*@__PURE
|
|
|
42
47
|
});
|
|
43
48
|
}
|
|
44
49
|
return (_ctx, _cache) => {
|
|
45
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(["askForAuthentication", { open: isAuthenticationExpanded.value }]) }, [
|
|
46
|
-
__props.messagePart.value.state === "output-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
key:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
50
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(["askForAuthentication", { open: isAuthenticationExpanded.value }]) }, [
|
|
51
|
+
__props.messagePart.value.state === "output-error" ? (openBlock(), createElementBlock("p", _hoisted_1, toDisplayString(__props.messagePart.value.errorText), 1)) : createCommentVNode("", true),
|
|
52
|
+
createElementVNode("div", _hoisted_2, [
|
|
53
|
+
__props.messagePart.value.state === "output-available" ? (openBlock(), createBlock(AuthenticationProvided_default, { key: 0 })) : createCommentVNode("", true),
|
|
54
|
+
__props.messagePart.value.state === "input-available" ? (openBlock(), createBlock(AuthenticationRequired_default, { key: 1 })) : createCommentVNode("", true),
|
|
55
|
+
__props.messagePart.value.state === "input-available" ? (openBlock(), createBlock(unref(ScalarButton), {
|
|
56
|
+
key: 2,
|
|
57
|
+
class: "authorizeButton",
|
|
58
|
+
size: "xs",
|
|
59
|
+
onClick: authorizeClicked
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(() => [_cache[0] || (_cache[0] = createTextVNode(" Authorize ", -1)), createVNode(unref(ScalarIconArrowRight), { weight: "bold" })]),
|
|
62
|
+
_: 1
|
|
63
|
+
})) : createCommentVNode("", true)
|
|
64
|
+
]),
|
|
65
|
+
createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [documentName.value && document.value && environment.value && selectedServer.value ? (openBlock(), createBlock(Auth_default, {
|
|
66
|
+
key: 0,
|
|
67
|
+
authStore: unref(workspaceStore).auth,
|
|
68
|
+
document: document.value,
|
|
69
|
+
environment: environment.value,
|
|
70
|
+
eventBus: unref(eventBus),
|
|
71
|
+
name: documentName.value,
|
|
72
|
+
options: unref(config),
|
|
73
|
+
selectedServer: selectedServer.value
|
|
74
|
+
}, null, 8, [
|
|
75
|
+
"authStore",
|
|
76
|
+
"document",
|
|
77
|
+
"environment",
|
|
78
|
+
"eventBus",
|
|
79
|
+
"name",
|
|
80
|
+
"options",
|
|
81
|
+
"selectedServer"
|
|
82
|
+
])) : createCommentVNode("", true)])])
|
|
83
|
+
], 2);
|
|
75
84
|
};
|
|
76
85
|
}
|
|
77
86
|
});
|