@uniformdev/mesh-sdk-react 19.57.0 → 19.58.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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +12 -7
- package/dist/index.js +12 -7
- package/dist/index.mjs +12 -7
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { SVGProps, ReactNode, MutableRefObject, ComponentType, PropsWithChildren, HTMLAttributes, AnchorHTMLAttributes } from 'react';
|
|
4
4
|
import { TDate } from 'timeago.js';
|
|
5
5
|
import * as _emotion_react from '@emotion/react';
|
|
6
|
-
import { Interpolation, Theme } from '@emotion/react';
|
|
6
|
+
import { Interpolation, Theme, SerializedStyles } from '@emotion/react';
|
|
7
7
|
import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
|
|
8
8
|
import { DynamicInput, MeshLocation, SetValueOptions, EditConnectedDataResponseCancellationContext, DynamicInputs, DataSourceLocationValue, DataTypeLocationValue, BindableTypes } from '@uniformdev/mesh-sdk';
|
|
9
9
|
export * from '@uniformdev/mesh-sdk';
|
|
@@ -596,6 +596,7 @@ type MeshDataVariableDefinition = Omit<DataVariableDefinition, 'default'> & {
|
|
|
596
596
|
type KnownUndefinedVariableInfo = {
|
|
597
597
|
error?: string;
|
|
598
598
|
info?: string;
|
|
599
|
+
displayName?: string;
|
|
599
600
|
};
|
|
600
601
|
type DataVariableDefinitionWithName = {
|
|
601
602
|
name: string;
|
|
@@ -878,6 +879,7 @@ type ParameterVariablesProps<TEditorContext = unknown> = {
|
|
|
878
879
|
editorRef?: MutableRefObject<LexicalEditor | null>;
|
|
879
880
|
/** If set the editor will auto-focus on mount */
|
|
880
881
|
autoFocus?: boolean;
|
|
882
|
+
inputCss?: SerializedStyles;
|
|
881
883
|
} & UseInputVariablesStateProps<TEditorContext>;
|
|
882
884
|
/**
|
|
883
885
|
* An input box that enables insertion of 'variables', provided by VariablesProvider,
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { SVGProps, ReactNode, MutableRefObject, ComponentType, PropsWithChildren, HTMLAttributes, AnchorHTMLAttributes } from 'react';
|
|
4
4
|
import { TDate } from 'timeago.js';
|
|
5
5
|
import * as _emotion_react from '@emotion/react';
|
|
6
|
-
import { Interpolation, Theme } from '@emotion/react';
|
|
6
|
+
import { Interpolation, Theme, SerializedStyles } from '@emotion/react';
|
|
7
7
|
import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
|
|
8
8
|
import { DynamicInput, MeshLocation, SetValueOptions, EditConnectedDataResponseCancellationContext, DynamicInputs, DataSourceLocationValue, DataTypeLocationValue, BindableTypes } from '@uniformdev/mesh-sdk';
|
|
9
9
|
export * from '@uniformdev/mesh-sdk';
|
|
@@ -596,6 +596,7 @@ type MeshDataVariableDefinition = Omit<DataVariableDefinition, 'default'> & {
|
|
|
596
596
|
type KnownUndefinedVariableInfo = {
|
|
597
597
|
error?: string;
|
|
598
598
|
info?: string;
|
|
599
|
+
displayName?: string;
|
|
599
600
|
};
|
|
600
601
|
type DataVariableDefinitionWithName = {
|
|
601
602
|
name: string;
|
|
@@ -878,6 +879,7 @@ type ParameterVariablesProps<TEditorContext = unknown> = {
|
|
|
878
879
|
editorRef?: MutableRefObject<LexicalEditor | null>;
|
|
879
880
|
/** If set the editor will auto-focus on mount */
|
|
880
881
|
autoFocus?: boolean;
|
|
882
|
+
inputCss?: SerializedStyles;
|
|
881
883
|
} & UseInputVariablesStateProps<TEditorContext>;
|
|
882
884
|
/**
|
|
883
885
|
* An input box that enables insertion of 'variables', provided by VariablesProvider,
|
package/dist/index.esm.js
CHANGED
|
@@ -3691,17 +3691,19 @@ function VariablesPlugin({
|
|
|
3691
3691
|
const targetVar = variablesRef.current.variables[variableNode.reference];
|
|
3692
3692
|
const targetUndefinedVar = variablesRef.current.knownUndefinedValues[variableNode.reference];
|
|
3693
3693
|
const isLoadingVariables = variablesRef.current.isLoading;
|
|
3694
|
-
const tooltip = (_c = (_b = (_a = targetVar == null ? void 0 : targetVar.tooltip) != null ? _a : targetVar == null ? void 0 : targetVar.helpText) != null ? _b : targetUndefinedVar == null ? void 0 : targetUndefinedVar.error) != null ? _c : targetUndefinedVar == null ? void 0 : targetUndefinedVar.info;
|
|
3695
3694
|
const currentState = variableNode.getState();
|
|
3695
|
+
if (currentState.isFresh && !targetVar) {
|
|
3696
|
+
return;
|
|
3697
|
+
}
|
|
3698
|
+
const tooltip = (_c = (_b = (_a = targetVar == null ? void 0 : targetVar.tooltip) != null ? _a : targetVar == null ? void 0 : targetVar.helpText) != null ? _b : targetUndefinedVar == null ? void 0 : targetUndefinedVar.error) != null ? _c : targetUndefinedVar == null ? void 0 : targetUndefinedVar.info;
|
|
3696
3699
|
const newState = {
|
|
3697
3700
|
...currentState,
|
|
3698
|
-
|
|
3699
|
-
// unless we're also loading the whole var state
|
|
3700
|
-
displayName: (targetVar == null ? void 0 : targetVar.displayName) || (isLoadingVariables ? void 0 : currentState.displayName) || variableNode.reference,
|
|
3701
|
+
displayName: (targetVar == null ? void 0 : targetVar.displayName) || (targetUndefinedVar == null ? void 0 : targetUndefinedVar.displayName) || variableNode.reference,
|
|
3701
3702
|
isLoading: isLoadingVariables && !targetVar && !(targetUndefinedVar == null ? void 0 : targetUndefinedVar.info),
|
|
3702
3703
|
hasClickEvent: canEditVariable(variableNode.reference, targetVar),
|
|
3703
3704
|
referenceIsValid: (targetUndefinedVar == null ? void 0 : targetUndefinedVar.info) ? "info" : isLoadingVariables ? true : Boolean(targetVar),
|
|
3704
|
-
tooltip
|
|
3705
|
+
tooltip,
|
|
3706
|
+
isFresh: false
|
|
3705
3707
|
};
|
|
3706
3708
|
if (!dequal2(currentState, newState)) {
|
|
3707
3709
|
variableNode.setState(newState);
|
|
@@ -3740,6 +3742,7 @@ function VariablesPlugin({
|
|
|
3740
3742
|
/* @__PURE__ */ jsx32(
|
|
3741
3743
|
"div",
|
|
3742
3744
|
{
|
|
3745
|
+
"data-auto-resize-opt-in": true,
|
|
3743
3746
|
css: css20`
|
|
3744
3747
|
box-shadow: var(--shadow-base);
|
|
3745
3748
|
border-radius: var(--rounded-base);
|
|
@@ -4974,7 +4977,8 @@ function ParameterVariables(props) {
|
|
|
4974
4977
|
getEditorContext,
|
|
4975
4978
|
disabled,
|
|
4976
4979
|
editorRef,
|
|
4977
|
-
filterVariable
|
|
4980
|
+
filterVariable,
|
|
4981
|
+
inputCss
|
|
4978
4982
|
} = props;
|
|
4979
4983
|
const { dispatch, canDispatch, isEditing } = useVariables(true);
|
|
4980
4984
|
const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
|
|
@@ -5016,7 +5020,8 @@ function ParameterVariables(props) {
|
|
|
5016
5020
|
"data-text-value": value,
|
|
5017
5021
|
css: [
|
|
5018
5022
|
input2,
|
|
5019
|
-
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : css24
|
|
5023
|
+
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : css24``,
|
|
5024
|
+
inputCss != null ? inputCss : css24``
|
|
5020
5025
|
]
|
|
5021
5026
|
}
|
|
5022
5027
|
) }),
|
package/dist/index.js
CHANGED
|
@@ -3869,17 +3869,19 @@ function VariablesPlugin({
|
|
|
3869
3869
|
const targetVar = variablesRef.current.variables[variableNode.reference];
|
|
3870
3870
|
const targetUndefinedVar = variablesRef.current.knownUndefinedValues[variableNode.reference];
|
|
3871
3871
|
const isLoadingVariables = variablesRef.current.isLoading;
|
|
3872
|
-
const tooltip = (_c = (_b = (_a = targetVar == null ? void 0 : targetVar.tooltip) != null ? _a : targetVar == null ? void 0 : targetVar.helpText) != null ? _b : targetUndefinedVar == null ? void 0 : targetUndefinedVar.error) != null ? _c : targetUndefinedVar == null ? void 0 : targetUndefinedVar.info;
|
|
3873
3872
|
const currentState = variableNode.getState();
|
|
3873
|
+
if (currentState.isFresh && !targetVar) {
|
|
3874
|
+
return;
|
|
3875
|
+
}
|
|
3876
|
+
const tooltip = (_c = (_b = (_a = targetVar == null ? void 0 : targetVar.tooltip) != null ? _a : targetVar == null ? void 0 : targetVar.helpText) != null ? _b : targetUndefinedVar == null ? void 0 : targetUndefinedVar.error) != null ? _c : targetUndefinedVar == null ? void 0 : targetUndefinedVar.info;
|
|
3874
3877
|
const newState = {
|
|
3875
3878
|
...currentState,
|
|
3876
|
-
|
|
3877
|
-
// unless we're also loading the whole var state
|
|
3878
|
-
displayName: (targetVar == null ? void 0 : targetVar.displayName) || (isLoadingVariables ? void 0 : currentState.displayName) || variableNode.reference,
|
|
3879
|
+
displayName: (targetVar == null ? void 0 : targetVar.displayName) || (targetUndefinedVar == null ? void 0 : targetUndefinedVar.displayName) || variableNode.reference,
|
|
3879
3880
|
isLoading: isLoadingVariables && !targetVar && !(targetUndefinedVar == null ? void 0 : targetUndefinedVar.info),
|
|
3880
3881
|
hasClickEvent: canEditVariable(variableNode.reference, targetVar),
|
|
3881
3882
|
referenceIsValid: (targetUndefinedVar == null ? void 0 : targetUndefinedVar.info) ? "info" : isLoadingVariables ? true : Boolean(targetVar),
|
|
3882
|
-
tooltip
|
|
3883
|
+
tooltip,
|
|
3884
|
+
isFresh: false
|
|
3883
3885
|
};
|
|
3884
3886
|
if (!(0, import_lite2.dequal)(currentState, newState)) {
|
|
3885
3887
|
variableNode.setState(newState);
|
|
@@ -3918,6 +3920,7 @@ function VariablesPlugin({
|
|
|
3918
3920
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3919
3921
|
"div",
|
|
3920
3922
|
{
|
|
3923
|
+
"data-auto-resize-opt-in": true,
|
|
3921
3924
|
css: import_react37.css`
|
|
3922
3925
|
box-shadow: var(--shadow-base);
|
|
3923
3926
|
border-radius: var(--rounded-base);
|
|
@@ -5140,7 +5143,8 @@ function ParameterVariables(props) {
|
|
|
5140
5143
|
getEditorContext,
|
|
5141
5144
|
disabled,
|
|
5142
5145
|
editorRef,
|
|
5143
|
-
filterVariable
|
|
5146
|
+
filterVariable,
|
|
5147
|
+
inputCss
|
|
5144
5148
|
} = props;
|
|
5145
5149
|
const { dispatch, canDispatch, isEditing } = useVariables(true);
|
|
5146
5150
|
const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
|
|
@@ -5182,7 +5186,8 @@ function ParameterVariables(props) {
|
|
|
5182
5186
|
"data-text-value": value,
|
|
5183
5187
|
css: [
|
|
5184
5188
|
input2,
|
|
5185
|
-
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : import_react54.css
|
|
5189
|
+
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : import_react54.css``,
|
|
5190
|
+
inputCss != null ? inputCss : import_react54.css``
|
|
5186
5191
|
]
|
|
5187
5192
|
}
|
|
5188
5193
|
) }),
|
package/dist/index.mjs
CHANGED
|
@@ -3691,17 +3691,19 @@ function VariablesPlugin({
|
|
|
3691
3691
|
const targetVar = variablesRef.current.variables[variableNode.reference];
|
|
3692
3692
|
const targetUndefinedVar = variablesRef.current.knownUndefinedValues[variableNode.reference];
|
|
3693
3693
|
const isLoadingVariables = variablesRef.current.isLoading;
|
|
3694
|
-
const tooltip = (_c = (_b = (_a = targetVar == null ? void 0 : targetVar.tooltip) != null ? _a : targetVar == null ? void 0 : targetVar.helpText) != null ? _b : targetUndefinedVar == null ? void 0 : targetUndefinedVar.error) != null ? _c : targetUndefinedVar == null ? void 0 : targetUndefinedVar.info;
|
|
3695
3694
|
const currentState = variableNode.getState();
|
|
3695
|
+
if (currentState.isFresh && !targetVar) {
|
|
3696
|
+
return;
|
|
3697
|
+
}
|
|
3698
|
+
const tooltip = (_c = (_b = (_a = targetVar == null ? void 0 : targetVar.tooltip) != null ? _a : targetVar == null ? void 0 : targetVar.helpText) != null ? _b : targetUndefinedVar == null ? void 0 : targetUndefinedVar.error) != null ? _c : targetUndefinedVar == null ? void 0 : targetUndefinedVar.info;
|
|
3696
3699
|
const newState = {
|
|
3697
3700
|
...currentState,
|
|
3698
|
-
|
|
3699
|
-
// unless we're also loading the whole var state
|
|
3700
|
-
displayName: (targetVar == null ? void 0 : targetVar.displayName) || (isLoadingVariables ? void 0 : currentState.displayName) || variableNode.reference,
|
|
3701
|
+
displayName: (targetVar == null ? void 0 : targetVar.displayName) || (targetUndefinedVar == null ? void 0 : targetUndefinedVar.displayName) || variableNode.reference,
|
|
3701
3702
|
isLoading: isLoadingVariables && !targetVar && !(targetUndefinedVar == null ? void 0 : targetUndefinedVar.info),
|
|
3702
3703
|
hasClickEvent: canEditVariable(variableNode.reference, targetVar),
|
|
3703
3704
|
referenceIsValid: (targetUndefinedVar == null ? void 0 : targetUndefinedVar.info) ? "info" : isLoadingVariables ? true : Boolean(targetVar),
|
|
3704
|
-
tooltip
|
|
3705
|
+
tooltip,
|
|
3706
|
+
isFresh: false
|
|
3705
3707
|
};
|
|
3706
3708
|
if (!dequal2(currentState, newState)) {
|
|
3707
3709
|
variableNode.setState(newState);
|
|
@@ -3740,6 +3742,7 @@ function VariablesPlugin({
|
|
|
3740
3742
|
/* @__PURE__ */ jsx32(
|
|
3741
3743
|
"div",
|
|
3742
3744
|
{
|
|
3745
|
+
"data-auto-resize-opt-in": true,
|
|
3743
3746
|
css: css20`
|
|
3744
3747
|
box-shadow: var(--shadow-base);
|
|
3745
3748
|
border-radius: var(--rounded-base);
|
|
@@ -4974,7 +4977,8 @@ function ParameterVariables(props) {
|
|
|
4974
4977
|
getEditorContext,
|
|
4975
4978
|
disabled,
|
|
4976
4979
|
editorRef,
|
|
4977
|
-
filterVariable
|
|
4980
|
+
filterVariable,
|
|
4981
|
+
inputCss
|
|
4978
4982
|
} = props;
|
|
4979
4983
|
const { dispatch, canDispatch, isEditing } = useVariables(true);
|
|
4980
4984
|
const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
|
|
@@ -5016,7 +5020,8 @@ function ParameterVariables(props) {
|
|
|
5016
5020
|
"data-text-value": value,
|
|
5017
5021
|
css: [
|
|
5018
5022
|
input2,
|
|
5019
|
-
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : css24
|
|
5023
|
+
typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : css24``,
|
|
5024
|
+
inputCss != null ? inputCss : css24``
|
|
5020
5025
|
]
|
|
5021
5026
|
}
|
|
5022
5027
|
) }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.58.1-alpha.16+5b13596bc",
|
|
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.
|
|
54
|
-
"@uniformdev/design-system": "19.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.
|
|
53
|
+
"@uniformdev/canvas": "19.58.1-alpha.16+5b13596bc",
|
|
54
|
+
"@uniformdev/design-system": "19.58.1-alpha.16+5b13596bc",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.58.1-alpha.16+5b13596bc",
|
|
56
56
|
"dequal": "^2.0.3",
|
|
57
57
|
"lexical": "^0.12.0",
|
|
58
58
|
"mitt": "^3.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"react-hook-form": "^7.43.9",
|
|
61
61
|
"react-use": "17.4.0",
|
|
62
62
|
"timeago.js": "4.0.2",
|
|
63
|
-
"uuid": "9.0.
|
|
63
|
+
"uuid": "9.0.1",
|
|
64
64
|
"zod": "^3.21.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/react": "18.2.21",
|
|
77
77
|
"@types/react-beautiful-dnd": "13.1.4",
|
|
78
78
|
"@types/react-dom": "18.2.7",
|
|
79
|
-
"@types/uuid": "9.0.
|
|
79
|
+
"@types/uuid": "9.0.4",
|
|
80
80
|
"react": "18.2.0",
|
|
81
81
|
"react-dom": "18.2.0"
|
|
82
82
|
},
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "5b13596bc07ad3b8d3809122c9843d17e4a6f413"
|
|
90
90
|
}
|