@uniformdev/mesh-sdk-react 19.55.1-alpha.8 → 19.55.2-alpha.14
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.esm.js +14 -8
- package/dist/index.js +14 -8
- package/dist/index.mjs +14 -8
- package/package.json +10 -10
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';
|
|
@@ -441,6 +441,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
441
441
|
type: TLocationType;
|
|
442
442
|
}> | Extract<_uniformdev_mesh_sdk.SettingsLocation<TLocationValue>, {
|
|
443
443
|
type: TLocationType;
|
|
444
|
+
}> | Extract<_uniformdev_mesh_sdk.AIGenerateLocation<TLocationValue>, {
|
|
445
|
+
type: TLocationType;
|
|
444
446
|
}>, "setValue"> & {
|
|
445
447
|
setValue: SetLocationValueDispatch<(Extract<_uniformdev_mesh_sdk.DataSourceLocation, {
|
|
446
448
|
type: TLocationType;
|
|
@@ -454,6 +456,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
454
456
|
type: TLocationType;
|
|
455
457
|
}> | Extract<_uniformdev_mesh_sdk.SettingsLocation<TLocationValue>, {
|
|
456
458
|
type: TLocationType;
|
|
459
|
+
}> | Extract<_uniformdev_mesh_sdk.AIGenerateLocation<TLocationValue>, {
|
|
460
|
+
type: TLocationType;
|
|
457
461
|
}>)["value"], Parameters<(Extract<_uniformdev_mesh_sdk.DataSourceLocation, {
|
|
458
462
|
type: TLocationType;
|
|
459
463
|
}> | Extract<_uniformdev_mesh_sdk.DataTypeLocation, {
|
|
@@ -466,6 +470,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
466
470
|
type: TLocationType;
|
|
467
471
|
}> | Extract<_uniformdev_mesh_sdk.SettingsLocation<TLocationValue>, {
|
|
468
472
|
type: TLocationType;
|
|
473
|
+
}> | Extract<_uniformdev_mesh_sdk.AIGenerateLocation<TLocationValue>, {
|
|
474
|
+
type: TLocationType;
|
|
469
475
|
}>)["setValue"]>[0]>;
|
|
470
476
|
};
|
|
471
477
|
type SetLocationValueDispatch<TValue, TSetValue = TValue> = (dispatch: SetLocationValueFunction<TValue, TSetValue>) => Promise<void> | void;
|
|
@@ -590,6 +596,7 @@ type MeshDataVariableDefinition = Omit<DataVariableDefinition, 'default'> & {
|
|
|
590
596
|
type KnownUndefinedVariableInfo = {
|
|
591
597
|
error?: string;
|
|
592
598
|
info?: string;
|
|
599
|
+
displayName?: string;
|
|
593
600
|
};
|
|
594
601
|
type DataVariableDefinitionWithName = {
|
|
595
602
|
name: string;
|
|
@@ -872,6 +879,7 @@ type ParameterVariablesProps<TEditorContext = unknown> = {
|
|
|
872
879
|
editorRef?: MutableRefObject<LexicalEditor | null>;
|
|
873
880
|
/** If set the editor will auto-focus on mount */
|
|
874
881
|
autoFocus?: boolean;
|
|
882
|
+
inputCss?: SerializedStyles;
|
|
875
883
|
} & UseInputVariablesStateProps<TEditorContext>;
|
|
876
884
|
/**
|
|
877
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';
|
|
@@ -441,6 +441,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
441
441
|
type: TLocationType;
|
|
442
442
|
}> | Extract<_uniformdev_mesh_sdk.SettingsLocation<TLocationValue>, {
|
|
443
443
|
type: TLocationType;
|
|
444
|
+
}> | Extract<_uniformdev_mesh_sdk.AIGenerateLocation<TLocationValue>, {
|
|
445
|
+
type: TLocationType;
|
|
444
446
|
}>, "setValue"> & {
|
|
445
447
|
setValue: SetLocationValueDispatch<(Extract<_uniformdev_mesh_sdk.DataSourceLocation, {
|
|
446
448
|
type: TLocationType;
|
|
@@ -454,6 +456,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
454
456
|
type: TLocationType;
|
|
455
457
|
}> | Extract<_uniformdev_mesh_sdk.SettingsLocation<TLocationValue>, {
|
|
456
458
|
type: TLocationType;
|
|
459
|
+
}> | Extract<_uniformdev_mesh_sdk.AIGenerateLocation<TLocationValue>, {
|
|
460
|
+
type: TLocationType;
|
|
457
461
|
}>)["value"], Parameters<(Extract<_uniformdev_mesh_sdk.DataSourceLocation, {
|
|
458
462
|
type: TLocationType;
|
|
459
463
|
}> | Extract<_uniformdev_mesh_sdk.DataTypeLocation, {
|
|
@@ -466,6 +470,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
466
470
|
type: TLocationType;
|
|
467
471
|
}> | Extract<_uniformdev_mesh_sdk.SettingsLocation<TLocationValue>, {
|
|
468
472
|
type: TLocationType;
|
|
473
|
+
}> | Extract<_uniformdev_mesh_sdk.AIGenerateLocation<TLocationValue>, {
|
|
474
|
+
type: TLocationType;
|
|
469
475
|
}>)["setValue"]>[0]>;
|
|
470
476
|
};
|
|
471
477
|
type SetLocationValueDispatch<TValue, TSetValue = TValue> = (dispatch: SetLocationValueFunction<TValue, TSetValue>) => Promise<void> | void;
|
|
@@ -590,6 +596,7 @@ type MeshDataVariableDefinition = Omit<DataVariableDefinition, 'default'> & {
|
|
|
590
596
|
type KnownUndefinedVariableInfo = {
|
|
591
597
|
error?: string;
|
|
592
598
|
info?: string;
|
|
599
|
+
displayName?: string;
|
|
593
600
|
};
|
|
594
601
|
type DataVariableDefinitionWithName = {
|
|
595
602
|
name: string;
|
|
@@ -872,6 +879,7 @@ type ParameterVariablesProps<TEditorContext = unknown> = {
|
|
|
872
879
|
editorRef?: MutableRefObject<LexicalEditor | null>;
|
|
873
880
|
/** If set the editor will auto-focus on mount */
|
|
874
881
|
autoFocus?: boolean;
|
|
882
|
+
inputCss?: SerializedStyles;
|
|
875
883
|
} & UseInputVariablesStateProps<TEditorContext>;
|
|
876
884
|
/**
|
|
877
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
|
) }),
|
|
@@ -6499,6 +6504,7 @@ var ObjectSearchListItem = ({
|
|
|
6499
6504
|
{
|
|
6500
6505
|
role: "listitem",
|
|
6501
6506
|
css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
|
|
6507
|
+
"data-testid": "list-item",
|
|
6502
6508
|
children: [
|
|
6503
6509
|
/* @__PURE__ */ jsxs37(
|
|
6504
6510
|
"div",
|
|
@@ -6512,7 +6518,7 @@ var ObjectSearchListItem = ({
|
|
|
6512
6518
|
!image || imageUrl ? null : /* @__PURE__ */ jsx62("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
|
|
6513
6519
|
/* @__PURE__ */ jsxs37("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
|
|
6514
6520
|
!contentType ? null : /* @__PURE__ */ jsx62("span", { css: ObjectListItemSubtitle, children: formatedContentType }),
|
|
6515
|
-
/* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, children: title })
|
|
6521
|
+
/* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
|
|
6516
6522
|
] })
|
|
6517
6523
|
]
|
|
6518
6524
|
}
|
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
|
) }),
|
|
@@ -6630,6 +6635,7 @@ var ObjectSearchListItem = ({
|
|
|
6630
6635
|
{
|
|
6631
6636
|
role: "listitem",
|
|
6632
6637
|
css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
|
|
6638
|
+
"data-testid": "list-item",
|
|
6633
6639
|
children: [
|
|
6634
6640
|
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
6635
6641
|
"div",
|
|
@@ -6643,7 +6649,7 @@ var ObjectSearchListItem = ({
|
|
|
6643
6649
|
!image || imageUrl ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
|
|
6644
6650
|
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
|
|
6645
6651
|
!contentType ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { css: ObjectListItemSubtitle, children: formatedContentType }),
|
|
6646
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { css: ObjectListItemTitle, children: title })
|
|
6652
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
|
|
6647
6653
|
] })
|
|
6648
6654
|
]
|
|
6649
6655
|
}
|
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
|
) }),
|
|
@@ -6499,6 +6504,7 @@ var ObjectSearchListItem = ({
|
|
|
6499
6504
|
{
|
|
6500
6505
|
role: "listitem",
|
|
6501
6506
|
css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
|
|
6507
|
+
"data-testid": "list-item",
|
|
6502
6508
|
children: [
|
|
6503
6509
|
/* @__PURE__ */ jsxs37(
|
|
6504
6510
|
"div",
|
|
@@ -6512,7 +6518,7 @@ var ObjectSearchListItem = ({
|
|
|
6512
6518
|
!image || imageUrl ? null : /* @__PURE__ */ jsx62("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
|
|
6513
6519
|
/* @__PURE__ */ jsxs37("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
|
|
6514
6520
|
!contentType ? null : /* @__PURE__ */ jsx62("span", { css: ObjectListItemSubtitle, children: formatedContentType }),
|
|
6515
|
-
/* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, children: title })
|
|
6521
|
+
/* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
|
|
6516
6522
|
] })
|
|
6517
6523
|
]
|
|
6518
6524
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.55.
|
|
3
|
+
"version": "19.55.2-alpha.14+9b75d5322",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
"document": "api-extractor run --local"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@hookform/resolvers": "^3.
|
|
47
|
+
"@hookform/resolvers": "^3.3.1",
|
|
48
48
|
"@lexical/clipboard": "^0.12.0",
|
|
49
49
|
"@lexical/react": "^0.12.0",
|
|
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.55.
|
|
54
|
-
"@uniformdev/design-system": "19.55.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.55.
|
|
53
|
+
"@uniformdev/canvas": "19.55.2-alpha.14+9b75d5322",
|
|
54
|
+
"@uniformdev/design-system": "19.55.2-alpha.14+9b75d5322",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.55.2-alpha.14+9b75d5322",
|
|
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
|
-
"react-hook-form": "^7.
|
|
60
|
+
"react-hook-form": "^7.47.0",
|
|
61
61
|
"react-use": "17.4.0",
|
|
62
62
|
"timeago.js": "4.0.2",
|
|
63
|
-
"uuid": "9.0.
|
|
64
|
-
"zod": "
|
|
63
|
+
"uuid": "9.0.1",
|
|
64
|
+
"zod": "3.22.3"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@emotion/react": ">=11.8.0",
|
|
@@ -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": "9b75d5322988b2a8c59e7e1b641fb0c8cb7ad301"
|
|
90
90
|
}
|