@scalar/api-reference 1.28.2 → 1.28.4

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 (63) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/blocks/hooks/useBlockProps.d.ts +4 -5
  3. package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
  4. package/dist/blocks/hooks/useBlockProps.js +10 -14
  5. package/dist/browser/standalone.js +5352 -5331
  6. package/dist/browser/webpack-stats.json +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +103 -109
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +2 -2
  12. package/dist/components/Content/Content.vue2.js +97 -71
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +18 -18
  16. package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +58 -56
  19. package/dist/components/Content/Tag/OperationsList.vue.d.ts +2 -0
  20. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
  22. package/dist/components/Content/Tag/OperationsList.vue2.js +22 -20
  23. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -0
  24. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  26. package/dist/components/Content/Tag/OperationsListItem.vue2.js +10 -8
  27. package/dist/components/Content/Tag/Tag.vue.d.ts +2 -0
  28. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Tag/Tag.vue.js +38 -34
  30. package/dist/components/Content/Tag/TagList.vue.d.ts +3 -0
  31. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Tag/TagList.vue.js +32 -30
  33. package/dist/components/Content/Tag/TagSection.vue.d.ts +2 -0
  34. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  36. package/dist/components/Content/Tag/TagSection.vue2.js +16 -14
  37. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  38. package/dist/components/ShowMoreButton.vue.js +2 -2
  39. package/dist/features/ApiClientModal/useApiClient.d.ts +6 -6
  40. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  41. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +6 -1
  42. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  43. package/dist/features/BaseUrl/BaseUrl.vue.js +36 -32
  44. package/dist/features/Operation/Operation.vue.d.ts +1 -1
  45. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  46. package/dist/features/Operation/Operation.vue.js +13 -12
  47. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  48. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  49. package/dist/features/Operation/components/RequestBody.vue2.js +31 -22
  50. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  51. package/dist/features/Search/SearchButton.vue.js +2 -2
  52. package/dist/helpers/get-request.d.ts.map +1 -1
  53. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  54. package/dist/hooks/useMultipleDocuments.js +49 -41
  55. package/dist/index.d.ts +1 -1
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/standalone/lib/html-api.d.ts +8 -9
  59. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/types.d.ts +2 -2
  62. package/dist/types.d.ts.map +1 -1
  63. package/package.json +8 -8
@@ -1,4 +1,4 @@
1
- import { type ApiReferenceConfiguration } from '@scalar/types/api-reference';
1
+ import { type ApiReferenceConfiguration, type MultiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  import { type App } from 'vue';
3
3
  /**
4
4
  * Reading the configuration from the data-attributes.
@@ -10,22 +10,22 @@ export declare function getConfigurationFromDataAttributes(doc: Document): ApiRe
10
10
  */
11
11
  export declare function findDataAttributes(doc: Document, configuration: ApiReferenceConfiguration): void;
12
12
  export declare const createContainer: (doc: Document, element?: Element | null) => Element | null;
13
- type ApiReferenceInstance = {
13
+ export type ApiReferenceInstance = {
14
14
  /** The vue app instance */
15
15
  app: App<Element>;
16
16
  /** Destroy the current API Reference instance */
17
17
  destroy: () => void;
18
- /** Get the current configuration */
19
- getConfiguration: () => Partial<ApiReferenceConfiguration>;
20
- /** Update the configuration */
21
- updateConfiguration: (newConfig: Partial<ApiReferenceConfiguration>) => void;
18
+ /** Get the current configuration[s] */
19
+ getConfiguration: () => MultiReferenceConfiguration;
20
+ /** Update all configuration[s] */
21
+ updateConfiguration: (newConfig: MultiReferenceConfiguration) => void;
22
22
  };
23
23
  /** Function overload for createApiReference to allow multiple different signatures */
24
24
  export type CreateApiReference = {
25
25
  /** Pass in the configuration only */
26
- (configuration: Partial<ApiReferenceConfiguration>): ApiReferenceInstance;
26
+ (configuration: MultiReferenceConfiguration): ApiReferenceInstance;
27
27
  /** Pass in the element or selector and configuration */
28
- (elementOrSelector: Element | string, configuration: Partial<ApiReferenceConfiguration>): ApiReferenceInstance;
28
+ (elementOrSelector: Element | string, configuration: MultiReferenceConfiguration): ApiReferenceInstance;
29
29
  };
30
30
  /**
31
31
  * Create and mount a new Scalar API Reference
@@ -36,5 +36,4 @@ export type CreateApiReference = {
36
36
  *
37
37
  */
38
38
  export declare const createApiReference: CreateApiReference;
39
- export {};
40
39
  //# sourceMappingURL=html-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"html-api.d.ts","sourceRoot":"","sources":["../../../src/standalone/lib/html-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,yBAAyB,EAAmC,MAAM,6BAA6B,CAAA;AAE7G,OAAO,EAAE,KAAK,GAAG,EAA0B,MAAM,KAAK,CAAA;AAMtD;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,GAAG,EAAE,QAAQ,GAAG,yBAAyB,CA+G3F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,aAAa,EAAE,yBAAyB,QAiBzF;AAID,eAAO,MAAM,eAAe,QAAS,QAAQ,YAAY,OAAO,GAAG,IAAI,mBAatE,CAAA;AAGD,KAAK,oBAAoB,GAAG;IAC1B,2BAA2B;IAC3B,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACjB,iDAAiD;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,oCAAoC;IACpC,gBAAgB,EAAE,MAAM,OAAO,CAAC,yBAAyB,CAAC,CAAA;IAC1D,+BAA+B;IAC/B,mBAAmB,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,yBAAyB,CAAC,KAAK,IAAI,CAAA;CAC7E,CAAA;AAED,sFAAsF;AACtF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qCAAqC;IACrC,CAAC,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,oBAAoB,CAAA;IACzE,wDAAwD;IACxD,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,oBAAoB,CAAA;CAC/G,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBA8GhC,CAAA"}
1
+ {"version":3,"file":"html-api.d.ts","sourceRoot":"","sources":["../../../src/standalone/lib/html-api.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,yBAAyB,EAE9B,KAAK,2BAA2B,E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