@uniformdev/mesh-sdk-react 19.116.0 → 19.117.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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +15 -3
- package/dist/index.js +15 -3
- package/dist/index.mjs +15 -3
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -903,8 +903,9 @@ type VariableEditorProps<TEditorContext = unknown, TEditVariableCompletedContext
|
|
|
903
903
|
onCancel: (context: TEditVariableCancelledContext) => void;
|
|
904
904
|
context: TEditorContext | undefined;
|
|
905
905
|
disableAutoFocusOnMount?: boolean;
|
|
906
|
+
showDisplayName?: boolean;
|
|
906
907
|
};
|
|
907
|
-
declare function VariableEditor({ variable, onSubmit, onCancel, disableMeshTip, }: VariableEditorProps<any, unknown, EditConnectedDataResponseCancellationContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
908
|
+
declare function VariableEditor({ variable, onSubmit, onCancel, showDisplayName, disableMeshTip, }: VariableEditorProps<any, unknown, EditConnectedDataResponseCancellationContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
908
909
|
|
|
909
910
|
type VariablesProviderProps<TEditVariableContext = unknown, TEditVariableCompletedContext = unknown, TEditVariableCancelledContext = unknown> = React.PropsWithChildren<{
|
|
910
911
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -903,8 +903,9 @@ type VariableEditorProps<TEditorContext = unknown, TEditVariableCompletedContext
|
|
|
903
903
|
onCancel: (context: TEditVariableCancelledContext) => void;
|
|
904
904
|
context: TEditorContext | undefined;
|
|
905
905
|
disableAutoFocusOnMount?: boolean;
|
|
906
|
+
showDisplayName?: boolean;
|
|
906
907
|
};
|
|
907
|
-
declare function VariableEditor({ variable, onSubmit, onCancel, disableMeshTip, }: VariableEditorProps<any, unknown, EditConnectedDataResponseCancellationContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
908
|
+
declare function VariableEditor({ variable, onSubmit, onCancel, showDisplayName, disableMeshTip, }: VariableEditorProps<any, unknown, EditConnectedDataResponseCancellationContext>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
908
909
|
|
|
909
910
|
type VariablesProviderProps<TEditVariableContext = unknown, TEditVariableCompletedContext = unknown, TEditVariableCancelledContext = unknown> = React.PropsWithChildren<{
|
|
910
911
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -3099,9 +3099,10 @@ function VariableEditor({
|
|
|
3099
3099
|
variable,
|
|
3100
3100
|
onSubmit,
|
|
3101
3101
|
onCancel,
|
|
3102
|
+
showDisplayName,
|
|
3102
3103
|
disableMeshTip
|
|
3103
3104
|
}) {
|
|
3104
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
3105
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3105
3106
|
const { variables } = useVariables();
|
|
3106
3107
|
const currentVariable = variables[variable];
|
|
3107
3108
|
const { register, handleSubmit, formState } = useForm({
|
|
@@ -3156,6 +3157,16 @@ function VariableEditor({
|
|
|
3156
3157
|
}
|
|
3157
3158
|
}
|
|
3158
3159
|
),
|
|
3160
|
+
showDisplayName ? /* @__PURE__ */ jsx31(
|
|
3161
|
+
Input2,
|
|
3162
|
+
{
|
|
3163
|
+
...register("displayName"),
|
|
3164
|
+
label: "Display name",
|
|
3165
|
+
autoComplete: "off",
|
|
3166
|
+
caption: "This is the name that will be displayed in the UI. If not provided, the name will be used.",
|
|
3167
|
+
errorMessage: (_f = formState.errors.helpText) == null ? void 0 : _f.message
|
|
3168
|
+
}
|
|
3169
|
+
) : null,
|
|
3159
3170
|
/* @__PURE__ */ jsx31(
|
|
3160
3171
|
Input2,
|
|
3161
3172
|
{
|
|
@@ -3163,7 +3174,7 @@ function VariableEditor({
|
|
|
3163
3174
|
label: "Help Text",
|
|
3164
3175
|
caption: "Appears when entering a value for this variable.",
|
|
3165
3176
|
autoComplete: "off",
|
|
3166
|
-
errorMessage: (
|
|
3177
|
+
errorMessage: (_g = formState.errors.helpText) == null ? void 0 : _g.message
|
|
3167
3178
|
}
|
|
3168
3179
|
),
|
|
3169
3180
|
/* @__PURE__ */ jsx31(
|
|
@@ -3172,7 +3183,7 @@ function VariableEditor({
|
|
|
3172
3183
|
...register("default"),
|
|
3173
3184
|
label: "Default Value",
|
|
3174
3185
|
autoComplete: "off",
|
|
3175
|
-
errorMessage: (
|
|
3186
|
+
errorMessage: (_h = formState.errors.default) == null ? void 0 : _h.message
|
|
3176
3187
|
}
|
|
3177
3188
|
),
|
|
3178
3189
|
/* @__PURE__ */ jsx31(HorizontalRhythm, { justify: "space-between", children: /* @__PURE__ */ jsxs16(HorizontalRhythm, { gap: "sm", children: [
|
|
@@ -7021,6 +7032,7 @@ var QueryFilter = ({
|
|
|
7021
7032
|
value: queryState.count.toString(10),
|
|
7022
7033
|
onChange: (newCount) => handleFilterChange({ count: newCount }),
|
|
7023
7034
|
disableInlineMenu: true,
|
|
7035
|
+
valueToResetTo: "5",
|
|
7024
7036
|
inputWhenNoVariables: /* @__PURE__ */ jsx67(
|
|
7025
7037
|
Input5,
|
|
7026
7038
|
{
|
package/dist/index.js
CHANGED
|
@@ -3278,9 +3278,10 @@ function VariableEditor({
|
|
|
3278
3278
|
variable,
|
|
3279
3279
|
onSubmit,
|
|
3280
3280
|
onCancel,
|
|
3281
|
+
showDisplayName,
|
|
3281
3282
|
disableMeshTip
|
|
3282
3283
|
}) {
|
|
3283
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
3284
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3284
3285
|
const { variables } = useVariables();
|
|
3285
3286
|
const currentVariable = variables[variable];
|
|
3286
3287
|
const { register, handleSubmit, formState } = (0, import_react_hook_form.useForm)({
|
|
@@ -3335,6 +3336,16 @@ function VariableEditor({
|
|
|
3335
3336
|
}
|
|
3336
3337
|
}
|
|
3337
3338
|
),
|
|
3339
|
+
showDisplayName ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3340
|
+
import_design_system16.Input,
|
|
3341
|
+
{
|
|
3342
|
+
...register("displayName"),
|
|
3343
|
+
label: "Display name",
|
|
3344
|
+
autoComplete: "off",
|
|
3345
|
+
caption: "This is the name that will be displayed in the UI. If not provided, the name will be used.",
|
|
3346
|
+
errorMessage: (_f = formState.errors.helpText) == null ? void 0 : _f.message
|
|
3347
|
+
}
|
|
3348
|
+
) : null,
|
|
3338
3349
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3339
3350
|
import_design_system16.Input,
|
|
3340
3351
|
{
|
|
@@ -3342,7 +3353,7 @@ function VariableEditor({
|
|
|
3342
3353
|
label: "Help Text",
|
|
3343
3354
|
caption: "Appears when entering a value for this variable.",
|
|
3344
3355
|
autoComplete: "off",
|
|
3345
|
-
errorMessage: (
|
|
3356
|
+
errorMessage: (_g = formState.errors.helpText) == null ? void 0 : _g.message
|
|
3346
3357
|
}
|
|
3347
3358
|
),
|
|
3348
3359
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
@@ -3351,7 +3362,7 @@ function VariableEditor({
|
|
|
3351
3362
|
...register("default"),
|
|
3352
3363
|
label: "Default Value",
|
|
3353
3364
|
autoComplete: "off",
|
|
3354
|
-
errorMessage: (
|
|
3365
|
+
errorMessage: (_h = formState.errors.default) == null ? void 0 : _h.message
|
|
3355
3366
|
}
|
|
3356
3367
|
),
|
|
3357
3368
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_design_system16.HorizontalRhythm, { justify: "space-between", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_design_system16.HorizontalRhythm, { gap: "sm", children: [
|
|
@@ -7153,6 +7164,7 @@ var QueryFilter = ({
|
|
|
7153
7164
|
value: queryState.count.toString(10),
|
|
7154
7165
|
onChange: (newCount) => handleFilterChange({ count: newCount }),
|
|
7155
7166
|
disableInlineMenu: true,
|
|
7167
|
+
valueToResetTo: "5",
|
|
7156
7168
|
inputWhenNoVariables: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7157
7169
|
import_design_system40.Input,
|
|
7158
7170
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -3099,9 +3099,10 @@ function VariableEditor({
|
|
|
3099
3099
|
variable,
|
|
3100
3100
|
onSubmit,
|
|
3101
3101
|
onCancel,
|
|
3102
|
+
showDisplayName,
|
|
3102
3103
|
disableMeshTip
|
|
3103
3104
|
}) {
|
|
3104
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
3105
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3105
3106
|
const { variables } = useVariables();
|
|
3106
3107
|
const currentVariable = variables[variable];
|
|
3107
3108
|
const { register, handleSubmit, formState } = useForm({
|
|
@@ -3156,6 +3157,16 @@ function VariableEditor({
|
|
|
3156
3157
|
}
|
|
3157
3158
|
}
|
|
3158
3159
|
),
|
|
3160
|
+
showDisplayName ? /* @__PURE__ */ jsx31(
|
|
3161
|
+
Input2,
|
|
3162
|
+
{
|
|
3163
|
+
...register("displayName"),
|
|
3164
|
+
label: "Display name",
|
|
3165
|
+
autoComplete: "off",
|
|
3166
|
+
caption: "This is the name that will be displayed in the UI. If not provided, the name will be used.",
|
|
3167
|
+
errorMessage: (_f = formState.errors.helpText) == null ? void 0 : _f.message
|
|
3168
|
+
}
|
|
3169
|
+
) : null,
|
|
3159
3170
|
/* @__PURE__ */ jsx31(
|
|
3160
3171
|
Input2,
|
|
3161
3172
|
{
|
|
@@ -3163,7 +3174,7 @@ function VariableEditor({
|
|
|
3163
3174
|
label: "Help Text",
|
|
3164
3175
|
caption: "Appears when entering a value for this variable.",
|
|
3165
3176
|
autoComplete: "off",
|
|
3166
|
-
errorMessage: (
|
|
3177
|
+
errorMessage: (_g = formState.errors.helpText) == null ? void 0 : _g.message
|
|
3167
3178
|
}
|
|
3168
3179
|
),
|
|
3169
3180
|
/* @__PURE__ */ jsx31(
|
|
@@ -3172,7 +3183,7 @@ function VariableEditor({
|
|
|
3172
3183
|
...register("default"),
|
|
3173
3184
|
label: "Default Value",
|
|
3174
3185
|
autoComplete: "off",
|
|
3175
|
-
errorMessage: (
|
|
3186
|
+
errorMessage: (_h = formState.errors.default) == null ? void 0 : _h.message
|
|
3176
3187
|
}
|
|
3177
3188
|
),
|
|
3178
3189
|
/* @__PURE__ */ jsx31(HorizontalRhythm, { justify: "space-between", children: /* @__PURE__ */ jsxs16(HorizontalRhythm, { gap: "sm", children: [
|
|
@@ -7021,6 +7032,7 @@ var QueryFilter = ({
|
|
|
7021
7032
|
value: queryState.count.toString(10),
|
|
7022
7033
|
onChange: (newCount) => handleFilterChange({ count: newCount }),
|
|
7023
7034
|
disableInlineMenu: true,
|
|
7035
|
+
valueToResetTo: "5",
|
|
7024
7036
|
inputWhenNoVariables: /* @__PURE__ */ jsx67(
|
|
7025
7037
|
Input5,
|
|
7026
7038
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.117.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,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.117.0",
|
|
54
|
+
"@uniformdev/design-system": "19.117.0",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.117.0",
|
|
56
56
|
"dequal": "^2.0.3",
|
|
57
57
|
"lexical": "^0.12.0",
|
|
58
58
|
"mitt": "^3.0.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "078ffb99d76951dcfde1855e41d7f3a7a0829769"
|
|
90
90
|
}
|