@scalar/api-reference 1.44.6 → 1.44.7
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/CHANGELOG.md +13 -0
- package/dist/browser/standalone.js +1361 -1367
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/index.d.ts +0 -1
- package/dist/components/AgentScalar/index.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +6 -15
- package/dist/style.css +65 -43
- package/package.json +7 -7
- package/dist/components/AgentScalar/AgentScalarTooltip.vue.d.ts +0 -19
- package/dist/components/AgentScalar/AgentScalarTooltip.vue.d.ts.map +0 -1
- package/dist/components/AgentScalar/AgentScalarTooltip.vue.js +0 -35
- package/dist/components/AgentScalar/AgentScalarTooltip.vue2.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAisCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AA4BpC,OAAO,8BAA8B,CAAA;AAiCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AAyvCF,QAAA,MAAM,eAAe;;;oPAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7
|
+
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b69294a9"]]);
|
|
8
8
|
export {
|
|
9
9
|
ApiReference as default
|
|
10
10
|
};
|
|
@@ -20,12 +20,12 @@ import "@scalar/agent-chat/style.css";
|
|
|
20
20
|
import { isLocalUrl } from "@scalar/helpers/url/is-local-url";
|
|
21
21
|
import { useScrollLock } from "@vueuse/core";
|
|
22
22
|
import ClassicHeader from "./ClassicHeader.vue.js";
|
|
23
|
-
import _sfc_main$
|
|
23
|
+
import _sfc_main$5 from "./Content/Content.vue.js";
|
|
24
24
|
/* empty css */
|
|
25
25
|
import _sfc_main$1 from "./MobileHeader.vue.js";
|
|
26
26
|
import _sfc_main$2 from "../features/multiple-documents/DocumentSelector.vue.js";
|
|
27
27
|
import _sfc_main$3 from "../features/Search/components/SearchButton.vue.js";
|
|
28
|
-
import _sfc_main$
|
|
28
|
+
import _sfc_main$6 from "../features/toolbar/ApiReferenceToolbar.vue.js";
|
|
29
29
|
import { getSystemModePreference } from "../helpers/color-mode.js";
|
|
30
30
|
import { downloadDocument } from "../helpers/download.js";
|
|
31
31
|
import { getIdFromUrl, makeUrlFromId } from "../helpers/id-routing.js";
|
|
@@ -39,8 +39,7 @@ import { persistencePlugin } from "../plugins/persistance-plugin.js";
|
|
|
39
39
|
import { PLUGIN_MANAGER_SYMBOL } from "../plugins/hooks/usePluginManager.js";
|
|
40
40
|
import { createPluginManager } from "../plugins/plugin-manager.js";
|
|
41
41
|
import AgentScalarDrawer from "./AgentScalar/AgentScalarDrawer.vue.js";
|
|
42
|
-
import _sfc_main$4 from "./AgentScalar/
|
|
43
|
-
import _sfc_main$5 from "./AgentScalar/AgentScalarButton.vue.js";
|
|
42
|
+
import _sfc_main$4 from "./AgentScalar/AgentScalarButton.vue.js";
|
|
44
43
|
const _hoisted_1 = {
|
|
45
44
|
key: 1,
|
|
46
45
|
class: "flex gap-1.5 p-3 pt-1.5"
|
|
@@ -583,15 +582,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
583
582
|
hideModels: mergedConfig.value.hideModels,
|
|
584
583
|
searchHotKey: mergedConfig.value.searchHotKey
|
|
585
584
|
}, null, 8, ["document", "eventBus", "hideModels", "searchHotKey"]),
|
|
586
|
-
unref(agent).agentEnabled.value ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
587
|
-
key: 0,
|
|
588
|
-
agentScalarConfiguration: configList.value[activeSlug.value]?.agent
|
|
589
|
-
}, {
|
|
590
|
-
default: withCtx(() => [
|
|
591
|
-
createVNode(unref(_sfc_main$5))
|
|
592
|
-
]),
|
|
593
|
-
_: 1
|
|
594
|
-
}, 8, ["agentScalarConfiguration"])) : createCommentVNode("", true)
|
|
585
|
+
unref(agent).agentEnabled.value ? (openBlock(), createBlock(unref(_sfc_main$4), { key: 0 })) : createCommentVNode("", true)
|
|
595
586
|
])) : createCommentVNode("", true),
|
|
596
587
|
renderSlot(_ctx.$slots, "sidebar-start", normalizeProps(guardReactiveProps(slotProps.value)), void 0, true)
|
|
597
588
|
]),
|
|
@@ -627,7 +618,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
627
618
|
"aria-label": `Open API Documentation for ${unref(workspaceStore).workspace.activeDocument?.info?.title}`,
|
|
628
619
|
class: "references-rendered"
|
|
629
620
|
}, [
|
|
630
|
-
createVNode(_sfc_main$
|
|
621
|
+
createVNode(_sfc_main$5, {
|
|
631
622
|
document: unref(workspaceStore).workspace.activeDocument,
|
|
632
623
|
environment: environment.value,
|
|
633
624
|
eventBus: unref(eventBus),
|
|
@@ -639,7 +630,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
639
630
|
xScalarDefaultClient: unref(workspaceStore).workspace["x-scalar-default-client"]
|
|
640
631
|
}, createSlots({
|
|
641
632
|
start: withCtx(() => [
|
|
642
|
-
unref(workspaceStore).workspace.activeDocument && unref(mediaQueries).lg.value ? (openBlock(), createBlock(_sfc_main$
|
|
633
|
+
unref(workspaceStore).workspace.activeDocument && unref(mediaQueries).lg.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
643
634
|
key: 0,
|
|
644
635
|
overrides: configurationOverrides.value,
|
|
645
636
|
"onUpdate:overrides": _cache[3] || (_cache[3] = ($event) => configurationOverrides.value = $event),
|
package/dist/style.css
CHANGED
|
@@ -9958,34 +9958,6 @@ input[data-v-c1a50a6e]::placeholder {
|
|
|
9958
9958
|
background: var(--scalar-background-1) !important;
|
|
9959
9959
|
}
|
|
9960
9960
|
}
|
|
9961
|
-
@keyframes transform-fade-layout {
|
|
9962
|
-
0% {
|
|
9963
|
-
opacity: 0;
|
|
9964
|
-
transform: scale(.85)translate(calc(50dvw + 80px), 10px);
|
|
9965
|
-
}
|
|
9966
|
-
to {
|
|
9967
|
-
opacity: 1;
|
|
9968
|
-
transform: scale(.85)translate(calc(50dvw + 80px));
|
|
9969
|
-
}
|
|
9970
|
-
}
|
|
9971
|
-
@keyframes transform-restore-layout {
|
|
9972
|
-
0% {
|
|
9973
|
-
opacity: 1;
|
|
9974
|
-
transform: scale(.85)translate(calc(50dvw + 80px));
|
|
9975
|
-
}
|
|
9976
|
-
to {
|
|
9977
|
-
opacity: 1;
|
|
9978
|
-
transform: scale(1)translate(0);
|
|
9979
|
-
}
|
|
9980
|
-
}
|
|
9981
|
-
.openapi-color {
|
|
9982
|
-
color: var(--scalar-color-green);
|
|
9983
|
-
}
|
|
9984
|
-
.section-flare {
|
|
9985
|
-
position: fixed;
|
|
9986
|
-
top: 0;
|
|
9987
|
-
right: -50dvw;
|
|
9988
|
-
}
|
|
9989
9961
|
.address-bar-history-button[data-v-c15c6573]:hover {
|
|
9990
9962
|
background: var(--scalar-background-3);
|
|
9991
9963
|
}
|
|
@@ -10894,6 +10866,56 @@ to {
|
|
|
10894
10866
|
.dark-mode .download-app-button[data-v-d9bec97b]:hover {
|
|
10895
10867
|
background: linear-gradient(#00000026, #ffffff1a);
|
|
10896
10868
|
}
|
|
10869
|
+
@media (min-width: 800px) {
|
|
10870
|
+
.has-import-url {
|
|
10871
|
+
contain: paint;
|
|
10872
|
+
max-width: 100dvw;
|
|
10873
|
+
overflow-x: hidden;
|
|
10874
|
+
}
|
|
10875
|
+
.has-import-url .scalar-client > main {
|
|
10876
|
+
opacity: 0;
|
|
10877
|
+
border: var(--scalar-border-width) solid var(--scalar-border-color);
|
|
10878
|
+
z-index: 10000;
|
|
10879
|
+
border-radius: 12px;
|
|
10880
|
+
animation: .3s ease-in-out forwards transform-fade-layout;
|
|
10881
|
+
overflow: hidden;
|
|
10882
|
+
transform: scale(.85)translate(calc(50dvw + 80px));
|
|
10883
|
+
}
|
|
10884
|
+
.has-import-url .scalar-client nav {
|
|
10885
|
+
display: none;
|
|
10886
|
+
}
|
|
10887
|
+
.has-import-url .scalar-app {
|
|
10888
|
+
background: var(--scalar-background-1) !important;
|
|
10889
|
+
}
|
|
10890
|
+
}
|
|
10891
|
+
@keyframes transform-fade-layout {
|
|
10892
|
+
0% {
|
|
10893
|
+
opacity: 0;
|
|
10894
|
+
transform: scale(.85)translate(calc(50dvw + 80px), 10px);
|
|
10895
|
+
}
|
|
10896
|
+
to {
|
|
10897
|
+
opacity: 1;
|
|
10898
|
+
transform: scale(.85)translate(calc(50dvw + 80px));
|
|
10899
|
+
}
|
|
10900
|
+
}
|
|
10901
|
+
@keyframes transform-restore-layout {
|
|
10902
|
+
0% {
|
|
10903
|
+
opacity: 1;
|
|
10904
|
+
transform: scale(.85)translate(calc(50dvw + 80px));
|
|
10905
|
+
}
|
|
10906
|
+
to {
|
|
10907
|
+
opacity: 1;
|
|
10908
|
+
transform: scale(1)translate(0);
|
|
10909
|
+
}
|
|
10910
|
+
}
|
|
10911
|
+
.openapi-color {
|
|
10912
|
+
color: var(--scalar-color-green);
|
|
10913
|
+
}
|
|
10914
|
+
.section-flare {
|
|
10915
|
+
position: fixed;
|
|
10916
|
+
top: 0;
|
|
10917
|
+
right: -50dvw;
|
|
10918
|
+
}
|
|
10897
10919
|
#scalar-client {
|
|
10898
10920
|
background-color: var(--scalar-background-2);
|
|
10899
10921
|
flex-direction: column;
|
|
@@ -11847,7 +11869,7 @@ to {
|
|
|
11847
11869
|
|
|
11848
11870
|
/* Configurable Layout Variables */
|
|
11849
11871
|
@layer scalar-config {
|
|
11850
|
-
.scalar-api-reference[data-v-
|
|
11872
|
+
.scalar-api-reference[data-v-b69294a9] {
|
|
11851
11873
|
/* The header height */
|
|
11852
11874
|
--refs-header-height: calc(
|
|
11853
11875
|
var(--scalar-custom-header-height, 0px) + var(--scalar-header-height, 0px)
|
|
@@ -11869,20 +11891,20 @@ to {
|
|
|
11869
11891
|
/* The maximum width of the content column */
|
|
11870
11892
|
--refs-content-max-width: var(--scalar-content-max-width, 1540px);
|
|
11871
11893
|
}
|
|
11872
|
-
.scalar-api-reference.references-classic[data-v-
|
|
11894
|
+
.scalar-api-reference.references-classic[data-v-b69294a9] {
|
|
11873
11895
|
/* Classic layout is wider */
|
|
11874
11896
|
--refs-content-max-width: var(--scalar-content-max-width, 1420px);
|
|
11875
11897
|
min-height: 100dvh;
|
|
11876
11898
|
--refs-sidebar-width: 0;
|
|
11877
11899
|
}
|
|
11878
11900
|
}
|
|
11879
|
-
.t-doc__sidebar[data-v-
|
|
11901
|
+
.t-doc__sidebar[data-v-b69294a9] {
|
|
11880
11902
|
z-index: 10;
|
|
11881
11903
|
}
|
|
11882
11904
|
|
|
11883
11905
|
/* ----------------------------------------------------- */
|
|
11884
11906
|
/* References Layout */
|
|
11885
|
-
.references-layout[data-v-
|
|
11907
|
+
.references-layout[data-v-b69294a9] {
|
|
11886
11908
|
/* Try to fill the container */
|
|
11887
11909
|
min-height: 100dvh;
|
|
11888
11910
|
min-width: 100%;
|
|
@@ -11906,39 +11928,39 @@ to {
|
|
|
11906
11928
|
|
|
11907
11929
|
background: var(--scalar-background-1);
|
|
11908
11930
|
}
|
|
11909
|
-
.references-editor[data-v-
|
|
11931
|
+
.references-editor[data-v-b69294a9] {
|
|
11910
11932
|
grid-area: editor;
|
|
11911
11933
|
display: flex;
|
|
11912
11934
|
min-width: 0;
|
|
11913
11935
|
background: var(--scalar-background-1);
|
|
11914
11936
|
}
|
|
11915
|
-
.references-rendered[data-v-
|
|
11937
|
+
.references-rendered[data-v-b69294a9] {
|
|
11916
11938
|
position: relative;
|
|
11917
11939
|
grid-area: rendered;
|
|
11918
11940
|
min-width: 0;
|
|
11919
11941
|
background: var(--scalar-background-1);
|
|
11920
11942
|
}
|
|
11921
|
-
.scalar-api-reference.references-classic[data-v-
|
|
11922
|
-
.references-classic .references-rendered[data-v-
|
|
11943
|
+
.scalar-api-reference.references-classic[data-v-b69294a9],
|
|
11944
|
+
.references-classic .references-rendered[data-v-b69294a9] {
|
|
11923
11945
|
height: initial !important;
|
|
11924
11946
|
max-height: initial !important;
|
|
11925
11947
|
}
|
|
11926
11948
|
@layer scalar-config {
|
|
11927
|
-
.references-sidebar[data-v-
|
|
11949
|
+
.references-sidebar[data-v-b69294a9] {
|
|
11928
11950
|
/* Set a default width if references are enabled */
|
|
11929
11951
|
--refs-sidebar-width: var(--scalar-sidebar-width, 288px);
|
|
11930
11952
|
}
|
|
11931
11953
|
}
|
|
11932
11954
|
|
|
11933
11955
|
/* Footer */
|
|
11934
|
-
.references-footer[data-v-
|
|
11956
|
+
.references-footer[data-v-b69294a9] {
|
|
11935
11957
|
grid-area: footer;
|
|
11936
11958
|
}
|
|
11937
11959
|
/* ----------------------------------------------------- */
|
|
11938
11960
|
/* Responsive / Mobile Layout */
|
|
11939
11961
|
@media (max-width: 1000px) {
|
|
11940
11962
|
/* Stack view on mobile */
|
|
11941
|
-
.references-layout[data-v-
|
|
11963
|
+
.references-layout[data-v-b69294a9] {
|
|
11942
11964
|
/* Adjust the sidebar height to the viewport height minus the header height */
|
|
11943
11965
|
--refs-sidebar-height: calc(
|
|
11944
11966
|
var(--full-height, 100dvh) - var(--scalar-custom-header-height, 0px)
|
|
@@ -11953,13 +11975,13 @@ to {
|
|
|
11953
11975
|
'rendered'
|
|
11954
11976
|
'footer';
|
|
11955
11977
|
}
|
|
11956
|
-
.references-editable[data-v-
|
|
11978
|
+
.references-editable[data-v-b69294a9] {
|
|
11957
11979
|
grid-template-areas:
|
|
11958
11980
|
'header'
|
|
11959
11981
|
'navigation'
|
|
11960
11982
|
'editor';
|
|
11961
11983
|
}
|
|
11962
|
-
.references-rendered[data-v-
|
|
11984
|
+
.references-rendered[data-v-b69294a9] {
|
|
11963
11985
|
position: static;
|
|
11964
11986
|
}
|
|
11965
11987
|
}
|
|
@@ -11970,12 +11992,12 @@ to {
|
|
|
11970
11992
|
* when the new elements are available
|
|
11971
11993
|
*/
|
|
11972
11994
|
@media (max-width: 1000px) {
|
|
11973
|
-
.scalar-api-references-standalone-mobile[data-v-
|
|
11995
|
+
.scalar-api-references-standalone-mobile[data-v-b69294a9]:not(.references-classic) {
|
|
11974
11996
|
--scalar-header-height: 50px;
|
|
11975
11997
|
}
|
|
11976
11998
|
}
|
|
11977
11999
|
|
|
11978
|
-
.darklight-reference[data-v-
|
|
12000
|
+
.darklight-reference[data-v-b69294a9] {
|
|
11979
12001
|
width: 100%;
|
|
11980
12002
|
margin-top: auto;
|
|
11981
12003
|
}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.44.
|
|
23
|
+
"version": "1.44.7",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -85,22 +85,22 @@
|
|
|
85
85
|
"microdiff": "^1.5.0",
|
|
86
86
|
"nanoid": "^5.1.6",
|
|
87
87
|
"vue": "^3.5.26",
|
|
88
|
-
"@scalar/agent-chat": "0.4.
|
|
89
|
-
"@scalar/api-client": "2.22.3",
|
|
88
|
+
"@scalar/agent-chat": "0.4.7",
|
|
90
89
|
"@scalar/code-highlight": "0.2.2",
|
|
90
|
+
"@scalar/api-client": "2.23.0",
|
|
91
91
|
"@scalar/components": "0.17.2",
|
|
92
92
|
"@scalar/helpers": "0.2.10",
|
|
93
93
|
"@scalar/icons": "0.5.2",
|
|
94
94
|
"@scalar/oas-utils": "0.6.32",
|
|
95
|
+
"@scalar/openapi-parser": "0.24.6",
|
|
95
96
|
"@scalar/openapi-types": "0.5.3",
|
|
96
97
|
"@scalar/sidebar": "0.7.25",
|
|
97
|
-
"@scalar/snippetz": "0.6.10",
|
|
98
|
-
"@scalar/openapi-parser": "0.24.6",
|
|
99
98
|
"@scalar/themes": "0.14.0",
|
|
100
|
-
"@scalar/types": "0.6.1",
|
|
101
99
|
"@scalar/use-hooks": "0.3.7",
|
|
100
|
+
"@scalar/types": "0.6.1",
|
|
102
101
|
"@scalar/use-toasts": "0.9.1",
|
|
103
|
-
"@scalar/workspace-store": "0.28.1"
|
|
102
|
+
"@scalar/workspace-store": "0.28.1",
|
|
103
|
+
"@scalar/snippetz": "0.6.10"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@hono/node-server": "^1.19.7",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ApiReferenceConfigurationWithSource } from '@scalar/types/api-reference';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
agentScalarConfiguration: ApiReferenceConfigurationWithSource['agent'] | undefined;
|
|
4
|
-
};
|
|
5
|
-
declare var __VLS_5: {}, __VLS_7: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_5) => any;
|
|
8
|
-
} & {
|
|
9
|
-
default?: (props: typeof __VLS_7) => any;
|
|
10
|
-
};
|
|
11
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
-
new (): {
|
|
16
|
-
$slots: S;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=AgentScalarTooltip.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentScalarTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarTooltip.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAA;AAGtF,KAAK,WAAW,GAAG;IACjB,wBAAwB,EACpB,mCAAmC,CAAC,OAAO,CAAC,GAC5C,SAAS,CAAA;CACd,CAAC;AAgDF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createBlock, renderSlot, openBlock, unref, withCtx } from "vue";
|
|
2
|
-
import { ScalarTooltip } from "@scalar/components";
|
|
3
|
-
import { isLocalUrl } from "@scalar/helpers/url/is-local-url";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "AgentScalarTooltip",
|
|
6
|
-
props: {
|
|
7
|
-
agentScalarConfiguration: {}
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const content = computed(() => {
|
|
11
|
-
if (typeof window !== "undefined" && !isLocalUrl(window.location.href)) {
|
|
12
|
-
return void 0;
|
|
13
|
-
}
|
|
14
|
-
if (__props.agentScalarConfiguration?.key) {
|
|
15
|
-
return void 0;
|
|
16
|
-
}
|
|
17
|
-
return "Available in development only.";
|
|
18
|
-
});
|
|
19
|
-
return (_ctx, _cache) => {
|
|
20
|
-
return content.value ? (openBlock(), createBlock(unref(ScalarTooltip), {
|
|
21
|
-
key: 0,
|
|
22
|
-
content: content.value,
|
|
23
|
-
placement: "bottom"
|
|
24
|
-
}, {
|
|
25
|
-
default: withCtx(() => [
|
|
26
|
-
renderSlot(_ctx.$slots, "default")
|
|
27
|
-
]),
|
|
28
|
-
_: 3
|
|
29
|
-
}, 8, ["content"])) : renderSlot(_ctx.$slots, "default", { key: 1 });
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
_sfc_main as default
|
|
35
|
-
};
|