@uniformdev/mesh-sdk-react 19.165.2-alpha.0 → 19.167.2-alpha.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/index.esm.js +35 -9
- package/dist/index.js +35 -9
- package/dist/index.mjs +35 -9
- package/package.json +7 -7
package/dist/index.esm.js
CHANGED
|
@@ -1651,8 +1651,7 @@ var EntrySearch = ({
|
|
|
1651
1651
|
const handleCancelClick = (e) => {
|
|
1652
1652
|
e.preventDefault();
|
|
1653
1653
|
setListOpen(false);
|
|
1654
|
-
if (onCancel)
|
|
1655
|
-
onCancel();
|
|
1654
|
+
if (onCancel) onCancel();
|
|
1656
1655
|
};
|
|
1657
1656
|
const handleLoadMoreClick = () => {
|
|
1658
1657
|
search(textInput, {
|
|
@@ -4672,8 +4671,7 @@ function VariablesComposer(props) {
|
|
|
4672
4671
|
);
|
|
4673
4672
|
const editorState = useRef12();
|
|
4674
4673
|
const updateTimeout = useRef12();
|
|
4675
|
-
if (typeof document === "undefined")
|
|
4676
|
-
return null;
|
|
4674
|
+
if (typeof document === "undefined") return null;
|
|
4677
4675
|
return /* @__PURE__ */ jsxs21(LexicalComposer, { initialConfig: editorConfig, children: [
|
|
4678
4676
|
/* @__PURE__ */ jsx38(
|
|
4679
4677
|
OnChangePlugin,
|
|
@@ -5138,7 +5136,7 @@ function ParameterOrSingleVariable(props) {
|
|
|
5138
5136
|
editorRef ? /* @__PURE__ */ jsx42(EditorRefPlugin, { editorRef }) : null,
|
|
5139
5137
|
/* @__PURE__ */ jsx42(ControlledValuePlugin, { enabled: true, value }),
|
|
5140
5138
|
/* @__PURE__ */ jsxs25(HorizontalRhythm6, { align: "center", gap: "xs", css: { width: "100%" }, children: [
|
|
5141
|
-
/* @__PURE__ */ jsx42("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
|
|
5139
|
+
/* @__PURE__ */ jsx42("div", { css: { flex: 1, minWidth: "0" }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
|
|
5142
5140
|
VariablesComposerInput,
|
|
5143
5141
|
{
|
|
5144
5142
|
"data-text-value": value,
|
|
@@ -9000,6 +8998,23 @@ var FilterItem = ({
|
|
|
9000
8998
|
] })
|
|
9001
8999
|
] });
|
|
9002
9000
|
};
|
|
9001
|
+
var singleValuedOperators = /* @__PURE__ */ new Set([
|
|
9002
|
+
"eq",
|
|
9003
|
+
"neq",
|
|
9004
|
+
"lt",
|
|
9005
|
+
"gt",
|
|
9006
|
+
"is",
|
|
9007
|
+
"!is",
|
|
9008
|
+
"has",
|
|
9009
|
+
"!has",
|
|
9010
|
+
"startswith",
|
|
9011
|
+
"!startswith",
|
|
9012
|
+
"endswith",
|
|
9013
|
+
"!endswith"
|
|
9014
|
+
]);
|
|
9015
|
+
var arrayValuedOperators = /* @__PURE__ */ new Set(["in", "nin", "is$", "!is$"]);
|
|
9016
|
+
var clearValueOnChangeAwayFromOperators = /* @__PURE__ */ new Set(["def", "ndef", "empty", "!empty", "between"]);
|
|
9017
|
+
var noValueOperators = /* @__PURE__ */ new Set(["empty", "!empty"]);
|
|
9003
9018
|
var FilterItems = ({
|
|
9004
9019
|
addButtonText = "add condition",
|
|
9005
9020
|
additionalFiltersContainer,
|
|
@@ -9013,14 +9028,25 @@ var FilterItems = ({
|
|
|
9013
9028
|
const next = [...filters];
|
|
9014
9029
|
next[index] = { ...next[index], [prop]: value };
|
|
9015
9030
|
if (prop === "operator") {
|
|
9016
|
-
|
|
9031
|
+
const newOperator = value;
|
|
9032
|
+
const currentValue = next[index].value;
|
|
9033
|
+
if (Array.isArray(newOperator)) {
|
|
9034
|
+
throw new Error("Operator value must be a single string");
|
|
9035
|
+
}
|
|
9036
|
+
if (singleValuedOperators.has(newOperator) && Array.isArray(currentValue)) {
|
|
9017
9037
|
next[index].value = next[index].value[0];
|
|
9018
9038
|
}
|
|
9019
|
-
if (
|
|
9039
|
+
if (arrayValuedOperators.has(newOperator) && Array.isArray(currentValue) === false) {
|
|
9040
|
+
next[index].value = currentValue ? [currentValue] : [];
|
|
9041
|
+
}
|
|
9042
|
+
if (clearValueOnChangeAwayFromOperators.has(filters[index].operator)) {
|
|
9043
|
+
next[index].value = "";
|
|
9044
|
+
}
|
|
9045
|
+
if (noValueOperators.has(newOperator)) {
|
|
9020
9046
|
next[index].value = "";
|
|
9021
9047
|
}
|
|
9022
|
-
if (
|
|
9023
|
-
next[index].value = [
|
|
9048
|
+
if (newOperator === "between" && Array.isArray(currentValue) === false) {
|
|
9049
|
+
next[index].value = [currentValue, ""];
|
|
9024
9050
|
}
|
|
9025
9051
|
if (value === "def" || value === "true") {
|
|
9026
9052
|
next[index].value = "true";
|
package/dist/index.js
CHANGED
|
@@ -1894,8 +1894,7 @@ var EntrySearch = ({
|
|
|
1894
1894
|
const handleCancelClick = (e) => {
|
|
1895
1895
|
e.preventDefault();
|
|
1896
1896
|
setListOpen(false);
|
|
1897
|
-
if (onCancel)
|
|
1898
|
-
onCancel();
|
|
1897
|
+
if (onCancel) onCancel();
|
|
1899
1898
|
};
|
|
1900
1899
|
const handleLoadMoreClick = () => {
|
|
1901
1900
|
search(textInput, {
|
|
@@ -4882,8 +4881,7 @@ function VariablesComposer(props) {
|
|
|
4882
4881
|
);
|
|
4883
4882
|
const editorState = (0, import_react49.useRef)();
|
|
4884
4883
|
const updateTimeout = (0, import_react49.useRef)();
|
|
4885
|
-
if (typeof document === "undefined")
|
|
4886
|
-
return null;
|
|
4884
|
+
if (typeof document === "undefined") return null;
|
|
4887
4885
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_LexicalComposer.LexicalComposer, { initialConfig: editorConfig, children: [
|
|
4888
4886
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4889
4887
|
import_LexicalOnChangePlugin.OnChangePlugin,
|
|
@@ -5336,7 +5334,7 @@ function ParameterOrSingleVariable(props) {
|
|
|
5336
5334
|
editorRef ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(EditorRefPlugin, { editorRef }) : null,
|
|
5337
5335
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ControlledValuePlugin, { enabled: true, value }),
|
|
5338
5336
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_design_system23.HorizontalRhythm, { align: "center", gap: "xs", css: { width: "100%" }, children: [
|
|
5339
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5337
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { css: { flex: 1, minWidth: "0" }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5340
5338
|
VariablesComposerInput,
|
|
5341
5339
|
{
|
|
5342
5340
|
"data-text-value": value,
|
|
@@ -9135,6 +9133,23 @@ var FilterItem = ({
|
|
|
9135
9133
|
] })
|
|
9136
9134
|
] });
|
|
9137
9135
|
};
|
|
9136
|
+
var singleValuedOperators = /* @__PURE__ */ new Set([
|
|
9137
|
+
"eq",
|
|
9138
|
+
"neq",
|
|
9139
|
+
"lt",
|
|
9140
|
+
"gt",
|
|
9141
|
+
"is",
|
|
9142
|
+
"!is",
|
|
9143
|
+
"has",
|
|
9144
|
+
"!has",
|
|
9145
|
+
"startswith",
|
|
9146
|
+
"!startswith",
|
|
9147
|
+
"endswith",
|
|
9148
|
+
"!endswith"
|
|
9149
|
+
]);
|
|
9150
|
+
var arrayValuedOperators = /* @__PURE__ */ new Set(["in", "nin", "is$", "!is$"]);
|
|
9151
|
+
var clearValueOnChangeAwayFromOperators = /* @__PURE__ */ new Set(["def", "ndef", "empty", "!empty", "between"]);
|
|
9152
|
+
var noValueOperators = /* @__PURE__ */ new Set(["empty", "!empty"]);
|
|
9138
9153
|
var FilterItems = ({
|
|
9139
9154
|
addButtonText = "add condition",
|
|
9140
9155
|
additionalFiltersContainer,
|
|
@@ -9148,14 +9163,25 @@ var FilterItems = ({
|
|
|
9148
9163
|
const next = [...filters];
|
|
9149
9164
|
next[index] = { ...next[index], [prop]: value };
|
|
9150
9165
|
if (prop === "operator") {
|
|
9151
|
-
|
|
9166
|
+
const newOperator = value;
|
|
9167
|
+
const currentValue = next[index].value;
|
|
9168
|
+
if (Array.isArray(newOperator)) {
|
|
9169
|
+
throw new Error("Operator value must be a single string");
|
|
9170
|
+
}
|
|
9171
|
+
if (singleValuedOperators.has(newOperator) && Array.isArray(currentValue)) {
|
|
9152
9172
|
next[index].value = next[index].value[0];
|
|
9153
9173
|
}
|
|
9154
|
-
if (
|
|
9174
|
+
if (arrayValuedOperators.has(newOperator) && Array.isArray(currentValue) === false) {
|
|
9175
|
+
next[index].value = currentValue ? [currentValue] : [];
|
|
9176
|
+
}
|
|
9177
|
+
if (clearValueOnChangeAwayFromOperators.has(filters[index].operator)) {
|
|
9178
|
+
next[index].value = "";
|
|
9179
|
+
}
|
|
9180
|
+
if (noValueOperators.has(newOperator)) {
|
|
9155
9181
|
next[index].value = "";
|
|
9156
9182
|
}
|
|
9157
|
-
if (
|
|
9158
|
-
next[index].value = [
|
|
9183
|
+
if (newOperator === "between" && Array.isArray(currentValue) === false) {
|
|
9184
|
+
next[index].value = [currentValue, ""];
|
|
9159
9185
|
}
|
|
9160
9186
|
if (value === "def" || value === "true") {
|
|
9161
9187
|
next[index].value = "true";
|
package/dist/index.mjs
CHANGED
|
@@ -1651,8 +1651,7 @@ var EntrySearch = ({
|
|
|
1651
1651
|
const handleCancelClick = (e) => {
|
|
1652
1652
|
e.preventDefault();
|
|
1653
1653
|
setListOpen(false);
|
|
1654
|
-
if (onCancel)
|
|
1655
|
-
onCancel();
|
|
1654
|
+
if (onCancel) onCancel();
|
|
1656
1655
|
};
|
|
1657
1656
|
const handleLoadMoreClick = () => {
|
|
1658
1657
|
search(textInput, {
|
|
@@ -4672,8 +4671,7 @@ function VariablesComposer(props) {
|
|
|
4672
4671
|
);
|
|
4673
4672
|
const editorState = useRef12();
|
|
4674
4673
|
const updateTimeout = useRef12();
|
|
4675
|
-
if (typeof document === "undefined")
|
|
4676
|
-
return null;
|
|
4674
|
+
if (typeof document === "undefined") return null;
|
|
4677
4675
|
return /* @__PURE__ */ jsxs21(LexicalComposer, { initialConfig: editorConfig, children: [
|
|
4678
4676
|
/* @__PURE__ */ jsx38(
|
|
4679
4677
|
OnChangePlugin,
|
|
@@ -5138,7 +5136,7 @@ function ParameterOrSingleVariable(props) {
|
|
|
5138
5136
|
editorRef ? /* @__PURE__ */ jsx42(EditorRefPlugin, { editorRef }) : null,
|
|
5139
5137
|
/* @__PURE__ */ jsx42(ControlledValuePlugin, { enabled: true, value }),
|
|
5140
5138
|
/* @__PURE__ */ jsxs25(HorizontalRhythm6, { align: "center", gap: "xs", css: { width: "100%" }, children: [
|
|
5141
|
-
/* @__PURE__ */ jsx42("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
|
|
5139
|
+
/* @__PURE__ */ jsx42("div", { css: { flex: 1, minWidth: "0" }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
|
|
5142
5140
|
VariablesComposerInput,
|
|
5143
5141
|
{
|
|
5144
5142
|
"data-text-value": value,
|
|
@@ -9000,6 +8998,23 @@ var FilterItem = ({
|
|
|
9000
8998
|
] })
|
|
9001
8999
|
] });
|
|
9002
9000
|
};
|
|
9001
|
+
var singleValuedOperators = /* @__PURE__ */ new Set([
|
|
9002
|
+
"eq",
|
|
9003
|
+
"neq",
|
|
9004
|
+
"lt",
|
|
9005
|
+
"gt",
|
|
9006
|
+
"is",
|
|
9007
|
+
"!is",
|
|
9008
|
+
"has",
|
|
9009
|
+
"!has",
|
|
9010
|
+
"startswith",
|
|
9011
|
+
"!startswith",
|
|
9012
|
+
"endswith",
|
|
9013
|
+
"!endswith"
|
|
9014
|
+
]);
|
|
9015
|
+
var arrayValuedOperators = /* @__PURE__ */ new Set(["in", "nin", "is$", "!is$"]);
|
|
9016
|
+
var clearValueOnChangeAwayFromOperators = /* @__PURE__ */ new Set(["def", "ndef", "empty", "!empty", "between"]);
|
|
9017
|
+
var noValueOperators = /* @__PURE__ */ new Set(["empty", "!empty"]);
|
|
9003
9018
|
var FilterItems = ({
|
|
9004
9019
|
addButtonText = "add condition",
|
|
9005
9020
|
additionalFiltersContainer,
|
|
@@ -9013,14 +9028,25 @@ var FilterItems = ({
|
|
|
9013
9028
|
const next = [...filters];
|
|
9014
9029
|
next[index] = { ...next[index], [prop]: value };
|
|
9015
9030
|
if (prop === "operator") {
|
|
9016
|
-
|
|
9031
|
+
const newOperator = value;
|
|
9032
|
+
const currentValue = next[index].value;
|
|
9033
|
+
if (Array.isArray(newOperator)) {
|
|
9034
|
+
throw new Error("Operator value must be a single string");
|
|
9035
|
+
}
|
|
9036
|
+
if (singleValuedOperators.has(newOperator) && Array.isArray(currentValue)) {
|
|
9017
9037
|
next[index].value = next[index].value[0];
|
|
9018
9038
|
}
|
|
9019
|
-
if (
|
|
9039
|
+
if (arrayValuedOperators.has(newOperator) && Array.isArray(currentValue) === false) {
|
|
9040
|
+
next[index].value = currentValue ? [currentValue] : [];
|
|
9041
|
+
}
|
|
9042
|
+
if (clearValueOnChangeAwayFromOperators.has(filters[index].operator)) {
|
|
9043
|
+
next[index].value = "";
|
|
9044
|
+
}
|
|
9045
|
+
if (noValueOperators.has(newOperator)) {
|
|
9020
9046
|
next[index].value = "";
|
|
9021
9047
|
}
|
|
9022
|
-
if (
|
|
9023
|
-
next[index].value = [
|
|
9048
|
+
if (newOperator === "between" && Array.isArray(currentValue) === false) {
|
|
9049
|
+
next[index].value = [currentValue, ""];
|
|
9024
9050
|
}
|
|
9025
9051
|
if (value === "def" || value === "true") {
|
|
9026
9052
|
next[index].value = "true";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.167.2-alpha.3+d42f32a982",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,18 +50,18 @@
|
|
|
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/v5.2.1/react-icons-all-files-5.2.1.tgz",
|
|
53
|
-
"@uniformdev/canvas": "19.
|
|
54
|
-
"@uniformdev/design-system": "19.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.
|
|
53
|
+
"@uniformdev/canvas": "19.167.2-alpha.3+d42f32a982",
|
|
54
|
+
"@uniformdev/design-system": "19.167.2-alpha.3+d42f32a982",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.167.2-alpha.3+d42f32a982",
|
|
56
56
|
"dequal": "^2.0.3",
|
|
57
57
|
"lexical": "^0.12.0",
|
|
58
58
|
"mitt": "^3.0.0",
|
|
59
59
|
"react-beautiful-dnd": "13.1.1",
|
|
60
60
|
"react-hook-form": "^7.47.0",
|
|
61
|
-
"react-use": "17.
|
|
61
|
+
"react-use": "17.5.0",
|
|
62
62
|
"timeago.js": "4.0.2",
|
|
63
63
|
"uuid": "9.0.1",
|
|
64
|
-
"zod": "3.
|
|
64
|
+
"zod": "3.23.8"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@emotion/react": ">=11.8.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "d42f32a98294c96f55a29c10c7c461c5327f56f3"
|
|
90
90
|
}
|