@redocly/replay 0.3.1 → 0.3.3
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/dist/replay.cjs +59 -51
- package/dist/replay.js +123 -114
- package/package.json +2 -2
package/dist/replay.js
CHANGED
|
@@ -2157,7 +2157,7 @@ See https://s-c.sh/2BAXzed for more info.`), window["__styled-components-init__"
|
|
|
2157
2157
|
const _ = Np, {
|
|
2158
2158
|
createElement: Mo,
|
|
2159
2159
|
createContext: p$,
|
|
2160
|
-
createRef:
|
|
2160
|
+
createRef: Wq,
|
|
2161
2161
|
forwardRef: Iw,
|
|
2162
2162
|
useCallback: Wn,
|
|
2163
2163
|
useContext: $w,
|
|
@@ -13948,6 +13948,7 @@ const RQ = {
|
|
|
13948
13948
|
redirects: ZQ,
|
|
13949
13949
|
seo: zQ,
|
|
13950
13950
|
rbac: XQ,
|
|
13951
|
+
requiresLogin: { type: "boolean" },
|
|
13951
13952
|
responseHeaders: {
|
|
13952
13953
|
type: "object",
|
|
13953
13954
|
additionalProperties: {
|
|
@@ -16206,7 +16207,7 @@ function Bl({
|
|
|
16206
16207
|
size: "small",
|
|
16207
16208
|
variant: "primary",
|
|
16208
16209
|
onClick: h,
|
|
16209
|
-
disabled: !c || !a,
|
|
16210
|
+
disabled: !c.trim() || !a.trim(),
|
|
16210
16211
|
"data-testid": "variable-save-button",
|
|
16211
16212
|
children: "Save"
|
|
16212
16213
|
}
|
|
@@ -54543,7 +54544,7 @@ function TU({ variable: n, environment: e }) {
|
|
|
54543
54544
|
});
|
|
54544
54545
|
};
|
|
54545
54546
|
return t ? /* @__PURE__ */ b.jsx(
|
|
54546
|
-
|
|
54547
|
+
jU,
|
|
54547
54548
|
{
|
|
54548
54549
|
variable: n.get(),
|
|
54549
54550
|
onSave: p,
|
|
@@ -54592,10 +54593,10 @@ function TU({ variable: n, environment: e }) {
|
|
|
54592
54593
|
] }),
|
|
54593
54594
|
children: /* @__PURE__ */ b.jsxs($U, { children: [
|
|
54594
54595
|
/* @__PURE__ */ b.jsxs(RU, { children: [
|
|
54595
|
-
a,
|
|
54596
|
+
/* @__PURE__ */ b.jsx(DU, { children: a }),
|
|
54596
54597
|
u && /* @__PURE__ */ b.jsx(PU, {})
|
|
54597
54598
|
] }),
|
|
54598
|
-
/* @__PURE__ */ b.jsx(
|
|
54599
|
+
/* @__PURE__ */ b.jsx(QU, { $isEmpty: !l, children: u && !i ? "•••••" : Va(l, e.variables) || "No value" })
|
|
54599
54600
|
] })
|
|
54600
54601
|
}
|
|
54601
54602
|
);
|
|
@@ -54610,36 +54611,44 @@ const IU = _.div`
|
|
|
54610
54611
|
flex-direction: column;
|
|
54611
54612
|
justify-content: center;
|
|
54612
54613
|
align-items: flex-start;
|
|
54614
|
+
padding-bottom: var(--spacing-xs);
|
|
54613
54615
|
gap: 2px;
|
|
54614
54616
|
flex: 1 0 0;
|
|
54615
54617
|
width: 100%;
|
|
54616
54618
|
`, RU = _.div`
|
|
54617
54619
|
display: flex;
|
|
54618
54620
|
align-items: center;
|
|
54621
|
+
width: 100%;
|
|
54619
54622
|
gap: var(--spacing-xxs);
|
|
54620
|
-
overflow: hidden;
|
|
54621
54623
|
color: var(--text-color-primary);
|
|
54622
|
-
text-overflow: ellipsis;
|
|
54623
|
-
white-space: nowrap;
|
|
54624
54624
|
font-size: var(--font-size-base);
|
|
54625
54625
|
font-weight: var(--font-weight-regular);
|
|
54626
54626
|
line-height: var(--line-height-base);
|
|
54627
54627
|
padding-left: var(--spacing-base);
|
|
54628
54628
|
padding-top: var(--spacing-xs);
|
|
54629
|
-
`, DU = _.
|
|
54629
|
+
`, DU = _.div`
|
|
54630
|
+
overflow: hidden;
|
|
54631
|
+
min-width: 0;
|
|
54632
|
+
text-overflow: ellipsis;
|
|
54633
|
+
white-space: nowrap;
|
|
54634
|
+
`, QU = _.span`
|
|
54630
54635
|
color: ${({ $isEmpty: n }) => n ? "var(--color-warm-grey-5)" : "var(--text-color-secondary)"};
|
|
54631
54636
|
font-size: var(--font-size-sm);
|
|
54632
54637
|
font-weight: var(--font-weight-regular);
|
|
54633
54638
|
line-height: var(--line-height-sm);
|
|
54634
54639
|
padding-left: var(--spacing-base);
|
|
54635
|
-
padding-bottom: var(--spacing-xs);
|
|
54636
54640
|
word-wrap: break-word;
|
|
54637
54641
|
max-width: 100%;
|
|
54638
|
-
|
|
54642
|
+
overflow: hidden;
|
|
54643
|
+
text-overflow: ellipsis;
|
|
54644
|
+
display: -webkit-box;
|
|
54645
|
+
-webkit-line-clamp: 2;
|
|
54646
|
+
-webkit-box-orient: vertical;
|
|
54647
|
+
`, jU = _(Bl)`
|
|
54639
54648
|
padding-left: 39px;
|
|
54640
54649
|
margin-left: -23px;
|
|
54641
54650
|
`;
|
|
54642
|
-
function
|
|
54651
|
+
function BU({
|
|
54643
54652
|
defaultName: n,
|
|
54644
54653
|
onChange: e,
|
|
54645
54654
|
onApplyNewName: t,
|
|
@@ -54675,7 +54684,7 @@ function jU({
|
|
|
54675
54684
|
/* @__PURE__ */ b.jsx(Ve, { variant: "text", onClick: r, icon: /* @__PURE__ */ b.jsx(Bo, {}) })
|
|
54676
54685
|
] }) });
|
|
54677
54686
|
}
|
|
54678
|
-
function
|
|
54687
|
+
function _U({ environment: n, defaultExpanded: e }) {
|
|
54679
54688
|
const [t, r] = Ce(!1), { sendEvent: i } = _t(), { state: s, canBeEdited: o, canBeRemoved: a, name: l } = n.get(), c = () => {
|
|
54680
54689
|
n.set(Dt), i("environment_creation_cancelled", {});
|
|
54681
54690
|
}, u = () => {
|
|
@@ -54698,7 +54707,7 @@ function BU({ environment: n, defaultExpanded: e }) {
|
|
|
54698
54707
|
r(!1), i("environment_variable_creation_cancelled", { name: l });
|
|
54699
54708
|
};
|
|
54700
54709
|
return s === Or.Edit || s === Or.Draft ? /* @__PURE__ */ b.jsx(
|
|
54701
|
-
|
|
54710
|
+
BU,
|
|
54702
54711
|
{
|
|
54703
54712
|
placeholder: "New Environment",
|
|
54704
54713
|
defaultName: l,
|
|
@@ -54712,7 +54721,7 @@ function BU({ environment: n, defaultExpanded: e }) {
|
|
|
54712
54721
|
dataTestId: `environment-${l}`,
|
|
54713
54722
|
title: l,
|
|
54714
54723
|
defaultExpanded: e,
|
|
54715
|
-
controls: /* @__PURE__ */ b.jsxs(
|
|
54724
|
+
controls: /* @__PURE__ */ b.jsxs(NU, { children: [
|
|
54716
54725
|
o && /* @__PURE__ */ b.jsx(
|
|
54717
54726
|
Ha,
|
|
54718
54727
|
{
|
|
@@ -54742,7 +54751,7 @@ function BU({ environment: n, defaultExpanded: e }) {
|
|
|
54742
54751
|
] }),
|
|
54743
54752
|
children: [
|
|
54744
54753
|
t ? /* @__PURE__ */ b.jsx(
|
|
54745
|
-
|
|
54754
|
+
ZU,
|
|
54746
54755
|
{
|
|
54747
54756
|
variable: Lu(),
|
|
54748
54757
|
onSave: m,
|
|
@@ -54750,7 +54759,7 @@ function BU({ environment: n, defaultExpanded: e }) {
|
|
|
54750
54759
|
isNew: !0
|
|
54751
54760
|
}
|
|
54752
54761
|
) : /* @__PURE__ */ b.jsx(
|
|
54753
|
-
|
|
54762
|
+
FU,
|
|
54754
54763
|
{
|
|
54755
54764
|
icon: /* @__PURE__ */ b.jsx(wu, {}),
|
|
54756
54765
|
variant: "secondary",
|
|
@@ -54765,24 +54774,24 @@ function BU({ environment: n, defaultExpanded: e }) {
|
|
|
54765
54774
|
}
|
|
54766
54775
|
) });
|
|
54767
54776
|
}
|
|
54768
|
-
const
|
|
54777
|
+
const NU = _.div`
|
|
54769
54778
|
display: flex;
|
|
54770
54779
|
flex-direction: row;
|
|
54771
54780
|
gap: var(--spacing-xxs);
|
|
54772
54781
|
align-items: center;
|
|
54773
|
-
`,
|
|
54782
|
+
`, MU = _(Ve)`
|
|
54774
54783
|
align-self: flex-start;
|
|
54775
54784
|
margin: 0;
|
|
54776
|
-
`,
|
|
54785
|
+
`, FU = _(MU)`
|
|
54777
54786
|
margin: 8px 0 8px -7px;
|
|
54778
54787
|
font-size: var(--font-size-base);
|
|
54779
54788
|
font-weight: var(--font-weight-regular);
|
|
54780
54789
|
line-height: var(--line-height-base);
|
|
54781
|
-
`,
|
|
54790
|
+
`, ZU = _(Bl)`
|
|
54782
54791
|
padding-left: 39px;
|
|
54783
54792
|
margin-left: -23px;
|
|
54784
54793
|
`;
|
|
54785
|
-
function
|
|
54794
|
+
function WU() {
|
|
54786
54795
|
const [n, e] = Ce(""), { environments: t, selectedEnvironmentId: r } = Le(), { sendEvent: i } = _t(), s = tt(
|
|
54787
54796
|
() => t.filter((l) => l.name.get().toLowerCase().includes(n.toLowerCase())),
|
|
54788
54797
|
[n, t]
|
|
@@ -54801,7 +54810,7 @@ function ZU() {
|
|
|
54801
54810
|
}, a = (l) => {
|
|
54802
54811
|
e(l);
|
|
54803
54812
|
};
|
|
54804
|
-
return /* @__PURE__ */ b.jsxs(
|
|
54813
|
+
return /* @__PURE__ */ b.jsxs(VU, { children: [
|
|
54805
54814
|
/* @__PURE__ */ b.jsxs(jO, { children: [
|
|
54806
54815
|
/* @__PURE__ */ b.jsx(QO, { value: n, onSearch: a }),
|
|
54807
54816
|
/* @__PURE__ */ b.jsx(_e, {}),
|
|
@@ -54818,7 +54827,7 @@ function ZU() {
|
|
|
54818
54827
|
) })
|
|
54819
54828
|
] }),
|
|
54820
54829
|
/* @__PURE__ */ b.jsx(BO, { children: s.map((l) => /* @__PURE__ */ b.jsx(
|
|
54821
|
-
|
|
54830
|
+
_U,
|
|
54822
54831
|
{
|
|
54823
54832
|
environment: l,
|
|
54824
54833
|
defaultExpanded: l.get().id === r.get()
|
|
@@ -54827,7 +54836,7 @@ function ZU() {
|
|
|
54827
54836
|
)) })
|
|
54828
54837
|
] });
|
|
54829
54838
|
}
|
|
54830
|
-
const
|
|
54839
|
+
const VU = _.div`
|
|
54831
54840
|
display: flex;
|
|
54832
54841
|
flex-direction: column;
|
|
54833
54842
|
width: 100%;
|
|
@@ -54838,12 +54847,12 @@ function tw({ name: n, value: e }) {
|
|
|
54838
54847
|
}, o = () => {
|
|
54839
54848
|
i("app_credential_copied", { name: n });
|
|
54840
54849
|
};
|
|
54841
|
-
return /* @__PURE__ */ b.jsxs(
|
|
54842
|
-
/* @__PURE__ */ b.jsxs(
|
|
54843
|
-
/* @__PURE__ */ b.jsx(
|
|
54844
|
-
/* @__PURE__ */ b.jsx(
|
|
54850
|
+
return /* @__PURE__ */ b.jsxs(zU, { children: [
|
|
54851
|
+
/* @__PURE__ */ b.jsxs(XU, { children: [
|
|
54852
|
+
/* @__PURE__ */ b.jsx(LU, { children: n }),
|
|
54853
|
+
/* @__PURE__ */ b.jsx(GU, { children: t ? e : "••••••••••••••••••••••••••••••••••••" })
|
|
54845
54854
|
] }),
|
|
54846
|
-
/* @__PURE__ */ b.jsxs(
|
|
54855
|
+
/* @__PURE__ */ b.jsxs(YU, { children: [
|
|
54847
54856
|
/* @__PURE__ */ b.jsx(
|
|
54848
54857
|
Ve,
|
|
54849
54858
|
{
|
|
@@ -54857,18 +54866,18 @@ function tw({ name: n, value: e }) {
|
|
|
54857
54866
|
] })
|
|
54858
54867
|
] });
|
|
54859
54868
|
}
|
|
54860
|
-
const
|
|
54869
|
+
const zU = _.div`
|
|
54861
54870
|
display: flex;
|
|
54862
54871
|
padding: var(--spacing-xs) var(--spacing-xs);
|
|
54863
54872
|
align-items: flex-start;
|
|
54864
54873
|
gap: var(--spacing-xs);
|
|
54865
54874
|
align-self: stretch;
|
|
54866
|
-
`,
|
|
54875
|
+
`, XU = _.div`
|
|
54867
54876
|
display: flex;
|
|
54868
54877
|
align-items: flex-start;
|
|
54869
54878
|
gap: 10px;
|
|
54870
54879
|
flex: 1 0 0;
|
|
54871
|
-
`,
|
|
54880
|
+
`, LU = _.div`
|
|
54872
54881
|
display: -webkit-box;
|
|
54873
54882
|
width: var(--64-px-4-rem-spacing-11, 64px);
|
|
54874
54883
|
-webkit-box-orient: vertical;
|
|
@@ -54881,20 +54890,20 @@ const VU = _.div`
|
|
|
54881
54890
|
font-style: normal;
|
|
54882
54891
|
font-weight: var(--font-weight-semibold);
|
|
54883
54892
|
line-height: var(--line-height-sm);
|
|
54884
|
-
`,
|
|
54893
|
+
`, GU = _.div`
|
|
54885
54894
|
flex: 1 0 0;
|
|
54886
54895
|
color: var(--text-color-primary);
|
|
54887
54896
|
font-size: var(--font-size-sm);
|
|
54888
54897
|
font-style: normal;
|
|
54889
54898
|
font-weight: var(--font-weight-regular);
|
|
54890
54899
|
line-height: var(--line-height-sm);
|
|
54891
|
-
`,
|
|
54900
|
+
`, YU = _.div`
|
|
54892
54901
|
display: flex;
|
|
54893
54902
|
justify-content: flex-end;
|
|
54894
54903
|
align-items: center;
|
|
54895
54904
|
gap: var(--spacing-xxs);
|
|
54896
54905
|
`;
|
|
54897
|
-
function
|
|
54906
|
+
function UU({ credential: n, number: e }) {
|
|
54898
54907
|
const {
|
|
54899
54908
|
requestActiveTabIdx: t,
|
|
54900
54909
|
request: { securityType: r, security: i }
|
|
@@ -54948,20 +54957,20 @@ function YU({ credential: n, number: e }) {
|
|
|
54948
54957
|
}
|
|
54949
54958
|
c("apps_use_key_clicked", { number: e });
|
|
54950
54959
|
};
|
|
54951
|
-
return /* @__PURE__ */ b.jsxs(
|
|
54952
|
-
/* @__PURE__ */ b.jsxs(
|
|
54953
|
-
/* @__PURE__ */ b.jsx(
|
|
54954
|
-
/* @__PURE__ */ b.jsxs(
|
|
54960
|
+
return /* @__PURE__ */ b.jsxs(qU, { children: [
|
|
54961
|
+
/* @__PURE__ */ b.jsxs(HU, { children: [
|
|
54962
|
+
/* @__PURE__ */ b.jsx(KU, { children: e.toString().padStart(2, "0") }),
|
|
54963
|
+
/* @__PURE__ */ b.jsxs(JU, { children: [
|
|
54955
54964
|
n.stage && /* @__PURE__ */ b.jsx(MO, { color: "gray", children: n.stage }),
|
|
54956
54965
|
/* @__PURE__ */ b.jsx(MO, { color: "green", children: n.status })
|
|
54957
54966
|
] })
|
|
54958
54967
|
] }),
|
|
54959
54968
|
o && /* @__PURE__ */ b.jsx(tw, { name: "API key", value: o }),
|
|
54960
54969
|
a && /* @__PURE__ */ b.jsx(tw, { name: o ? "Secret" : "API key", value: a }),
|
|
54961
|
-
/* @__PURE__ */ b.jsx(
|
|
54970
|
+
/* @__PURE__ */ b.jsx(eq, { children: /* @__PURE__ */ b.jsx(Ve, { size: "small", variant: "secondary", onClick: u, children: "Use key" }) })
|
|
54962
54971
|
] });
|
|
54963
54972
|
}
|
|
54964
|
-
const
|
|
54973
|
+
const qU = _.div`
|
|
54965
54974
|
display: flex;
|
|
54966
54975
|
flex-direction: column;
|
|
54967
54976
|
align-self: stretch;
|
|
@@ -54975,7 +54984,7 @@ const UU = _.div`
|
|
|
54975
54984
|
& > :not(:last-child) {
|
|
54976
54985
|
border-bottom: 1px solid var(--border-color-secondary);
|
|
54977
54986
|
}
|
|
54978
|
-
`,
|
|
54987
|
+
`, HU = _.div`
|
|
54979
54988
|
display: flex;
|
|
54980
54989
|
justify-content: space-between;
|
|
54981
54990
|
padding: var(--spacing-xs) var(--spacing-xs);
|
|
@@ -54983,16 +54992,16 @@ const UU = _.div`
|
|
|
54983
54992
|
align-items: center;
|
|
54984
54993
|
align-self: stretch;
|
|
54985
54994
|
background: var(--layer-color);
|
|
54986
|
-
`,
|
|
54995
|
+
`, JU = _.div`
|
|
54987
54996
|
display: flex;
|
|
54988
54997
|
gap: var(--spacing-xxs);
|
|
54989
|
-
`,
|
|
54998
|
+
`, KU = _.div`
|
|
54990
54999
|
color: var(--text-color-secondary, #3b3c45);
|
|
54991
55000
|
font-size: var(--font-size-sm);
|
|
54992
55001
|
font-style: normal;
|
|
54993
55002
|
font-weight: var(--font-weight-regular);
|
|
54994
55003
|
line-height: var(--line-height-sm);
|
|
54995
|
-
`,
|
|
55004
|
+
`, eq = _.div`
|
|
54996
55005
|
display: flex;
|
|
54997
55006
|
padding: var(--spacing-xs) var(--spacing-xs);
|
|
54998
55007
|
border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
|
|
@@ -55001,24 +55010,24 @@ const UU = _.div`
|
|
|
55001
55010
|
align-self: stretch;
|
|
55002
55011
|
background: var(--layer-color);
|
|
55003
55012
|
`;
|
|
55004
|
-
function
|
|
55013
|
+
function tq({ app: n }) {
|
|
55005
55014
|
const [e, t] = Ce(!1), { title: r, credentials: i, id: s } = n, o = i.get() || [], a = (l) => {
|
|
55006
55015
|
l && !i.get() && (t(!0), fetch(`/api/api-keys/apps/${s.get()}`).then((c) => c.json().then((u) => {
|
|
55007
55016
|
c.ok && i.set(u.credentials);
|
|
55008
55017
|
}).catch(() => console.log("Something went wrong")).finally(() => t(!1))));
|
|
55009
55018
|
};
|
|
55010
|
-
return /* @__PURE__ */ b.jsx(td, { dataTestId: `app-${name}`, title: r.get(), onToggle: a, children: /* @__PURE__ */ b.jsx(
|
|
55019
|
+
return /* @__PURE__ */ b.jsx(td, { dataTestId: `app-${name}`, title: r.get(), onToggle: a, children: /* @__PURE__ */ b.jsx(nq, { children: e ? /* @__PURE__ */ b.jsx(rq, { children: /* @__PURE__ */ b.jsx(_f, { size: "16px", color: "--icon-color-additional" }) }) : o.length ? o.map((l, c) => /* @__PURE__ */ b.jsx(UU, { credential: l, number: c + 1 }, l.id)) : /* @__PURE__ */ b.jsx(iq, { children: "There are no credentials yet." }) }) });
|
|
55011
55020
|
}
|
|
55012
|
-
const
|
|
55021
|
+
const nq = _.div`
|
|
55013
55022
|
padding-bottom: var(--spacing-xxs);
|
|
55014
55023
|
margin-left: -7px;
|
|
55015
55024
|
padding-right: var(--spacing-base);
|
|
55016
|
-
`,
|
|
55025
|
+
`, rq = _.div`
|
|
55017
55026
|
display: flex;
|
|
55018
55027
|
height: 224px;
|
|
55019
55028
|
justify-content: center;
|
|
55020
55029
|
align-items: center;
|
|
55021
|
-
`,
|
|
55030
|
+
`, iq = _.div`
|
|
55022
55031
|
display: flex;
|
|
55023
55032
|
justify-content: center;
|
|
55024
55033
|
align-items: center;
|
|
@@ -55027,7 +55036,7 @@ const tq = _.div`
|
|
|
55027
55036
|
line-height: var(--line-height-base);
|
|
55028
55037
|
color: var(--text-color-secondary);
|
|
55029
55038
|
`;
|
|
55030
|
-
function
|
|
55039
|
+
function sq() {
|
|
55031
55040
|
const [n, e] = Ce(""), { apps: t, apiId: r, appsLoadingState: i } = Le(), { sendEvent: s } = _t(), o = () => {
|
|
55032
55041
|
window.open("/apps", "_blank"), s("apps_request_access_clicked", {});
|
|
55033
55042
|
};
|
|
@@ -55042,26 +55051,26 @@ function iq() {
|
|
|
55042
55051
|
), l = (c) => {
|
|
55043
55052
|
e(c);
|
|
55044
55053
|
};
|
|
55045
|
-
return i.get() === Ur.Loading ? /* @__PURE__ */ b.jsx(
|
|
55054
|
+
return i.get() === Ur.Loading ? /* @__PURE__ */ b.jsx(aq, { children: /* @__PURE__ */ b.jsx(_f, { size: "24px", color: "--icon-color-additional" }) }) : t.length ? /* @__PURE__ */ b.jsxs(oq, { children: [
|
|
55046
55055
|
/* @__PURE__ */ b.jsx(jO, { children: /* @__PURE__ */ b.jsx(QO, { value: n, onSearch: l }) }),
|
|
55047
|
-
/* @__PURE__ */ b.jsx(BO, { children: a.map((c) => /* @__PURE__ */ b.jsx(
|
|
55056
|
+
/* @__PURE__ */ b.jsx(BO, { children: a.map((c) => /* @__PURE__ */ b.jsx(tq, { app: c }, c.get().id)) })
|
|
55048
55057
|
] }) : /* @__PURE__ */ b.jsxs($T, { children: [
|
|
55049
55058
|
"You don't have any apps with access to this API",
|
|
55050
55059
|
/* @__PURE__ */ b.jsx(Ve, { onClick: o, children: "Request access" })
|
|
55051
55060
|
] });
|
|
55052
55061
|
}
|
|
55053
|
-
const
|
|
55062
|
+
const oq = _.div`
|
|
55054
55063
|
display: flex;
|
|
55055
55064
|
flex-direction: column;
|
|
55056
55065
|
width: 100%;
|
|
55057
|
-
`,
|
|
55066
|
+
`, aq = _.div`
|
|
55058
55067
|
display: flex;
|
|
55059
55068
|
justify-content: center;
|
|
55060
55069
|
align-items: center;
|
|
55061
55070
|
width: 100%;
|
|
55062
55071
|
height: calc(100vh - 50px);
|
|
55063
|
-
}`, { Tab:
|
|
55064
|
-
function
|
|
55072
|
+
}`, { Tab: lq, TabContent: cq, TabList: uq, Tabs: fq } = aI.components;
|
|
55073
|
+
function dq() {
|
|
55065
55074
|
const { apiId: n } = Le(), { sendEvent: e } = _t(), [t, r] = Ce(!0), i = Je(
|
|
55066
55075
|
(a) => {
|
|
55067
55076
|
e("side_panel_tab_changed", { name: a });
|
|
@@ -55072,20 +55081,20 @@ function fq() {
|
|
|
55072
55081
|
}, o = tt(() => {
|
|
55073
55082
|
const a = [
|
|
55074
55083
|
/* @__PURE__ */ b.jsx(Tp, { label: "History", onClick: () => i("History"), children: /* @__PURE__ */ b.jsx(hU, {}) }, "History"),
|
|
55075
|
-
/* @__PURE__ */ b.jsx(Tp, { label: "Environments", onClick: () => i("Environments"), children: /* @__PURE__ */ b.jsx(
|
|
55084
|
+
/* @__PURE__ */ b.jsx(Tp, { label: "Environments", onClick: () => i("Environments"), children: /* @__PURE__ */ b.jsx(WU, {}) }, "Environments")
|
|
55076
55085
|
];
|
|
55077
55086
|
return n.get() && a.push(
|
|
55078
|
-
/* @__PURE__ */ b.jsx(Tp, { label: "Apps", onClick: () => i("Apps"), children: /* @__PURE__ */ b.jsx(
|
|
55087
|
+
/* @__PURE__ */ b.jsx(Tp, { label: "Apps", onClick: () => i("Apps"), children: /* @__PURE__ */ b.jsx(sq, {}) })
|
|
55079
55088
|
), a;
|
|
55080
55089
|
}, [n, i]);
|
|
55081
|
-
return /* @__PURE__ */ b.jsxs(
|
|
55082
|
-
t && /* @__PURE__ */ b.jsxs(
|
|
55090
|
+
return /* @__PURE__ */ b.jsxs(hq, { $expanded: t, children: [
|
|
55091
|
+
t && /* @__PURE__ */ b.jsxs(pq, { children: [
|
|
55083
55092
|
...o
|
|
55084
55093
|
] }),
|
|
55085
|
-
/* @__PURE__ */ b.jsx(
|
|
55094
|
+
/* @__PURE__ */ b.jsx(gq, { variant: "text", onClick: s, children: t ? /* @__PURE__ */ b.jsx(lI, {}) : /* @__PURE__ */ b.jsx(cI, {}) })
|
|
55086
55095
|
] });
|
|
55087
55096
|
}
|
|
55088
|
-
const
|
|
55097
|
+
const hq = _.div`
|
|
55089
55098
|
display: flex;
|
|
55090
55099
|
flex-direction: row;
|
|
55091
55100
|
border-left: 1px solid var(--border-color-secondary);
|
|
@@ -55097,13 +55106,13 @@ const dq = _.div`
|
|
|
55097
55106
|
svg {
|
|
55098
55107
|
fill: var(--text-color-primary);
|
|
55099
55108
|
}
|
|
55100
|
-
`,
|
|
55109
|
+
`, pq = _(fq)`
|
|
55101
55110
|
flex-grow: 1;
|
|
55102
55111
|
margin-right: -48px;
|
|
55103
55112
|
margin-top: 0;
|
|
55104
55113
|
--md-tabs-content-padding: 0;
|
|
55105
55114
|
|
|
55106
|
-
${
|
|
55115
|
+
${uq} {
|
|
55107
55116
|
margin: 0;
|
|
55108
55117
|
height: 49px;
|
|
55109
55118
|
font-size: var(--font-size-lg);
|
|
@@ -55118,11 +55127,11 @@ const dq = _.div`
|
|
|
55118
55127
|
--md-tabs-hover-tab-border-width: 0;
|
|
55119
55128
|
}
|
|
55120
55129
|
|
|
55121
|
-
${
|
|
55130
|
+
${cq} {
|
|
55122
55131
|
overflow: auto;
|
|
55123
55132
|
}
|
|
55124
55133
|
|
|
55125
|
-
${
|
|
55134
|
+
${lq} {
|
|
55126
55135
|
font-size: var(--font-size-lg);
|
|
55127
55136
|
font-weight: var(--font-weight-regular);
|
|
55128
55137
|
line-height: var(--line-height-lg);
|
|
@@ -55144,57 +55153,57 @@ const dq = _.div`
|
|
|
55144
55153
|
ol[class^='Tabs__TabList'] {
|
|
55145
55154
|
padding: 0 0 0 var(--spacing-base);
|
|
55146
55155
|
}
|
|
55147
|
-
`,
|
|
55156
|
+
`, gq = _(Ve)`
|
|
55148
55157
|
align-self: flex-start;
|
|
55149
55158
|
margin: 12px;
|
|
55150
55159
|
padding: 4px;
|
|
55151
|
-
`, Tp = _.li``,
|
|
55152
|
-
/* @__PURE__ */ b.jsx(
|
|
55153
|
-
/* @__PURE__ */ b.jsx(
|
|
55154
|
-
/* @__PURE__ */ b.jsx(
|
|
55155
|
-
] }),
|
|
55160
|
+
`, Tp = _.li``, mq = ({ error: n }) => /* @__PURE__ */ b.jsxs(Oq, { children: [
|
|
55161
|
+
/* @__PURE__ */ b.jsx(vq, { children: "An Error Has Occurred" }),
|
|
55162
|
+
/* @__PURE__ */ b.jsx(xq, { children: n == null ? void 0 : n.message }),
|
|
55163
|
+
/* @__PURE__ */ b.jsx(bq, { children: n == null ? void 0 : n.stack })
|
|
55164
|
+
] }), Oq = _.div`
|
|
55156
55165
|
padding: var(--spacing-xs) var(--spacing-xl);
|
|
55157
|
-
`,
|
|
55166
|
+
`, vq = _.h2`
|
|
55158
55167
|
color: var(--color-error-base);
|
|
55159
|
-
`,
|
|
55168
|
+
`, xq = _.h4`
|
|
55160
55169
|
color: var(--text-color-secondary);
|
|
55161
|
-
`,
|
|
55170
|
+
`, bq = _.pre`
|
|
55162
55171
|
white-space: break-spaces;
|
|
55163
55172
|
`;
|
|
55164
|
-
function
|
|
55165
|
-
return /* @__PURE__ */ b.jsx(
|
|
55173
|
+
function yq({ className: n }) {
|
|
55174
|
+
return /* @__PURE__ */ b.jsx(Sq, { className: n, children: /* @__PURE__ */ b.jsxs(wq, { children: [
|
|
55166
55175
|
/* @__PURE__ */ b.jsx(uw, { size: "24px", color: "--color-error-base" }),
|
|
55167
|
-
/* @__PURE__ */ b.jsxs(
|
|
55168
|
-
/* @__PURE__ */ b.jsx(
|
|
55169
|
-
/* @__PURE__ */ b.jsx(
|
|
55176
|
+
/* @__PURE__ */ b.jsxs(Cq, { children: [
|
|
55177
|
+
/* @__PURE__ */ b.jsx(kq, { children: "Oops! Something went wrong." }),
|
|
55178
|
+
/* @__PURE__ */ b.jsx(Aq, { children: "We're sorry. There's been an unexpected error. Our team has been notified and will investigate the issue." })
|
|
55170
55179
|
] })
|
|
55171
55180
|
] }) });
|
|
55172
55181
|
}
|
|
55173
|
-
const
|
|
55182
|
+
const Sq = _.div`
|
|
55174
55183
|
display: flex;
|
|
55175
55184
|
justify-content: center;
|
|
55176
55185
|
align-items: center;
|
|
55177
55186
|
width: 80vw;
|
|
55178
55187
|
height: 100vh;
|
|
55179
55188
|
background-color: var(--bg-color);
|
|
55180
|
-
`,
|
|
55189
|
+
`, wq = _.div`
|
|
55181
55190
|
display: flex;
|
|
55182
55191
|
flex-direction: column;
|
|
55183
55192
|
align-items: center;
|
|
55184
55193
|
gap: var(--spacing-base);
|
|
55185
|
-
`,
|
|
55194
|
+
`, Cq = _.div`
|
|
55186
55195
|
display: flex;
|
|
55187
55196
|
flex-direction: column;
|
|
55188
55197
|
align-items: center;
|
|
55189
55198
|
gap: var(--spacing-xxs);
|
|
55190
55199
|
width: 488px;
|
|
55191
|
-
`,
|
|
55200
|
+
`, kq = _.div`
|
|
55192
55201
|
color: var(--text-color-primary);
|
|
55193
55202
|
font-size: var(--font-size-xl);
|
|
55194
55203
|
font-style: normal;
|
|
55195
55204
|
font-weight: var(--font-weight-semibold);
|
|
55196
55205
|
line-height: var(--line-height-xl);
|
|
55197
|
-
`,
|
|
55206
|
+
`, Aq = _.div`
|
|
55198
55207
|
color: var(--text-color-primary);
|
|
55199
55208
|
font-size: var(--font-size-lg);
|
|
55200
55209
|
font-style: normal;
|
|
@@ -55231,31 +55240,31 @@ class RT extends U.Component {
|
|
|
55231
55240
|
this.setState(r), (s = (i = this.props).onError) == null || s.call(i, r.error);
|
|
55232
55241
|
}
|
|
55233
55242
|
render() {
|
|
55234
|
-
return this.state.error ? process.env.NODE_ENV === "production" ? /* @__PURE__ */ b.jsx(
|
|
55243
|
+
return this.state.error ? process.env.NODE_ENV === "production" ? /* @__PURE__ */ b.jsx(yq, {}) : /* @__PURE__ */ b.jsx(mq, { error: this.state.error }) : this.props.children;
|
|
55235
55244
|
}
|
|
55236
55245
|
}
|
|
55237
|
-
function
|
|
55246
|
+
function Pq({ className: n }) {
|
|
55238
55247
|
const { operationUrl: e } = Le().get(), { sendEvent: t } = _t();
|
|
55239
55248
|
return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
55240
55249
|
/* @__PURE__ */ b.jsx(uI, {}),
|
|
55241
|
-
/* @__PURE__ */ b.jsx(
|
|
55250
|
+
/* @__PURE__ */ b.jsx(Eq, { className: n, children: /* @__PURE__ */ b.jsxs(
|
|
55242
55251
|
RT,
|
|
55243
55252
|
{
|
|
55244
55253
|
onError: (r) => t("unhandled_error", { ...r, operationUrl: e }),
|
|
55245
55254
|
children: [
|
|
55246
55255
|
/* @__PURE__ */ b.jsx(kT, {}),
|
|
55247
|
-
/* @__PURE__ */ b.jsx(
|
|
55256
|
+
/* @__PURE__ */ b.jsx(dq, {})
|
|
55248
55257
|
]
|
|
55249
55258
|
}
|
|
55250
55259
|
) })
|
|
55251
55260
|
] });
|
|
55252
55261
|
}
|
|
55253
|
-
const
|
|
55262
|
+
const Eq = _.div`
|
|
55254
55263
|
display: flex;
|
|
55255
55264
|
height: 100vh;
|
|
55256
55265
|
background-color: var(--bg-color);
|
|
55257
55266
|
`;
|
|
55258
|
-
function
|
|
55267
|
+
function Tq(n, e) {
|
|
55259
55268
|
const t = zE(n), r = VE(n), i = vX(n), s = gX(n), o = n.request.get().body.activeExampleName, a = n.request.get().body.type, l = CO(n);
|
|
55260
55269
|
return {
|
|
55261
55270
|
requestValues: {
|
|
@@ -55278,8 +55287,8 @@ function Eq(n, e) {
|
|
|
55278
55287
|
)
|
|
55279
55288
|
};
|
|
55280
55289
|
}
|
|
55281
|
-
function
|
|
55282
|
-
const { servers: t, parameters: r } = n, i = r.filter((o) => o.in === "path"), s =
|
|
55290
|
+
function Iq(n, e) {
|
|
55291
|
+
const { servers: t, parameters: r } = n, i = r.filter((o) => o.in === "path"), s = $q(n);
|
|
55283
55292
|
return t.map((o) => {
|
|
55284
55293
|
const a = o.url, l = o.description || a, c = o.variables || {}, u = Object.entries(c).map(([m, g]) => {
|
|
55285
55294
|
const v = Za.getEnvironmentVariableByName(
|
|
@@ -55331,7 +55340,7 @@ function Tq(n, e) {
|
|
|
55331
55340
|
state: Or.Normal,
|
|
55332
55341
|
canBeRemoved: !1,
|
|
55333
55342
|
canBeEdited: !1,
|
|
55334
|
-
variables:
|
|
55343
|
+
variables: Rq(
|
|
55335
55344
|
[
|
|
55336
55345
|
...p,
|
|
55337
55346
|
{
|
|
@@ -55351,7 +55360,7 @@ function Tq(n, e) {
|
|
|
55351
55360
|
};
|
|
55352
55361
|
});
|
|
55353
55362
|
}
|
|
55354
|
-
function
|
|
55363
|
+
function $q(n) {
|
|
55355
55364
|
const e = [], t = n.security || [], r = /* @__PURE__ */ new Set();
|
|
55356
55365
|
return t.forEach((i) => {
|
|
55357
55366
|
const s = as(i);
|
|
@@ -55374,7 +55383,7 @@ function Gr(n, e) {
|
|
|
55374
55383
|
isSecret: e === void 0 ? !0 : e
|
|
55375
55384
|
};
|
|
55376
55385
|
}
|
|
55377
|
-
function
|
|
55386
|
+
function Rq(n, e) {
|
|
55378
55387
|
return e ? n.map((t) => {
|
|
55379
55388
|
const r = e[t.name];
|
|
55380
55389
|
return r !== void 0 ? {
|
|
@@ -55398,16 +55407,16 @@ function DT({ value: n, disableDraft: e, ...t }) {
|
|
|
55398
55407
|
oAuth2RedirectURI: h
|
|
55399
55408
|
} = r;
|
|
55400
55409
|
return Xe(() => {
|
|
55401
|
-
const p = t.operationUrl && !e ? mT.getByKey(t.operationUrl) : null, m = Yn(n), g =
|
|
55410
|
+
const p = t.operationUrl && !e ? mT.getByKey(t.operationUrl) : null, m = Yn(n), g = Iq(m, t.predefinedEnvValues), v = g.find(
|
|
55402
55411
|
({ name: O, url: x }) => x === (t == null ? void 0 : t.environment) || O === (t == null ? void 0 : t.environment)
|
|
55403
55412
|
);
|
|
55404
55413
|
i.set(m), l.set(g), a.set(t.corsProxyUrl ?? tY), o.set(null), c.set(t.operationUrl), u.set(t.mockServer), d.set(t.apiId), h.set(t.oAuth2RedirectURI), v && f.set(v.id), p ? s.set(p) : s.set(kO(m)), ME(r);
|
|
55405
55414
|
}, [n]), r;
|
|
55406
55415
|
}
|
|
55407
|
-
function
|
|
55416
|
+
function Hq({ onClose: n, onLoad: e, onRequestChange: t, ...r }) {
|
|
55408
55417
|
const i = ct(null), { sendEvent: s } = _t(), o = Le(), a = DT(r), l = Je(() => {
|
|
55409
55418
|
if (t) {
|
|
55410
|
-
const u = a.isLinked.get(), f =
|
|
55419
|
+
const u = a.isLinked.get(), f = Tq(a, r.value);
|
|
55411
55420
|
t(u ? f : { requestValues: {} });
|
|
55412
55421
|
}
|
|
55413
55422
|
s("replay_closed", { operationName: r.value.name }), n(), o.set(eo());
|
|
@@ -55422,7 +55431,7 @@ function qq({ onClose: n, onLoad: e, onRequestChange: t, ...r }) {
|
|
|
55422
55431
|
};
|
|
55423
55432
|
return /* @__PURE__ */ b.jsx(iw, { children: /* @__PURE__ */ b.jsxs(Mk, { onClick: l, children: [
|
|
55424
55433
|
/* @__PURE__ */ b.jsx(
|
|
55425
|
-
|
|
55434
|
+
Qq,
|
|
55426
55435
|
{
|
|
55427
55436
|
onClick: l,
|
|
55428
55437
|
role: "button",
|
|
@@ -55430,15 +55439,15 @@ function qq({ onClose: n, onLoad: e, onRequestChange: t, ...r }) {
|
|
|
55430
55439
|
tabIndex: 0,
|
|
55431
55440
|
ref: i,
|
|
55432
55441
|
autoFocus: !0,
|
|
55433
|
-
children: /* @__PURE__ */ b.jsx(
|
|
55442
|
+
children: /* @__PURE__ */ b.jsx(jq, {})
|
|
55434
55443
|
}
|
|
55435
55444
|
),
|
|
55436
|
-
/* @__PURE__ */ b.jsx(
|
|
55445
|
+
/* @__PURE__ */ b.jsx(Dq, {})
|
|
55437
55446
|
] }) });
|
|
55438
55447
|
}
|
|
55439
|
-
const
|
|
55448
|
+
const Dq = _(Pq)`
|
|
55440
55449
|
width: 80vw;
|
|
55441
|
-
`,
|
|
55450
|
+
`, Qq = _.div`
|
|
55442
55451
|
display: flex;
|
|
55443
55452
|
justify-content: center;
|
|
55444
55453
|
align-items: center;
|
|
@@ -55451,30 +55460,30 @@ const Rq = _(Aq)`
|
|
|
55451
55460
|
width: 24px;
|
|
55452
55461
|
height: 24px;
|
|
55453
55462
|
cursor: pointer;
|
|
55454
|
-
`,
|
|
55463
|
+
`, jq = _(Bo)`
|
|
55455
55464
|
width: 14px;
|
|
55456
55465
|
height: 14px;
|
|
55457
55466
|
`;
|
|
55458
|
-
function
|
|
55467
|
+
function Jq(n) {
|
|
55459
55468
|
const { sendEvent: e } = _t(), t = tt(() => Uw(eo()), []);
|
|
55460
55469
|
return /* @__PURE__ */ b.jsx(ZG, { value: t, children: /* @__PURE__ */ b.jsx(
|
|
55461
55470
|
RT,
|
|
55462
55471
|
{
|
|
55463
55472
|
onError: (r) => e("unhandled_error", { ...r, isEmbedded: !0 }),
|
|
55464
|
-
children: /* @__PURE__ */ b.jsx(
|
|
55473
|
+
children: /* @__PURE__ */ b.jsx(Bq, { ...n })
|
|
55465
55474
|
}
|
|
55466
55475
|
) });
|
|
55467
55476
|
}
|
|
55468
|
-
function
|
|
55469
|
-
return DT({ ...n, disableDraft: !0 }), /* @__PURE__ */ b.jsx(iw, { children: /* @__PURE__ */ b.jsx(
|
|
55477
|
+
function Bq(n) {
|
|
55478
|
+
return DT({ ...n, disableDraft: !0 }), /* @__PURE__ */ b.jsx(iw, { children: /* @__PURE__ */ b.jsx(_q, { children: /* @__PURE__ */ b.jsx(kT, {}) }) });
|
|
55470
55479
|
}
|
|
55471
|
-
const
|
|
55480
|
+
const _q = _.div`
|
|
55472
55481
|
display: flex;
|
|
55473
55482
|
max-height: 80vh;
|
|
55474
55483
|
height: 800px;
|
|
55475
55484
|
width: 100%;
|
|
55476
55485
|
`;
|
|
55477
55486
|
export {
|
|
55478
|
-
|
|
55479
|
-
|
|
55487
|
+
Jq as EmbeddedReplay,
|
|
55488
|
+
Hq as ReplayOverlay
|
|
55480
55489
|
};
|