@uniformdev/mesh-sdk-react 19.46.0 → 19.46.1-alpha.8
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 +5 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -2945,7 +2945,8 @@ function VariableChip({
|
|
|
2945
2945
|
reference,
|
|
2946
2946
|
onClick,
|
|
2947
2947
|
isFresh,
|
|
2948
|
-
selected
|
|
2948
|
+
selected,
|
|
2949
|
+
disabled
|
|
2949
2950
|
}) {
|
|
2950
2951
|
const hasClickEvent = !!onClick;
|
|
2951
2952
|
const referenceIsValidFr = isFresh ? true : referenceIsValid;
|
|
@@ -2959,6 +2960,7 @@ function VariableChip({
|
|
|
2959
2960
|
${extraTitle}` : ""}` : extraTitle,
|
|
2960
2961
|
onClick,
|
|
2961
2962
|
"aria-selected": selected ? true : void 0,
|
|
2963
|
+
"aria-disabled": disabled,
|
|
2962
2964
|
children: /* @__PURE__ */ jsx29(Wrapper, { children: displayName || reference })
|
|
2963
2965
|
}
|
|
2964
2966
|
);
|
|
@@ -3755,6 +3757,7 @@ function VariableNodeComponent({
|
|
|
3755
3757
|
}) {
|
|
3756
3758
|
const [editor] = useLexicalComposerContext3();
|
|
3757
3759
|
const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey);
|
|
3760
|
+
const readOnly = !editor.isEditable();
|
|
3758
3761
|
const onDelete = useCallback2(
|
|
3759
3762
|
(event) => {
|
|
3760
3763
|
if (isSelected && $isNodeSelection($getSelection())) {
|
|
@@ -3838,6 +3841,7 @@ function VariableNodeComponent({
|
|
|
3838
3841
|
reference,
|
|
3839
3842
|
displayName: state.isLoading ? /* @__PURE__ */ jsx33(LoadingIndicator2, { size: "sm" }) : state.displayName,
|
|
3840
3843
|
selected: isSelected,
|
|
3844
|
+
disabled: readOnly,
|
|
3841
3845
|
onClick: state.hasClickEvent ? () => {
|
|
3842
3846
|
setSelected(!isSelected);
|
|
3843
3847
|
editor.dispatchCommand(EDIT_VARIABLE_COMMAND, {
|
package/dist/index.js
CHANGED
|
@@ -3132,7 +3132,8 @@ function VariableChip({
|
|
|
3132
3132
|
reference,
|
|
3133
3133
|
onClick,
|
|
3134
3134
|
isFresh,
|
|
3135
|
-
selected
|
|
3135
|
+
selected,
|
|
3136
|
+
disabled
|
|
3136
3137
|
}) {
|
|
3137
3138
|
const hasClickEvent = !!onClick;
|
|
3138
3139
|
const referenceIsValidFr = isFresh ? true : referenceIsValid;
|
|
@@ -3146,6 +3147,7 @@ function VariableChip({
|
|
|
3146
3147
|
${extraTitle}` : ""}` : extraTitle,
|
|
3147
3148
|
onClick,
|
|
3148
3149
|
"aria-selected": selected ? true : void 0,
|
|
3150
|
+
"aria-disabled": disabled,
|
|
3149
3151
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Wrapper, { children: displayName || reference })
|
|
3150
3152
|
}
|
|
3151
3153
|
);
|
|
@@ -3933,6 +3935,7 @@ function VariableNodeComponent({
|
|
|
3933
3935
|
}) {
|
|
3934
3936
|
const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
|
|
3935
3937
|
const [isSelected, setSelected, clearSelection] = (0, import_useLexicalNodeSelection.useLexicalNodeSelection)(nodeKey);
|
|
3938
|
+
const readOnly = !editor.isEditable();
|
|
3936
3939
|
const onDelete = (0, import_react38.useCallback)(
|
|
3937
3940
|
(event) => {
|
|
3938
3941
|
if (isSelected && (0, import_lexical4.$isNodeSelection)((0, import_lexical4.$getSelection)())) {
|
|
@@ -4016,6 +4019,7 @@ function VariableNodeComponent({
|
|
|
4016
4019
|
reference,
|
|
4017
4020
|
displayName: state.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_design_system18.LoadingIndicator, { size: "sm" }) : state.displayName,
|
|
4018
4021
|
selected: isSelected,
|
|
4022
|
+
disabled: readOnly,
|
|
4019
4023
|
onClick: state.hasClickEvent ? () => {
|
|
4020
4024
|
setSelected(!isSelected);
|
|
4021
4025
|
editor.dispatchCommand(EDIT_VARIABLE_COMMAND, {
|
package/dist/index.mjs
CHANGED
|
@@ -2945,7 +2945,8 @@ function VariableChip({
|
|
|
2945
2945
|
reference,
|
|
2946
2946
|
onClick,
|
|
2947
2947
|
isFresh,
|
|
2948
|
-
selected
|
|
2948
|
+
selected,
|
|
2949
|
+
disabled
|
|
2949
2950
|
}) {
|
|
2950
2951
|
const hasClickEvent = !!onClick;
|
|
2951
2952
|
const referenceIsValidFr = isFresh ? true : referenceIsValid;
|
|
@@ -2959,6 +2960,7 @@ function VariableChip({
|
|
|
2959
2960
|
${extraTitle}` : ""}` : extraTitle,
|
|
2960
2961
|
onClick,
|
|
2961
2962
|
"aria-selected": selected ? true : void 0,
|
|
2963
|
+
"aria-disabled": disabled,
|
|
2962
2964
|
children: /* @__PURE__ */ jsx29(Wrapper, { children: displayName || reference })
|
|
2963
2965
|
}
|
|
2964
2966
|
);
|
|
@@ -3755,6 +3757,7 @@ function VariableNodeComponent({
|
|
|
3755
3757
|
}) {
|
|
3756
3758
|
const [editor] = useLexicalComposerContext3();
|
|
3757
3759
|
const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey);
|
|
3760
|
+
const readOnly = !editor.isEditable();
|
|
3758
3761
|
const onDelete = useCallback2(
|
|
3759
3762
|
(event) => {
|
|
3760
3763
|
if (isSelected && $isNodeSelection($getSelection())) {
|
|
@@ -3838,6 +3841,7 @@ function VariableNodeComponent({
|
|
|
3838
3841
|
reference,
|
|
3839
3842
|
displayName: state.isLoading ? /* @__PURE__ */ jsx33(LoadingIndicator2, { size: "sm" }) : state.displayName,
|
|
3840
3843
|
selected: isSelected,
|
|
3844
|
+
disabled: readOnly,
|
|
3841
3845
|
onClick: state.hasClickEvent ? () => {
|
|
3842
3846
|
setSelected(!isSelected);
|
|
3843
3847
|
editor.dispatchCommand(EDIT_VARIABLE_COMMAND, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.46.
|
|
3
|
+
"version": "19.46.1-alpha.8+a2d89f62e",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@lexical/selection": "^0.12.0",
|
|
50
50
|
"@lexical/utils": "^0.12.0",
|
|
51
51
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
|
|
52
|
-
"@uniformdev/canvas": "19.46.
|
|
53
|
-
"@uniformdev/design-system": "19.46.
|
|
54
|
-
"@uniformdev/mesh-sdk": "19.46.
|
|
52
|
+
"@uniformdev/canvas": "19.46.1-alpha.8+a2d89f62e",
|
|
53
|
+
"@uniformdev/design-system": "19.46.1-alpha.8+a2d89f62e",
|
|
54
|
+
"@uniformdev/mesh-sdk": "19.46.1-alpha.8+a2d89f62e",
|
|
55
55
|
"dequal": "^2.0.3",
|
|
56
56
|
"lexical": "^0.12.0",
|
|
57
57
|
"mitt": "^3.0.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "a2d89f62ed00cf0c7eaa8d557ad6a9f218215213"
|
|
89
89
|
}
|