@scalar/sidebar 0.10.1 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,8 @@ var API_CLIENT_TYPES_SET = /* @__PURE__ */ new Set([
|
|
|
4
4
|
"document",
|
|
5
5
|
"operation",
|
|
6
6
|
"example",
|
|
7
|
-
"tag"
|
|
7
|
+
"tag",
|
|
8
|
+
"webhook"
|
|
8
9
|
]);
|
|
9
10
|
var filterItems = (layout, items, hideOperationDefaultExamples) => {
|
|
10
11
|
if (hideOperationDefaultExamples && items.length === 1 && items[0]?.type === "example" && items[0]?.name === "default") return [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-items.js","names":[],"sources":["../../src/helpers/filter-items.ts"],"sourcesContent":["import type { Item, Layout } from '@/types'\n\n/** The type of items we want to */\nconst API_CLIENT_TYPES_SET = new Set(['document', 'operation', 'example', 'tag'])\n\nexport const filterItems = (layout: Layout, items: Item[], hideOperationDefaultExamples?: boolean) => {\n // If we are hiding the default examples and there is only one example and it is the default example, we don't want to show it\n if (\n hideOperationDefaultExamples &&\n items.length === 1 &&\n items[0]?.type === 'example' &&\n items[0]?.name === 'default'\n ) {\n return []\n }\n\n if (layout === 'reference') {\n return items\n }\n\n // For client layout,
|
|
1
|
+
{"version":3,"file":"filter-items.js","names":[],"sources":["../../src/helpers/filter-items.ts"],"sourcesContent":["import type { Item, Layout } from '@/types'\n\n/** The type of items we want to */\nconst API_CLIENT_TYPES_SET = new Set(['document', 'operation', 'example', 'tag', 'webhook'])\n\nexport const filterItems = (layout: Layout, items: Item[], hideOperationDefaultExamples?: boolean) => {\n // If we are hiding the default examples and there is only one example and it is the default example, we don't want to show it\n if (\n hideOperationDefaultExamples &&\n items.length === 1 &&\n items[0]?.type === 'example' &&\n items[0]?.name === 'default'\n ) {\n return []\n }\n\n if (layout === 'reference') {\n return items\n }\n\n // For client layout, show entries that can open an HTTP request.\n return items.filter((c) => API_CLIENT_TYPES_SET.has(c.type))\n}\n"],"mappings":";;AAGA,IAAM,uCAAuB,IAAI,IAAI;CAAC;CAAY;CAAa;CAAW;CAAO;AAAS,CAAC;AAE3F,IAAa,eAAe,QAAgB,OAAe,iCAA2C;CAEpG,IACE,gCACA,MAAM,WAAW,KACjB,MAAM,EAAE,EAAE,SAAS,aACnB,MAAM,EAAE,EAAE,SAAS,WAEnB,OAAO,CAAC;CAGV,IAAI,WAAW,aACb,OAAO;CAIT,OAAO,MAAM,QAAQ,MAAM,qBAAqB,IAAI,EAAE,IAAI,CAAC;AAC7D"}
|
package/dist/style.css
CHANGED
|
@@ -489,6 +489,7 @@
|
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
:where(.scalar-app) input:-webkit-autofill {
|
|
492
|
+
-webkit-text-fill-color: var(--scalar-color-1);
|
|
492
493
|
-webkit-background-clip: text !important;
|
|
493
494
|
background-clip: text !important;
|
|
494
495
|
}
|
|
@@ -2620,10 +2621,6 @@
|
|
|
2620
2621
|
min-width: 24px;
|
|
2621
2622
|
}
|
|
2622
2623
|
|
|
2623
|
-
.scalar-app .min-w-min {
|
|
2624
|
-
min-width: min-content;
|
|
2625
|
-
}
|
|
2626
|
-
|
|
2627
2624
|
.scalar-app .flex-1 {
|
|
2628
2625
|
flex: 1;
|
|
2629
2626
|
}
|
|
@@ -3739,10 +3736,6 @@
|
|
|
3739
3736
|
min-width: 20px;
|
|
3740
3737
|
}
|
|
3741
3738
|
|
|
3742
|
-
:is(.scalar-app .\*\:flex-1 > *) {
|
|
3743
|
-
flex: 1;
|
|
3744
|
-
}
|
|
3745
|
-
|
|
3746
3739
|
:is(.scalar-app .\*\:items-center > *) {
|
|
3747
3740
|
align-items: center;
|
|
3748
3741
|
}
|
|
@@ -3751,10 +3744,6 @@
|
|
|
3751
3744
|
justify-content: center;
|
|
3752
3745
|
}
|
|
3753
3746
|
|
|
3754
|
-
:is(.scalar-app .\*\:gap-1 > *) {
|
|
3755
|
-
gap: 4px;
|
|
3756
|
-
}
|
|
3757
|
-
|
|
3758
3747
|
:is(.scalar-app .\*\:rounded > *) {
|
|
3759
3748
|
border-radius: var(--scalar-radius-md);
|
|
3760
3749
|
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/sidebar"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.
|
|
13
|
+
"version": "0.11.1",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"vue": "^3.5.40",
|
|
36
|
-
"@scalar/components": "0.
|
|
36
|
+
"@scalar/components": "0.29.1",
|
|
37
37
|
"@scalar/icons": "0.7.6",
|
|
38
|
-
"@scalar/
|
|
39
|
-
"@scalar/
|
|
40
|
-
"@scalar/use-hooks": "0.4.
|
|
41
|
-
"@scalar/workspace-store": "0.
|
|
38
|
+
"@scalar/helpers": "0.11.3",
|
|
39
|
+
"@scalar/themes": "0.17.4",
|
|
40
|
+
"@scalar/use-hooks": "0.4.11",
|
|
41
|
+
"@scalar/workspace-store": "0.60.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tailwindcss/cli": "^4.3.3",
|