@uniformdev/mesh-sdk-react 20.1.1-alpha.2 → 20.2.0
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 +3 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -1981,7 +1981,7 @@ function useInputVariablesState({
|
|
|
1981
1981
|
}) {
|
|
1982
1982
|
const { variables } = useVariables(true);
|
|
1983
1983
|
const variableReferenceCountInValue = hasReferencedVariables(value != null ? value : "");
|
|
1984
|
-
const [lastKnownId] = React4.useState(id);
|
|
1984
|
+
const [lastKnownId, setLastKnownId] = React4.useState(id);
|
|
1985
1985
|
const [hadVariablesInValue, setHadVariablesInValue] = React4.useState(variableReferenceCountInValue > 0);
|
|
1986
1986
|
React4.useEffect(() => {
|
|
1987
1987
|
if (variableReferenceCountInValue) {
|
|
@@ -1990,6 +1990,7 @@ function useInputVariablesState({
|
|
|
1990
1990
|
}, [variableReferenceCountInValue]);
|
|
1991
1991
|
React4.useEffect(() => {
|
|
1992
1992
|
if (id !== lastKnownId) {
|
|
1993
|
+
setLastKnownId(id);
|
|
1993
1994
|
setHadVariablesInValue(variableReferenceCountInValue > 0);
|
|
1994
1995
|
}
|
|
1995
1996
|
}, [variableReferenceCountInValue, id, lastKnownId]);
|
|
@@ -2640,6 +2641,7 @@ function ParameterConnectionIndicator({
|
|
|
2640
2641
|
"aria-pressed": hasVariablesInValue,
|
|
2641
2642
|
css: [menuBtn, variableBindButton],
|
|
2642
2643
|
type: "button",
|
|
2644
|
+
"data-testid": "insert-variable",
|
|
2643
2645
|
children: /* @__PURE__ */ jsx29(CgUsbC2, { size: "1.4rem" })
|
|
2644
2646
|
}
|
|
2645
2647
|
)
|
package/dist/index.js
CHANGED
|
@@ -2121,7 +2121,7 @@ function useInputVariablesState({
|
|
|
2121
2121
|
}) {
|
|
2122
2122
|
const { variables } = useVariables(true);
|
|
2123
2123
|
const variableReferenceCountInValue = (0, import_canvas6.hasReferencedVariables)(value != null ? value : "");
|
|
2124
|
-
const [lastKnownId] = React4.useState(id);
|
|
2124
|
+
const [lastKnownId, setLastKnownId] = React4.useState(id);
|
|
2125
2125
|
const [hadVariablesInValue, setHadVariablesInValue] = React4.useState(variableReferenceCountInValue > 0);
|
|
2126
2126
|
React4.useEffect(() => {
|
|
2127
2127
|
if (variableReferenceCountInValue) {
|
|
@@ -2130,6 +2130,7 @@ function useInputVariablesState({
|
|
|
2130
2130
|
}, [variableReferenceCountInValue]);
|
|
2131
2131
|
React4.useEffect(() => {
|
|
2132
2132
|
if (id !== lastKnownId) {
|
|
2133
|
+
setLastKnownId(id);
|
|
2133
2134
|
setHadVariablesInValue(variableReferenceCountInValue > 0);
|
|
2134
2135
|
}
|
|
2135
2136
|
}, [variableReferenceCountInValue, id, lastKnownId]);
|
|
@@ -2768,6 +2769,7 @@ function ParameterConnectionIndicator({
|
|
|
2768
2769
|
"aria-pressed": hasVariablesInValue,
|
|
2769
2770
|
css: [menuBtn, variableBindButton],
|
|
2770
2771
|
type: "button",
|
|
2772
|
+
"data-testid": "insert-variable",
|
|
2771
2773
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_CgUsbC2.CgUsbC, { size: "1.4rem" })
|
|
2772
2774
|
}
|
|
2773
2775
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -1981,7 +1981,7 @@ function useInputVariablesState({
|
|
|
1981
1981
|
}) {
|
|
1982
1982
|
const { variables } = useVariables(true);
|
|
1983
1983
|
const variableReferenceCountInValue = hasReferencedVariables(value != null ? value : "");
|
|
1984
|
-
const [lastKnownId] = React4.useState(id);
|
|
1984
|
+
const [lastKnownId, setLastKnownId] = React4.useState(id);
|
|
1985
1985
|
const [hadVariablesInValue, setHadVariablesInValue] = React4.useState(variableReferenceCountInValue > 0);
|
|
1986
1986
|
React4.useEffect(() => {
|
|
1987
1987
|
if (variableReferenceCountInValue) {
|
|
@@ -1990,6 +1990,7 @@ function useInputVariablesState({
|
|
|
1990
1990
|
}, [variableReferenceCountInValue]);
|
|
1991
1991
|
React4.useEffect(() => {
|
|
1992
1992
|
if (id !== lastKnownId) {
|
|
1993
|
+
setLastKnownId(id);
|
|
1993
1994
|
setHadVariablesInValue(variableReferenceCountInValue > 0);
|
|
1994
1995
|
}
|
|
1995
1996
|
}, [variableReferenceCountInValue, id, lastKnownId]);
|
|
@@ -2640,6 +2641,7 @@ function ParameterConnectionIndicator({
|
|
|
2640
2641
|
"aria-pressed": hasVariablesInValue,
|
|
2641
2642
|
css: [menuBtn, variableBindButton],
|
|
2642
2643
|
type: "button",
|
|
2644
|
+
"data-testid": "insert-variable",
|
|
2643
2645
|
children: /* @__PURE__ */ jsx29(CgUsbC2, { size: "1.4rem" })
|
|
2644
2646
|
}
|
|
2645
2647
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.2.0",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@lexical/selection": "0.17.1",
|
|
51
51
|
"@lexical/utils": "0.17.1",
|
|
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": "20.
|
|
54
|
-
"@uniformdev/design-system": "20.
|
|
55
|
-
"@uniformdev/mesh-sdk": "20.
|
|
56
|
-
"@uniformdev/richtext": "20.
|
|
53
|
+
"@uniformdev/canvas": "20.2.0",
|
|
54
|
+
"@uniformdev/design-system": "20.2.0",
|
|
55
|
+
"@uniformdev/mesh-sdk": "20.2.0",
|
|
56
|
+
"@uniformdev/richtext": "20.2.0",
|
|
57
57
|
"dequal": "^2.0.3",
|
|
58
58
|
"lexical": "0.17.1",
|
|
59
59
|
"mitt": "3.0.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "7ca16ddb9f03fffe82a0252d53790fcaa12ebd3c"
|
|
90
90
|
}
|