@uniformdev/mesh-sdk-react 19.80.1-alpha.170 → 19.80.1-alpha.200

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
@@ -1177,7 +1177,10 @@ type ObjectSearchContainerProps = {
1177
1177
  enableDynamicInputToResultId?: boolean;
1178
1178
  /** a child node that places components within the search location */
1179
1179
  searchFilters: ReactNode;
1180
- /** a child node that places components within a scrollable list location */
1180
+ /**
1181
+ * a child node that places components within a scrollable list location
1182
+ * set to `null` expl
1183
+ */
1181
1184
  resultList?: ReactNode;
1182
1185
  /** allows any child element */
1183
1186
  children?: ReactNode;
@@ -1200,9 +1203,10 @@ type ObjectSearchFilterProps = {
1200
1203
  selectLabel?: string;
1201
1204
  /** sets the select input options, if empty - only keyword search field will be rendered */
1202
1205
  selectOptions?: Array<{
1203
- id: string;
1206
+ id?: string;
1204
1207
  name?: string;
1205
1208
  label: string;
1209
+ value?: string;
1206
1210
  }>;
1207
1211
  /** sets the search input name value
1208
1212
  * @default 'searchText'
package/dist/index.d.ts CHANGED
@@ -1177,7 +1177,10 @@ type ObjectSearchContainerProps = {
1177
1177
  enableDynamicInputToResultId?: boolean;
1178
1178
  /** a child node that places components within the search location */
1179
1179
  searchFilters: ReactNode;
1180
- /** a child node that places components within a scrollable list location */
1180
+ /**
1181
+ * a child node that places components within a scrollable list location
1182
+ * set to `null` expl
1183
+ */
1181
1184
  resultList?: ReactNode;
1182
1185
  /** allows any child element */
1183
1186
  children?: ReactNode;
@@ -1200,9 +1203,10 @@ type ObjectSearchFilterProps = {
1200
1203
  selectLabel?: string;
1201
1204
  /** sets the select input options, if empty - only keyword search field will be rendered */
1202
1205
  selectOptions?: Array<{
1203
- id: string;
1206
+ id?: string;
1204
1207
  name?: string;
1205
1208
  label: string;
1209
+ value?: string;
1206
1210
  }>;
1207
1211
  /** sets the search input name value
1208
1212
  * @default 'searchText'
package/dist/index.esm.js CHANGED
@@ -2654,13 +2654,14 @@ function useConnectedDataAsVariables(connectedData) {
2654
2654
  }
2655
2655
 
2656
2656
  // src/hooks/useDynamicInputsAsVariables.tsx
2657
+ import { LOCALE_DYNAMIC_INPUT_NAME } from "@uniformdev/canvas";
2657
2658
  import { useMemo as useMemo4 } from "react";
2658
2659
  import { Fragment as Fragment4, jsx as jsx26 } from "@emotion/react/jsx-runtime";
2659
2660
  function useDynamicInputsAsVariables(dynamicInputs) {
2660
2661
  return useMemo4(() => {
2661
2662
  const result = Object.entries(dynamicInputs).reduce(
2662
2663
  (acc, [name, input3]) => {
2663
- const source = `from ${input3.type === "path" ? "URL path" : "query string"}`;
2664
+ const source = `from ${name === LOCALE_DYNAMIC_INPUT_NAME ? "current locale" : input3.type === "path" ? "URL path" : "query string"}`;
2664
2665
  acc[name] = {
2665
2666
  readOnly: true,
2666
2667
  type: input3.type,
@@ -2944,6 +2945,7 @@ function VariableChip({
2944
2945
  tooltip,
2945
2946
  reference,
2946
2947
  onClick,
2948
+ clickToEdit,
2947
2949
  isFresh,
2948
2950
  selected,
2949
2951
  disabled
@@ -2951,7 +2953,7 @@ function VariableChip({
2951
2953
  const hasClickEvent = !!onClick;
2952
2954
  const referenceIsValidFr = isFresh ? true : referenceIsValid;
2953
2955
  const Wrapper = referenceIsValidFr === "info" ? InfoVariableReference : referenceIsValidFr ? Fragment5 : UndefinedVariableReference;
2954
- const extraTitle = !referenceIsValidFr ? `${reference} is not defined.` : hasClickEvent ? "Click to edit" : void 0;
2956
+ const extraTitle = !referenceIsValidFr ? `${reference} is not defined.` : hasClickEvent && clickToEdit ? "Click to edit" : void 0;
2955
2957
  return /* @__PURE__ */ jsx29(
2956
2958
  MultilineChip,
2957
2959
  {
@@ -3968,6 +3970,7 @@ function VariableNodeComponent({
3968
3970
  displayName: state.isLoading ? /* @__PURE__ */ jsx33(LoadingIndicator2, { size: "sm" }) : state.displayName,
3969
3971
  selected: isSelected,
3970
3972
  disabled: readOnly,
3973
+ clickToEdit: state.hasClickEvent,
3971
3974
  onClick: state.hasClickEvent ? () => {
3972
3975
  setSelected(!isSelected);
3973
3976
  editor.dispatchCommand(EDIT_VARIABLE_COMMAND, {
@@ -4459,6 +4462,7 @@ function VariablesComposer(props) {
4459
4462
  /* @__PURE__ */ jsx37(
4460
4463
  OnChangePlugin,
4461
4464
  {
4465
+ ignoreSelectionChange: true,
4462
4466
  onChange: (state) => {
4463
4467
  editorState.current = state;
4464
4468
  if (updateTimeout.current) {
@@ -6415,22 +6419,22 @@ var ObjectSearchContainer = ({
6415
6419
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6416
6420
  const { flatVariables } = useVariables(true);
6417
6421
  const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6418
- const listItems = resultList != null ? resultList : /* @__PURE__ */ jsx60(DefaultResultList, {});
6422
+ const listItems = resultList != null ? resultList : /* @__PURE__ */ jsx60(
6423
+ ScrollableList,
6424
+ {
6425
+ role: "list",
6426
+ css: css32`
6427
+ > div {
6428
+ transition: max-height var(--duration-slow) var(--timing-ease-out);
6429
+ max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6430
+ }
6431
+ `,
6432
+ children: /* @__PURE__ */ jsx60(DefaultResultList, {})
6433
+ }
6434
+ );
6419
6435
  const body = /* @__PURE__ */ jsxs35(VerticalRhythm2, { children: [
6420
6436
  searchFilters,
6421
- /* @__PURE__ */ jsx60(
6422
- ScrollableList,
6423
- {
6424
- role: "list",
6425
- css: css32`
6426
- > div {
6427
- transition: max-height var(--duration-slow) var(--timing-ease-out);
6428
- max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6429
- }
6430
- `,
6431
- children: listItems
6432
- }
6433
- )
6437
+ listItems
6434
6438
  ] });
6435
6439
  const handleSelectedVariableChange = (selectedValue) => {
6436
6440
  var _a2;
@@ -6542,10 +6546,7 @@ var ObjectSearchFilter = ({
6542
6546
  }
6543
6547
  return [
6544
6548
  ...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
6545
- ...selectOptions ? selectOptions.map((option) => {
6546
- var _a2;
6547
- return { name: option == null ? void 0 : option.name, label: (_a2 = option.label) != null ? _a2 : option == null ? void 0 : option.name, id: option.id };
6548
- }) : []
6549
+ ...selectOptions != null ? selectOptions : []
6549
6550
  ];
6550
6551
  }, [requireContentType, typeSelectorAllTypesOptionText, selectOptions]);
6551
6552
  const shouldRenderSelect = memoizedSelectOptions.length > 0;
package/dist/index.js CHANGED
@@ -2856,13 +2856,14 @@ function useConnectedDataAsVariables(connectedData) {
2856
2856
  }
2857
2857
 
2858
2858
  // src/hooks/useDynamicInputsAsVariables.tsx
2859
+ var import_canvas = require("@uniformdev/canvas");
2859
2860
  var import_react26 = require("react");
2860
2861
  var import_jsx_runtime26 = require("@emotion/react/jsx-runtime");
2861
2862
  function useDynamicInputsAsVariables(dynamicInputs) {
2862
2863
  return (0, import_react26.useMemo)(() => {
2863
2864
  const result = Object.entries(dynamicInputs).reduce(
2864
2865
  (acc, [name, input3]) => {
2865
- const source = `from ${input3.type === "path" ? "URL path" : "query string"}`;
2866
+ const source = `from ${name === import_canvas.LOCALE_DYNAMIC_INPUT_NAME ? "current locale" : input3.type === "path" ? "URL path" : "query string"}`;
2866
2867
  acc[name] = {
2867
2868
  readOnly: true,
2868
2869
  type: input3.type,
@@ -2981,11 +2982,11 @@ var import_lite = require("dequal/lite");
2981
2982
  var import_react30 = require("react");
2982
2983
 
2983
2984
  // src/components/Variables/util/deserializeVariablesEditorState.ts
2984
- var import_canvas = require("@uniformdev/canvas");
2985
+ var import_canvas2 = require("@uniformdev/canvas");
2985
2986
  var import_lexical = require("lexical");
2986
2987
  function deserializeVariablesEditorState(serialized) {
2987
2988
  const result = [];
2988
- (0, import_canvas.parseVariableExpression)(serialized != null ? serialized : "", (token, type) => {
2989
+ (0, import_canvas2.parseVariableExpression)(serialized != null ? serialized : "", (token, type) => {
2989
2990
  if (type === "text") {
2990
2991
  const node = {
2991
2992
  type: import_lexical.TextNode.getType(),
@@ -3112,7 +3113,7 @@ var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerCont
3112
3113
  var import_useLexicalNodeSelection = require("@lexical/react/useLexicalNodeSelection");
3113
3114
  var import_selection = require("@lexical/selection");
3114
3115
  var import_utils2 = require("@lexical/utils");
3115
- var import_canvas3 = require("@uniformdev/canvas");
3116
+ var import_canvas4 = require("@uniformdev/canvas");
3116
3117
  var import_design_system18 = require("@uniformdev/design-system");
3117
3118
  var import_lexical4 = require("lexical");
3118
3119
  var import_react39 = require("react");
@@ -3132,6 +3133,7 @@ function VariableChip({
3132
3133
  tooltip,
3133
3134
  reference,
3134
3135
  onClick,
3136
+ clickToEdit,
3135
3137
  isFresh,
3136
3138
  selected,
3137
3139
  disabled
@@ -3139,7 +3141,7 @@ function VariableChip({
3139
3141
  const hasClickEvent = !!onClick;
3140
3142
  const referenceIsValidFr = isFresh ? true : referenceIsValid;
3141
3143
  const Wrapper = referenceIsValidFr === "info" ? InfoVariableReference : referenceIsValidFr ? import_react31.Fragment : UndefinedVariableReference;
3142
- const extraTitle = !referenceIsValidFr ? `${reference} is not defined.` : hasClickEvent ? "Click to edit" : void 0;
3144
+ const extraTitle = !referenceIsValidFr ? `${reference} is not defined.` : hasClickEvent && clickToEdit ? "Click to edit" : void 0;
3143
3145
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3144
3146
  import_design_system15.MultilineChip,
3145
3147
  {
@@ -3186,7 +3188,7 @@ var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerCont
3186
3188
  var import_LexicalTypeaheadMenuPlugin = require("@lexical/react/LexicalTypeaheadMenuPlugin");
3187
3189
  var import_utils = require("@lexical/utils");
3188
3190
  var import_AiFillPlusCircle = require("@react-icons/all-files/ai/AiFillPlusCircle");
3189
- var import_canvas2 = require("@uniformdev/canvas");
3191
+ var import_canvas3 = require("@uniformdev/canvas");
3190
3192
  var import_design_system17 = require("@uniformdev/design-system");
3191
3193
  var import_lite2 = require("dequal/lite");
3192
3194
  var import_lexical3 = require("lexical");
@@ -3660,7 +3662,7 @@ function useVariablesMenu({
3660
3662
  var _a;
3661
3663
  const targetVariable = variables[value];
3662
3664
  if (overwriteExistingValue) {
3663
- setVariablesEditorValue(editor, (0, import_canvas2.createVariableReference)(value));
3665
+ setVariablesEditorValue(editor, (0, import_canvas3.createVariableReference)(value));
3664
3666
  return true;
3665
3667
  }
3666
3668
  const variableNode = $createVariableNode(value, {
@@ -3830,7 +3832,7 @@ function VariablesPlugin({
3830
3832
  if (!disableVariables) {
3831
3833
  const targetVariable = variablesRef.current.variables[reference];
3832
3834
  if (overwriteExistingValue) {
3833
- setVariablesEditorValue(editor, (0, import_canvas2.createVariableReference)(reference));
3835
+ setVariablesEditorValue(editor, (0, import_canvas3.createVariableReference)(reference));
3834
3836
  return true;
3835
3837
  }
3836
3838
  const variableNode = $createVariableNode(reference, {
@@ -4030,7 +4032,7 @@ var VariableNode = class _VariableNode extends import_lexical4.DecoratorNode {
4030
4032
  * (albeit it won't get the fancy chip-node)
4031
4033
  */
4032
4034
  getTextContent() {
4033
- return (0, import_canvas3.createVariableReference)(this.reference);
4035
+ return (0, import_canvas4.createVariableReference)(this.reference);
4034
4036
  }
4035
4037
  /** Creates the DOM wrapper that hosts the node */
4036
4038
  createDOM() {
@@ -4146,6 +4148,7 @@ function VariableNodeComponent({
4146
4148
  displayName: state.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_design_system18.LoadingIndicator, { size: "sm" }) : state.displayName,
4147
4149
  selected: isSelected,
4148
4150
  disabled: readOnly,
4151
+ clickToEdit: state.hasClickEvent,
4149
4152
  onClick: state.hasClickEvent ? () => {
4150
4153
  setSelected(!isSelected);
4151
4154
  editor.dispatchCommand(EDIT_VARIABLE_COMMAND, {
@@ -4283,10 +4286,10 @@ var React10 = __toESM(require("react"));
4283
4286
  var import_react42 = require("react");
4284
4287
 
4285
4288
  // src/components/Variables/util/hasReferencedVariables.ts
4286
- var import_canvas4 = require("@uniformdev/canvas");
4289
+ var import_canvas5 = require("@uniformdev/canvas");
4287
4290
  function hasReferencedVariables(value) {
4288
4291
  let result = false;
4289
- (0, import_canvas4.parseVariableExpression)(value, (token, type) => {
4292
+ (0, import_canvas5.parseVariableExpression)(value, (token, type) => {
4290
4293
  if (type === "variable") {
4291
4294
  result = true;
4292
4295
  return false;
@@ -4572,7 +4575,7 @@ function SingleLineTextPlugin() {
4572
4575
  }
4573
4576
 
4574
4577
  // src/components/Variables/util/serializeVariablesEditorState.ts
4575
- var import_canvas5 = require("@uniformdev/canvas");
4578
+ var import_canvas6 = require("@uniformdev/canvas");
4576
4579
  var import_lexical8 = require("lexical");
4577
4580
 
4578
4581
  // src/components/Variables/util/variableExpression.ts
@@ -4591,7 +4594,7 @@ function serializeRecursive(node, buffer) {
4591
4594
  buffer.push(node.text.replace(variablePrefix, "\\${"));
4592
4595
  }
4593
4596
  if (node.type === VariableNode.getType()) {
4594
- buffer.push((0, import_canvas5.createVariableReference)(node.reference));
4597
+ buffer.push((0, import_canvas6.createVariableReference)(node.reference));
4595
4598
  }
4596
4599
  if (node.type === import_lexical8.LineBreakNode.getType()) {
4597
4600
  buffer.push("\n");
@@ -4637,6 +4640,7 @@ function VariablesComposer(props) {
4637
4640
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4638
4641
  import_LexicalOnChangePlugin.OnChangePlugin,
4639
4642
  {
4643
+ ignoreSelectionChange: true,
4640
4644
  onChange: (state) => {
4641
4645
  editorState.current = state;
4642
4646
  if (updateTimeout.current) {
@@ -4910,7 +4914,7 @@ function InputVariablesOverlayMenu({
4910
4914
 
4911
4915
  // src/components/Variables/ParameterConnectionIndicator.tsx
4912
4916
  var import_CgUsbC2 = require("@react-icons/all-files/cg/CgUsbC");
4913
- var import_canvas6 = require("@uniformdev/canvas");
4917
+ var import_canvas7 = require("@uniformdev/canvas");
4914
4918
  var import_design_system22 = require("@uniformdev/design-system");
4915
4919
  var import_react51 = require("react");
4916
4920
 
@@ -5015,7 +5019,7 @@ function ParameterConnectionIndicator({
5015
5019
  }) {
5016
5020
  const hasVariablesInValue = (0, import_react51.useMemo)(() => {
5017
5021
  let result = false;
5018
- (0, import_canvas6.bindVariablesToObject)({
5022
+ (0, import_canvas7.bindVariablesToObject)({
5019
5023
  value,
5020
5024
  variables: {},
5021
5025
  handleBinding: () => {
@@ -6279,11 +6283,11 @@ var DataRefreshButton = ({
6279
6283
 
6280
6284
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
6281
6285
  var import_react66 = require("@emotion/react");
6282
- var import_canvas8 = require("@uniformdev/canvas");
6286
+ var import_canvas9 = require("@uniformdev/canvas");
6283
6287
  var import_design_system35 = require("@uniformdev/design-system");
6284
6288
 
6285
6289
  // src/components/ObjectSearch/hooks/ObjectSearchContext.tsx
6286
- var import_canvas7 = require("@uniformdev/canvas");
6290
+ var import_canvas8 = require("@uniformdev/canvas");
6287
6291
  var import_react64 = require("react");
6288
6292
  var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
6289
6293
  var ObjectSearchContext = (0, import_react64.createContext)({
@@ -6382,7 +6386,7 @@ function useObjectSearchContext() {
6382
6386
  return (0, import_react64.useContext)(ObjectSearchContext);
6383
6387
  }
6384
6388
  function bindQuery(query, inputs) {
6385
- const { result, errors } = (0, import_canvas7.bindVariablesToObject)({
6389
+ const { result, errors } = (0, import_canvas8.bindVariablesToObject)({
6386
6390
  value: query,
6387
6391
  variables: inputs,
6388
6392
  errorPrefix: "Dynamic input"
@@ -6546,22 +6550,22 @@ var ObjectSearchContainer = ({
6546
6550
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6547
6551
  const { flatVariables } = useVariables(true);
6548
6552
  const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6549
- const listItems = resultList != null ? resultList : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DefaultResultList, {});
6553
+ const listItems = resultList != null ? resultList : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6554
+ import_design_system35.ScrollableList,
6555
+ {
6556
+ role: "list",
6557
+ css: import_react66.css`
6558
+ > div {
6559
+ transition: max-height var(--duration-slow) var(--timing-ease-out);
6560
+ max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6561
+ }
6562
+ `,
6563
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DefaultResultList, {})
6564
+ }
6565
+ );
6550
6566
  const body = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_design_system35.VerticalRhythm, { children: [
6551
6567
  searchFilters,
6552
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
6553
- import_design_system35.ScrollableList,
6554
- {
6555
- role: "list",
6556
- css: import_react66.css`
6557
- > div {
6558
- transition: max-height var(--duration-slow) var(--timing-ease-out);
6559
- max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6560
- }
6561
- `,
6562
- children: listItems
6563
- }
6564
- )
6568
+ listItems
6565
6569
  ] });
6566
6570
  const handleSelectedVariableChange = (selectedValue) => {
6567
6571
  var _a2;
@@ -6569,7 +6573,7 @@ var ObjectSearchContainer = ({
6569
6573
  onSelectItem([]);
6570
6574
  return;
6571
6575
  }
6572
- const { result, errors } = (0, import_canvas8.bindVariables)({
6576
+ const { result, errors } = (0, import_canvas9.bindVariables)({
6573
6577
  value: selectedValue,
6574
6578
  variables: flatVariables,
6575
6579
  errorPrefix: "Dynamic input"
@@ -6673,10 +6677,7 @@ var ObjectSearchFilter = ({
6673
6677
  }
6674
6678
  return [
6675
6679
  ...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
6676
- ...selectOptions ? selectOptions.map((option) => {
6677
- var _a2;
6678
- return { name: option == null ? void 0 : option.name, label: (_a2 = option.label) != null ? _a2 : option == null ? void 0 : option.name, id: option.id };
6679
- }) : []
6680
+ ...selectOptions != null ? selectOptions : []
6680
6681
  ];
6681
6682
  }, [requireContentType, typeSelectorAllTypesOptionText, selectOptions]);
6682
6683
  const shouldRenderSelect = memoizedSelectOptions.length > 0;
package/dist/index.mjs CHANGED
@@ -2654,13 +2654,14 @@ function useConnectedDataAsVariables(connectedData) {
2654
2654
  }
2655
2655
 
2656
2656
  // src/hooks/useDynamicInputsAsVariables.tsx
2657
+ import { LOCALE_DYNAMIC_INPUT_NAME } from "@uniformdev/canvas";
2657
2658
  import { useMemo as useMemo4 } from "react";
2658
2659
  import { Fragment as Fragment4, jsx as jsx26 } from "@emotion/react/jsx-runtime";
2659
2660
  function useDynamicInputsAsVariables(dynamicInputs) {
2660
2661
  return useMemo4(() => {
2661
2662
  const result = Object.entries(dynamicInputs).reduce(
2662
2663
  (acc, [name, input3]) => {
2663
- const source = `from ${input3.type === "path" ? "URL path" : "query string"}`;
2664
+ const source = `from ${name === LOCALE_DYNAMIC_INPUT_NAME ? "current locale" : input3.type === "path" ? "URL path" : "query string"}`;
2664
2665
  acc[name] = {
2665
2666
  readOnly: true,
2666
2667
  type: input3.type,
@@ -2944,6 +2945,7 @@ function VariableChip({
2944
2945
  tooltip,
2945
2946
  reference,
2946
2947
  onClick,
2948
+ clickToEdit,
2947
2949
  isFresh,
2948
2950
  selected,
2949
2951
  disabled
@@ -2951,7 +2953,7 @@ function VariableChip({
2951
2953
  const hasClickEvent = !!onClick;
2952
2954
  const referenceIsValidFr = isFresh ? true : referenceIsValid;
2953
2955
  const Wrapper = referenceIsValidFr === "info" ? InfoVariableReference : referenceIsValidFr ? Fragment5 : UndefinedVariableReference;
2954
- const extraTitle = !referenceIsValidFr ? `${reference} is not defined.` : hasClickEvent ? "Click to edit" : void 0;
2956
+ const extraTitle = !referenceIsValidFr ? `${reference} is not defined.` : hasClickEvent && clickToEdit ? "Click to edit" : void 0;
2955
2957
  return /* @__PURE__ */ jsx29(
2956
2958
  MultilineChip,
2957
2959
  {
@@ -3968,6 +3970,7 @@ function VariableNodeComponent({
3968
3970
  displayName: state.isLoading ? /* @__PURE__ */ jsx33(LoadingIndicator2, { size: "sm" }) : state.displayName,
3969
3971
  selected: isSelected,
3970
3972
  disabled: readOnly,
3973
+ clickToEdit: state.hasClickEvent,
3971
3974
  onClick: state.hasClickEvent ? () => {
3972
3975
  setSelected(!isSelected);
3973
3976
  editor.dispatchCommand(EDIT_VARIABLE_COMMAND, {
@@ -4459,6 +4462,7 @@ function VariablesComposer(props) {
4459
4462
  /* @__PURE__ */ jsx37(
4460
4463
  OnChangePlugin,
4461
4464
  {
4465
+ ignoreSelectionChange: true,
4462
4466
  onChange: (state) => {
4463
4467
  editorState.current = state;
4464
4468
  if (updateTimeout.current) {
@@ -6415,22 +6419,22 @@ var ObjectSearchContainer = ({
6415
6419
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6416
6420
  const { flatVariables } = useVariables(true);
6417
6421
  const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6418
- const listItems = resultList != null ? resultList : /* @__PURE__ */ jsx60(DefaultResultList, {});
6422
+ const listItems = resultList != null ? resultList : /* @__PURE__ */ jsx60(
6423
+ ScrollableList,
6424
+ {
6425
+ role: "list",
6426
+ css: css32`
6427
+ > div {
6428
+ transition: max-height var(--duration-slow) var(--timing-ease-out);
6429
+ max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6430
+ }
6431
+ `,
6432
+ children: /* @__PURE__ */ jsx60(DefaultResultList, {})
6433
+ }
6434
+ );
6419
6435
  const body = /* @__PURE__ */ jsxs35(VerticalRhythm2, { children: [
6420
6436
  searchFilters,
6421
- /* @__PURE__ */ jsx60(
6422
- ScrollableList,
6423
- {
6424
- role: "list",
6425
- css: css32`
6426
- > div {
6427
- transition: max-height var(--duration-slow) var(--timing-ease-out);
6428
- max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6429
- }
6430
- `,
6431
- children: listItems
6432
- }
6433
- )
6437
+ listItems
6434
6438
  ] });
6435
6439
  const handleSelectedVariableChange = (selectedValue) => {
6436
6440
  var _a2;
@@ -6542,10 +6546,7 @@ var ObjectSearchFilter = ({
6542
6546
  }
6543
6547
  return [
6544
6548
  ...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
6545
- ...selectOptions ? selectOptions.map((option) => {
6546
- var _a2;
6547
- return { name: option == null ? void 0 : option.name, label: (_a2 = option.label) != null ? _a2 : option == null ? void 0 : option.name, id: option.id };
6548
- }) : []
6549
+ ...selectOptions != null ? selectOptions : []
6549
6550
  ];
6550
6551
  }, [requireContentType, typeSelectorAllTypesOptionText, selectOptions]);
6551
6552
  const shouldRenderSelect = memoizedSelectOptions.length > 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.80.1-alpha.170+07c5014817",
3
+ "version": "19.80.1-alpha.200+85da778e5f",
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.80.1-alpha.170+07c5014817",
54
- "@uniformdev/design-system": "19.80.1-alpha.170+07c5014817",
55
- "@uniformdev/mesh-sdk": "19.80.1-alpha.170+07c5014817",
53
+ "@uniformdev/canvas": "19.80.1-alpha.200+85da778e5f",
54
+ "@uniformdev/design-system": "19.80.1-alpha.200+85da778e5f",
55
+ "@uniformdev/mesh-sdk": "19.80.1-alpha.200+85da778e5f",
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": "07c5014817c7acefceb653dc48d26a3b53341c1e"
89
+ "gitHead": "85da778e5fc4f47c47c585b9e4ccbe19a6a21563"
90
90
  }