@scalar/api-reference 1.28.1 → 1.28.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 +41 -0
- package/dist/blocks/hooks/useBlockProps.d.ts +4 -5
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
- package/dist/blocks/hooks/useBlockProps.js +10 -14
- package/dist/browser/standalone.js +11624 -11582
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +103 -109
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +48 -40
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +6 -7
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +97 -71
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +18 -18
- package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +58 -56
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +77 -77
- package/dist/components/Content/Tag/OperationsList.vue.d.ts +2 -0
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsList.vue2.js +22 -20
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +10 -8
- package/dist/components/Content/Tag/Tag.vue.d.ts +2 -0
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +38 -34
- package/dist/components/Content/Tag/TagList.vue.d.ts +3 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +32 -30
- package/dist/components/Content/Tag/TagSection.vue.d.ts +2 -0
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +16 -14
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +41 -40
- package/dist/features/ApiClientModal/useApiClient.d.ts +6 -6
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +6 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +36 -32
- package/dist/features/Operation/Operation.vue.d.ts +1 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +13 -12
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +11 -8
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +9 -8
- package/dist/helpers/scrollToId.d.ts +3 -1
- package/dist/helpers/scrollToId.d.ts.map +1 -1
- package/dist/helpers/scrollToId.js +4 -4
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.js +49 -41
- package/dist/hooks/useSidebar.d.ts +2 -2
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +84 -84
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/standalone/lib/html-api.d.ts +8 -9
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -10
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ThemeId } from '@scalar/themes';
|
|
2
|
-
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
|
+
import type { ApiReferenceConfiguration, MultiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
3
3
|
import type { HarRequest } from '@scalar/types/snippetz';
|
|
4
4
|
import type { ContentType, ReferenceConfiguration, Spec } from '@scalar/types/legacy';
|
|
5
5
|
import type { Slot } from 'vue';
|
|
6
6
|
export type { ApiReferenceConfiguration };
|
|
7
7
|
export type { ReferenceConfiguration };
|
|
8
8
|
export type ReferenceProps = {
|
|
9
|
-
configuration?:
|
|
9
|
+
configuration?: MultiReferenceConfiguration;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Before the configuration is parsed, we can use the broader types.
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AACzG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,YAAY,EAAE,yBAAyB,EAAE,CAAA;AAEzC,YAAY,EAAE,sBAAsB,EAAE,CAAA;AAEtC,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,2BAA2B,CAAA;CAC5C,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACjD,UAAU,EAAE,IAAI,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,yBAAyB,CAAA;IACxC,UAAU,EAAE,IAAI,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,eAAe,CAAA;AAEjE,MAAM,M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
|
|
26
26
|
},
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
"nanoid": "^5.0.9",
|
|
56
56
|
"vue": "^3.5.12",
|
|
57
57
|
"zod": "^3.23.8",
|
|
58
|
-
"@scalar/api-client": "2.3.
|
|
59
|
-
"@scalar/components": "0.13.
|
|
60
|
-
"@scalar/code-highlight": "0.0.24",
|
|
61
|
-
"@scalar/oas-utils": "0.2.118",
|
|
58
|
+
"@scalar/api-client": "2.3.3",
|
|
59
|
+
"@scalar/components": "0.13.37",
|
|
62
60
|
"@scalar/openapi-parser": "0.10.10",
|
|
63
|
-
"@scalar/
|
|
61
|
+
"@scalar/code-highlight": "0.0.25",
|
|
62
|
+
"@scalar/oas-utils": "0.2.120",
|
|
64
63
|
"@scalar/openapi-types": "0.1.9",
|
|
65
|
-
"@scalar/
|
|
66
|
-
"@scalar/
|
|
64
|
+
"@scalar/types": "0.1.1",
|
|
65
|
+
"@scalar/themes": "0.9.79",
|
|
67
66
|
"@scalar/snippetz": "0.2.16",
|
|
67
|
+
"@scalar/use-hooks": "0.1.33",
|
|
68
68
|
"@scalar/use-toasts": "0.7.9"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"vite-plugin-banner": "^0.7.1",
|
|
80
80
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
81
81
|
"vitest": "^1.6.0",
|
|
82
|
-
"@scalar/
|
|
83
|
-
"@scalar/
|
|
82
|
+
"@scalar/galaxy": "0.2.24",
|
|
83
|
+
"@scalar/build-tooling": "0.1.17"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"analyze:default": "pnpm dlx vite-bundle-visualizer",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"lint:check": "eslint .",
|
|
94
94
|
"lint:fix": "eslint . --fix",
|
|
95
95
|
"playground:esm": "vite ./playground/esm -c ./playground/esm/vite.config.ts",
|
|
96
|
+
"playground:vue": "vite ./playground/vue -c ./playground/vue/vite.config.ts",
|
|
96
97
|
"preview": "vite preview",
|
|
97
98
|
"test": "vitest",
|
|
98
99
|
"types:build": "vue-tsc -p tsconfig.build.json",
|