@scalar/api-reference 1.25.128 → 1.26.0
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 +54 -0
- package/dist/browser/standalone.js +7981 -7915
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +1 -1
- 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/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +45 -42
- package/dist/components/Content/Lazy/Loading.vue.js +15 -15
- package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
- package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
- package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +87 -5
- package/dist/components/Content/Tag/Tag.vue2.js +2 -63
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +11 -11
- package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/TagSection.vue.js +7 -0
- package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
- package/dist/components/Content/Tag/index.d.ts +1 -2
- package/dist/components/Content/Tag/index.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +30 -10
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +31 -30
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +16 -14
- package/dist/helpers/get-request.d.ts +1 -0
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +3 -3
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useConfig.js +7 -4
- package/dist/hooks/useNavState.js +38 -38
- package/dist/hooks/useReactiveSpec.d.ts +8 -8
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +126 -116
- package/dist/index.js +55 -59
- package/dist/libs/operation.d.ts +15 -0
- package/dist/libs/operation.d.ts.map +1 -0
- package/dist/libs/operation.js +16 -0
- package/dist/stores/useHttpClientStore.d.ts +1 -1
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -14
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
- package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
- package/dist/helpers/operation.d.ts +0 -14
- package/dist/helpers/operation.d.ts.map +0 -1
- package/dist/helpers/operation.js +0 -18
- package/dist/standalone/lib/html-rendering.d.ts +0 -50
- package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
- package/dist/standalone/lib/html-rendering.js +0 -64
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Operation } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import { XScalarStability } from '@scalar/types/legacy';
|
|
3
|
+
/**
|
|
4
|
+
* Returns if an operation is considered deprecated.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isOperationDeprecated(operation: Pick<Operation, 'deprecated' | 'x-scalar-stability'>): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Get operation stability.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getOperationStability(operation: Pick<Operation, 'deprecated' | 'x-scalar-stability'>): XScalarStability | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Get Operation stability color
|
|
13
|
+
*/
|
|
14
|
+
export declare function getOperationStabilityColor(operation: Pick<Operation, 'deprecated' | 'x-scalar-stability'>): string;
|
|
15
|
+
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/libs/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAAG,OAAO,CAI9G;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAC9D,gBAAgB,GAAG,SAAS,CAG9B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,oBAAoB,CAAC,GAAG,MAAM,CAMlH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { XScalarStability as e } from "@scalar/types/legacy";
|
|
2
|
+
function n(t) {
|
|
3
|
+
return t.deprecated !== void 0 ? t.deprecated : !!(t["x-scalar-stability"] && t["x-scalar-stability"] === e.Deprecated);
|
|
4
|
+
}
|
|
5
|
+
function i(t) {
|
|
6
|
+
return t.deprecated ? e.Deprecated : t["x-scalar-stability"];
|
|
7
|
+
}
|
|
8
|
+
function c(t) {
|
|
9
|
+
const r = i(t);
|
|
10
|
+
return r === e.Deprecated ? "text-red" : r === e.Experimental ? "text-orange" : r === e.Stable ? "text-green" : "";
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
i as getOperationStability,
|
|
14
|
+
c as getOperationStabilityColor,
|
|
15
|
+
n as isOperationDeprecated
|
|
16
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Target, TargetId } from '@scalar/snippetz/types';
|
|
2
1
|
import type { HiddenClients } from '@scalar/types/legacy';
|
|
2
|
+
import type { Target, TargetId } from '@scalar/types/snippetz';
|
|
3
3
|
import { type Ref } from 'vue';
|
|
4
4
|
/**
|
|
5
5
|
* Gets the client title from the availableTargets
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,KAAK,GAAG,EAAqC,MAAM,KAAK,CAAA;AASjE;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAE9C;AAED;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAM9C;AAYD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,CAkD5F;AASD,+BAA+B;AAC/B,MAAM,MAAM,eAAe,GAAG;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAMxE,iBAAS,oBAAoB,CAAC,UAAU,CAAC,EAAE,eAAe,QAKzD;AAiCD,iBAAS,UAAU,SAElB;AAYD,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;4BA3DY,QAAQ;4BAAa,MAAM;;;8BAmDrC,OAAO,CAAC,eAAe,CAAC;;qBAcP,GAAG,CAAC,aAAa,CAAC;4BACxC,aAAa;;;;;;CAaxC,CAAA"}
|