@scalar/api-reference 0.1.12 → 0.1.14

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.
@@ -1,4 +1,5 @@
1
1
  import { type Spec } from '../types';
2
+ export { useApiClientStore } from '@scalar/api-client';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  spec: {
4
5
  type: import("vue").PropType<Spec>;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;AA0JpC,wBAAkD"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AAIpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;;;;;;;;;;;;;;;;;;AACtD,wBAwJ8C"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { default as ApiClientModal } from './components/ApiClientModal.vue';
1
+ export { default as ApiClientModal, useApiClientStore } from './components/ApiClientModal.vue';
2
2
  export { default as ApiReference } from './components/ApiReference.vue';
3
3
  export { default as Sidebar } from './components/Sidebar.vue';
4
4
  export { default as RenderedReference } from './components/Content/Content.vue';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAE/E,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAC9F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAE/E,cAAc,SAAS,CAAA"}
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import remarkRehype from "remark-rehype";
9
9
  import remarkTextr from "remark-textr";
10
10
  import typographicBase from "typographic-base";
11
11
  import { unified } from "unified";
12
- let ApiClientModal, _sfc_main, Content, _sfc_main$o;
12
+ let ApiClientModal, _sfc_main, Content, _sfc_main$o, useApiClientStore;
13
13
  let __tla = (async () => {
14
14
  const DefaultBufferLength = 1024;
15
15
  let nextPropID = 0;
@@ -22196,7 +22196,7 @@ Component that was made reactive: `, type2);
22196
22196
  function setActiveSidebar(item) {
22197
22197
  state$1.activeSidebar = item;
22198
22198
  }
22199
- const useApiClientStore = () => ({
22199
+ useApiClientStore = () => ({
22200
22200
  state: readonly$1(state$1),
22201
22201
  toggleApiClient,
22202
22202
  setActiveApiClientEndpointId,
@@ -45272,11 +45272,11 @@ ${closingBraceIndent}]`;
45272
45272
  };
45273
45273
  }
45274
45274
  });
45275
- const ApiClientModal_vue_vue_type_style_index_0_scoped_5739a677_lang = "";
45275
+ const ApiClientModal_vue_vue_type_style_index_0_scoped_1b925514_lang = "";
45276
45276
  ApiClientModal = _export_sfc(_sfc_main$n, [
45277
45277
  [
45278
45278
  "__scopeId",
45279
- "data-v-5739a677"
45279
+ "data-v-1b925514"
45280
45280
  ]
45281
45281
  ]);
45282
45282
  const Card_vue_vue_type_style_index_0_scoped_18b26a5c_lang = "";
@@ -48685,5 +48685,6 @@ export {
48685
48685
  _sfc_main as ApiReference,
48686
48686
  Content as RenderedReference,
48687
48687
  _sfc_main$o as Sidebar,
48688
- __tla
48688
+ __tla,
48689
+ useApiClientStore
48689
48690
  };
package/dist/style.css CHANGED
@@ -460,10 +460,10 @@ to {
460
460
  }
461
461
  }
462
462
 
463
- .scalar-api-client__container .scalar-api-client[data-v-5739a677] {
463
+ .scalar-api-client__container .scalar-api-client[data-v-1b925514] {
464
464
  width: calc(100% - var(--scalar-api-reference-theme-sidebar-width));
465
465
  }
466
- .scalar-api-client__container[data-v-5739a677] {
466
+ .scalar-api-client__container[data-v-1b925514] {
467
467
  position: absolute;
468
468
  right: 0;
469
469
  left: 0;
@@ -484,11 +484,11 @@ to {
484
484
  flex-direction: column;
485
485
  }
486
486
  @media screen and (max-width: 1265px) {
487
- .scalar-api-client__container[data-v-5739a677] {
487
+ .scalar-api-client__container[data-v-1b925514] {
488
488
  width: 100vw !important;
489
489
  }
490
490
  }
491
- .scalar-api-client__navigation[data-v-5739a677] {
491
+ .scalar-api-client__navigation[data-v-1b925514] {
492
492
  width: 100%;
493
493
  display: flex;
494
494
  align-items: center;
@@ -500,7 +500,7 @@ to {
500
500
  border-bottom: var(--scalar-api-reference-border);
501
501
  top: 0;
502
502
  }
503
- .scalar-api-client__close[data-v-5739a677] {
503
+ .scalar-api-client__close[data-v-1b925514] {
504
504
  appearance: none;
505
505
  border: none;
506
506
  outline: none;
@@ -511,7 +511,7 @@ to {
511
511
  color: var(--scalar-api-reference-theme-color-1);
512
512
  font-weight: var(--scalar-api-reference-theme-semibold);
513
513
  }
514
- .scalar-api-client__close[data-v-5739a677]:hover {
514
+ .scalar-api-client__close[data-v-1b925514]:hover {
515
515
  cursor: pointer;
516
516
  }
517
517
  /*
@@ -534,7 +534,7 @@ TODO: Markup is missing
534
534
  height: 12px;
535
535
  transform: rotate(180deg);
536
536
  } */
537
- .api-client-drawer[data-v-5739a677] {
537
+ .api-client-drawer[data-v-1b925514] {
538
538
  background: var(--scalar-api-reference-theme-background-1);
539
539
  height: calc(100vh - 58px);
540
540
  width: calc(100vw - 8px);
@@ -546,9 +546,9 @@ TODO: Markup is missing
546
546
  left: 4px;
547
547
  z-index: 9999;
548
548
  opacity: 0;
549
- animation: apiclientfadein-5739a677 0.35s forwards;
549
+ animation: apiclientfadein-1b925514 0.35s forwards;
550
550
  }
551
- @keyframes apiclientfadein-5739a677 {
551
+ @keyframes apiclientfadein-1b925514 {
552
552
  from {
553
553
  transform: translate3d(0, 20px, 0) scale(0.985);
554
554
  opacity: 0;
@@ -558,7 +558,7 @@ to {
558
558
  opacity: 1;
559
559
  }
560
560
  }
561
- .api-client-drawer-exit[data-v-5739a677] {
561
+ .api-client-drawer-exit[data-v-1b925514] {
562
562
  position: fixed;
563
563
  top: 0;
564
564
  left: 0;
@@ -568,9 +568,9 @@ to {
568
568
  transition: all 0.3s ease-in-out;
569
569
  z-index: 9998;
570
570
  cursor: pointer;
571
- animation: drawerexitfadein-5739a677 0.35s forwards;
571
+ animation: drawerexitfadein-1b925514 0.35s forwards;
572
572
  }
573
- @keyframes drawerexitfadein-5739a677 {
573
+ @keyframes drawerexitfadein-1b925514 {
574
574
  from {
575
575
  opacity: 0;
576
576
  }
@@ -578,10 +578,10 @@ to {
578
578
  opacity: 1;
579
579
  }
580
580
  }
581
- .scalar-api-client-height[data-v-5739a677] {
581
+ .scalar-api-client-height[data-v-1b925514] {
582
582
  height: 100%;
583
583
  }
584
- .scalar-api-client-height .sidebar[data-v-5739a677] {
584
+ .scalar-api-client-height .sidebar[data-v-1b925514] {
585
585
  flex: 1 1 0%;
586
586
  flex-grow: 1;
587
587
  flex-shrink: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalar/api-reference",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "author": "Scalar",
5
5
  "license": "UNLICENSED",
6
6
  "engines": {
@@ -42,7 +42,7 @@
42
42
  "typographic-base": "1.0.4",
43
43
  "unified": "10.1.2",
44
44
  "xmldom": "0.6.0",
45
- "@scalar/api-client": "0.1.10",
45
+ "@scalar/api-client": "0.1.12",
46
46
  "@scalar/use-clipboard": "0.1.4",
47
47
  "@scalar/swagger-editor": "0.1.6",
48
48
  "@scalar/use-tooltip": "0.1.4"