@uniformdev/mesh-sdk-react 19.63.0 → 19.63.1
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 +6 -3
- package/dist/index.js +139 -136
- package/dist/index.mjs +6 -3
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -4718,6 +4718,7 @@ import { useMemo as useMemo11 } from "react";
|
|
|
4718
4718
|
|
|
4719
4719
|
// src/components/Variables/styles/ParameterVariables.styles.ts
|
|
4720
4720
|
import { css as css23 } from "@emotion/react";
|
|
4721
|
+
import { scrollbarStyles as scrollbarStyles3 } from "@uniformdev/design-system";
|
|
4721
4722
|
var variableBindButton2 = css23`
|
|
4722
4723
|
align-items: center;
|
|
4723
4724
|
border: none;
|
|
@@ -4797,8 +4798,10 @@ var input2 = css23`
|
|
|
4797
4798
|
}
|
|
4798
4799
|
`;
|
|
4799
4800
|
var inputMultiLine = (lines) => css23`
|
|
4800
|
-
|
|
4801
|
-
|
|
4801
|
+
${scrollbarStyles3}
|
|
4802
|
+
// 1.5 = line height, spacing-sm = top and bottom padding + spacing-xs to give a slight increase in height
|
|
4803
|
+
// as the text looked to close to the bottom of the input
|
|
4804
|
+
height: calc(${lines * 1.5}em + var(--spacing-sm) + var(--spacing-xs));
|
|
4802
4805
|
resize: vertical;
|
|
4803
4806
|
overflow: auto;
|
|
4804
4807
|
`;
|
|
@@ -5020,7 +5023,7 @@ function ParameterVariables(props) {
|
|
|
5020
5023
|
"data-text-value": value,
|
|
5021
5024
|
css: [
|
|
5022
5025
|
input2,
|
|
5023
|
-
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(
|
|
5026
|
+
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(2) : css24``,
|
|
5024
5027
|
inputCss != null ? inputCss : css24``
|
|
5025
5028
|
]
|
|
5026
5029
|
}
|
package/dist/index.js
CHANGED
|
@@ -33,9 +33,9 @@ var src_exports = {};
|
|
|
33
33
|
__export(src_exports, {
|
|
34
34
|
$createVariableNode: () => $createVariableNode,
|
|
35
35
|
$isVariableNode: () => $isVariableNode,
|
|
36
|
-
AddListButton: () =>
|
|
37
|
-
Button: () =>
|
|
38
|
-
Callout: () =>
|
|
36
|
+
AddListButton: () => import_design_system41.AddListButton,
|
|
37
|
+
Button: () => import_design_system41.Button,
|
|
38
|
+
Callout: () => import_design_system41.Callout,
|
|
39
39
|
ControlledValuePlugin: () => ControlledValuePlugin,
|
|
40
40
|
DISCONNECT_VARIABLE_COMMAND: () => DISCONNECT_VARIABLE_COMMAND,
|
|
41
41
|
DamSelectedItem: () => DamSelectedItem,
|
|
@@ -47,24 +47,24 @@ __export(src_exports, {
|
|
|
47
47
|
DataTypeEditor: () => DataTypeEditor,
|
|
48
48
|
DefaultSearchRow: () => DefaultSearchRow,
|
|
49
49
|
DefaultSelectedItem: () => DefaultSelectedItem,
|
|
50
|
-
DrawerContent: () =>
|
|
50
|
+
DrawerContent: () => import_design_system41.DrawerContent,
|
|
51
51
|
EDIT_VARIABLE_COMMAND: () => EDIT_VARIABLE_COMMAND,
|
|
52
52
|
EntrySearch: () => EntrySearch,
|
|
53
|
-
Heading: () =>
|
|
53
|
+
Heading: () => import_design_system41.Heading,
|
|
54
54
|
INSERT_VARIABLE_COMMAND: () => INSERT_VARIABLE_COMMAND,
|
|
55
55
|
Icons: () => icons_exports,
|
|
56
|
-
Input: () =>
|
|
57
|
-
InputComboBox: () =>
|
|
58
|
-
InputKeywordSearch: () =>
|
|
59
|
-
InputSelect: () =>
|
|
60
|
-
InputToggle: () =>
|
|
56
|
+
Input: () => import_design_system41.Input,
|
|
57
|
+
InputComboBox: () => import_design_system41.InputComboBox,
|
|
58
|
+
InputKeywordSearch: () => import_design_system41.InputKeywordSearch,
|
|
59
|
+
InputSelect: () => import_design_system41.InputSelect,
|
|
60
|
+
InputToggle: () => import_design_system41.InputToggle,
|
|
61
61
|
InputVariables: () => InputVariables,
|
|
62
|
-
Label: () =>
|
|
62
|
+
Label: () => import_design_system41.Label,
|
|
63
63
|
LinkButton: () => LinkButton,
|
|
64
|
-
LoadingIndicator: () =>
|
|
65
|
-
LoadingOverlay: () =>
|
|
66
|
-
Menu: () =>
|
|
67
|
-
MenuItem: () =>
|
|
64
|
+
LoadingIndicator: () => import_design_system41.LoadingIndicator,
|
|
65
|
+
LoadingOverlay: () => import_design_system41.LoadingOverlay,
|
|
66
|
+
Menu: () => import_design_system41.Menu,
|
|
67
|
+
MenuItem: () => import_design_system41.MenuItem,
|
|
68
68
|
MeshApp: () => MeshApp,
|
|
69
69
|
OPEN_INSERT_VARIABLE_COMMAND: () => OPEN_INSERT_VARIABLE_COMMAND,
|
|
70
70
|
ObjectSearchContainer: () => ObjectSearchContainer,
|
|
@@ -78,22 +78,22 @@ __export(src_exports, {
|
|
|
78
78
|
ObjectSearchResultList: () => ObjectSearchResultList,
|
|
79
79
|
ParamTypeDynamicDataProvider: () => ParamTypeDynamicDataProvider,
|
|
80
80
|
ParameterConnectionIndicator: () => ParameterConnectionIndicator,
|
|
81
|
-
ParameterGroup: () =>
|
|
82
|
-
ParameterImage: () =>
|
|
83
|
-
ParameterImageInner: () =>
|
|
84
|
-
ParameterInput: () =>
|
|
85
|
-
ParameterInputInner: () =>
|
|
86
|
-
ParameterLabel: () =>
|
|
87
|
-
ParameterMenuButton: () =>
|
|
81
|
+
ParameterGroup: () => import_design_system41.ParameterGroup,
|
|
82
|
+
ParameterImage: () => import_design_system41.ParameterImage,
|
|
83
|
+
ParameterImageInner: () => import_design_system41.ParameterImageInner,
|
|
84
|
+
ParameterInput: () => import_design_system41.ParameterInput,
|
|
85
|
+
ParameterInputInner: () => import_design_system41.ParameterInputInner,
|
|
86
|
+
ParameterLabel: () => import_design_system41.ParameterLabel,
|
|
87
|
+
ParameterMenuButton: () => import_design_system41.ParameterMenuButton,
|
|
88
88
|
ParameterOrSingleVariable: () => ParameterOrSingleVariable,
|
|
89
|
-
ParameterSelect: () =>
|
|
90
|
-
ParameterSelectInner: () =>
|
|
91
|
-
ParameterShell: () =>
|
|
89
|
+
ParameterSelect: () => import_design_system41.ParameterSelect,
|
|
90
|
+
ParameterSelectInner: () => import_design_system41.ParameterSelectInner,
|
|
91
|
+
ParameterShell: () => import_design_system41.ParameterShell,
|
|
92
92
|
ParameterShellContext: () => import_design_system14.ParameterShellContext,
|
|
93
|
-
ParameterTextarea: () =>
|
|
94
|
-
ParameterTextareaInner: () =>
|
|
95
|
-
ParameterToggle: () =>
|
|
96
|
-
ParameterToggleInner: () =>
|
|
93
|
+
ParameterTextarea: () => import_design_system41.ParameterTextarea,
|
|
94
|
+
ParameterTextareaInner: () => import_design_system41.ParameterTextareaInner,
|
|
95
|
+
ParameterToggle: () => import_design_system41.ParameterToggle,
|
|
96
|
+
ParameterToggleInner: () => import_design_system41.ParameterToggleInner,
|
|
97
97
|
ParameterVariables: () => ParameterVariables,
|
|
98
98
|
ProductPreviewList: () => ProductPreviewList,
|
|
99
99
|
ProductQuery: () => ProductQuery,
|
|
@@ -112,13 +112,13 @@ __export(src_exports, {
|
|
|
112
112
|
RequestUrl: () => RequestUrl,
|
|
113
113
|
RequestUrlInput: () => RequestUrlInput,
|
|
114
114
|
ResolvableLoadingValue: () => ResolvableLoadingValue,
|
|
115
|
-
ScrollableList: () =>
|
|
116
|
-
ScrollableListItem: () =>
|
|
115
|
+
ScrollableList: () => import_design_system41.ScrollableList,
|
|
116
|
+
ScrollableListItem: () => import_design_system41.ScrollableListItem,
|
|
117
117
|
SelectionField: () => SelectionField,
|
|
118
|
-
Switch: () =>
|
|
118
|
+
Switch: () => import_design_system41.Switch,
|
|
119
119
|
TextVariableRenderer: () => TextVariableRenderer,
|
|
120
|
-
Textarea: () =>
|
|
121
|
-
Theme: () =>
|
|
120
|
+
Textarea: () => import_design_system41.Textarea,
|
|
121
|
+
Theme: () => import_design_system41.Theme,
|
|
122
122
|
VariableEditor: () => VariableEditor,
|
|
123
123
|
VariableNode: () => VariableNode,
|
|
124
124
|
VariablesList: () => VariablesList,
|
|
@@ -4879,11 +4879,12 @@ function InputVariablesOverlayMenu({
|
|
|
4879
4879
|
// src/components/Variables/ParameterConnectionIndicator.tsx
|
|
4880
4880
|
var import_CgUsbC2 = require("@react-icons/all-files/cg/CgUsbC");
|
|
4881
4881
|
var import_canvas6 = require("@uniformdev/canvas");
|
|
4882
|
-
var
|
|
4882
|
+
var import_design_system22 = require("@uniformdev/design-system");
|
|
4883
4883
|
var import_react51 = require("react");
|
|
4884
4884
|
|
|
4885
4885
|
// src/components/Variables/styles/ParameterVariables.styles.ts
|
|
4886
4886
|
var import_react50 = require("@emotion/react");
|
|
4887
|
+
var import_design_system21 = require("@uniformdev/design-system");
|
|
4887
4888
|
var variableBindButton2 = import_react50.css`
|
|
4888
4889
|
align-items: center;
|
|
4889
4890
|
border: none;
|
|
@@ -4963,8 +4964,10 @@ var input2 = import_react50.css`
|
|
|
4963
4964
|
}
|
|
4964
4965
|
`;
|
|
4965
4966
|
var inputMultiLine = (lines) => import_react50.css`
|
|
4966
|
-
|
|
4967
|
-
|
|
4967
|
+
${import_design_system21.scrollbarStyles}
|
|
4968
|
+
// 1.5 = line height, spacing-sm = top and bottom padding + spacing-xs to give a slight increase in height
|
|
4969
|
+
// as the text looked to close to the bottom of the input
|
|
4970
|
+
height: calc(${lines * 1.5}em + var(--spacing-sm) + var(--spacing-xs));
|
|
4968
4971
|
resize: vertical;
|
|
4969
4972
|
overflow: auto;
|
|
4970
4973
|
`;
|
|
@@ -4989,10 +4992,10 @@ function ParameterConnectionIndicator({
|
|
|
4989
4992
|
});
|
|
4990
4993
|
return result;
|
|
4991
4994
|
}, [value]);
|
|
4992
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4995
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_design_system22.HorizontalRhythm, { align: "center", gap: "xs", css: { width: "100%" }, children: [
|
|
4993
4996
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { css: { flex: 1 }, children }),
|
|
4994
4997
|
disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4995
|
-
|
|
4998
|
+
import_design_system22.Menu,
|
|
4996
4999
|
{
|
|
4997
5000
|
placement: "bottom-start",
|
|
4998
5001
|
withoutPortal: true,
|
|
@@ -5014,7 +5017,7 @@ function ParameterConnectionIndicator({
|
|
|
5014
5017
|
}
|
|
5015
5018
|
|
|
5016
5019
|
// src/components/Variables/ParameterOrSingleVariable.tsx
|
|
5017
|
-
var
|
|
5020
|
+
var import_design_system23 = require("@uniformdev/design-system");
|
|
5018
5021
|
var import_react53 = require("react");
|
|
5019
5022
|
|
|
5020
5023
|
// src/components/Variables/composer/OnDisconnectPlugin.tsx
|
|
@@ -5100,7 +5103,7 @@ function ParameterOrSingleVariable(props) {
|
|
|
5100
5103
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(OnDisconnectPlugin, { onDisconnect: handleDisconnect }),
|
|
5101
5104
|
editorRef ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(EditorRefPlugin, { editorRef }) : null,
|
|
5102
5105
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ControlledValuePlugin, { enabled: true, value }),
|
|
5103
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
5106
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_design_system23.HorizontalRhythm, { align: "center", gap: "xs", css: { width: "100%" }, children: [
|
|
5104
5107
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5105
5108
|
VariablesComposerInput,
|
|
5106
5109
|
{
|
|
@@ -5128,7 +5131,7 @@ function ParameterOrSingleVariable(props) {
|
|
|
5128
5131
|
|
|
5129
5132
|
// src/components/Variables/ParameterVariables.tsx
|
|
5130
5133
|
var import_react54 = require("@emotion/react");
|
|
5131
|
-
var
|
|
5134
|
+
var import_design_system24 = require("@uniformdev/design-system");
|
|
5132
5135
|
var import_jsx_runtime42 = require("@emotion/react/jsx-runtime");
|
|
5133
5136
|
function ParameterVariables(props) {
|
|
5134
5137
|
const {
|
|
@@ -5167,7 +5170,7 @@ function ParameterVariables(props) {
|
|
|
5167
5170
|
editorRef ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(EditorRefPlugin, { editorRef }) : null,
|
|
5168
5171
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ControlledValuePlugin, { value, enabled: useInputWhenNoVariables }),
|
|
5169
5172
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
5170
|
-
|
|
5173
|
+
import_design_system24.HorizontalRhythm,
|
|
5171
5174
|
{
|
|
5172
5175
|
align: "center",
|
|
5173
5176
|
gap: "xs",
|
|
@@ -5186,7 +5189,7 @@ function ParameterVariables(props) {
|
|
|
5186
5189
|
"data-text-value": value,
|
|
5187
5190
|
css: [
|
|
5188
5191
|
input2,
|
|
5189
|
-
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(
|
|
5192
|
+
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(2) : import_react54.css``,
|
|
5190
5193
|
inputCss != null ? inputCss : import_react54.css``
|
|
5191
5194
|
]
|
|
5192
5195
|
}
|
|
@@ -5224,7 +5227,7 @@ ${prettifyBindExpression(bindExpression)}`
|
|
|
5224
5227
|
|
|
5225
5228
|
// src/components/Variables/VariablesList.tsx
|
|
5226
5229
|
var import_react56 = require("@emotion/react");
|
|
5227
|
-
var
|
|
5230
|
+
var import_design_system25 = require("@uniformdev/design-system");
|
|
5228
5231
|
var import_react_beautiful_dnd2 = require("react-beautiful-dnd");
|
|
5229
5232
|
|
|
5230
5233
|
// src/components/Variables/styles/VariablesList.styles.ts
|
|
@@ -5296,13 +5299,13 @@ function VariablesList() {
|
|
|
5296
5299
|
}
|
|
5297
5300
|
};
|
|
5298
5301
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
|
5299
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_beautiful_dnd2.DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_beautiful_dnd2.Droppable, { droppableId: "variables-table", children: (provided) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
5300
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5301
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5302
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5303
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5302
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_beautiful_dnd2.DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_beautiful_dnd2.Droppable, { droppableId: "variables-table", children: (provided) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_design_system25.Table, { ...provided.droppableProps, ref: provided.innerRef, children: [
|
|
5303
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_design_system25.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_design_system25.TableRow, { children: [
|
|
5304
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_design_system25.TableCellHead, { children: "Name" }),
|
|
5305
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_design_system25.TableCellHead, { children: "Default Value" }),
|
|
5306
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_design_system25.TableCellHead, {})
|
|
5304
5307
|
] }) }),
|
|
5305
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
5308
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_design_system25.TableBody, { children: [
|
|
5306
5309
|
sorted.map(({ name, displayName, default: defaultValue, readOnly }, index) => {
|
|
5307
5310
|
const text = displayName != null ? displayName : name;
|
|
5308
5311
|
const textValue = variableDefaultTextValue(defaultValue);
|
|
@@ -5313,7 +5316,7 @@ function VariablesList() {
|
|
|
5313
5316
|
index,
|
|
5314
5317
|
isDragDisabled: sorted.length === 1,
|
|
5315
5318
|
children: (provided2, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
5316
|
-
|
|
5319
|
+
import_design_system25.TableRow,
|
|
5317
5320
|
{
|
|
5318
5321
|
ref: provided2.innerRef,
|
|
5319
5322
|
...provided2.dragHandleProps,
|
|
@@ -5322,7 +5325,7 @@ function VariablesList() {
|
|
|
5322
5325
|
css: tableRow(snapshot.isDragging),
|
|
5323
5326
|
"data-dragging": snapshot.isDragging,
|
|
5324
5327
|
children: [
|
|
5325
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5328
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_design_system25.TableCellData, { css: sorted.length > 1 ? tableCellDragIcon : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5326
5329
|
"button",
|
|
5327
5330
|
{
|
|
5328
5331
|
css: variableName,
|
|
@@ -5335,21 +5338,21 @@ function VariablesList() {
|
|
|
5335
5338
|
children: text
|
|
5336
5339
|
}
|
|
5337
5340
|
) }),
|
|
5338
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5339
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5341
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_design_system25.TableCellData, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { css: variableValue, title: textValue, children: textValue }) }),
|
|
5342
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_design_system25.TableCellData, { align: "right", children: readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5340
5343
|
"button",
|
|
5341
5344
|
{
|
|
5342
5345
|
type: "button",
|
|
5343
5346
|
title: `delete ${text}`,
|
|
5344
5347
|
css: [
|
|
5345
|
-
|
|
5348
|
+
import_design_system25.button,
|
|
5346
5349
|
import_react56.css`
|
|
5347
5350
|
background: transparent;
|
|
5348
5351
|
`
|
|
5349
5352
|
],
|
|
5350
5353
|
"aria-controls": text,
|
|
5351
5354
|
onClick: () => dispatch({ type: "remove", variable: name }),
|
|
5352
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5355
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_design_system25.Icon, { icon: "trash", iconColor: "red" })
|
|
5353
5356
|
}
|
|
5354
5357
|
) })
|
|
5355
5358
|
]
|
|
@@ -5363,7 +5366,7 @@ function VariablesList() {
|
|
|
5363
5366
|
] })
|
|
5364
5367
|
] }) }) }),
|
|
5365
5368
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5366
|
-
|
|
5369
|
+
import_design_system25.AddListButton,
|
|
5367
5370
|
{
|
|
5368
5371
|
onButtonClick: () => dispatch({ type: "edit", variable: "" }),
|
|
5369
5372
|
"aria-label": "Add variable",
|
|
@@ -5399,7 +5402,7 @@ function DataResourceDynamicInputProviderRenderer({
|
|
|
5399
5402
|
}
|
|
5400
5403
|
|
|
5401
5404
|
// src/components/DataResourceVariablesList.tsx
|
|
5402
|
-
var
|
|
5405
|
+
var import_design_system26 = require("@uniformdev/design-system");
|
|
5403
5406
|
var import_jsx_runtime45 = require("@emotion/react/jsx-runtime");
|
|
5404
5407
|
function DataResourceVariablesList(props) {
|
|
5405
5408
|
const {
|
|
@@ -5429,9 +5432,9 @@ function DataResourceVariablesListExplicit({
|
|
|
5429
5432
|
if (NoVariablesComponent) {
|
|
5430
5433
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(NoVariablesComponent, {});
|
|
5431
5434
|
}
|
|
5432
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_design_system26.Callout, { type: "note", children: "No settings are required." });
|
|
5433
5436
|
}
|
|
5434
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DataResourceDynamicInputProvider, { dynamicInputs, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DataResourceDynamicInputProvider, { dynamicInputs, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_design_system26.VerticalRhythm, { children: variableDefinitions.map((variableDefinition) => {
|
|
5435
5438
|
var _a, _b, _c;
|
|
5436
5439
|
const VariableRenderer = variableDefinition.type ? (_a = typeRenderers == null ? void 0 : typeRenderers[variableDefinition.type]) != null ? _a : TextVariableRenderer : TextVariableRenderer;
|
|
5437
5440
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
@@ -5473,7 +5476,7 @@ function TextVariableRenderer({ definition, value, setValue }) {
|
|
|
5473
5476
|
|
|
5474
5477
|
// src/components/Request/RequestBody.tsx
|
|
5475
5478
|
var import_react58 = require("@emotion/react");
|
|
5476
|
-
var
|
|
5479
|
+
var import_design_system27 = require("@uniformdev/design-system");
|
|
5477
5480
|
var import_react59 = require("react");
|
|
5478
5481
|
|
|
5479
5482
|
// src/components/Request/RequestProvider.tsx
|
|
@@ -5616,7 +5619,7 @@ function RequestBody() {
|
|
|
5616
5619
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
5617
5620
|
`,
|
|
5618
5621
|
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5619
|
-
|
|
5622
|
+
import_design_system27.InputSelect,
|
|
5620
5623
|
{
|
|
5621
5624
|
label: "Language",
|
|
5622
5625
|
showLabel: false,
|
|
@@ -5639,7 +5642,7 @@ function RequestBody() {
|
|
|
5639
5642
|
}
|
|
5640
5643
|
),
|
|
5641
5644
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5642
|
-
|
|
5645
|
+
import_design_system27.JsonEditor,
|
|
5643
5646
|
{
|
|
5644
5647
|
height: 200,
|
|
5645
5648
|
defaultValue: request.body,
|
|
@@ -5656,7 +5659,7 @@ function RequestBody() {
|
|
|
5656
5659
|
}
|
|
5657
5660
|
|
|
5658
5661
|
// src/components/Request/RequestHeaders.tsx
|
|
5659
|
-
var
|
|
5662
|
+
var import_design_system28 = require("@uniformdev/design-system");
|
|
5660
5663
|
var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
|
|
5661
5664
|
function RequestHeaders({
|
|
5662
5665
|
disableVariables,
|
|
@@ -5676,30 +5679,30 @@ function RequestHeaders({
|
|
|
5676
5679
|
index
|
|
5677
5680
|
});
|
|
5678
5681
|
};
|
|
5679
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { css: innerContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5680
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5681
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5682
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5683
|
-
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { css: innerContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_design_system28.Table, { children: [
|
|
5683
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system28.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_design_system28.TableRow, { children: [
|
|
5684
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system28.TableCellHead, { children: "Name" }),
|
|
5685
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system28.TableCellHead, { children: "Value" }),
|
|
5686
|
+
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system28.TableCellHead, { children: "Omit If Empty" }) : null
|
|
5684
5687
|
] }) }),
|
|
5685
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5688
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_design_system28.TableBody, { children: [
|
|
5686
5689
|
(_b = (_a = request.baseRequest) == null ? void 0 : _a.headers) == null ? void 0 : _b.map((baseHeader) => {
|
|
5687
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5688
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_design_system28.TableRow, { children: [
|
|
5691
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_design_system28.TableCellData, { width: "50%", children: [
|
|
5689
5692
|
baseHeader.key,
|
|
5690
5693
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("br", {}),
|
|
5691
5694
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("i", { css: { color: "var(--gray-500)" }, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("small", { children: "from data source" }) })
|
|
5692
5695
|
] }),
|
|
5693
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5696
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_design_system28.TableCellData, { width: "50%", children: [
|
|
5694
5697
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("i", { css: { color: "var(--gray-500)" }, children: baseHeader.value }),
|
|
5695
|
-
request.headers.find((p) => p.key === baseHeader.key) ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5698
|
+
request.headers.find((p) => p.key === baseHeader.key) ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system28.WarningMessage, { message: "overridden below" }) : null
|
|
5696
5699
|
] })
|
|
5697
5700
|
] }, baseHeader.key);
|
|
5698
5701
|
}),
|
|
5699
5702
|
deezHeaders.map((header, index) => {
|
|
5700
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
5701
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5702
|
-
|
|
5703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_design_system28.TableRow, { children: [
|
|
5704
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system28.TableCellData, { width: "50%", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5705
|
+
import_design_system28.Input,
|
|
5703
5706
|
{
|
|
5704
5707
|
label: header.key,
|
|
5705
5708
|
value: header.key,
|
|
@@ -5718,7 +5721,7 @@ function RequestHeaders({
|
|
|
5718
5721
|
"data-testid": "header-key"
|
|
5719
5722
|
}
|
|
5720
5723
|
) }),
|
|
5721
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5724
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system28.TableCellData, { width: "50%", children: header.key ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5722
5725
|
InputVariables,
|
|
5723
5726
|
{
|
|
5724
5727
|
value: header.value,
|
|
@@ -5729,8 +5732,8 @@ function RequestHeaders({
|
|
|
5729
5732
|
"data-testid": "header-value"
|
|
5730
5733
|
}
|
|
5731
5734
|
) : null }),
|
|
5732
|
-
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5733
|
-
|
|
5735
|
+
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system28.TableCellData, { width: "50%", children: header.key ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5736
|
+
import_design_system28.Input,
|
|
5734
5737
|
{
|
|
5735
5738
|
type: "checkbox",
|
|
5736
5739
|
checked: header.omitIfEmpty,
|
|
@@ -5753,13 +5756,13 @@ function RequestHeaders({
|
|
|
5753
5756
|
}
|
|
5754
5757
|
|
|
5755
5758
|
// src/components/Request/RequestMethodSelect.tsx
|
|
5756
|
-
var
|
|
5759
|
+
var import_design_system29 = require("@uniformdev/design-system");
|
|
5757
5760
|
var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
|
|
5758
5761
|
function RequestMethodSelect(props) {
|
|
5759
5762
|
var _a;
|
|
5760
5763
|
const { request, dispatch } = useRequest();
|
|
5761
5764
|
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5762
|
-
|
|
5765
|
+
import_design_system29.InputSelect,
|
|
5763
5766
|
{
|
|
5764
5767
|
...props,
|
|
5765
5768
|
options: [
|
|
@@ -5774,7 +5777,7 @@ function RequestMethodSelect(props) {
|
|
|
5774
5777
|
}
|
|
5775
5778
|
|
|
5776
5779
|
// src/components/Request/RequestParameters.tsx
|
|
5777
|
-
var
|
|
5780
|
+
var import_design_system30 = require("@uniformdev/design-system");
|
|
5778
5781
|
var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
|
|
5779
5782
|
function RequestParameters({
|
|
5780
5783
|
disableVariables,
|
|
@@ -5795,30 +5798,30 @@ function RequestParameters({
|
|
|
5795
5798
|
index
|
|
5796
5799
|
});
|
|
5797
5800
|
};
|
|
5798
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { css: innerContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5799
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5800
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5801
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5802
|
-
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { css: innerContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_design_system30.Table, { children: [
|
|
5802
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system30.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_design_system30.TableRow, { children: [
|
|
5803
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system30.TableCellHead, { children: "Name" }),
|
|
5804
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system30.TableCellHead, { children: "Value" }),
|
|
5805
|
+
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system30.TableCellHead, { children: "Omit If Empty" }) : null
|
|
5803
5806
|
] }) }),
|
|
5804
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5807
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_design_system30.TableBody, { children: [
|
|
5805
5808
|
(_b = (_a = request.baseRequest) == null ? void 0 : _a.parameters) == null ? void 0 : _b.map((baseParameter) => {
|
|
5806
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5807
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_design_system30.TableRow, { children: [
|
|
5810
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_design_system30.TableCellData, { width: "50%", children: [
|
|
5808
5811
|
baseParameter.key,
|
|
5809
5812
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("br", {}),
|
|
5810
5813
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("i", { css: { color: "var(--gray-500)" }, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("small", { children: "from data source" }) })
|
|
5811
5814
|
] }),
|
|
5812
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5815
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_design_system30.TableCellData, { width: "50%", children: [
|
|
5813
5816
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("i", { css: { color: "var(--gray-500)" }, children: baseParameter.value }),
|
|
5814
|
-
request.parameters.find((p) => p.key === baseParameter.key) ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5817
|
+
request.parameters.find((p) => p.key === baseParameter.key) ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system30.WarningMessage, { message: "overridden below" }) : null
|
|
5815
5818
|
] })
|
|
5816
5819
|
] }, baseParameter.key);
|
|
5817
5820
|
}),
|
|
5818
5821
|
deezParameters.map((parameter, index) => {
|
|
5819
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5820
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5821
|
-
|
|
5822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_design_system30.TableRow, { children: [
|
|
5823
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system30.TableCellData, { width: "50%", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5824
|
+
import_design_system30.Input,
|
|
5822
5825
|
{
|
|
5823
5826
|
label: parameter.key,
|
|
5824
5827
|
value: parameter.key,
|
|
@@ -5841,7 +5844,7 @@ function RequestParameters({
|
|
|
5841
5844
|
"data-testid": "parameter-key"
|
|
5842
5845
|
}
|
|
5843
5846
|
) }),
|
|
5844
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5847
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system30.TableCellData, { width: "50%", children: parameter.key ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5845
5848
|
InputVariables,
|
|
5846
5849
|
{
|
|
5847
5850
|
value: parameter.value,
|
|
@@ -5857,8 +5860,8 @@ function RequestParameters({
|
|
|
5857
5860
|
enableEditingVariables: true
|
|
5858
5861
|
}
|
|
5859
5862
|
) : null }),
|
|
5860
|
-
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5861
|
-
|
|
5863
|
+
addOmitIfEmpty ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_design_system30.TableCellData, { width: "50%", children: parameter.key ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5864
|
+
import_design_system30.Input,
|
|
5862
5865
|
{
|
|
5863
5866
|
type: "checkbox",
|
|
5864
5867
|
checked: parameter.omitIfEmpty,
|
|
@@ -6154,7 +6157,7 @@ function convertRequestDataToDataType(dataType, requestData) {
|
|
|
6154
6157
|
}
|
|
6155
6158
|
|
|
6156
6159
|
// src/components/MeshApp.tsx
|
|
6157
|
-
var
|
|
6160
|
+
var import_design_system31 = require("@uniformdev/design-system");
|
|
6158
6161
|
|
|
6159
6162
|
// src/hooks/useInitializeUniformMeshSdk.ts
|
|
6160
6163
|
var import_mesh_sdk = require("@uniformdev/mesh-sdk");
|
|
@@ -6205,7 +6208,7 @@ var MeshApp = ({
|
|
|
6205
6208
|
const { initializing, error, sdk } = useInitializeUniformMeshSdk();
|
|
6206
6209
|
if (initializing || !sdk) {
|
|
6207
6210
|
const LoadingComponent = loadingComponent;
|
|
6208
|
-
return LoadingComponent ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(LoadingComponent, {}) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6211
|
+
return LoadingComponent ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(LoadingComponent, {}) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_design_system31.LoadingIndicator, {});
|
|
6209
6212
|
}
|
|
6210
6213
|
if (error) {
|
|
6211
6214
|
const ErrorComponent = errorComponent;
|
|
@@ -6215,14 +6218,14 @@ var MeshApp = ({
|
|
|
6215
6218
|
throw error;
|
|
6216
6219
|
}
|
|
6217
6220
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(UniformMeshSdkContext.Provider, { value: { sdk }, children: [
|
|
6218
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6221
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_design_system31.Theme, {}),
|
|
6219
6222
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(UniformMeshLocationContextProvider, { children })
|
|
6220
6223
|
] });
|
|
6221
6224
|
};
|
|
6222
6225
|
|
|
6223
6226
|
// src/components/ObjectSearch/DataRefreshButton.tsx
|
|
6224
6227
|
var import_react63 = require("@emotion/react");
|
|
6225
|
-
var
|
|
6228
|
+
var import_design_system32 = require("@uniformdev/design-system");
|
|
6226
6229
|
var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
|
|
6227
6230
|
var DataRefreshButton = ({
|
|
6228
6231
|
buttonText,
|
|
@@ -6230,9 +6233,9 @@ var DataRefreshButton = ({
|
|
|
6230
6233
|
onRefreshData,
|
|
6231
6234
|
...props
|
|
6232
6235
|
}) => {
|
|
6233
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
6236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_design_system32.Button, { buttonType: "primaryInvert", onClick: onRefreshData, disabled: isLoading, ...props, children: [
|
|
6234
6237
|
!isLoading ? null : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6235
|
-
|
|
6238
|
+
import_design_system32.LoadingIndicator,
|
|
6236
6239
|
{
|
|
6237
6240
|
css: import_react63.css`
|
|
6238
6241
|
${isLoading ? "opacity: 0.2;" : void 0}
|
|
@@ -6246,7 +6249,7 @@ var DataRefreshButton = ({
|
|
|
6246
6249
|
// src/components/ObjectSearch/ObjectSearchContainer.tsx
|
|
6247
6250
|
var import_react65 = require("@emotion/react");
|
|
6248
6251
|
var import_canvas8 = require("@uniformdev/canvas");
|
|
6249
|
-
var
|
|
6252
|
+
var import_design_system33 = require("@uniformdev/design-system");
|
|
6250
6253
|
|
|
6251
6254
|
// src/components/ObjectSearch/hooks/ObjectSearchContext.tsx
|
|
6252
6255
|
var import_canvas7 = require("@uniformdev/canvas");
|
|
@@ -6363,10 +6366,10 @@ var ObjectSearchContainer = ({
|
|
|
6363
6366
|
const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
|
|
6364
6367
|
const { flatVariables } = useVariables(true);
|
|
6365
6368
|
const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
|
|
6366
|
-
const body = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
6369
|
+
const body = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_design_system33.VerticalRhythm, { children: [
|
|
6367
6370
|
searchFilters,
|
|
6368
6371
|
!resultList ? null : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6369
|
-
|
|
6372
|
+
import_design_system33.ScrollableList,
|
|
6370
6373
|
{
|
|
6371
6374
|
role: "list",
|
|
6372
6375
|
css: import_react65.css`
|
|
@@ -6406,8 +6409,8 @@ var ObjectSearchContainer = ({
|
|
|
6406
6409
|
}
|
|
6407
6410
|
]);
|
|
6408
6411
|
};
|
|
6409
|
-
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6410
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_design_system33.IconsProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_design_system33.VerticalRhythm, { children: [
|
|
6413
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_design_system33.Container, { backgroundColor: "gray-50", padding: "var(--spacing-base)", border: true, children: label ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6411
6414
|
InputVariables,
|
|
6412
6415
|
{
|
|
6413
6416
|
label,
|
|
@@ -6427,7 +6430,7 @@ var ObjectSearchContainer = ({
|
|
|
6427
6430
|
};
|
|
6428
6431
|
|
|
6429
6432
|
// src/components/ObjectSearch/ObjectSearchFilter.tsx
|
|
6430
|
-
var
|
|
6433
|
+
var import_design_system34 = require("@uniformdev/design-system");
|
|
6431
6434
|
var import_react67 = require("react");
|
|
6432
6435
|
|
|
6433
6436
|
// src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
|
|
@@ -6493,7 +6496,7 @@ var ObjectSearchFilter = ({
|
|
|
6493
6496
|
],
|
|
6494
6497
|
children: [
|
|
6495
6498
|
memoizedSelectOptions.length ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6496
|
-
|
|
6499
|
+
import_design_system34.InputSelect,
|
|
6497
6500
|
{
|
|
6498
6501
|
label: selectLabel,
|
|
6499
6502
|
showLabel: false,
|
|
@@ -6503,7 +6506,7 @@ var ObjectSearchFilter = ({
|
|
|
6503
6506
|
}
|
|
6504
6507
|
) : null,
|
|
6505
6508
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
6506
|
-
|
|
6509
|
+
import_design_system34.InputKeywordSearch,
|
|
6507
6510
|
{
|
|
6508
6511
|
inputFieldName: searchInputName,
|
|
6509
6512
|
placeholder: searchInputPlaceholderText,
|
|
@@ -6528,11 +6531,11 @@ var ObjectSearchFilterContainer2 = ({ label, children }) => {
|
|
|
6528
6531
|
};
|
|
6529
6532
|
|
|
6530
6533
|
// src/components/ObjectSearch/ObjectSearchListItem.tsx
|
|
6531
|
-
var
|
|
6534
|
+
var import_design_system36 = require("@uniformdev/design-system");
|
|
6532
6535
|
|
|
6533
6536
|
// src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
|
|
6534
6537
|
var import_react68 = require("@emotion/react");
|
|
6535
|
-
var
|
|
6538
|
+
var import_design_system35 = require("@uniformdev/design-system");
|
|
6536
6539
|
var ObjectListItemContainer = import_react68.css`
|
|
6537
6540
|
align-items: center;
|
|
6538
6541
|
border: 1px solid var(--gray-300);
|
|
@@ -6547,7 +6550,7 @@ var ObjectListItemContainerDisabled = import_react68.css`
|
|
|
6547
6550
|
pointer-events: none;
|
|
6548
6551
|
`;
|
|
6549
6552
|
var ObjectListItemLoading = import_react68.css`
|
|
6550
|
-
animation: ${
|
|
6553
|
+
animation: ${import_design_system35.skeletonLoading} 1s linear infinite alternate;
|
|
6551
6554
|
border-color: transparent;
|
|
6552
6555
|
min-height: 42px;
|
|
6553
6556
|
position: relative;
|
|
@@ -6655,8 +6658,8 @@ var ObjectSearchListItem = ({
|
|
|
6655
6658
|
}
|
|
6656
6659
|
),
|
|
6657
6660
|
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { css: ObjectListItemInfoContainer, children: [
|
|
6658
|
-
selected ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
6659
|
-
!popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
6661
|
+
selected ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_design_system36.Chip, { text: "selected", size: "xs" }) : null,
|
|
6662
|
+
!popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_design_system36.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
|
|
6660
6663
|
] }),
|
|
6661
6664
|
!children ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { css: ObjectListItemUnControlledContent, children })
|
|
6662
6665
|
]
|
|
@@ -6668,14 +6671,14 @@ var ObjectSearchListItemLoadingSkeleton = () => {
|
|
|
6668
6671
|
};
|
|
6669
6672
|
|
|
6670
6673
|
// src/components/ObjectSearch/ObjectSearchResultItem.tsx
|
|
6671
|
-
var
|
|
6674
|
+
var import_design_system38 = require("@uniformdev/design-system");
|
|
6672
6675
|
var import_timeago3 = require("timeago.js");
|
|
6673
6676
|
|
|
6674
6677
|
// src/components/ObjectSearch/styles/ObjectSearchResultItemButton.styles.ts
|
|
6675
6678
|
var import_react69 = require("@emotion/react");
|
|
6676
|
-
var
|
|
6679
|
+
var import_design_system37 = require("@uniformdev/design-system");
|
|
6677
6680
|
var ButtonStyles = import_react69.css`
|
|
6678
|
-
${
|
|
6681
|
+
${import_design_system37.button}
|
|
6679
6682
|
background: transparent;
|
|
6680
6683
|
border: 1px solid var(--brand-secondary-1);
|
|
6681
6684
|
color: var(--brand-secondary-1);
|
|
@@ -6822,10 +6825,10 @@ var ObjectSearchResultItem = ({
|
|
|
6822
6825
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { css: ObjectSearchResultItemSubtitle, children: formatedContentType }),
|
|
6823
6826
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { role: "heading", css: ObjectSearchResultItemTitle, children: [
|
|
6824
6827
|
title != null ? title : name,
|
|
6825
|
-
!popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
6828
|
+
!popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_design_system38.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
|
|
6826
6829
|
] }),
|
|
6827
6830
|
!createdAt && !publishStatus ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: ObjectSearchAuthorStateGroup, children: [
|
|
6828
|
-
!(publishStatus == null ? void 0 : publishStatus.text) ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
6831
|
+
!(publishStatus == null ? void 0 : publishStatus.text) ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_design_system38.Badge, { ...publishStatus, size: "sm", uppercaseText: true }),
|
|
6829
6832
|
!createdAt && !publishedAt ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: ObjectSearchUpdateGroup, children: [
|
|
6830
6833
|
!createdAt ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("small", { css: ObjectSearchResultItemTimeStamp, children: [
|
|
6831
6834
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("strong", { children: "Last updated: " }),
|
|
@@ -6842,13 +6845,13 @@ var ObjectSearchResultItem = ({
|
|
|
6842
6845
|
] }) }),
|
|
6843
6846
|
!editLink && hideRemoveButton ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: ObjectSearchAuthorStateGroup, children: [
|
|
6844
6847
|
!editLink ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LinkButton, { text: "Edit", href: editLink, icon: editLinkIcon }),
|
|
6845
|
-
hideRemoveButton ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
6848
|
+
hideRemoveButton ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_design_system38.Button, { buttonType: "ghostDestructive", onClick: onRemoveItem, children: "Remove" })
|
|
6846
6849
|
] })
|
|
6847
6850
|
] });
|
|
6848
6851
|
};
|
|
6849
6852
|
|
|
6850
6853
|
// src/components/ObjectSearch/ObjectSearchResultList.tsx
|
|
6851
|
-
var
|
|
6854
|
+
var import_design_system39 = require("@uniformdev/design-system");
|
|
6852
6855
|
var import_react_beautiful_dnd3 = require("react-beautiful-dnd");
|
|
6853
6856
|
|
|
6854
6857
|
// src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
|
|
@@ -6909,12 +6912,12 @@ function ObjectSearchResultList({
|
|
|
6909
6912
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
|
|
6910
6913
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
|
|
6911
6914
|
" ",
|
|
6912
|
-
!selectedListItems.length ? null : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
6915
|
+
!selectedListItems.length ? null : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_design_system39.Counter, { count: selectedListItems.length })
|
|
6913
6916
|
] }),
|
|
6914
6917
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { css: ObjectSearchResultListCounterContainer, children: [
|
|
6915
6918
|
additionalButtons,
|
|
6916
6919
|
hideRemoveButton ? null : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
6917
|
-
|
|
6920
|
+
import_design_system39.Button,
|
|
6918
6921
|
{
|
|
6919
6922
|
buttonType: "ghostDestructive",
|
|
6920
6923
|
size: "xs",
|
|
@@ -6959,7 +6962,7 @@ function ObjectSearchResultList({
|
|
|
6959
6962
|
}
|
|
6960
6963
|
|
|
6961
6964
|
// src/components/ObjectSearch/QueryFilter.tsx
|
|
6962
|
-
var
|
|
6965
|
+
var import_design_system40 = require("@uniformdev/design-system");
|
|
6963
6966
|
var import_react72 = require("react");
|
|
6964
6967
|
var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
|
|
6965
6968
|
var QueryFilter = ({
|
|
@@ -7008,7 +7011,7 @@ var QueryFilter = ({
|
|
|
7008
7011
|
}, [onSetQuery, queryState]);
|
|
7009
7012
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("fieldset", { children: [
|
|
7010
7013
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { css: ObjectSearchFilterContainerLabel, children: queryFilterTitle }),
|
|
7011
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
7014
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_design_system40.VerticalRhythm, { children: [
|
|
7012
7015
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7013
7016
|
InputVariables,
|
|
7014
7017
|
{
|
|
@@ -7018,7 +7021,7 @@ var QueryFilter = ({
|
|
|
7018
7021
|
disableInlineMenu: true,
|
|
7019
7022
|
id: "qf_searchText",
|
|
7020
7023
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7021
|
-
|
|
7024
|
+
import_design_system40.InputKeywordSearch,
|
|
7022
7025
|
{
|
|
7023
7026
|
id: "qf_searchText",
|
|
7024
7027
|
inputFieldName: searchInputName,
|
|
@@ -7041,7 +7044,7 @@ var QueryFilter = ({
|
|
|
7041
7044
|
onChange: (newType) => handleFilterChange({ contentType: newType }),
|
|
7042
7045
|
disableInlineMenu: true,
|
|
7043
7046
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7044
|
-
|
|
7047
|
+
import_design_system40.InputSelect,
|
|
7045
7048
|
{
|
|
7046
7049
|
id: "qf_contentType",
|
|
7047
7050
|
label: contentTypeLabel,
|
|
@@ -7068,7 +7071,7 @@ var QueryFilter = ({
|
|
|
7068
7071
|
onChange: (newCount) => handleFilterChange({ count: newCount }),
|
|
7069
7072
|
disableInlineMenu: true,
|
|
7070
7073
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7071
|
-
|
|
7074
|
+
import_design_system40.Input,
|
|
7072
7075
|
{
|
|
7073
7076
|
id: "qf_count",
|
|
7074
7077
|
label: countLabel,
|
|
@@ -7092,7 +7095,7 @@ var QueryFilter = ({
|
|
|
7092
7095
|
onChange: (newSortBy) => handleFilterChange({ sortBy: newSortBy }),
|
|
7093
7096
|
disableInlineMenu: true,
|
|
7094
7097
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7095
|
-
|
|
7098
|
+
import_design_system40.InputSelect,
|
|
7096
7099
|
{
|
|
7097
7100
|
label: sortLabel,
|
|
7098
7101
|
id: "qf_sortBy",
|
|
@@ -7122,7 +7125,7 @@ var QueryFilter = ({
|
|
|
7122
7125
|
onChange: (newSort) => handleFilterChange({ sortOrder: newSort }),
|
|
7123
7126
|
disableInlineMenu: true,
|
|
7124
7127
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7125
|
-
|
|
7128
|
+
import_design_system40.InputSelect,
|
|
7126
7129
|
{
|
|
7127
7130
|
label: sortOrderLabel,
|
|
7128
7131
|
id: "qf_sortOrder",
|
|
@@ -7207,7 +7210,7 @@ function createLocationValidator(setValue, validate) {
|
|
|
7207
7210
|
}
|
|
7208
7211
|
|
|
7209
7212
|
// src/index.ts
|
|
7210
|
-
var
|
|
7213
|
+
var import_design_system41 = require("@uniformdev/design-system");
|
|
7211
7214
|
__reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
7212
7215
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7213
7216
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -4718,6 +4718,7 @@ import { useMemo as useMemo11 } from "react";
|
|
|
4718
4718
|
|
|
4719
4719
|
// src/components/Variables/styles/ParameterVariables.styles.ts
|
|
4720
4720
|
import { css as css23 } from "@emotion/react";
|
|
4721
|
+
import { scrollbarStyles as scrollbarStyles3 } from "@uniformdev/design-system";
|
|
4721
4722
|
var variableBindButton2 = css23`
|
|
4722
4723
|
align-items: center;
|
|
4723
4724
|
border: none;
|
|
@@ -4797,8 +4798,10 @@ var input2 = css23`
|
|
|
4797
4798
|
}
|
|
4798
4799
|
`;
|
|
4799
4800
|
var inputMultiLine = (lines) => css23`
|
|
4800
|
-
|
|
4801
|
-
|
|
4801
|
+
${scrollbarStyles3}
|
|
4802
|
+
// 1.5 = line height, spacing-sm = top and bottom padding + spacing-xs to give a slight increase in height
|
|
4803
|
+
// as the text looked to close to the bottom of the input
|
|
4804
|
+
height: calc(${lines * 1.5}em + var(--spacing-sm) + var(--spacing-xs));
|
|
4802
4805
|
resize: vertical;
|
|
4803
4806
|
overflow: auto;
|
|
4804
4807
|
`;
|
|
@@ -5020,7 +5023,7 @@ function ParameterVariables(props) {
|
|
|
5020
5023
|
"data-text-value": value,
|
|
5021
5024
|
css: [
|
|
5022
5025
|
input2,
|
|
5023
|
-
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(
|
|
5026
|
+
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(2) : css24``,
|
|
5024
5027
|
inputCss != null ? inputCss : css24``
|
|
5025
5028
|
]
|
|
5026
5029
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.63.
|
|
3
|
+
"version": "19.63.1",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@lexical/selection": "^0.12.0",
|
|
51
51
|
"@lexical/utils": "^0.12.0",
|
|
52
52
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
|
|
53
|
-
"@uniformdev/canvas": "19.63.
|
|
54
|
-
"@uniformdev/design-system": "19.63.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.63.
|
|
53
|
+
"@uniformdev/canvas": "19.63.1",
|
|
54
|
+
"@uniformdev/design-system": "19.63.1",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.63.1",
|
|
56
56
|
"dequal": "^2.0.3",
|
|
57
57
|
"lexical": "^0.12.0",
|
|
58
58
|
"mitt": "^3.0.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "5cd836cff78b544de4d58e87d8e2c879c7318ce0"
|
|
90
90
|
}
|