@uniformdev/mesh-sdk-react 20.50.2-alpha.77 → 20.50.2-alpha.96

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.esm.js CHANGED
@@ -786,11 +786,11 @@ function useVariableEditTransaction({
786
786
  }
787
787
 
788
788
  // src/components/Variables/VariableEditor.tsx
789
- import { zodResolver } from "@hookform/resolvers/zod";
789
+ import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
790
790
  import { Button, Callout, HorizontalRhythm, Input, useShortcut } from "@uniformdev/design-system";
791
791
  import { useLayoutEffect, useRef as useRef2 } from "react";
792
792
  import { useForm } from "react-hook-form";
793
- import * as z from "zod/v3";
793
+ import * as z from "zod";
794
794
 
795
795
  // src/components/Variables/styles/VariableEditor.styles.ts
796
796
  import { css as css2 } from "@emotion/react";
@@ -803,7 +803,7 @@ var variablesFormContainer = css2`
803
803
  // src/components/Variables/VariableEditor.tsx
804
804
  import { jsx as jsx19, jsxs as jsxs5 } from "@emotion/react/jsx-runtime";
805
805
  var schema = z.object({
806
- name: z.string().nonempty("Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
806
+ name: z.string().min(1, "Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
807
807
  default: z.string(),
808
808
  displayName: z.string().optional(),
809
809
  helpText: z.string().optional(),
@@ -829,7 +829,7 @@ function VariableEditor({
829
829
  order: currentVariable == null ? void 0 : currentVariable.order,
830
830
  type: (_d = currentVariable == null ? void 0 : currentVariable.type) != null ? _d : ""
831
831
  },
832
- resolver: zodResolver(schema)
832
+ resolver: standardSchemaResolver(schema)
833
833
  });
834
834
  const submitHandler = handleSubmit((values) => {
835
835
  const finalValue = {
@@ -3905,7 +3905,8 @@ function convertRequestDataToDataType(dataType, requestData) {
3905
3905
 
3906
3906
  // src/components/Delegation/DelegationGate.tsx
3907
3907
  import { Callout as Callout3, LoadingOverlay } from "@uniformdev/design-system";
3908
- import { Fragment as Fragment10, jsx as jsx46, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
3908
+ import { useEffect as useEffect12 } from "react";
3909
+ import { Fragment as Fragment10, jsx as jsx46 } from "@emotion/react/jsx-runtime";
3909
3910
  var defaultLoadingWrapperStyle = {
3910
3911
  position: "relative",
3911
3912
  minHeight: "12rem",
@@ -3918,21 +3919,10 @@ function DefaultDelegationDisabled() {
3918
3919
  return /* @__PURE__ */ jsx46(Callout3, { type: "caution", title: "Feature unavailable", children: "This app requires permissions that are not currently enabled. Please contact your Uniform administrator to enable identity delegation for this integration." });
3919
3920
  }
3920
3921
  function DefaultDelegationError({ error }) {
3921
- return /* @__PURE__ */ jsxs21(Callout3, { type: "error", title: "Connection error", children: [
3922
- /* @__PURE__ */ jsx46("p", { children: "Failed to establish a secure connection with Uniform." }),
3923
- /* @__PURE__ */ jsx46(
3924
- "pre",
3925
- {
3926
- style: {
3927
- marginTop: 8,
3928
- marginBottom: 0,
3929
- whiteSpace: "pre-wrap",
3930
- wordBreak: "break-word"
3931
- },
3932
- children: error.message
3933
- }
3934
- )
3935
- ] });
3922
+ useEffect12(() => {
3923
+ console.error("Delegation connection failed", error);
3924
+ }, [error]);
3925
+ return /* @__PURE__ */ jsx46(Callout3, { type: "error", title: "Connection error", children: /* @__PURE__ */ jsx46("p", { children: "Failed to connect to Uniform. Try again, or contact your administrator if the problem persists." }) });
3936
3926
  }
3937
3927
  function DelegationGate({
3938
3928
  children,
@@ -3964,7 +3954,7 @@ function DelegationGate({
3964
3954
  }
3965
3955
 
3966
3956
  // src/components/Delegation/DelegationProvider.tsx
3967
- import { useCallback as useCallback5, useEffect as useEffect12, useMemo as useMemo12, useRef as useRef7, useState as useState11 } from "react";
3957
+ import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo12, useRef as useRef7, useState as useState11 } from "react";
3968
3958
  import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
3969
3959
  var DEFAULT_REVALIDATE_AFTER_MS = 5 * 60 * 1e3;
3970
3960
  function DelegationProvider({
@@ -4020,7 +4010,7 @@ function DelegationProvider({
4020
4010
  acquiringRef.current = false;
4021
4011
  }
4022
4012
  }, [sdk, onSessionToken, checkActive]);
4023
- useEffect12(() => {
4013
+ useEffect13(() => {
4024
4014
  mountedRef.current = true;
4025
4015
  void acquire();
4026
4016
  return () => {
@@ -4045,7 +4035,7 @@ function DelegationProvider({
4045
4035
  } catch (e) {
4046
4036
  }
4047
4037
  }, [checkActive, acquire]);
4048
- useEffect12(() => {
4038
+ useEffect13(() => {
4049
4039
  if (!revalidateOnFocus) {
4050
4040
  return;
4051
4041
  }
@@ -4083,12 +4073,12 @@ import { IconsProvider, LoadingIndicator as LoadingIndicator2, Theme as Theme2 }
4083
4073
 
4084
4074
  // src/hooks/useInitializeUniformMeshSdk.ts
4085
4075
  import { initializeUniformMeshSDK } from "@uniformdev/mesh-sdk";
4086
- import { useEffect as useEffect13, useRef as useRef8, useState as useState12 } from "react";
4076
+ import { useEffect as useEffect14, useRef as useRef8, useState as useState12 } from "react";
4087
4077
  var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
4088
4078
  const [error, setError] = useState12();
4089
4079
  const [sdk, setSdk] = useState12();
4090
4080
  const initializationInProgress = useRef8(false);
4091
- useEffect13(
4081
+ useEffect14(
4092
4082
  () => {
4093
4083
  if (typeof window === "undefined" || sdk) {
4094
4084
  return;
@@ -4121,7 +4111,7 @@ var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
4121
4111
  };
4122
4112
 
4123
4113
  // src/components/MeshApp.tsx
4124
- import { jsx as jsx48, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
4114
+ import { jsx as jsx48, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
4125
4115
  var MeshApp = ({
4126
4116
  children,
4127
4117
  loadingComponent,
@@ -4139,7 +4129,7 @@ var MeshApp = ({
4139
4129
  }
4140
4130
  throw error;
4141
4131
  }
4142
- return /* @__PURE__ */ jsxs22(UniformMeshSdkContext.Provider, { value: { sdk }, children: [
4132
+ return /* @__PURE__ */ jsxs21(UniformMeshSdkContext.Provider, { value: { sdk }, children: [
4143
4133
  /* @__PURE__ */ jsx48(Theme2, {}),
4144
4134
  /* @__PURE__ */ jsx48(IconsProvider, { children: /* @__PURE__ */ jsx48(UniformMeshLocationContextProvider, { children }) })
4145
4135
  ] });
@@ -4148,14 +4138,14 @@ var MeshApp = ({
4148
4138
  // src/components/ObjectSearch/DataRefreshButton.tsx
4149
4139
  import { css as css14 } from "@emotion/react";
4150
4140
  import { Button as Button2, LoadingIndicator as LoadingIndicator3 } from "@uniformdev/design-system";
4151
- import { jsx as jsx49, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
4141
+ import { jsx as jsx49, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
4152
4142
  var DataRefreshButton = ({
4153
4143
  buttonText,
4154
4144
  isLoading,
4155
4145
  onRefreshData,
4156
4146
  ...props
4157
4147
  }) => {
4158
- return /* @__PURE__ */ jsxs23(Button2, { buttonType: "ghost", onClick: onRefreshData, disabled: isLoading, ...props, children: [
4148
+ return /* @__PURE__ */ jsxs22(Button2, { buttonType: "ghost", onClick: onRefreshData, disabled: isLoading, ...props, children: [
4159
4149
  !isLoading ? null : /* @__PURE__ */ jsx49(
4160
4150
  LoadingIndicator3,
4161
4151
  {
@@ -4370,7 +4360,7 @@ var ObjectListItemUnControlledContent = css15`
4370
4360
  `;
4371
4361
 
4372
4362
  // src/components/ObjectSearch/ObjectSearchListItem.tsx
4373
- import { jsx as jsx51, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
4363
+ import { jsx as jsx51, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
4374
4364
  var ObjectSearchListItem = ({
4375
4365
  id,
4376
4366
  title,
@@ -4395,7 +4385,7 @@ var ObjectSearchListItem = ({
4395
4385
  return onSelectItem([selectedItem]);
4396
4386
  };
4397
4387
  const selected = selectedListItems.some((item) => item.id === id);
4398
- return /* @__PURE__ */ jsxs24(
4388
+ return /* @__PURE__ */ jsxs23(
4399
4389
  "div",
4400
4390
  {
4401
4391
  role: "listitem",
@@ -4403,7 +4393,7 @@ var ObjectSearchListItem = ({
4403
4393
  "data-testid": "list-item",
4404
4394
  ...props,
4405
4395
  children: [
4406
- /* @__PURE__ */ jsxs24(
4396
+ /* @__PURE__ */ jsxs23(
4407
4397
  "div",
4408
4398
  {
4409
4399
  role: "button",
@@ -4420,14 +4410,14 @@ var ObjectSearchListItem = ({
4420
4410
  loading: "lazy"
4421
4411
  }
4422
4412
  ) : null,
4423
- /* @__PURE__ */ jsxs24("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
4413
+ /* @__PURE__ */ jsxs23("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
4424
4414
  !contentType ? null : /* @__PURE__ */ jsx51("span", { css: ObjectListItemSubtitle, children: formatedContentType }),
4425
4415
  /* @__PURE__ */ jsx51("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
4426
4416
  ] })
4427
4417
  ]
4428
4418
  }
4429
4419
  ),
4430
- /* @__PURE__ */ jsxs24("div", { css: ObjectListItemInfoContainer, children: [
4420
+ /* @__PURE__ */ jsxs23("div", { css: ObjectListItemInfoContainer, children: [
4431
4421
  selected ? /* @__PURE__ */ jsx51(Chip, { text: "selected", size: "xs" }) : null,
4432
4422
  !popoverData ? null : /* @__PURE__ */ jsx51(Popover, { ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
4433
4423
  ] }),
@@ -4441,7 +4431,7 @@ var ObjectSearchListItemLoadingSkeleton = () => {
4441
4431
  };
4442
4432
 
4443
4433
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
4444
- import { jsx as jsx52, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
4434
+ import { jsx as jsx52, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
4445
4435
  var ObjectSearchContainer = ({
4446
4436
  label,
4447
4437
  enableDynamicInputToResultId,
@@ -4465,7 +4455,7 @@ var ObjectSearchContainer = ({
4465
4455
  children: /* @__PURE__ */ jsx52(DefaultResultList, {})
4466
4456
  }
4467
4457
  );
4468
- const body = /* @__PURE__ */ jsxs25(VerticalRhythm3, { children: [
4458
+ const body = /* @__PURE__ */ jsxs24(VerticalRhythm3, { children: [
4469
4459
  searchFilters,
4470
4460
  listItems
4471
4461
  ] });
@@ -4496,7 +4486,7 @@ var ObjectSearchContainer = ({
4496
4486
  }
4497
4487
  ]);
4498
4488
  };
4499
- return /* @__PURE__ */ jsxs25(VerticalRhythm3, { children: [
4489
+ return /* @__PURE__ */ jsxs24(VerticalRhythm3, { children: [
4500
4490
  /* @__PURE__ */ jsx52(Container, { backgroundColor: "gray-50", padding: "var(--spacing-base)", border: true, children: label ? /* @__PURE__ */ jsx52(
4501
4491
  InputVariables,
4502
4492
  {
@@ -4552,7 +4542,7 @@ var ObjectSearchFilterGrid = (gridColumns) => css17`
4552
4542
  `;
4553
4543
 
4554
4544
  // src/components/ObjectSearch/ObjectSearchFilter.tsx
4555
- import { jsx as jsx53, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
4545
+ import { jsx as jsx53, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
4556
4546
  var ObjectSearchFilter = ({
4557
4547
  requireContentType,
4558
4548
  typeSelectorAllTypesOptionText = "All content types",
@@ -4583,7 +4573,7 @@ var ObjectSearchFilter = ({
4583
4573
  ];
4584
4574
  }, [requireContentType, typeSelectorAllTypesOptionText, selectOptions]);
4585
4575
  const shouldRenderSelect = memoizedSelectOptions.length > 0;
4586
- return /* @__PURE__ */ jsxs26(
4576
+ return /* @__PURE__ */ jsxs25(
4587
4577
  "fieldset",
4588
4578
  {
4589
4579
  css: [
@@ -4671,13 +4661,13 @@ var ButtonIcon = css18`
4671
4661
  `;
4672
4662
 
4673
4663
  // src/components/ObjectSearch/ObjectSearchResultItemButton.tsx
4674
- import { jsx as jsx56, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
4664
+ import { jsx as jsx56, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
4675
4665
  var ObjectSearchResultItemButton = ({
4676
4666
  text,
4677
4667
  icon,
4678
4668
  ...props
4679
4669
  }) => {
4680
- return /* @__PURE__ */ jsxs27("button", { type: "button", css: ButtonStyles, ...props, children: [
4670
+ return /* @__PURE__ */ jsxs26("button", { type: "button", css: ButtonStyles, ...props, children: [
4681
4671
  !icon ? null : /* @__PURE__ */ jsx56(Image, { src: icon, css: ButtonIcon }),
4682
4672
  text
4683
4673
  ] });
@@ -4687,7 +4677,7 @@ var LinkButton = ({
4687
4677
  icon,
4688
4678
  ...props
4689
4679
  }) => {
4690
- return /* @__PURE__ */ jsxs27("a", { ...props, css: ButtonStyles, target: "_blank", rel: "noopener noreferrer", children: [
4680
+ return /* @__PURE__ */ jsxs26("a", { ...props, css: ButtonStyles, target: "_blank", rel: "noopener noreferrer", children: [
4691
4681
  !icon ? null : /* @__PURE__ */ jsx56(Image, { src: icon, css: ButtonIcon }),
4692
4682
  text
4693
4683
  ] });
@@ -4760,7 +4750,7 @@ var ObjectSearchImage = css19`
4760
4750
  `;
4761
4751
 
4762
4752
  // src/components/ObjectSearch/ObjectSearchResultItem.tsx
4763
- import { jsx as jsx57, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
4753
+ import { jsx as jsx57, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
4764
4754
  var ObjectSearchResultItem = ({
4765
4755
  id,
4766
4756
  title,
@@ -4784,9 +4774,9 @@ var ObjectSearchResultItem = ({
4784
4774
  onSelectItem({ id, title: id });
4785
4775
  onRemove == null ? void 0 : onRemove();
4786
4776
  };
4787
- return /* @__PURE__ */ jsxs28("div", { css: ObjectSearchResultItemContainer, "data-testid": "search-result-item", children: [
4777
+ return /* @__PURE__ */ jsxs27("div", { css: ObjectSearchResultItemContainer, "data-testid": "search-result-item", children: [
4788
4778
  disableDnD ? null : /* @__PURE__ */ jsx57("div", { role: "presentation", className: "drag-handle", css: ObjectSearchDragHandle }),
4789
- /* @__PURE__ */ jsx57("div", { children: /* @__PURE__ */ jsxs28("div", { css: ObjectSearchContentContainer, children: [
4779
+ /* @__PURE__ */ jsx57("div", { children: /* @__PURE__ */ jsxs27("div", { css: ObjectSearchContentContainer, children: [
4790
4780
  !imageUrl ? null : /* @__PURE__ */ jsx57(
4791
4781
  "img",
4792
4782
  {
@@ -4796,9 +4786,9 @@ var ObjectSearchResultItem = ({
4796
4786
  loading: "lazy"
4797
4787
  }
4798
4788
  ),
4799
- /* @__PURE__ */ jsxs28("div", { children: [
4789
+ /* @__PURE__ */ jsxs27("div", { children: [
4800
4790
  /* @__PURE__ */ jsx57("span", { css: ObjectSearchResultItemSubtitle, "data-testid": "sub-title", children: formatedContentType }),
4801
- /* @__PURE__ */ jsxs28("span", { role: "heading", css: ObjectSearchResultItemTitle, "data-testid": "title", children: [
4791
+ /* @__PURE__ */ jsxs27("span", { role: "heading", css: ObjectSearchResultItemTitle, "data-testid": "title", children: [
4802
4792
  onClick ? /* @__PURE__ */ jsx57(
4803
4793
  Link,
4804
4794
  {
@@ -4814,14 +4804,14 @@ var ObjectSearchResultItem = ({
4814
4804
  ) : /* @__PURE__ */ jsx57("span", { children: title != null ? title : name }),
4815
4805
  !popoverData ? null : /* @__PURE__ */ jsx57(Popover2, { ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
4816
4806
  ] }),
4817
- !createdAt && !publishStatus ? null : /* @__PURE__ */ jsxs28("div", { css: ObjectSearchAuthorStateGroup, children: [
4807
+ !createdAt && !publishStatus ? null : /* @__PURE__ */ jsxs27("div", { css: ObjectSearchAuthorStateGroup, children: [
4818
4808
  !(publishStatus == null ? void 0 : publishStatus.text) ? null : /* @__PURE__ */ jsx57(Chip2, { theme: legacyThemeMapper(publishStatus.theme), text: publishStatus.text, size: "xs" }),
4819
- !createdAt && !publishedAt ? null : /* @__PURE__ */ jsxs28("div", { css: ObjectSearchUpdateGroup, children: [
4820
- !createdAt ? null : /* @__PURE__ */ jsxs28("small", { css: ObjectSearchResultItemTimeStamp, children: [
4809
+ !createdAt && !publishedAt ? null : /* @__PURE__ */ jsxs27("div", { css: ObjectSearchUpdateGroup, children: [
4810
+ !createdAt ? null : /* @__PURE__ */ jsxs27("small", { css: ObjectSearchResultItemTimeStamp, children: [
4821
4811
  /* @__PURE__ */ jsx57("strong", { children: "Last updated: " }),
4822
4812
  timeagoFormat(createdAt)
4823
4813
  ] }),
4824
- !publishedAt ? null : /* @__PURE__ */ jsxs28("small", { css: ObjectSearchResultItemTimeStamp, children: [
4814
+ !publishedAt ? null : /* @__PURE__ */ jsxs27("small", { css: ObjectSearchResultItemTimeStamp, children: [
4825
4815
  /* @__PURE__ */ jsx57("strong", { children: "Last published: " }),
4826
4816
  timeagoFormat(publishedAt)
4827
4817
  ] })
@@ -4830,7 +4820,7 @@ var ObjectSearchResultItem = ({
4830
4820
  /* @__PURE__ */ jsx57("div", { children })
4831
4821
  ] })
4832
4822
  ] }) }),
4833
- !editLink && hideRemoveButton ? null : /* @__PURE__ */ jsxs28("div", { css: ObjectSearchAuthorStateGroup, children: [
4823
+ !editLink && hideRemoveButton ? null : /* @__PURE__ */ jsxs27("div", { css: ObjectSearchAuthorStateGroup, children: [
4834
4824
  !editLink ? null : /* @__PURE__ */ jsx57(LinkButton, { text: "Edit", href: editLink, icon: editLinkIcon }),
4835
4825
  hideRemoveButton ? null : /* @__PURE__ */ jsx57(Button3, { buttonType: "ghostDestructive", onClick: onRemoveItem, children: "Remove" })
4836
4826
  ] })
@@ -4884,7 +4874,7 @@ var ObjectSearchResultListTitle = css20`
4884
4874
  `;
4885
4875
 
4886
4876
  // src/components/ObjectSearch/ObjectSearchResultList.tsx
4887
- import { Fragment as Fragment11, jsx as jsx58, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
4877
+ import { Fragment as Fragment11, jsx as jsx58, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
4888
4878
  var DroppableHack2 = Droppable2;
4889
4879
  var DraggableHack2 = Draggable2;
4890
4880
  function ObjectSearchResultList({
@@ -4936,14 +4926,14 @@ function ObjectSearchResultList({
4936
4926
  }
4937
4927
  );
4938
4928
  };
4939
- return /* @__PURE__ */ jsxs29(Fragment11, { children: [
4940
- /* @__PURE__ */ jsxs29("div", { role: "group", css: ObjectSearchResultListContainer, children: [
4941
- !resultLabelOverride ? /* @__PURE__ */ jsxs29("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
4929
+ return /* @__PURE__ */ jsxs28(Fragment11, { children: [
4930
+ /* @__PURE__ */ jsxs28("div", { role: "group", css: ObjectSearchResultListContainer, children: [
4931
+ !resultLabelOverride ? /* @__PURE__ */ jsxs28("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
4942
4932
  /* @__PURE__ */ jsx58("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
4943
4933
  " ",
4944
4934
  !selectedListItems.length ? null : /* @__PURE__ */ jsx58(Counter, { count: selectedListItems.length })
4945
4935
  ] }) : resultLabelOverride,
4946
- /* @__PURE__ */ jsxs29("div", { css: ObjectSearchResultListCounterContainer, children: [
4936
+ /* @__PURE__ */ jsxs28("div", { css: ObjectSearchResultListCounterContainer, children: [
4947
4937
  additionalButtons,
4948
4938
  hideRemoveButton ? null : /* @__PURE__ */ jsx58(
4949
4939
  Button4,
@@ -4963,7 +4953,7 @@ function ObjectSearchResultList({
4963
4953
  droppableId: multiSelectId != null ? multiSelectId : "canvas-multi-select",
4964
4954
  renderClone: getContainerForDnDReparenting ? getDraggableItem : void 0,
4965
4955
  getContainerForClone: getContainerForDnDReparenting,
4966
- children: (provided) => /* @__PURE__ */ jsxs29("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
4956
+ children: (provided) => /* @__PURE__ */ jsxs28("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
4967
4957
  selectedListItems.map((item, i) => {
4968
4958
  return /* @__PURE__ */ jsx58(
4969
4959
  DraggableHack2,
@@ -4985,8 +4975,8 @@ function ObjectSearchResultList({
4985
4975
 
4986
4976
  // src/components/ObjectSearch/QueryFilter.tsx
4987
4977
  import { DebouncedInputKeywordSearch as DebouncedInputKeywordSearch2, Input as Input4, InputSelect as InputSelect4, VerticalRhythm as VerticalRhythm4 } from "@uniformdev/design-system";
4988
- import { useEffect as useEffect14, useState as useState15 } from "react";
4989
- import { jsx as jsx59, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
4978
+ import { useEffect as useEffect15, useState as useState15 } from "react";
4979
+ import { jsx as jsx59, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
4990
4980
  var QueryFilter = ({
4991
4981
  requireContentType,
4992
4982
  queryFilterTitle = "Configure Query",
@@ -5025,12 +5015,12 @@ var QueryFilter = ({
5025
5015
  setQueryState((prev) => ({ ...prev, ...value }));
5026
5016
  onSetQuery({ ...query, ...value });
5027
5017
  };
5028
- useEffect14(() => {
5018
+ useEffect15(() => {
5029
5019
  onSetQuery(queryState);
5030
5020
  }, []);
5031
- return /* @__PURE__ */ jsxs30("fieldset", { children: [
5021
+ return /* @__PURE__ */ jsxs29("fieldset", { children: [
5032
5022
  /* @__PURE__ */ jsx59("span", { css: ObjectSearchFilterContainerLabel, children: queryFilterTitle }),
5033
- /* @__PURE__ */ jsx59("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ jsxs30(VerticalRhythm4, { children: [
5023
+ /* @__PURE__ */ jsx59("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ jsxs29(VerticalRhythm4, { children: [
5034
5024
  /* @__PURE__ */ jsx59(
5035
5025
  InputVariables,
5036
5026
  {
@@ -5053,7 +5043,7 @@ var QueryFilter = ({
5053
5043
  )
5054
5044
  }
5055
5045
  ),
5056
- /* @__PURE__ */ jsxs30("div", { css: ObjectSearchFilterGrid("1fr 100px"), children: [
5046
+ /* @__PURE__ */ jsxs29("div", { css: ObjectSearchFilterGrid("1fr 100px"), children: [
5057
5047
  /* @__PURE__ */ jsx59(
5058
5048
  InputVariables,
5059
5049
  {
@@ -5100,7 +5090,7 @@ var QueryFilter = ({
5100
5090
  }
5101
5091
  )
5102
5092
  ] }),
5103
- /* @__PURE__ */ jsxs30("div", { css: ObjectSearchFilterGrid("2fr 1fr"), children: [
5093
+ /* @__PURE__ */ jsxs29("div", { css: ObjectSearchFilterGrid("2fr 1fr"), children: [
5104
5094
  /* @__PURE__ */ jsx59(
5105
5095
  InputVariables,
5106
5096
  {
@@ -5151,7 +5141,7 @@ var QueryFilter = ({
5151
5141
  };
5152
5142
 
5153
5143
  // src/components/ParamTypeDynamicDataProvider.tsx
5154
- import { useEffect as useEffect15, useMemo as useMemo15, useRef as useRef9 } from "react";
5144
+ import { useEffect as useEffect16, useMemo as useMemo15, useRef as useRef9 } from "react";
5155
5145
  import { jsx as jsx60 } from "@emotion/react/jsx-runtime";
5156
5146
  function ParamTypeDynamicDataProvider(props) {
5157
5147
  const { children } = props;
@@ -5175,7 +5165,7 @@ var JsonMeshVariableEditor = ({
5175
5165
  }) => {
5176
5166
  const sillyRef = useRef9(false);
5177
5167
  const { editConnectedData } = useMeshLocation("paramType");
5178
- useEffect15(() => {
5168
+ useEffect16(() => {
5179
5169
  if (sillyRef.current) {
5180
5170
  return;
5181
5171
  }
@@ -5675,7 +5665,7 @@ var DateEditor = ({
5675
5665
 
5676
5666
  // src/components/SearchAndFilter/editors/DateRangeEditor.tsx
5677
5667
  import { Input as Input6 } from "@uniformdev/design-system";
5678
- import { useEffect as useEffect16, useState as useState17 } from "react";
5668
+ import { useEffect as useEffect17, useState as useState17 } from "react";
5679
5669
  import { useDebounce as useDebounce3 } from "react-use";
5680
5670
 
5681
5671
  // src/components/SearchAndFilter/editors/shared/ErrorContainer.tsx
@@ -5702,7 +5692,7 @@ var twoColumnGrid = {
5702
5692
  };
5703
5693
 
5704
5694
  // src/components/SearchAndFilter/editors/DateRangeEditor.tsx
5705
- import { Fragment as Fragment12, jsx as jsx63, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
5695
+ import { Fragment as Fragment12, jsx as jsx63, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
5706
5696
  var DateRangeEditor = ({
5707
5697
  ariaLabel,
5708
5698
  onChange,
@@ -5725,7 +5715,7 @@ var DateRangeEditor = ({
5725
5715
  500,
5726
5716
  [minDateValue, maxDateValue]
5727
5717
  );
5728
- useEffect16(() => {
5718
+ useEffect17(() => {
5729
5719
  if (!minDateValue || !maxDateValue) {
5730
5720
  return;
5731
5721
  }
@@ -5760,8 +5750,8 @@ var DateRangeEditor = ({
5760
5750
  setMaxDateValue("");
5761
5751
  }
5762
5752
  }, [minDateValue, maxDateValue, setError]);
5763
- return /* @__PURE__ */ jsxs31(Fragment12, { children: [
5764
- /* @__PURE__ */ jsxs31("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
5753
+ return /* @__PURE__ */ jsxs30(Fragment12, { children: [
5754
+ /* @__PURE__ */ jsxs30("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
5765
5755
  /* @__PURE__ */ jsx63(
5766
5756
  Input6,
5767
5757
  {
@@ -5939,9 +5929,9 @@ var NumberEditor = ({
5939
5929
 
5940
5930
  // src/components/SearchAndFilter/editors/NumberRangeEditor.tsx
5941
5931
  import { Input as Input8 } from "@uniformdev/design-system";
5942
- import { useEffect as useEffect17, useState as useState19 } from "react";
5932
+ import { useEffect as useEffect18, useState as useState19 } from "react";
5943
5933
  import { useDebounce as useDebounce5 } from "react-use";
5944
- import { Fragment as Fragment13, jsx as jsx67, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
5934
+ import { Fragment as Fragment13, jsx as jsx67, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
5945
5935
  var NumberRangeEditor = ({
5946
5936
  onChange,
5947
5937
  disabled,
@@ -5964,7 +5954,7 @@ var NumberRangeEditor = ({
5964
5954
  500,
5965
5955
  [minValue, maxValue]
5966
5956
  );
5967
- useEffect17(() => {
5957
+ useEffect18(() => {
5968
5958
  if (!maxValue && !minValue) {
5969
5959
  return;
5970
5960
  }
@@ -5986,8 +5976,8 @@ var NumberRangeEditor = ({
5986
5976
  setMaxValue(maxValue);
5987
5977
  }
5988
5978
  }, [maxValue, minValue, setError]);
5989
- return /* @__PURE__ */ jsxs32(Fragment13, { children: [
5990
- /* @__PURE__ */ jsxs32("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
5979
+ return /* @__PURE__ */ jsxs31(Fragment13, { children: [
5980
+ /* @__PURE__ */ jsxs31("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
5991
5981
  /* @__PURE__ */ jsx67(
5992
5982
  Input8,
5993
5983
  {
@@ -6480,7 +6470,7 @@ var SearchAndFilterAdditionalContainer = css21`
6480
6470
  `;
6481
6471
 
6482
6472
  // src/components/SearchAndFilter/FilterButton.tsx
6483
- import { jsx as jsx73, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
6473
+ import { jsx as jsx73, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
6484
6474
  var FilterButton2 = ({
6485
6475
  text = "Filters",
6486
6476
  icon = customIcons["filter-add"],
@@ -6490,7 +6480,7 @@ var FilterButton2 = ({
6490
6480
  showDropdownIcon,
6491
6481
  ...props
6492
6482
  }) => {
6493
- return /* @__PURE__ */ jsxs33(
6483
+ return /* @__PURE__ */ jsxs32(
6494
6484
  "button",
6495
6485
  {
6496
6486
  type: "button",
@@ -6516,7 +6506,7 @@ import { CgClose } from "@react-icons/all-files/cg/CgClose";
6516
6506
  import { hasReferencedVariables as hasReferencedVariables2 } from "@uniformdev/canvas";
6517
6507
  import { Icon as Icon3, InputKeywordSearch } from "@uniformdev/design-system";
6518
6508
  import { CLEAR_EDITOR_COMMAND as CLEAR_EDITOR_COMMAND2 } from "lexical";
6519
- import { useEffect as useEffect19, useRef as useRef10, useState as useState22 } from "react";
6509
+ import { useEffect as useEffect20, useRef as useRef10, useState as useState22 } from "react";
6520
6510
  import { useDebounce as useDebounce7 } from "react-use";
6521
6511
  import { v4 as v42 } from "uuid";
6522
6512
 
@@ -6527,7 +6517,7 @@ import {
6527
6517
  useCallback as useCallback7,
6528
6518
  useContext as useContext7,
6529
6519
  useDeferredValue as useDeferredValue2,
6530
- useEffect as useEffect18,
6520
+ useEffect as useEffect19,
6531
6521
  useMemo as useMemo21,
6532
6522
  useState as useState21
6533
6523
  } from "react";
@@ -6687,7 +6677,7 @@ var SearchAndFilterProvider = ({
6687
6677
  return filters;
6688
6678
  }
6689
6679
  }, [filters]);
6690
- useEffect18(() => {
6680
+ useEffect19(() => {
6691
6681
  if (filterVisibility) {
6692
6682
  const handleEscKeyFilterClose = (e) => {
6693
6683
  if (e.key === "Escape") {
@@ -6730,7 +6720,7 @@ var useSearchAndFilter = () => {
6730
6720
  };
6731
6721
 
6732
6722
  // src/components/SearchAndFilter/FilterControls.tsx
6733
- import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
6723
+ import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
6734
6724
  var FilterControls = ({
6735
6725
  children,
6736
6726
  hideSearchInput
@@ -6754,13 +6744,13 @@ var FilterControls = ({
6754
6744
  300,
6755
6745
  [localSearchTerm]
6756
6746
  );
6757
- useEffect19(() => {
6747
+ useEffect20(() => {
6758
6748
  if (searchTerm === "") {
6759
6749
  setLocalSearchTerm("");
6760
6750
  setIdToResetInputVariables(`data-resource-search-term-input-${v42()}`);
6761
6751
  }
6762
6752
  }, [searchTerm]);
6763
- return /* @__PURE__ */ jsxs34(Fragment14, { children: [
6753
+ return /* @__PURE__ */ jsxs33(Fragment14, { children: [
6764
6754
  /* @__PURE__ */ jsx76(
6765
6755
  FilterButton2,
6766
6756
  {
@@ -6774,7 +6764,7 @@ var FilterControls = ({
6774
6764
  dataTestId: "filters-button"
6775
6765
  }
6776
6766
  ),
6777
- hideSearchInput ? null : /* @__PURE__ */ jsxs34("div", { css: BindableKeywordSearchInputStyles, "data-testid": "search-container", children: [
6767
+ hideSearchInput ? null : /* @__PURE__ */ jsxs33("div", { css: BindableKeywordSearchInputStyles, "data-testid": "search-container", children: [
6778
6768
  /* @__PURE__ */ jsx76(
6779
6769
  InputVariables,
6780
6770
  {
@@ -6838,7 +6828,7 @@ function isFilterBindable(filter, operator) {
6838
6828
  }
6839
6829
 
6840
6830
  // src/components/SearchAndFilter/FilterItem.tsx
6841
- import { jsx as jsx77, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
6831
+ import { jsx as jsx77, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
6842
6832
  var FilterItem = ({
6843
6833
  index,
6844
6834
  operatorOptions,
@@ -6886,9 +6876,9 @@ var FilterItem = ({
6886
6876
  } : {};
6887
6877
  const CustomLeftHandComponent = selectedFieldValue == null ? void 0 : selectedFieldValue.leftHandSideComponentWhenSelected;
6888
6878
  const isEmptyOperator = metaDataPossibleOptions === "empty";
6889
- return /* @__PURE__ */ jsxs35("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
6879
+ return /* @__PURE__ */ jsxs34("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
6890
6880
  /* @__PURE__ */ jsx77("span", { children: index === 0 ? initialCriteriaTitle : criteriaGroupOperator }),
6891
- /* @__PURE__ */ jsxs35("div", { css: [ConditionalInputRow, isEmptyOperator ? ConditionalInputRowEmpty : null], children: [
6881
+ /* @__PURE__ */ jsxs34("div", { css: [ConditionalInputRow, isEmptyOperator ? ConditionalInputRowEmpty : null], children: [
6892
6882
  CustomLeftHandComponent ? /* @__PURE__ */ jsx77(
6893
6883
  CustomLeftHandComponent,
6894
6884
  {
@@ -6987,14 +6977,14 @@ import { Icon as Icon5 } from "@uniformdev/design-system";
6987
6977
 
6988
6978
  // src/components/SearchAndFilter/FilterMenu.tsx
6989
6979
  import { HorizontalRhythm as HorizontalRhythm8, VerticalRhythm as VerticalRhythm6 } from "@uniformdev/design-system";
6990
- import React7, { useEffect as useEffect20 } from "react";
6991
- import { jsx as jsx78, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
6980
+ import React8, { useEffect as useEffect21 } from "react";
6981
+ import { jsx as jsx78, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
6992
6982
  var SearchAndFilterOptionsContainer2 = ({
6993
6983
  buttonRow,
6994
6984
  additionalFiltersContainer,
6995
6985
  children
6996
6986
  }) => {
6997
- return /* @__PURE__ */ jsxs36("div", { css: SearchAndFilterOptionsContainer, children: [
6987
+ return /* @__PURE__ */ jsxs35("div", { css: SearchAndFilterOptionsContainer, children: [
6998
6988
  /* @__PURE__ */ jsx78("div", { css: SearchAndFilterOptionsInnerContainer, children }),
6999
6989
  buttonRow ? /* @__PURE__ */ jsx78(
7000
6990
  HorizontalRhythm8,
@@ -7019,20 +7009,20 @@ var FilterMenu = ({
7019
7009
  resetButtonText = "reset"
7020
7010
  }) => {
7021
7011
  const { filterVisibility, setFilterVisibility, handleResetFilters, filters } = useSearchAndFilter();
7022
- const innerMenuRef = React7.useRef(null);
7023
- useEffect20(() => {
7012
+ const innerMenuRef = React8.useRef(null);
7013
+ useEffect21(() => {
7024
7014
  var _a;
7025
7015
  if (filterVisibility) {
7026
7016
  (_a = innerMenuRef.current) == null ? void 0 : _a.focus();
7027
7017
  }
7028
7018
  }, [filterVisibility]);
7029
- return /* @__PURE__ */ jsx78(VerticalRhythm6, { gap: "sm", "aria-haspopup": "true", id, "data-testid": dataTestId, children: filterVisibility ? /* @__PURE__ */ jsxs36(
7019
+ return /* @__PURE__ */ jsx78(VerticalRhythm6, { gap: "sm", "aria-haspopup": "true", id, "data-testid": dataTestId, children: filterVisibility ? /* @__PURE__ */ jsxs35(
7030
7020
  SearchAndFilterOptionsContainer2,
7031
7021
  {
7032
7022
  buttonRow: menuControls,
7033
7023
  additionalFiltersContainer,
7034
7024
  children: [
7035
- /* @__PURE__ */ jsxs36(HorizontalRhythm8, { gap: "sm", align: "center", justify: "space-between", children: [
7025
+ /* @__PURE__ */ jsxs35(HorizontalRhythm8, { gap: "sm", align: "center", justify: "space-between", children: [
7036
7026
  filterTitle ? /* @__PURE__ */ jsx78("span", { css: Title, ref: innerMenuRef, tabIndex: 0, children: filterTitle }) : null,
7037
7027
  (filters == null ? void 0 : filters.length) && resetButtonText ? /* @__PURE__ */ jsx78(
7038
7028
  "button",
@@ -7145,7 +7135,7 @@ function hasBindings(currentValue) {
7145
7135
  }
7146
7136
 
7147
7137
  // src/components/SearchAndFilter/FilterItems.tsx
7148
- import { jsx as jsx79, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
7138
+ import { jsx as jsx79, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
7149
7139
  var FilterItems = ({
7150
7140
  addButtonText = "add condition",
7151
7141
  additionalFiltersContainer,
@@ -7187,7 +7177,7 @@ var FilterItems = ({
7187
7177
  {
7188
7178
  id: "search-and-filter-options",
7189
7179
  dataTestId: "search-and-filter-options",
7190
- menuControls: /* @__PURE__ */ jsxs37(
7180
+ menuControls: /* @__PURE__ */ jsxs36(
7191
7181
  "button",
7192
7182
  {
7193
7183
  type: "button",
@@ -7236,7 +7226,7 @@ import { VerticalRhythm as VerticalRhythm7 } from "@uniformdev/design-system";
7236
7226
 
7237
7227
  // src/components/SearchAndFilter/SearchAndFilterResultContainer.tsx
7238
7228
  import { Button as Button5, Callout as Callout5, HorizontalRhythm as HorizontalRhythm9, Paragraph } from "@uniformdev/design-system";
7239
- import { Fragment as Fragment15, jsx as jsx80, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
7229
+ import { Fragment as Fragment15, jsx as jsx80, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
7240
7230
  var SearchAndFilterResultContainer = ({
7241
7231
  buttonText,
7242
7232
  clearButtonLabel = "clear",
@@ -7287,16 +7277,16 @@ var SearchAndFilterResultContainer = ({
7287
7277
  handleResetFilters();
7288
7278
  }
7289
7279
  };
7290
- return /* @__PURE__ */ jsxs38(Fragment15, { children: [
7291
- /* @__PURE__ */ jsxs38(HorizontalRhythm9, { children: [
7292
- /* @__PURE__ */ jsxs38("span", { children: [
7280
+ return /* @__PURE__ */ jsxs37(Fragment15, { children: [
7281
+ /* @__PURE__ */ jsxs37(HorizontalRhythm9, { children: [
7282
+ /* @__PURE__ */ jsxs37("span", { children: [
7293
7283
  totalResults,
7294
7284
  " results ",
7295
7285
  searchTerm ? `for "${searchTerm}"` : null
7296
7286
  ] }),
7297
7287
  !searchTerm || hideClearButton ? null : /* @__PURE__ */ jsx80(Button5, { buttonType: "ghostDestructive", size: "zero", onClick: handleClearSearch, children: clearButtonLabel })
7298
7288
  ] }),
7299
- totalResults === 0 ? /* @__PURE__ */ jsxs38(Callout5, { title: automateCalloutTitle, type: "note", children: [
7289
+ totalResults === 0 ? /* @__PURE__ */ jsxs37(Callout5, { title: automateCalloutTitle, type: "note", children: [
7300
7290
  calloutText ? /* @__PURE__ */ jsx80(Paragraph, { children: calloutText }) : null,
7301
7291
  hideClearButton ? null : /* @__PURE__ */ jsx80(
7302
7292
  Button5,
@@ -7313,7 +7303,7 @@ var SearchAndFilterResultContainer = ({
7313
7303
  };
7314
7304
 
7315
7305
  // src/components/SearchAndFilter/SearchAndFilter.tsx
7316
- import { jsx as jsx81, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
7306
+ import { jsx as jsx81, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
7317
7307
  var SearchAndFilter = ({
7318
7308
  filters,
7319
7309
  filterOptions,
@@ -7347,8 +7337,8 @@ var SearchAndFilter = ({
7347
7337
  filterMapper: filterMapper2,
7348
7338
  allowBindingSearchTerm,
7349
7339
  onResetFilterValues,
7350
- children: /* @__PURE__ */ jsxs39(VerticalRhythm7, { "data-testid": "search-and-filter", children: [
7351
- /* @__PURE__ */ jsxs39("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
7340
+ children: /* @__PURE__ */ jsxs38(VerticalRhythm7, { "data-testid": "search-and-filter", children: [
7341
+ /* @__PURE__ */ jsxs38("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
7352
7342
  /* @__PURE__ */ jsx81(
7353
7343
  "div",
7354
7344
  {
@@ -7643,7 +7633,7 @@ var InputVariableWrapper = css22`
7643
7633
  `;
7644
7634
 
7645
7635
  // src/components/SearchAndFilter/SortItems.tsx
7646
- import { jsx as jsx83, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
7636
+ import { jsx as jsx83, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
7647
7637
  var SortItems = ({
7648
7638
  sortByLabel = "Sort by",
7649
7639
  localeLabel = "Show locale",
@@ -7665,10 +7655,10 @@ var SortItems = ({
7665
7655
  return (_a2 = item.options) == null ? void 0 : _a2.find((option) => option.value === sortField);
7666
7656
  })) == null ? void 0 : _a.options) == null ? void 0 : _b.find((nestedOption) => nestedOption.value === sortField);
7667
7657
  const localeLabelValue = sortOptions.length > 1 ? localeLabel : `${localeLabel}s`;
7668
- return /* @__PURE__ */ jsxs40("div", { css: [SortFilterWrapper(hideLocaleOptions)], "data-testid": "sorting-options", children: [
7669
- /* @__PURE__ */ jsxs40(VerticalRhythm8, { gap: "xs", children: [
7658
+ return /* @__PURE__ */ jsxs39("div", { css: [SortFilterWrapper(hideLocaleOptions)], "data-testid": "sorting-options", children: [
7659
+ /* @__PURE__ */ jsxs39(VerticalRhythm8, { gap: "xs", children: [
7670
7660
  /* @__PURE__ */ jsx83("span", { css: Title2, children: sortByLabel }),
7671
- /* @__PURE__ */ jsxs40("div", { css: SortFilterInputRow, children: [
7661
+ /* @__PURE__ */ jsxs39("div", { css: SortFilterInputRow, children: [
7672
7662
  /* @__PURE__ */ jsx83(
7673
7663
  InputVariables,
7674
7664
  {
@@ -7778,7 +7768,7 @@ function createLocationValidator(setValue, validate) {
7778
7768
 
7779
7769
  // src/utils/useContentDataResourceLocaleInfo.ts
7780
7770
  import { bindVariables as bindVariables2, createVariableReference as createVariableReference4, LOCALE_DYNAMIC_INPUT_NAME as LOCALE_DYNAMIC_INPUT_NAME2 } from "@uniformdev/canvas";
7781
- import { useEffect as useEffect21, useRef as useRef11 } from "react";
7771
+ import { useEffect as useEffect22, useRef as useRef11 } from "react";
7782
7772
  function useContentDataResourceLocaleInfo({
7783
7773
  locale,
7784
7774
  defaultLocale,
@@ -7791,7 +7781,7 @@ function useContentDataResourceLocaleInfo({
7791
7781
  const { flatVariables } = useVariables();
7792
7782
  const effectiveLocale = locale != null ? locale : dynamicInputs[LOCALE_DYNAMIC_INPUT_NAME2] ? createVariableReference4(LOCALE_DYNAMIC_INPUT_NAME2) : defaultLocale != null ? defaultLocale : "";
7793
7783
  const boundLocale = (_a = bindVariables2({ variables: flatVariables, value: effectiveLocale }).result) != null ? _a : effectiveLocale;
7794
- useEffect21(() => {
7784
+ useEffect22(() => {
7795
7785
  if (locale === void 0 && effectiveLocale && setLocaleRef.current) {
7796
7786
  setLocaleRef.current(effectiveLocale);
7797
7787
  }