@uniformdev/mesh-sdk-react 18.24.1-alpha.1 → 18.25.1-alpha.16
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/index.esm.js +14 -21
- package/dist/index.js +24 -31
- package/dist/index.mjs +14 -21
- package/package.json +4 -6
package/dist/index.esm.js
CHANGED
|
@@ -955,12 +955,12 @@ import { Callout as Callout2 } from "@uniformdev/design-system";
|
|
|
955
955
|
import React6, { useContext as useContext2, useMemo as useMemo2, useRef as useRef5 } from "react";
|
|
956
956
|
import { useAsync, useAsyncFn as useAsyncFn2 } from "react-use";
|
|
957
957
|
|
|
958
|
-
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
958
|
+
// src/components/legacy/EntrySearch/DefaultSearchRow.tsx
|
|
959
959
|
import { css as css7 } from "@emotion/react";
|
|
960
960
|
import { useOutsideClick } from "@uniformdev/design-system";
|
|
961
961
|
import { useRef, useState } from "react";
|
|
962
962
|
|
|
963
|
-
// src/components/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
963
|
+
// src/components/legacy/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
964
964
|
import { css as css6 } from "@emotion/react";
|
|
965
965
|
var searchRowContainer = css6`
|
|
966
966
|
cursor: pointer;
|
|
@@ -1001,7 +1001,7 @@ var searchRowBtn = css6`
|
|
|
1001
1001
|
inset: 0 var(--spacing-sm) 0 auto;
|
|
1002
1002
|
`;
|
|
1003
1003
|
|
|
1004
|
-
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
1004
|
+
// src/components/legacy/EntrySearch/DefaultSearchRow.tsx
|
|
1005
1005
|
import { jsx as jsx19, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
1006
1006
|
var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
1007
1007
|
const popoverRef = useRef(null);
|
|
@@ -1075,7 +1075,7 @@ var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
|
1075
1075
|
);
|
|
1076
1076
|
};
|
|
1077
1077
|
|
|
1078
|
-
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1078
|
+
// src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
|
|
1079
1079
|
import { css as css9 } from "@emotion/react";
|
|
1080
1080
|
import { Icon as Icon2, useOutsideClick as useOutsideClick2 } from "@uniformdev/design-system";
|
|
1081
1081
|
import { useEffect, useRef as useRef2, useState as useState2 } from "react";
|
|
@@ -1093,7 +1093,7 @@ function openWindowWithCloseCallback(href, callback) {
|
|
|
1093
1093
|
}, 500);
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
-
// src/components/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1096
|
+
// src/components/legacy/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1097
1097
|
import { css as css8 } from "@emotion/react";
|
|
1098
1098
|
import { mq as mq2 } from "@uniformdev/design-system";
|
|
1099
1099
|
var selectedItemContainer = css8`
|
|
@@ -1177,7 +1177,7 @@ var selectItemLinkBtn = css8`
|
|
|
1177
1177
|
}
|
|
1178
1178
|
`;
|
|
1179
1179
|
|
|
1180
|
-
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1180
|
+
// src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
|
|
1181
1181
|
import { jsx as jsx20, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
1182
1182
|
var DefaultSelectedItem = ({
|
|
1183
1183
|
selectedItem,
|
|
@@ -1360,7 +1360,7 @@ var DefaultSelectedItem = ({
|
|
|
1360
1360
|
] }) }, selectedItem.id);
|
|
1361
1361
|
};
|
|
1362
1362
|
|
|
1363
|
-
// src/components/EntrySearch/EntrySearch.tsx
|
|
1363
|
+
// src/components/legacy/EntrySearch/EntrySearch.tsx
|
|
1364
1364
|
import { css as css11 } from "@emotion/react";
|
|
1365
1365
|
import {
|
|
1366
1366
|
Button,
|
|
@@ -1411,7 +1411,7 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
|
|
|
1411
1411
|
return state === "DISPLAY" || state === "EXPIRE";
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
// src/components/EntrySearch/styles/EntrySearch.styles.ts
|
|
1414
|
+
// src/components/legacy/EntrySearch/styles/EntrySearch.styles.ts
|
|
1415
1415
|
import { css as css10 } from "@emotion/react";
|
|
1416
1416
|
var entrySearchWrapper = css10`
|
|
1417
1417
|
background: var(--white);
|
|
@@ -1522,7 +1522,7 @@ var badgeIcon = css10`
|
|
|
1522
1522
|
height: calc(var(--spacing-lg) + var(--spacing-xs));
|
|
1523
1523
|
`;
|
|
1524
1524
|
|
|
1525
|
-
// src/components/EntrySearch/EntrySearch.tsx
|
|
1525
|
+
// src/components/legacy/EntrySearch/EntrySearch.tsx
|
|
1526
1526
|
import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
|
|
1527
1527
|
var DefaultNoResults = ({ searchText, selectedContentType }) => {
|
|
1528
1528
|
let message = "No content found";
|
|
@@ -2864,7 +2864,7 @@ function VariablesProvider({
|
|
|
2864
2864
|
children
|
|
2865
2865
|
}) {
|
|
2866
2866
|
const [editing, setEditing] = React10.useState();
|
|
2867
|
-
const
|
|
2867
|
+
const Editor = editVariableComponent != null ? editVariableComponent : VariableEditor;
|
|
2868
2868
|
const contextValue = {
|
|
2869
2869
|
dispatch: (event) => {
|
|
2870
2870
|
if (event.type === "set") {
|
|
@@ -2890,7 +2890,7 @@ function VariablesProvider({
|
|
|
2890
2890
|
return /* @__PURE__ */ jsxs17(VariablesContext.Provider, { value: contextValue, children: [
|
|
2891
2891
|
children,
|
|
2892
2892
|
typeof editing !== "undefined" ? /* @__PURE__ */ jsx29(
|
|
2893
|
-
|
|
2893
|
+
Editor,
|
|
2894
2894
|
{
|
|
2895
2895
|
onSubmit: (val) => {
|
|
2896
2896
|
setEditing(void 0);
|
|
@@ -3265,8 +3265,7 @@ function TextVariableRenderer({ definition, value, setValue }) {
|
|
|
3265
3265
|
|
|
3266
3266
|
// src/components/Request/RequestBody.tsx
|
|
3267
3267
|
import { css as css23 } from "@emotion/react";
|
|
3268
|
-
import
|
|
3269
|
-
import { InputSelect as InputSelect4 } from "@uniformdev/design-system";
|
|
3268
|
+
import { InputSelect as InputSelect4, JsonEditor } from "@uniformdev/design-system";
|
|
3270
3269
|
import { useState as useState8 } from "react";
|
|
3271
3270
|
|
|
3272
3271
|
// src/components/Request/RequestProvider.tsx
|
|
@@ -3432,16 +3431,10 @@ function RequestBody() {
|
|
|
3432
3431
|
}
|
|
3433
3432
|
),
|
|
3434
3433
|
/* @__PURE__ */ jsx36(
|
|
3435
|
-
|
|
3434
|
+
JsonEditor,
|
|
3436
3435
|
{
|
|
3437
3436
|
height: 200,
|
|
3438
|
-
|
|
3439
|
-
language,
|
|
3440
|
-
options: {
|
|
3441
|
-
language,
|
|
3442
|
-
minimap: { enabled: false },
|
|
3443
|
-
folding: false
|
|
3444
|
-
},
|
|
3437
|
+
defaultValue: request.body,
|
|
3445
3438
|
onChange: (body) => {
|
|
3446
3439
|
if (body) {
|
|
3447
3440
|
dispatch({ type: "setBody", body, contentType: LANGUAGE_TO_CONTENT_TYPE[language] });
|
package/dist/index.js
CHANGED
|
@@ -1134,12 +1134,12 @@ var import_design_system10 = require("@uniformdev/design-system");
|
|
|
1134
1134
|
var import_react21 = __toESM(require("react"));
|
|
1135
1135
|
var import_react_use3 = require("react-use");
|
|
1136
1136
|
|
|
1137
|
-
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
1137
|
+
// src/components/legacy/EntrySearch/DefaultSearchRow.tsx
|
|
1138
1138
|
var import_react9 = require("@emotion/react");
|
|
1139
1139
|
var import_design_system4 = require("@uniformdev/design-system");
|
|
1140
1140
|
var import_react10 = require("react");
|
|
1141
1141
|
|
|
1142
|
-
// src/components/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
1142
|
+
// src/components/legacy/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
1143
1143
|
var import_react8 = require("@emotion/react");
|
|
1144
1144
|
var searchRowContainer = import_react8.css`
|
|
1145
1145
|
cursor: pointer;
|
|
@@ -1180,7 +1180,7 @@ var searchRowBtn = import_react8.css`
|
|
|
1180
1180
|
inset: 0 var(--spacing-sm) 0 auto;
|
|
1181
1181
|
`;
|
|
1182
1182
|
|
|
1183
|
-
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
1183
|
+
// src/components/legacy/EntrySearch/DefaultSearchRow.tsx
|
|
1184
1184
|
var import_jsx_runtime19 = require("@emotion/react/jsx-runtime");
|
|
1185
1185
|
var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
1186
1186
|
const popoverRef = (0, import_react10.useRef)(null);
|
|
@@ -1254,7 +1254,7 @@ var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
|
1254
1254
|
);
|
|
1255
1255
|
};
|
|
1256
1256
|
|
|
1257
|
-
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1257
|
+
// src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
|
|
1258
1258
|
var import_react12 = require("@emotion/react");
|
|
1259
1259
|
var import_design_system6 = require("@uniformdev/design-system");
|
|
1260
1260
|
var import_react13 = require("react");
|
|
@@ -1272,7 +1272,7 @@ function openWindowWithCloseCallback(href, callback) {
|
|
|
1272
1272
|
}, 500);
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
|
-
// src/components/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1275
|
+
// src/components/legacy/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1276
1276
|
var import_react11 = require("@emotion/react");
|
|
1277
1277
|
var import_design_system5 = require("@uniformdev/design-system");
|
|
1278
1278
|
var selectedItemContainer = import_react11.css`
|
|
@@ -1356,7 +1356,7 @@ var selectItemLinkBtn = import_react11.css`
|
|
|
1356
1356
|
}
|
|
1357
1357
|
`;
|
|
1358
1358
|
|
|
1359
|
-
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1359
|
+
// src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
|
|
1360
1360
|
var import_jsx_runtime20 = require("@emotion/react/jsx-runtime");
|
|
1361
1361
|
var DefaultSelectedItem = ({
|
|
1362
1362
|
selectedItem,
|
|
@@ -1539,7 +1539,7 @@ var DefaultSelectedItem = ({
|
|
|
1539
1539
|
] }) }, selectedItem.id);
|
|
1540
1540
|
};
|
|
1541
1541
|
|
|
1542
|
-
// src/components/EntrySearch/EntrySearch.tsx
|
|
1542
|
+
// src/components/legacy/EntrySearch/EntrySearch.tsx
|
|
1543
1543
|
var import_react16 = require("@emotion/react");
|
|
1544
1544
|
var import_design_system7 = require("@uniformdev/design-system");
|
|
1545
1545
|
var React5 = __toESM(require("react"));
|
|
@@ -1580,7 +1580,7 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
|
|
|
1580
1580
|
return state === "DISPLAY" || state === "EXPIRE";
|
|
1581
1581
|
}
|
|
1582
1582
|
|
|
1583
|
-
// src/components/EntrySearch/styles/EntrySearch.styles.ts
|
|
1583
|
+
// src/components/legacy/EntrySearch/styles/EntrySearch.styles.ts
|
|
1584
1584
|
var import_react15 = require("@emotion/react");
|
|
1585
1585
|
var entrySearchWrapper = import_react15.css`
|
|
1586
1586
|
background: var(--white);
|
|
@@ -1691,7 +1691,7 @@ var badgeIcon = import_react15.css`
|
|
|
1691
1691
|
height: calc(var(--spacing-lg) + var(--spacing-xs));
|
|
1692
1692
|
`;
|
|
1693
1693
|
|
|
1694
|
-
// src/components/EntrySearch/EntrySearch.tsx
|
|
1694
|
+
// src/components/legacy/EntrySearch/EntrySearch.tsx
|
|
1695
1695
|
var import_jsx_runtime21 = require("@emotion/react/jsx-runtime");
|
|
1696
1696
|
var DefaultNoResults = ({ searchText, selectedContentType }) => {
|
|
1697
1697
|
let message = "No content found";
|
|
@@ -3033,7 +3033,7 @@ function VariablesProvider({
|
|
|
3033
3033
|
children
|
|
3034
3034
|
}) {
|
|
3035
3035
|
const [editing, setEditing] = React10.useState();
|
|
3036
|
-
const
|
|
3036
|
+
const Editor = editVariableComponent != null ? editVariableComponent : VariableEditor;
|
|
3037
3037
|
const contextValue = {
|
|
3038
3038
|
dispatch: (event) => {
|
|
3039
3039
|
if (event.type === "set") {
|
|
@@ -3059,7 +3059,7 @@ function VariablesProvider({
|
|
|
3059
3059
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(VariablesContext.Provider, { value: contextValue, children: [
|
|
3060
3060
|
children,
|
|
3061
3061
|
typeof editing !== "undefined" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3062
|
-
|
|
3062
|
+
Editor,
|
|
3063
3063
|
{
|
|
3064
3064
|
onSubmit: (val) => {
|
|
3065
3065
|
setEditing(void 0);
|
|
@@ -3424,9 +3424,8 @@ function TextVariableRenderer({ definition, value, setValue }) {
|
|
|
3424
3424
|
|
|
3425
3425
|
// src/components/Request/RequestBody.tsx
|
|
3426
3426
|
var import_react34 = require("@emotion/react");
|
|
3427
|
-
var import_react35 = __toESM(require("@monaco-editor/react"));
|
|
3428
3427
|
var import_design_system19 = require("@uniformdev/design-system");
|
|
3429
|
-
var
|
|
3428
|
+
var import_react35 = require("react");
|
|
3430
3429
|
|
|
3431
3430
|
// src/components/Request/RequestProvider.tsx
|
|
3432
3431
|
var React12 = __toESM(require("react"));
|
|
@@ -3552,7 +3551,7 @@ var LANGUAGE_TO_CONTENT_TYPE = {
|
|
|
3552
3551
|
};
|
|
3553
3552
|
function RequestBody() {
|
|
3554
3553
|
const { request, dispatch } = useRequest();
|
|
3555
|
-
const [language, setLanguage] = (0,
|
|
3554
|
+
const [language, setLanguage] = (0, import_react35.useState)("json");
|
|
3556
3555
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
3557
3556
|
"div",
|
|
3558
3557
|
{
|
|
@@ -3591,16 +3590,10 @@ function RequestBody() {
|
|
|
3591
3590
|
}
|
|
3592
3591
|
),
|
|
3593
3592
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3594
|
-
|
|
3593
|
+
import_design_system19.JsonEditor,
|
|
3595
3594
|
{
|
|
3596
3595
|
height: 200,
|
|
3597
|
-
|
|
3598
|
-
language,
|
|
3599
|
-
options: {
|
|
3600
|
-
language,
|
|
3601
|
-
minimap: { enabled: false },
|
|
3602
|
-
folding: false
|
|
3603
|
-
},
|
|
3596
|
+
defaultValue: request.body,
|
|
3604
3597
|
onChange: (body) => {
|
|
3605
3598
|
if (body) {
|
|
3606
3599
|
dispatch({ type: "setBody", body, contentType: LANGUAGE_TO_CONTENT_TYPE[language] });
|
|
@@ -3791,8 +3784,8 @@ function RequestParameters({ disableVariables }) {
|
|
|
3791
3784
|
}
|
|
3792
3785
|
|
|
3793
3786
|
// src/components/Request/RequestUrl.tsx
|
|
3794
|
-
var
|
|
3795
|
-
var
|
|
3787
|
+
var import_react36 = require("@emotion/react");
|
|
3788
|
+
var import_react37 = require("react");
|
|
3796
3789
|
|
|
3797
3790
|
// src/components/Request/urlEncodeRequestParameter.ts
|
|
3798
3791
|
function urlEncodeRequestUrl(url, varValues) {
|
|
@@ -3818,7 +3811,7 @@ function RequestUrl() {
|
|
|
3818
3811
|
var _a, _b;
|
|
3819
3812
|
const { variables } = useVariables();
|
|
3820
3813
|
const { request } = useRequest();
|
|
3821
|
-
const mergedParameters = (0,
|
|
3814
|
+
const mergedParameters = (0, import_react37.useMemo)(() => {
|
|
3822
3815
|
var _a2;
|
|
3823
3816
|
if (!((_a2 = request.baseRequest) == null ? void 0 : _a2.parameters)) {
|
|
3824
3817
|
return request.parameters;
|
|
@@ -3828,7 +3821,7 @@ function RequestUrl() {
|
|
|
3828
3821
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
3829
3822
|
"small",
|
|
3830
3823
|
{
|
|
3831
|
-
css:
|
|
3824
|
+
css: import_react36.css`
|
|
3832
3825
|
display: inline-block;
|
|
3833
3826
|
margin-bottom: var(--spacing-xs);
|
|
3834
3827
|
word-break: break-word;
|
|
@@ -4043,12 +4036,12 @@ var import_design_system23 = require("@uniformdev/design-system");
|
|
|
4043
4036
|
|
|
4044
4037
|
// src/hooks/useInitializeUniformMeshSdk.ts
|
|
4045
4038
|
var import_mesh_sdk = require("@uniformdev/mesh-sdk");
|
|
4046
|
-
var
|
|
4039
|
+
var import_react38 = require("react");
|
|
4047
4040
|
var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
|
|
4048
|
-
const [error, setError] = (0,
|
|
4049
|
-
const [sdk, setSdk] = (0,
|
|
4050
|
-
const initializationInProgress = (0,
|
|
4051
|
-
(0,
|
|
4041
|
+
const [error, setError] = (0, import_react38.useState)();
|
|
4042
|
+
const [sdk, setSdk] = (0, import_react38.useState)();
|
|
4043
|
+
const initializationInProgress = (0, import_react38.useRef)(false);
|
|
4044
|
+
(0, import_react38.useEffect)(
|
|
4052
4045
|
() => {
|
|
4053
4046
|
if (typeof window === "undefined" || sdk) {
|
|
4054
4047
|
return;
|
package/dist/index.mjs
CHANGED
|
@@ -955,12 +955,12 @@ import { Callout as Callout2 } from "@uniformdev/design-system";
|
|
|
955
955
|
import React6, { useContext as useContext2, useMemo as useMemo2, useRef as useRef5 } from "react";
|
|
956
956
|
import { useAsync, useAsyncFn as useAsyncFn2 } from "react-use";
|
|
957
957
|
|
|
958
|
-
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
958
|
+
// src/components/legacy/EntrySearch/DefaultSearchRow.tsx
|
|
959
959
|
import { css as css7 } from "@emotion/react";
|
|
960
960
|
import { useOutsideClick } from "@uniformdev/design-system";
|
|
961
961
|
import { useRef, useState } from "react";
|
|
962
962
|
|
|
963
|
-
// src/components/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
963
|
+
// src/components/legacy/EntrySearch/styles/DefaultSearchRow.styles.ts
|
|
964
964
|
import { css as css6 } from "@emotion/react";
|
|
965
965
|
var searchRowContainer = css6`
|
|
966
966
|
cursor: pointer;
|
|
@@ -1001,7 +1001,7 @@ var searchRowBtn = css6`
|
|
|
1001
1001
|
inset: 0 var(--spacing-sm) 0 auto;
|
|
1002
1002
|
`;
|
|
1003
1003
|
|
|
1004
|
-
// src/components/EntrySearch/DefaultSearchRow.tsx
|
|
1004
|
+
// src/components/legacy/EntrySearch/DefaultSearchRow.tsx
|
|
1005
1005
|
import { jsx as jsx19, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
1006
1006
|
var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
1007
1007
|
const popoverRef = useRef(null);
|
|
@@ -1075,7 +1075,7 @@ var DefaultSearchRow = ({ result, isSelected, triggerSelection }) => {
|
|
|
1075
1075
|
);
|
|
1076
1076
|
};
|
|
1077
1077
|
|
|
1078
|
-
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1078
|
+
// src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
|
|
1079
1079
|
import { css as css9 } from "@emotion/react";
|
|
1080
1080
|
import { Icon as Icon2, useOutsideClick as useOutsideClick2 } from "@uniformdev/design-system";
|
|
1081
1081
|
import { useEffect, useRef as useRef2, useState as useState2 } from "react";
|
|
@@ -1093,7 +1093,7 @@ function openWindowWithCloseCallback(href, callback) {
|
|
|
1093
1093
|
}, 500);
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
-
// src/components/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1096
|
+
// src/components/legacy/EntrySearch/styles/DefaultSelectedItem.styles.ts
|
|
1097
1097
|
import { css as css8 } from "@emotion/react";
|
|
1098
1098
|
import { mq as mq2 } from "@uniformdev/design-system";
|
|
1099
1099
|
var selectedItemContainer = css8`
|
|
@@ -1177,7 +1177,7 @@ var selectItemLinkBtn = css8`
|
|
|
1177
1177
|
}
|
|
1178
1178
|
`;
|
|
1179
1179
|
|
|
1180
|
-
// src/components/EntrySearch/DefaultSelectedItem.tsx
|
|
1180
|
+
// src/components/legacy/EntrySearch/DefaultSelectedItem.tsx
|
|
1181
1181
|
import { jsx as jsx20, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
1182
1182
|
var DefaultSelectedItem = ({
|
|
1183
1183
|
selectedItem,
|
|
@@ -1360,7 +1360,7 @@ var DefaultSelectedItem = ({
|
|
|
1360
1360
|
] }) }, selectedItem.id);
|
|
1361
1361
|
};
|
|
1362
1362
|
|
|
1363
|
-
// src/components/EntrySearch/EntrySearch.tsx
|
|
1363
|
+
// src/components/legacy/EntrySearch/EntrySearch.tsx
|
|
1364
1364
|
import { css as css11 } from "@emotion/react";
|
|
1365
1365
|
import {
|
|
1366
1366
|
Button,
|
|
@@ -1411,7 +1411,7 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
|
|
|
1411
1411
|
return state === "DISPLAY" || state === "EXPIRE";
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
// src/components/EntrySearch/styles/EntrySearch.styles.ts
|
|
1414
|
+
// src/components/legacy/EntrySearch/styles/EntrySearch.styles.ts
|
|
1415
1415
|
import { css as css10 } from "@emotion/react";
|
|
1416
1416
|
var entrySearchWrapper = css10`
|
|
1417
1417
|
background: var(--white);
|
|
@@ -1522,7 +1522,7 @@ var badgeIcon = css10`
|
|
|
1522
1522
|
height: calc(var(--spacing-lg) + var(--spacing-xs));
|
|
1523
1523
|
`;
|
|
1524
1524
|
|
|
1525
|
-
// src/components/EntrySearch/EntrySearch.tsx
|
|
1525
|
+
// src/components/legacy/EntrySearch/EntrySearch.tsx
|
|
1526
1526
|
import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
|
|
1527
1527
|
var DefaultNoResults = ({ searchText, selectedContentType }) => {
|
|
1528
1528
|
let message = "No content found";
|
|
@@ -2864,7 +2864,7 @@ function VariablesProvider({
|
|
|
2864
2864
|
children
|
|
2865
2865
|
}) {
|
|
2866
2866
|
const [editing, setEditing] = React10.useState();
|
|
2867
|
-
const
|
|
2867
|
+
const Editor = editVariableComponent != null ? editVariableComponent : VariableEditor;
|
|
2868
2868
|
const contextValue = {
|
|
2869
2869
|
dispatch: (event) => {
|
|
2870
2870
|
if (event.type === "set") {
|
|
@@ -2890,7 +2890,7 @@ function VariablesProvider({
|
|
|
2890
2890
|
return /* @__PURE__ */ jsxs17(VariablesContext.Provider, { value: contextValue, children: [
|
|
2891
2891
|
children,
|
|
2892
2892
|
typeof editing !== "undefined" ? /* @__PURE__ */ jsx29(
|
|
2893
|
-
|
|
2893
|
+
Editor,
|
|
2894
2894
|
{
|
|
2895
2895
|
onSubmit: (val) => {
|
|
2896
2896
|
setEditing(void 0);
|
|
@@ -3265,8 +3265,7 @@ function TextVariableRenderer({ definition, value, setValue }) {
|
|
|
3265
3265
|
|
|
3266
3266
|
// src/components/Request/RequestBody.tsx
|
|
3267
3267
|
import { css as css23 } from "@emotion/react";
|
|
3268
|
-
import
|
|
3269
|
-
import { InputSelect as InputSelect4 } from "@uniformdev/design-system";
|
|
3268
|
+
import { InputSelect as InputSelect4, JsonEditor } from "@uniformdev/design-system";
|
|
3270
3269
|
import { useState as useState8 } from "react";
|
|
3271
3270
|
|
|
3272
3271
|
// src/components/Request/RequestProvider.tsx
|
|
@@ -3432,16 +3431,10 @@ function RequestBody() {
|
|
|
3432
3431
|
}
|
|
3433
3432
|
),
|
|
3434
3433
|
/* @__PURE__ */ jsx36(
|
|
3435
|
-
|
|
3434
|
+
JsonEditor,
|
|
3436
3435
|
{
|
|
3437
3436
|
height: 200,
|
|
3438
|
-
|
|
3439
|
-
language,
|
|
3440
|
-
options: {
|
|
3441
|
-
language,
|
|
3442
|
-
minimap: { enabled: false },
|
|
3443
|
-
folding: false
|
|
3444
|
-
},
|
|
3437
|
+
defaultValue: request.body,
|
|
3445
3438
|
onChange: (body) => {
|
|
3446
3439
|
if (body) {
|
|
3447
3440
|
dispatch({ type: "setBody", body, contentType: LANGUAGE_TO_CONTENT_TYPE[language] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.25.1-alpha.16+650a7b092",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,11 +43,9 @@
|
|
|
43
43
|
"document": "api-extractor run --local"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@uniformdev/
|
|
48
|
-
"@uniformdev/mesh-sdk": "18.24.1-alpha.1+65e77b560",
|
|
46
|
+
"@uniformdev/design-system": "18.25.1-alpha.16+650a7b092",
|
|
47
|
+
"@uniformdev/mesh-sdk": "18.25.1-alpha.16+650a7b092",
|
|
49
48
|
"formik": "^2.2.9",
|
|
50
|
-
"monaco-editor": "0.36.1",
|
|
51
49
|
"react-beautiful-dnd": "13.1.1",
|
|
52
50
|
"react-icons": "4.8.0",
|
|
53
51
|
"react-use": "17.4.0",
|
|
@@ -75,5 +73,5 @@
|
|
|
75
73
|
"publishConfig": {
|
|
76
74
|
"access": "public"
|
|
77
75
|
},
|
|
78
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "650a7b092914e3eb21d60d103de9e8af96e4575f"
|
|
79
77
|
}
|