@uniformdev/mesh-sdk-react 20.63.0 → 20.63.1-alpha.17

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 CHANGED
@@ -2,13 +2,13 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { SVGProps, ReactNode, MutableRefObject, ComponentType, PropsWithChildren, HTMLAttributes, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
4
4
  import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
5
- import { DynamicInputs, MeshLocation, SetValueOptions, EditConnectedDataResponseCancellationContext, DataSourceLocationValue, DataTypeLocationValue, BindableTypes } from '@uniformdev/mesh-sdk';
5
+ import { DynamicInputs, SetValueOptions, MeshLocation, EditConnectedDataResponseCancellationContext, DataSourceLocationValue, DataTypeLocationValue, BindableTypes } from '@uniformdev/mesh-sdk';
6
6
  export * from '@uniformdev/mesh-sdk';
7
7
  import { DataVariableDefinition, DataResourceVariables, DataType, DataSourceVariantsKeys } from '@uniformdev/canvas';
8
8
  import { Emitter } from 'mitt';
9
9
  import { TDate } from 'timeago.js';
10
10
  import * as lexical from 'lexical';
11
- import { SerializedEditorState, SerializedLexicalNode, Spread, DecoratorNode, NodeKey, DOMConversionMap, LexicalNode, LexicalEditor, EditorState, SerializedRootNode } from 'lexical';
11
+ import { SerializedEditorState, SerializedLexicalNode, DecoratorNode, Spread, NodeKey, DOMConversionMap, LexicalNode, LexicalEditor, SerializedRootNode, EditorState } from 'lexical';
12
12
  import { Interpolation, Theme, SerializedStyles } from '@emotion/react';
13
13
  import { InputSelectProps, IconType } from '@uniformdev/design-system';
14
14
  export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell, utilityColors } from '@uniformdev/design-system';
@@ -82,6 +82,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
82
82
  type: TLocationType;
83
83
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
84
84
  type: TLocationType;
85
+ }> | Extract<_uniformdev_mesh_sdk.DataResourceSelectorLocation, {
86
+ type: TLocationType;
85
87
  }> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
86
88
  type: TLocationType;
87
89
  }> | Extract<_uniformdev_mesh_sdk.EmbeddedEditorLocation, {
@@ -113,6 +115,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
113
115
  type: TLocationType;
114
116
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
115
117
  type: TLocationType;
118
+ }> | Extract<_uniformdev_mesh_sdk.DataResourceSelectorLocation, {
119
+ type: TLocationType;
116
120
  }> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
117
121
  type: TLocationType;
118
122
  }> | Extract<_uniformdev_mesh_sdk.EmbeddedEditorLocation, {
@@ -143,6 +147,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
143
147
  type: TLocationType;
144
148
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
145
149
  type: TLocationType;
150
+ }> | Extract<_uniformdev_mesh_sdk.DataResourceSelectorLocation, {
151
+ type: TLocationType;
146
152
  }> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
147
153
  type: TLocationType;
148
154
  }> | Extract<_uniformdev_mesh_sdk.EmbeddedEditorLocation, {
package/dist/index.d.ts CHANGED
@@ -2,13 +2,13 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { SVGProps, ReactNode, MutableRefObject, ComponentType, PropsWithChildren, HTMLAttributes, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
4
4
  import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
5
- import { DynamicInputs, MeshLocation, SetValueOptions, EditConnectedDataResponseCancellationContext, DataSourceLocationValue, DataTypeLocationValue, BindableTypes } from '@uniformdev/mesh-sdk';
5
+ import { DynamicInputs, SetValueOptions, MeshLocation, EditConnectedDataResponseCancellationContext, DataSourceLocationValue, DataTypeLocationValue, BindableTypes } from '@uniformdev/mesh-sdk';
6
6
  export * from '@uniformdev/mesh-sdk';
7
7
  import { DataVariableDefinition, DataResourceVariables, DataType, DataSourceVariantsKeys } from '@uniformdev/canvas';
8
8
  import { Emitter } from 'mitt';
9
9
  import { TDate } from 'timeago.js';
10
10
  import * as lexical from 'lexical';
11
- import { SerializedEditorState, SerializedLexicalNode, Spread, DecoratorNode, NodeKey, DOMConversionMap, LexicalNode, LexicalEditor, EditorState, SerializedRootNode } from 'lexical';
11
+ import { SerializedEditorState, SerializedLexicalNode, DecoratorNode, Spread, NodeKey, DOMConversionMap, LexicalNode, LexicalEditor, SerializedRootNode, EditorState } from 'lexical';
12
12
  import { Interpolation, Theme, SerializedStyles } from '@emotion/react';
13
13
  import { InputSelectProps, IconType } from '@uniformdev/design-system';
14
14
  export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell, utilityColors } from '@uniformdev/design-system';
@@ -82,6 +82,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
82
82
  type: TLocationType;
83
83
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
84
84
  type: TLocationType;
85
+ }> | Extract<_uniformdev_mesh_sdk.DataResourceSelectorLocation, {
86
+ type: TLocationType;
85
87
  }> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
86
88
  type: TLocationType;
87
89
  }> | Extract<_uniformdev_mesh_sdk.EmbeddedEditorLocation, {
@@ -113,6 +115,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
113
115
  type: TLocationType;
114
116
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
115
117
  type: TLocationType;
118
+ }> | Extract<_uniformdev_mesh_sdk.DataResourceSelectorLocation, {
119
+ type: TLocationType;
116
120
  }> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
117
121
  type: TLocationType;
118
122
  }> | Extract<_uniformdev_mesh_sdk.EmbeddedEditorLocation, {
@@ -143,6 +147,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
143
147
  type: TLocationType;
144
148
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
145
149
  type: TLocationType;
150
+ }> | Extract<_uniformdev_mesh_sdk.DataResourceSelectorLocation, {
151
+ type: TLocationType;
146
152
  }> | Extract<_uniformdev_mesh_sdk.CanvasEditorToolsLocation, {
147
153
  type: TLocationType;
148
154
  }> | Extract<_uniformdev_mesh_sdk.EmbeddedEditorLocation, {
package/dist/index.esm.js CHANGED
@@ -770,11 +770,11 @@ function useVariableEditTransaction({
770
770
  }
771
771
 
772
772
  // src/components/Variables/VariableEditor.tsx
773
- import { zodResolver } from "@hookform/resolvers/zod";
773
+ import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
774
774
  import { Button, Callout, HorizontalRhythm, Input, useShortcut } from "@uniformdev/design-system";
775
775
  import { useLayoutEffect, useRef as useRef2 } from "react";
776
776
  import { useForm } from "react-hook-form";
777
- import * as z from "zod/v3";
777
+ import * as z from "zod";
778
778
 
779
779
  // src/components/Variables/styles/VariableEditor.styles.ts
780
780
  import { css as css2 } from "@emotion/react";
@@ -787,7 +787,7 @@ var variablesFormContainer = css2`
787
787
  // src/components/Variables/VariableEditor.tsx
788
788
  import { jsx as jsx19, jsxs as jsxs5 } from "@emotion/react/jsx-runtime";
789
789
  var schema = z.object({
790
- name: z.string().nonempty("Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
790
+ name: z.string().min(1, "Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
791
791
  default: z.string(),
792
792
  displayName: z.string().optional(),
793
793
  helpText: z.string().optional(),
@@ -813,7 +813,7 @@ function VariableEditor({
813
813
  order: currentVariable == null ? void 0 : currentVariable.order,
814
814
  type: (_d = currentVariable == null ? void 0 : currentVariable.type) != null ? _d : ""
815
815
  },
816
- resolver: zodResolver(schema)
816
+ resolver: standardSchemaResolver(schema)
817
817
  });
818
818
  const submitHandler = handleSubmit((values) => {
819
819
  const finalValue = {
@@ -6477,6 +6477,7 @@ var SearchAndFilterProvider = ({
6477
6477
  onChange([...filters, { field: "", operator: "", value: "" }]);
6478
6478
  }, [filters, onChange]);
6479
6479
  const handleResetFilters = useCallback6(() => {
6480
+ setSearchTerm("");
6480
6481
  if (onResetFilterValues) {
6481
6482
  return onResetFilterValues();
6482
6483
  }
package/dist/index.js CHANGED
@@ -916,11 +916,11 @@ function useVariableEditTransaction({
916
916
  }
917
917
 
918
918
  // src/components/Variables/VariableEditor.tsx
919
- var import_zod = require("@hookform/resolvers/zod");
919
+ var import_standard_schema = require("@hookform/resolvers/standard-schema");
920
920
  var import_design_system4 = require("@uniformdev/design-system");
921
921
  var import_react12 = require("react");
922
922
  var import_react_hook_form = require("react-hook-form");
923
- var z = __toESM(require("zod/v3"));
923
+ var z = __toESM(require("zod"));
924
924
 
925
925
  // src/components/Variables/styles/VariableEditor.styles.ts
926
926
  var import_react11 = require("@emotion/react");
@@ -933,7 +933,7 @@ var variablesFormContainer = import_react11.css`
933
933
  // src/components/Variables/VariableEditor.tsx
934
934
  var import_jsx_runtime18 = require("@emotion/react/jsx-runtime");
935
935
  var schema = z.object({
936
- name: z.string().nonempty("Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
936
+ name: z.string().min(1, "Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
937
937
  default: z.string(),
938
938
  displayName: z.string().optional(),
939
939
  helpText: z.string().optional(),
@@ -959,7 +959,7 @@ function VariableEditor({
959
959
  order: currentVariable == null ? void 0 : currentVariable.order,
960
960
  type: (_d = currentVariable == null ? void 0 : currentVariable.type) != null ? _d : ""
961
961
  },
962
- resolver: (0, import_zod.zodResolver)(schema)
962
+ resolver: (0, import_standard_schema.standardSchemaResolver)(schema)
963
963
  });
964
964
  const submitHandler = handleSubmit((values) => {
965
965
  const finalValue = {
@@ -6539,6 +6539,7 @@ var SearchAndFilterProvider = ({
6539
6539
  onChange([...filters, { field: "", operator: "", value: "" }]);
6540
6540
  }, [filters, onChange]);
6541
6541
  const handleResetFilters = (0, import_react64.useCallback)(() => {
6542
+ setSearchTerm("");
6542
6543
  if (onResetFilterValues) {
6543
6544
  return onResetFilterValues();
6544
6545
  }
package/dist/index.mjs CHANGED
@@ -770,11 +770,11 @@ function useVariableEditTransaction({
770
770
  }
771
771
 
772
772
  // src/components/Variables/VariableEditor.tsx
773
- import { zodResolver } from "@hookform/resolvers/zod";
773
+ import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
774
774
  import { Button, Callout, HorizontalRhythm, Input, useShortcut } from "@uniformdev/design-system";
775
775
  import { useLayoutEffect, useRef as useRef2 } from "react";
776
776
  import { useForm } from "react-hook-form";
777
- import * as z from "zod/v3";
777
+ import * as z from "zod";
778
778
 
779
779
  // src/components/Variables/styles/VariableEditor.styles.ts
780
780
  import { css as css2 } from "@emotion/react";
@@ -787,7 +787,7 @@ var variablesFormContainer = css2`
787
787
  // src/components/Variables/VariableEditor.tsx
788
788
  import { jsx as jsx19, jsxs as jsxs5 } from "@emotion/react/jsx-runtime";
789
789
  var schema = z.object({
790
- name: z.string().nonempty("Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
790
+ name: z.string().min(1, "Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
791
791
  default: z.string(),
792
792
  displayName: z.string().optional(),
793
793
  helpText: z.string().optional(),
@@ -813,7 +813,7 @@ function VariableEditor({
813
813
  order: currentVariable == null ? void 0 : currentVariable.order,
814
814
  type: (_d = currentVariable == null ? void 0 : currentVariable.type) != null ? _d : ""
815
815
  },
816
- resolver: zodResolver(schema)
816
+ resolver: standardSchemaResolver(schema)
817
817
  });
818
818
  const submitHandler = handleSubmit((values) => {
819
819
  const finalValue = {
@@ -6477,6 +6477,7 @@ var SearchAndFilterProvider = ({
6477
6477
  onChange([...filters, { field: "", operator: "", value: "" }]);
6478
6478
  }, [filters, onChange]);
6479
6479
  const handleResetFilters = useCallback6(() => {
6480
+ setSearchTerm("");
6480
6481
  if (onResetFilterValues) {
6481
6482
  return onResetFilterValues();
6482
6483
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "20.63.0",
3
+ "version": "20.63.1-alpha.17+cd7eca3818",
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.39.0",
51
51
  "@lexical/utils": "0.39.0",
52
52
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
53
- "@uniformdev/canvas": "20.63.0",
54
- "@uniformdev/design-system": "20.63.0",
55
- "@uniformdev/mesh-sdk": "20.63.0",
56
- "@uniformdev/richtext": "20.63.0",
53
+ "@uniformdev/canvas": "20.63.1-alpha.17+cd7eca3818",
54
+ "@uniformdev/design-system": "20.63.1-alpha.17+cd7eca3818",
55
+ "@uniformdev/mesh-sdk": "20.63.1-alpha.17+cd7eca3818",
56
+ "@uniformdev/richtext": "20.63.1-alpha.17+cd7eca3818",
57
57
  "dequal": "^2.0.3",
58
58
  "lexical": "0.39.0",
59
59
  "mitt": "3.0.1",
@@ -61,7 +61,7 @@
61
61
  "react-use": "17.6.0",
62
62
  "timeago.js": "4.0.2",
63
63
  "uuid": "9.0.1",
64
- "zod": "3.25.76"
64
+ "zod": "4.3.6"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@emotion/react": ">=11.13.5",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@emotion/react": "11.14.0",
73
- "@storybook/react": "10.1.0",
73
+ "@storybook/react": "10.2.10",
74
74
  "@svgr/cli": "6.5.1",
75
75
  "@types/react": "19.2.2",
76
76
  "@types/react-dom": "19.2.2",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "76729fa5c8c4dc3d71d65fdb181a659755ec34ae"
89
+ "gitHead": "cd7eca38189533a6ba5899bf872b72e1331c4aa3"
90
90
  }