@scalar/api-client-react 0.2.7 → 0.2.9

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @scalar/api-client-react
2
2
 
3
+ ## 0.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - @scalar/api-client@1.1.3
8
+
9
+ ## 0.2.8
10
+
11
+ ### Patch Changes
12
+
13
+ - 8d11934: fix: clear response on irregardless of open or closed
14
+
3
15
  ## 0.2.7
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -2814,7 +2814,7 @@ a[data-v-ffc7287f] {
2814
2814
  rgba(120, 119, 198, 0.3),
2815
2815
  transparent
2816
2816
  );
2817
- height: 100%;
2817
+ height: 100vh;
2818
2818
  }
2819
2819
  `,jQ=`/* basic theme */
2820
2820
  .light-mode {
@@ -3481,4 +3481,4 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
3481
3481
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
3482
3482
  * @license MIT
3483
3483
  **/function CM(){Dp()}process.env.NODE_ENV!=="production"&&CM();const G0=new WeakMap;function AM(t){let e=G0.get(t??Ze);return e||(e=Object.create(null),G0.set(t??Ze,e)),e}function RM(t,e){if(!ve(t))if(t.nodeType)t=t.innerHTML;else return process.env.NODE_ENV!=="production"&&Vt("invalid template option: ",t),et;const n=t,r=AM(e),o=r[n];if(o)return o;if(t[0]==="#"){const c=document.querySelector(t);process.env.NODE_ENV!=="production"&&!c&&Vt(`Template element not found or is empty: ${t}`),t=c?c.innerHTML:""}const i=Ee({hoistStatic:!0,onError:process.env.NODE_ENV!=="production"?a:void 0,onWarn:process.env.NODE_ENV!=="production"?c=>a(c,!0):et},e);!i.isCustomElement&&typeof customElements<"u"&&(i.isCustomElement=c=>!!customElements.get(c));const{code:s}=QM(t,i);function a(c,u=!1){const d=u?c.message:`Template compilation error: ${c.message}`,h=c.loc&&aP(t,c.loc.start.offset,c.loc.end.offset);Vt(h?`${d}
3484
- ${h}`:d)}const l=new Function("Vue",s)(qT);return l._rc=!0,r[n]=l}R1(RM);globalThis.__VUE_OPTIONS_API__=!0;globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0;globalThis.__VUE_PROD_DEVTOOLS__=!1;const zx=t=>{const e=wi.useRef(null);return wi.useEffect(()=>{if(!e.current)return;const n=rw(A8,{proxyUrl:t.proxy});return n.mount(e.current),()=>n.unmount()},[e]),Xr.jsx("div",{ref:e})},{resetActiveResponse:NM,setActiveRequest:ZM}=Dn(),DM=({proxy:t="",close:e,isOpen:n=!1,request:r})=>{wi.useEffect(()=>{n?r&&ZM(r):NM()},[n,r]);const[o,i]=wi.useState("");return wi.useEffect(()=>i(window.location.host),[]),Xr.jsx("div",{className:"scalar",style:{display:n?"block":"none"},children:Xr.jsxs("div",{className:"scalar-container",children:[Xr.jsxs("div",{className:"scalar-app",children:[Xr.jsxs("div",{className:"scalar-app-header",children:[Xr.jsx("span",{children:"API Client"}),Xr.jsx("a",{href:`https://www.scalar.com?utm_campaign=${o}`,target:"_blank",children:"Powered by scalar.com"})]}),Xr.jsx(zx,{proxy:t})]}),Xr.jsx("div",{onClick:e,className:"scalar-app-exit"})]})})};exports.ApiClientReact=DM;exports.ApiClientReactBase=zx;
3484
+ ${h}`:d)}const l=new Function("Vue",s)(qT);return l._rc=!0,r[n]=l}R1(RM);globalThis.__VUE_OPTIONS_API__=!0;globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0;globalThis.__VUE_PROD_DEVTOOLS__=!1;const zx=t=>{const e=wi.useRef(null);return wi.useEffect(()=>{if(!e.current)return;const n=rw(A8,{proxyUrl:t.proxy});return n.mount(e.current),()=>n.unmount()},[e]),Xr.jsx("div",{ref:e})},{resetActiveResponse:NM,setActiveRequest:ZM}=Dn(),DM=({proxy:t="",close:e,isOpen:n=!1,request:r})=>{wi.useEffect(()=>{NM(),r&&ZM(r)},[n,r]);const[o,i]=wi.useState("");return wi.useEffect(()=>i(window.location.host),[]),Xr.jsx("div",{className:"scalar",style:{display:n?"block":"none"},children:Xr.jsxs("div",{className:"scalar-container",children:[Xr.jsxs("div",{className:"scalar-app",children:[Xr.jsxs("div",{className:"scalar-app-header",children:[Xr.jsx("span",{children:"API Client"}),Xr.jsx("a",{href:`https://www.scalar.com?utm_campaign=${o}`,target:"_blank",children:"Powered by scalar.com"})]}),Xr.jsx(zx,{proxy:t})]}),Xr.jsx("div",{onClick:e,className:"scalar-app-exit"})]})})};exports.ApiClientReact=DM;exports.ApiClientReactBase=zx;
package/dist/index.js CHANGED
@@ -13622,7 +13622,7 @@ const WQ = `/* basic theme */
13622
13622
  rgba(120, 119, 198, 0.3),
13623
13623
  transparent
13624
13624
  );
13625
- height: 100%;
13625
+ height: 100vh;
13626
13626
  }
13627
13627
  `, qQ = `/* basic theme */
13628
13628
  .light-mode {
@@ -42818,7 +42818,7 @@ const DM = (t) => {
42818
42818
  request: r
42819
42819
  }) => {
42820
42820
  hh(() => {
42821
- n ? r && MM(r) : VM();
42821
+ VM(), r && MM(r);
42822
42822
  }, [n, r]);
42823
42823
  const [o, i] = Jx("");
42824
42824
  return hh(() => i(window.location.host), []), /* @__PURE__ */ Xr.jsx(
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "testing",
15
15
  "react"
16
16
  ],
17
- "version": "0.2.7",
17
+ "version": "0.2.9",
18
18
  "engines": {
19
19
  "node": ">=18"
20
20
  },
@@ -33,7 +33,7 @@
33
33
  "directory": "packages/api-client-react"
34
34
  },
35
35
  "dependencies": {
36
- "@scalar/api-client": "1.1.2"
36
+ "@scalar/api-client": "1.1.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/react": "^18.2.60",