@uniformdev/mesh-sdk-react 19.56.1-alpha.9 → 19.58.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 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';
@@ -878,6 +878,7 @@ type ParameterVariablesProps<TEditorContext = unknown> = {
878
878
  editorRef?: MutableRefObject<LexicalEditor | null>;
879
879
  /** If set the editor will auto-focus on mount */
880
880
  autoFocus?: boolean;
881
+ inputCss?: SerializedStyles;
881
882
  } & UseInputVariablesStateProps<TEditorContext>;
882
883
  /**
883
884
  * 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';
@@ -878,6 +878,7 @@ type ParameterVariablesProps<TEditorContext = unknown> = {
878
878
  editorRef?: MutableRefObject<LexicalEditor | null>;
879
879
  /** If set the editor will auto-focus on mount */
880
880
  autoFocus?: boolean;
881
+ inputCss?: SerializedStyles;
881
882
  } & UseInputVariablesStateProps<TEditorContext>;
882
883
  /**
883
884
  * An input box that enables insertion of 'variables', provided by VariablesProvider,
package/dist/index.esm.js CHANGED
@@ -3740,6 +3740,7 @@ function VariablesPlugin({
3740
3740
  /* @__PURE__ */ jsx32(
3741
3741
  "div",
3742
3742
  {
3743
+ "data-auto-resize-opt-in": true,
3743
3744
  css: css20`
3744
3745
  box-shadow: var(--shadow-base);
3745
3746
  border-radius: var(--rounded-base);
@@ -4974,7 +4975,8 @@ function ParameterVariables(props) {
4974
4975
  getEditorContext,
4975
4976
  disabled,
4976
4977
  editorRef,
4977
- filterVariable
4978
+ filterVariable,
4979
+ inputCss
4978
4980
  } = props;
4979
4981
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4980
4982
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
@@ -5016,7 +5018,8 @@ function ParameterVariables(props) {
5016
5018
  "data-text-value": value,
5017
5019
  css: [
5018
5020
  input2,
5019
- typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : css24``
5021
+ typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : css24``,
5022
+ inputCss != null ? inputCss : css24``
5020
5023
  ]
5021
5024
  }
5022
5025
  ) }),
@@ -6499,6 +6502,7 @@ var ObjectSearchListItem = ({
6499
6502
  {
6500
6503
  role: "listitem",
6501
6504
  css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
6505
+ "data-testid": "list-item",
6502
6506
  children: [
6503
6507
  /* @__PURE__ */ jsxs37(
6504
6508
  "div",
@@ -6512,7 +6516,7 @@ var ObjectSearchListItem = ({
6512
6516
  !image || imageUrl ? null : /* @__PURE__ */ jsx62("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6513
6517
  /* @__PURE__ */ jsxs37("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
6514
6518
  !contentType ? null : /* @__PURE__ */ jsx62("span", { css: ObjectListItemSubtitle, children: formatedContentType }),
6515
- /* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, children: title })
6519
+ /* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
6516
6520
  ] })
6517
6521
  ]
6518
6522
  }
package/dist/index.js CHANGED
@@ -3918,6 +3918,7 @@ function VariablesPlugin({
3918
3918
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3919
3919
  "div",
3920
3920
  {
3921
+ "data-auto-resize-opt-in": true,
3921
3922
  css: import_react37.css`
3922
3923
  box-shadow: var(--shadow-base);
3923
3924
  border-radius: var(--rounded-base);
@@ -5140,7 +5141,8 @@ function ParameterVariables(props) {
5140
5141
  getEditorContext,
5141
5142
  disabled,
5142
5143
  editorRef,
5143
- filterVariable
5144
+ filterVariable,
5145
+ inputCss
5144
5146
  } = props;
5145
5147
  const { dispatch, canDispatch, isEditing } = useVariables(true);
5146
5148
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
@@ -5182,7 +5184,8 @@ function ParameterVariables(props) {
5182
5184
  "data-text-value": value,
5183
5185
  css: [
5184
5186
  input2,
5185
- typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : import_react54.css``
5187
+ typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : import_react54.css``,
5188
+ inputCss != null ? inputCss : import_react54.css``
5186
5189
  ]
5187
5190
  }
5188
5191
  ) }),
@@ -6630,6 +6633,7 @@ var ObjectSearchListItem = ({
6630
6633
  {
6631
6634
  role: "listitem",
6632
6635
  css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
6636
+ "data-testid": "list-item",
6633
6637
  children: [
6634
6638
  /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
6635
6639
  "div",
@@ -6643,7 +6647,7 @@ var ObjectSearchListItem = ({
6643
6647
  !image || imageUrl ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6644
6648
  /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
6645
6649
  !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 })
6650
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
6647
6651
  ] })
6648
6652
  ]
6649
6653
  }
package/dist/index.mjs CHANGED
@@ -3740,6 +3740,7 @@ function VariablesPlugin({
3740
3740
  /* @__PURE__ */ jsx32(
3741
3741
  "div",
3742
3742
  {
3743
+ "data-auto-resize-opt-in": true,
3743
3744
  css: css20`
3744
3745
  box-shadow: var(--shadow-base);
3745
3746
  border-radius: var(--rounded-base);
@@ -4974,7 +4975,8 @@ function ParameterVariables(props) {
4974
4975
  getEditorContext,
4975
4976
  disabled,
4976
4977
  editorRef,
4977
- filterVariable
4978
+ filterVariable,
4979
+ inputCss
4978
4980
  } = props;
4979
4981
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4980
4982
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
@@ -5016,7 +5018,8 @@ function ParameterVariables(props) {
5016
5018
  "data-text-value": value,
5017
5019
  css: [
5018
5020
  input2,
5019
- typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : css24``
5021
+ typeof multiLine === "number" ? inputMultiLine(multiLine) : multiLine === true ? inputMultiLine(4) : css24``,
5022
+ inputCss != null ? inputCss : css24``
5020
5023
  ]
5021
5024
  }
5022
5025
  ) }),
@@ -6499,6 +6502,7 @@ var ObjectSearchListItem = ({
6499
6502
  {
6500
6503
  role: "listitem",
6501
6504
  css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
6505
+ "data-testid": "list-item",
6502
6506
  children: [
6503
6507
  /* @__PURE__ */ jsxs37(
6504
6508
  "div",
@@ -6512,7 +6516,7 @@ var ObjectSearchListItem = ({
6512
6516
  !image || imageUrl ? null : /* @__PURE__ */ jsx62("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6513
6517
  /* @__PURE__ */ jsxs37("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
6514
6518
  !contentType ? null : /* @__PURE__ */ jsx62("span", { css: ObjectListItemSubtitle, children: formatedContentType }),
6515
- /* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, children: title })
6519
+ /* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
6516
6520
  ] })
6517
6521
  ]
6518
6522
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.56.1-alpha.9+020a94693",
3
+ "version": "19.58.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.56.1-alpha.9+020a94693",
54
- "@uniformdev/design-system": "19.56.1-alpha.9+020a94693",
55
- "@uniformdev/mesh-sdk": "19.56.1-alpha.9+020a94693",
53
+ "@uniformdev/canvas": "19.58.0",
54
+ "@uniformdev/design-system": "19.58.0",
55
+ "@uniformdev/mesh-sdk": "19.58.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": "020a9469359bc5480785058a22b87e5fe8579799"
89
+ "gitHead": "1e355c1405dc744f333cbce45766965c160c535c"
90
90
  }