@scalar/api-reference 1.55.2 → 1.55.3
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 +6 -0
- package/dist/browser/standalone.js +177 -177
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.js.map +1 -1
- package/dist/components/Anchor/Anchor.vue.script.js +1 -1
- package/dist/components/Anchor/Anchor.vue.script.js.map +1 -1
- package/dist/components/ApiReference.vue.script.js +1 -1
- package/dist/style.css +31 -14
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.vue.js","names":[],"sources":["../../../src/components/Anchor/Anchor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, useBindCx } from '@scalar/components'\nimport { ScalarIconHash } from '@scalar/icons'\nimport { useId } from 'vue'\n\nimport ScreenReader from '../ScreenReader.vue'\n\nconst emit = defineEmits<{\n (e: 'copyAnchorUrl'): void\n}>()\n\nconst labelId = useId()\n\nconst { cx } = useBindCx()\n</script>\n<template>\n <span v-bind=\"cx('group/heading
|
|
1
|
+
{"version":3,"file":"Anchor.vue.js","names":[],"sources":["../../../src/components/Anchor/Anchor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, useBindCx } from '@scalar/components'\nimport { ScalarIconHash } from '@scalar/icons'\nimport { useId } from 'vue'\n\nimport ScreenReader from '../ScreenReader.vue'\n\nconst emit = defineEmits<{\n (e: 'copyAnchorUrl'): void\n}>()\n\nconst labelId = useId()\n\nconst { cx } = useBindCx()\n</script>\n<template>\n <span v-bind=\"cx('group/heading wrap-break-word relative')\">\n <span\n :id=\"labelId\"\n class=\"contents\">\n <slot />\n </span>\n <span class=\"relative\">\n <!-- Position anchor to align the copy button to the last line of text -->\n <span>​</span>\n <ScalarButton\n :aria-describedby=\"labelId\"\n class=\"absolute top-1/2 left-0 inline-block h-fit -translate-y-1/2 px-1.5 py-1 opacity-0 group-hover/heading:opacity-100 group-has-focus-visible/heading:opacity-100\"\n variant=\"ghost\"\n @click.stop=\"() => emit('copyAnchorUrl')\">\n <ScalarIconHash\n aria-hidden=\"true\"\n class=\"size-4.5\" />\n <ScreenReader>Copy link</ScreenReader>\n </ScalarButton>\n </span>\n </span>\n</template>\n"],"mappings":""}
|
|
@@ -13,7 +13,7 @@ var Anchor_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
|
|
|
13
13
|
const labelId = useId();
|
|
14
14
|
const { cx } = useBindCx();
|
|
15
15
|
return (_ctx, _cache) => {
|
|
16
|
-
return openBlock(), createElementBlock("span", normalizeProps(guardReactiveProps(unref(cx)("group/heading
|
|
16
|
+
return openBlock(), createElementBlock("span", normalizeProps(guardReactiveProps(unref(cx)("group/heading wrap-break-word relative"))), [createElementVNode("span", {
|
|
17
17
|
id: unref(labelId),
|
|
18
18
|
class: "contents"
|
|
19
19
|
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1), createElementVNode("span", _hoisted_2, [_cache[2] || (_cache[2] = createElementVNode("span", null, "", -1)), createVNode(unref(ScalarButton), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.vue.script.js","names":[],"sources":["../../../src/components/Anchor/Anchor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, useBindCx } from '@scalar/components'\nimport { ScalarIconHash } from '@scalar/icons'\nimport { useId } from 'vue'\n\nimport ScreenReader from '../ScreenReader.vue'\n\nconst emit = defineEmits<{\n (e: 'copyAnchorUrl'): void\n}>()\n\nconst labelId = useId()\n\nconst { cx } = useBindCx()\n</script>\n<template>\n <span v-bind=\"cx('group/heading
|
|
1
|
+
{"version":3,"file":"Anchor.vue.script.js","names":[],"sources":["../../../src/components/Anchor/Anchor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, useBindCx } from '@scalar/components'\nimport { ScalarIconHash } from '@scalar/icons'\nimport { useId } from 'vue'\n\nimport ScreenReader from '../ScreenReader.vue'\n\nconst emit = defineEmits<{\n (e: 'copyAnchorUrl'): void\n}>()\n\nconst labelId = useId()\n\nconst { cx } = useBindCx()\n</script>\n<template>\n <span v-bind=\"cx('group/heading wrap-break-word relative')\">\n <span\n :id=\"labelId\"\n class=\"contents\">\n <slot />\n </span>\n <span class=\"relative\">\n <!-- Position anchor to align the copy button to the last line of text -->\n <span>​</span>\n <ScalarButton\n :aria-describedby=\"labelId\"\n class=\"absolute top-1/2 left-0 inline-block h-fit -translate-y-1/2 px-1.5 py-1 opacity-0 group-hover/heading:opacity-100 group-has-focus-visible/heading:opacity-100\"\n variant=\"ghost\"\n @click.stop=\"() => emit('copyAnchorUrl')\">\n <ScalarIconHash\n aria-hidden=\"true\"\n class=\"size-4.5\" />\n <ScreenReader>Copy link</ScreenReader>\n </ScalarButton>\n </span>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;EAOA,MAAM,OAAO;EAIb,MAAM,UAAU,OAAM;EAEtB,MAAM,EAAE,OAAO,WAAU;;uBAGvB,mBAoBO,QAAA,eAAA,mBApBO,MAAA,GAAE,CAAA,yCAAA,CAAA,CAAA,EAAA,CACd,mBAIO,QAAA;IAHJ,IAAI,MAAA,QAAO;IACZ,OAAM;OACN,WAAQ,KAAA,QAAA,UAAA,CAAA,EAAA,GAAA,WAAA,EAEV,mBAaO,QAbP,YAaO,CAAA,OAAA,OAAA,OAAA,KAXL,mBAA6B,QAAA,MAAvB,KAAgB,GAAA,GACtB,YASe,MAAA,aAAA,EAAA;IARZ,oBAAkB,MAAA,QAAO;IAC1B,OAAM;IACN,SAAQ;IACP,SAAK,OAAA,OAAA,OAAA,KAAA,oBAAa,KAAI,gBAAA,EAAA,CAAA,OAAA,CAAA;;2BAGF,CAFrB,YAEqB,MAAA,eAAA,EAAA;KADnB,eAAY;KACZ,OAAM;QACR,YAAsC,sBAAA,MAAA;4BAAf,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAT,aAAS,GAAA,CAAA,EAAA,CAAA"}
|
|
@@ -50,7 +50,7 @@ var _hoisted_5 = {
|
|
|
50
50
|
key: 2,
|
|
51
51
|
class: "references-footer"
|
|
52
52
|
};
|
|
53
|
-
var version = "1.55.
|
|
53
|
+
var version = "1.55.3";
|
|
54
54
|
if (typeof window !== "undefined") console.info(`@scalar/api-reference@${version}`);
|
|
55
55
|
var ApiReference_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
56
56
|
__name: "ApiReference",
|
package/dist/style.css
CHANGED
|
@@ -389,6 +389,7 @@
|
|
|
389
389
|
--animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
|
|
390
390
|
--default-transition-duration: .15s;
|
|
391
391
|
--default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
392
|
+
--spacing-header: 48px;
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
|
|
@@ -2732,11 +2733,11 @@ input[data-v-819cea32]::placeholder {
|
|
|
2732
2733
|
display: flex;
|
|
2733
2734
|
}
|
|
2734
2735
|
|
|
2735
|
-
.sidebar-skeleton-row > span[data-v-
|
|
2736
|
-
animation: 1.5s infinite alternate sidebar-skeleton-pulse-
|
|
2736
|
+
.sidebar-skeleton-row > span[data-v-e5f6f69d] {
|
|
2737
|
+
animation: 1.5s infinite alternate sidebar-skeleton-pulse-e5f6f69d;
|
|
2737
2738
|
}
|
|
2738
2739
|
|
|
2739
|
-
@keyframes sidebar-skeleton-pulse-
|
|
2740
|
+
@keyframes sidebar-skeleton-pulse-e5f6f69d {
|
|
2740
2741
|
from {
|
|
2741
2742
|
opacity: 1;
|
|
2742
2743
|
}
|
|
@@ -2836,7 +2837,7 @@ input[data-v-819cea32]::placeholder {
|
|
|
2836
2837
|
background-color: var(--scalar-background-4);
|
|
2837
2838
|
}
|
|
2838
2839
|
|
|
2839
|
-
.nav-item__active .nav-item-close[data-v-2d65f302]:hover, .version-picker[data-v-
|
|
2840
|
+
.nav-item__active .nav-item-close[data-v-2d65f302]:hover, .version-picker[data-v-28138913] [role="option"][aria-selected="true"] {
|
|
2840
2841
|
background-color: var(--scalar-background-2);
|
|
2841
2842
|
}
|
|
2842
2843
|
|
|
@@ -3251,7 +3252,7 @@ input[data-v-819cea32]::placeholder {
|
|
|
3251
3252
|
overflow: auto hidden;
|
|
3252
3253
|
}
|
|
3253
3254
|
|
|
3254
|
-
.scroll-timeline-x[data-v-
|
|
3255
|
+
.scroll-timeline-x[data-v-311ac78f] {
|
|
3255
3256
|
scroll-timeline: --scroll-timeline x;
|
|
3256
3257
|
scroll-timeline: --scroll-timeline horizontal;
|
|
3257
3258
|
-ms-overflow-style: none;
|
|
@@ -3259,7 +3260,7 @@ input[data-v-819cea32]::placeholder {
|
|
|
3259
3260
|
overflow: auto;
|
|
3260
3261
|
}
|
|
3261
3262
|
|
|
3262
|
-
.scroll-timeline-x[data-v-
|
|
3263
|
+
.scroll-timeline-x[data-v-311ac78f]::-webkit-scrollbar {
|
|
3263
3264
|
display: none;
|
|
3264
3265
|
}
|
|
3265
3266
|
|
|
@@ -5110,18 +5111,10 @@ div + .userMessage[data-v-8e43ed7a] {
|
|
|
5110
5111
|
top: 14px;
|
|
5111
5112
|
}
|
|
5112
5113
|
|
|
5113
|
-
.scalar-app .top-4 {
|
|
5114
|
-
top: 16px;
|
|
5115
|
-
}
|
|
5116
|
-
|
|
5117
5114
|
.scalar-app .top-12 {
|
|
5118
5115
|
top: 48px;
|
|
5119
5116
|
}
|
|
5120
5117
|
|
|
5121
|
-
.scalar-app .top-14 {
|
|
5122
|
-
top: 56px;
|
|
5123
|
-
}
|
|
5124
|
-
|
|
5125
5118
|
.scalar-app .top-\[1lh\] {
|
|
5126
5119
|
top: 1lh;
|
|
5127
5120
|
}
|
|
@@ -5134,6 +5127,10 @@ div + .userMessage[data-v-8e43ed7a] {
|
|
|
5134
5127
|
top: calc(100% + 4px);
|
|
5135
5128
|
}
|
|
5136
5129
|
|
|
5130
|
+
.scalar-app .top-\[calc\(var\(--app-desktop-tabs-height\)\+var\(--spacing-header\,48px\)\+1rem\)\] {
|
|
5131
|
+
top: calc(var(--app-desktop-tabs-height) + var(--spacing-header, 48px) + 1rem);
|
|
5132
|
+
}
|
|
5133
|
+
|
|
5137
5134
|
.scalar-app .top-px {
|
|
5138
5135
|
top: 1px;
|
|
5139
5136
|
}
|
|
@@ -9401,6 +9398,10 @@ div + .userMessage[data-v-8e43ed7a] {
|
|
|
9401
9398
|
display: flex !important;
|
|
9402
9399
|
}
|
|
9403
9400
|
|
|
9401
|
+
.scalar-app .max-md\:hidden {
|
|
9402
|
+
display: none;
|
|
9403
|
+
}
|
|
9404
|
+
|
|
9404
9405
|
.scalar-app .max-md\:hidden\! {
|
|
9405
9406
|
display: none !important;
|
|
9406
9407
|
}
|
|
@@ -9409,6 +9410,10 @@ div + .userMessage[data-v-8e43ed7a] {
|
|
|
9409
9410
|
width: 100% !important;
|
|
9410
9411
|
}
|
|
9411
9412
|
|
|
9413
|
+
.scalar-app .max-md\:gap-0 {
|
|
9414
|
+
gap: 0;
|
|
9415
|
+
}
|
|
9416
|
+
|
|
9412
9417
|
.scalar-app .max-md\:pt-2 {
|
|
9413
9418
|
padding-top: 8px;
|
|
9414
9419
|
}
|
|
@@ -9417,6 +9422,10 @@ div + .userMessage[data-v-8e43ed7a] {
|
|
|
9417
9422
|
padding-top: 48px;
|
|
9418
9423
|
}
|
|
9419
9424
|
|
|
9425
|
+
.scalar-app .max-md\:pt-\[calc\(var\(--app-desktop-tabs-height\)\+var\(--spacing-header\,48px\)\+2\.5rem\)\] {
|
|
9426
|
+
padding-top: calc(var(--app-desktop-tabs-height) + var(--spacing-header, 48px) + 2.5rem);
|
|
9427
|
+
}
|
|
9428
|
+
|
|
9420
9429
|
.scalar-app .max-md\:pl-4\! {
|
|
9421
9430
|
padding-left: 16px !important;
|
|
9422
9431
|
}
|
|
@@ -9428,6 +9437,10 @@ div + .userMessage[data-v-8e43ed7a] {
|
|
|
9428
9437
|
.scalar-app .max-md\:pl-14 {
|
|
9429
9438
|
padding-left: 56px;
|
|
9430
9439
|
}
|
|
9440
|
+
|
|
9441
|
+
.scalar-app .max-md\:text-xs {
|
|
9442
|
+
font-size: var(--scalar-font-size-5);
|
|
9443
|
+
}
|
|
9431
9444
|
}
|
|
9432
9445
|
|
|
9433
9446
|
@media (min-width: 800px) {
|
|
@@ -9796,6 +9809,10 @@ div + .userMessage[data-v-8e43ed7a] {
|
|
|
9796
9809
|
padding-top: 48px;
|
|
9797
9810
|
}
|
|
9798
9811
|
|
|
9812
|
+
.app-platform-mac :is(.scalar-app .mac\:pl-\[72px\]) {
|
|
9813
|
+
padding-left: 72px;
|
|
9814
|
+
}
|
|
9815
|
+
|
|
9799
9816
|
.app-platform-mac :is(.scalar-app .mac\:app-drag-region) {
|
|
9800
9817
|
-webkit-app-region: drag;
|
|
9801
9818
|
-webkit-app-region: drag;
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.55.
|
|
23
|
+
"version": "1.55.3",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=22"
|
|
26
26
|
},
|
|
@@ -91,20 +91,20 @@
|
|
|
91
91
|
"nanoid": "^5.1.6",
|
|
92
92
|
"vue": "^3.5.30",
|
|
93
93
|
"yaml": "^2.8.3",
|
|
94
|
-
"@scalar/agent-chat": "0.10.
|
|
95
|
-
"@scalar/api-client": "3.6.
|
|
94
|
+
"@scalar/agent-chat": "0.10.15",
|
|
95
|
+
"@scalar/api-client": "3.6.1",
|
|
96
96
|
"@scalar/code-highlight": "0.3.4",
|
|
97
|
+
"@scalar/components": "0.24.2",
|
|
97
98
|
"@scalar/helpers": "0.6.0",
|
|
98
99
|
"@scalar/icons": "0.7.2",
|
|
99
|
-
"@scalar/
|
|
100
|
-
"@scalar/sidebar": "0.9.10",
|
|
101
|
-
"@scalar/oas-utils": "0.15.2",
|
|
100
|
+
"@scalar/oas-utils": "0.15.3",
|
|
102
101
|
"@scalar/snippetz": "0.9.6",
|
|
103
|
-
"@scalar/
|
|
102
|
+
"@scalar/sidebar": "0.9.11",
|
|
104
103
|
"@scalar/themes": "0.15.3",
|
|
105
|
-
"@scalar/use-toasts": "0.10.2",
|
|
106
104
|
"@scalar/use-hooks": "0.4.3",
|
|
107
|
-
"@scalar/
|
|
105
|
+
"@scalar/types": "0.9.6",
|
|
106
|
+
"@scalar/workspace-store": "0.49.3",
|
|
107
|
+
"@scalar/use-toasts": "0.10.2"
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
110
|
"@hono/node-server": "^1.19.10",
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
"vite-plugin-banner": "^0.8.1",
|
|
124
124
|
"vite-plugin-css-injected-by-js": "^5.0.0",
|
|
125
125
|
"vitest": "4.1.0",
|
|
126
|
-
"@scalar/
|
|
127
|
-
"@scalar/
|
|
126
|
+
"@scalar/galaxy": "0.6.4",
|
|
127
|
+
"@scalar/core": "0.5.7"
|
|
128
128
|
},
|
|
129
129
|
"scripts": {
|
|
130
130
|
"build": "pnpm build:default && pnpm build:styles && pnpm build:standalone && vue-tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|