@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.
Files changed (73) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/browser/standalone.js +7981 -7915
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  5. package/dist/components/ApiReferenceLayout.vue2.js +1 -1
  6. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  7. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  8. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  9. package/dist/components/Content/Introduction/Introduction.vue2.js +45 -42
  10. package/dist/components/Content/Lazy/Loading.vue.js +15 -15
  11. package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
  12. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
  13. package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
  14. package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
  15. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
  16. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
  17. package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
  18. package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
  19. package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
  20. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Tag/Tag.vue.js +87 -5
  22. package/dist/components/Content/Tag/Tag.vue2.js +2 -63
  23. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Tag/TagList.vue.js +11 -11
  25. package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
  26. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
  27. package/dist/components/Content/Tag/TagSection.vue.js +7 -0
  28. package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
  29. package/dist/components/Content/Tag/index.d.ts +1 -2
  30. package/dist/components/Content/Tag/index.d.ts.map +1 -1
  31. package/dist/features/ApiClientModal/useApiClient.d.ts +30 -10
  32. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  33. package/dist/features/BaseUrl/BaseUrl.vue.js +31 -30
  34. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  35. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  36. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  37. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  38. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
  39. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  40. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  41. package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
  42. package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
  43. package/dist/features/TestRequestButton/TestRequestButton.vue2.js +16 -14
  44. package/dist/helpers/get-request.d.ts +1 -0
  45. package/dist/helpers/get-request.d.ts.map +1 -1
  46. package/dist/helpers/index.d.ts +0 -1
  47. package/dist/helpers/index.d.ts.map +1 -1
  48. package/dist/hooks/useConfig.d.ts +3 -3
  49. package/dist/hooks/useConfig.d.ts.map +1 -1
  50. package/dist/hooks/useConfig.js +7 -4
  51. package/dist/hooks/useNavState.js +38 -38
  52. package/dist/hooks/useReactiveSpec.d.ts +8 -8
  53. package/dist/hooks/useSidebar.d.ts.map +1 -1
  54. package/dist/hooks/useSidebar.js +126 -116
  55. package/dist/index.js +55 -59
  56. package/dist/libs/operation.d.ts +15 -0
  57. package/dist/libs/operation.d.ts.map +1 -0
  58. package/dist/libs/operation.js +16 -0
  59. package/dist/stores/useHttpClientStore.d.ts +1 -1
  60. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  61. package/dist/style.css +1 -1
  62. package/dist/types.d.ts +1 -1
  63. package/dist/types.d.ts.map +1 -1
  64. package/package.json +13 -14
  65. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
  66. package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
  67. package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
  68. package/dist/helpers/operation.d.ts +0 -14
  69. package/dist/helpers/operation.d.ts.map +0 -1
  70. package/dist/helpers/operation.js +0 -18
  71. package/dist/standalone/lib/html-rendering.d.ts +0 -50
  72. package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
  73. 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,MAAM,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,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,EA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