@uniformdev/mesh-sdk-react 20.46.1-alpha.9 → 20.47.1-alpha.3

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
@@ -471,14 +471,14 @@ function deserializeVariablesEditorState(serialized) {
471
471
  children: [
472
472
  {
473
473
  children: result,
474
- direction: "ltr",
474
+ direction: null,
475
475
  format: "",
476
476
  indent: 0,
477
477
  type: "paragraph",
478
478
  version: 1
479
479
  }
480
480
  ],
481
- direction: "ltr",
481
+ direction: null,
482
482
  format: "",
483
483
  indent: 0,
484
484
  type: "root",
@@ -774,7 +774,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
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";
777
+ import * as z from "zod/v3";
778
778
 
779
779
  // src/components/Variables/styles/VariableEditor.styles.ts
780
780
  import { css as css2 } from "@emotion/react";
@@ -1146,18 +1146,17 @@ var DISCONNECT_VARIABLE_COMMAND = createCommand(
1146
1146
  "uniform:disconnect-variable"
1147
1147
  );
1148
1148
  var INSERT_VARIABLE_COMMAND = createCommand("uniform:insert-variable");
1149
- var TRIGGER = "\\$\\$";
1150
- var LENGTH_LIMIT = 20;
1151
- var DollarSignVariablesRegex = new RegExp(`(^.*)(${TRIGGER}(.{0,${LENGTH_LIMIT}}))$`);
1149
+ var DollarSignVariablesRegex = /(^.*)(\$\$(.{0,20}))$/;
1152
1150
  function getPossibleQueryMatch(text) {
1153
1151
  const match = DollarSignVariablesRegex.exec(text);
1154
1152
  if (match !== null) {
1155
1153
  const maybeLeadingWhitespace = match[1];
1156
1154
  const matchingString = match[3];
1155
+ const replaceableString = match[2];
1157
1156
  return {
1158
1157
  leadOffset: match.index + maybeLeadingWhitespace.length,
1159
1158
  matchingString,
1160
- replaceableString: match[2]
1159
+ replaceableString
1161
1160
  };
1162
1161
  }
1163
1162
  return null;
@@ -1277,7 +1276,10 @@ function VariablesPlugin({
1277
1276
  filteredGroupedVariables: groupedVariables.map((group) => ({
1278
1277
  name: group.name,
1279
1278
  variables: group.variables.filter(
1280
- (option) => option.name.toLowerCase().includes(query) || option.name === ADD_VARIABLE_OPTION
1279
+ (option) => {
1280
+ var _a;
1281
+ return option.name === ADD_VARIABLE_OPTION || option.name.toLowerCase().includes(query) || ((_a = option.displayName) == null ? void 0 : _a.toLowerCase().includes(query));
1282
+ }
1281
1283
  )
1282
1284
  })).filter((group) => group.variables.length > 0),
1283
1285
  filteredMenuOptions: menuOptions.filter(
@@ -1568,13 +1570,13 @@ var VariableNode = class _VariableNode extends DecoratorNode {
1568
1570
  constructor(reference, state, key) {
1569
1571
  super(key);
1570
1572
  this.reference = reference;
1571
- this.__state = state;
1573
+ this.__variableState = state;
1572
1574
  }
1573
1575
  static getType() {
1574
1576
  return "variable";
1575
1577
  }
1576
1578
  static clone(node) {
1577
- return new _VariableNode(node.reference, { ...node.__state }, node.__key);
1579
+ return new _VariableNode(node.reference, { ...node.__variableState }, node.__key);
1578
1580
  }
1579
1581
  /** Imports the node from serialized JSON (i.e. the data provided to the editor's initial state) */
1580
1582
  static importJSON(serializedNode) {
@@ -1589,14 +1591,14 @@ var VariableNode = class _VariableNode extends DecoratorNode {
1589
1591
  }
1590
1592
  /** Gets the node's current state */
1591
1593
  getState() {
1592
- return this.getLatest().__state;
1594
+ return this.getLatest().__variableState;
1593
1595
  }
1594
1596
  /**
1595
1597
  * Updates the node's variables state so it knows its current validity, display name, etc
1596
1598
  * The plugin updates this whenever the variables prop changes.
1597
1599
  */
1598
1600
  setState(state) {
1599
- this.getWritable().__state = state;
1601
+ this.getWritable().__variableState = state;
1600
1602
  }
1601
1603
  /**
1602
1604
  * Serializes the node to JSON for editor initial state
@@ -1636,7 +1638,7 @@ var VariableNode = class _VariableNode extends DecoratorNode {
1636
1638
  * rely on Context, etc in this renderer.
1637
1639
  */
1638
1640
  decorate() {
1639
- return /* @__PURE__ */ jsx22(VariableNodeComponent, { state: this.__state, reference: this.reference, nodeKey: this.__key });
1641
+ return /* @__PURE__ */ jsx22(VariableNodeComponent, { state: this.__variableState, reference: this.reference, nodeKey: this.__key });
1640
1642
  }
1641
1643
  };
1642
1644
  function $convertBindingElement(domNode) {
@@ -1908,27 +1910,40 @@ var placeholderCompact = css4`
1908
1910
  import { css as css5 } from "@emotion/react";
1909
1911
  import { scrollbarStyles } from "@uniformdev/design-system";
1910
1912
  var variableBindButton = css5`
1911
- align-items: center;
1912
- border: none;
1913
+ --hover-color: var(--accent-dark-hover);
1914
+ --active-color: var(--accent-dark-active);
1915
+ border: 1px solid transparent;
1913
1916
  border-radius: var(--rounded-base);
1914
1917
  background: none;
1918
+ color: var(--gray-300);
1915
1919
  display: flex;
1916
- height: 1.2rem;
1917
- padding: var(--spacing-2xs);
1920
+ align-items: center;
1921
+ justify-content: center;
1922
+ max-width: fit-content;
1923
+ padding: 0.125rem;
1918
1924
  transition:
1925
+ border-color var(--duration-fast) var(--timing-ease-out),
1919
1926
  background var(--duration-fast) var(--timing-ease-out),
1920
- color var(--duration-fast) var(--timing-ease-out);
1921
- width: 1.2rem;
1927
+ color var(--duration-fast) var(--timing-ease-out),
1928
+ box-shadow var(--duration-fast) var(--timing-ease-out);
1922
1929
 
1923
- &:hover,
1924
- &[aria-pressed='true']:not(:disabled) {
1925
- background: var(--brand-secondary-3);
1926
- color: var(--white);
1930
+ &:hover:not([aria-disabled='true']),
1931
+ &:focus:not([aria-disabled='true']),
1932
+ &:focus-within:not([aria-disabled='true']) {
1933
+ color: var(--gray-500);
1934
+ border-color: var(--hover-color);
1935
+ }
1936
+
1937
+ &:active:not([aria-disabled='true']),
1938
+ &[aria-pressed='true']:not([aria-disabled='true']) {
1939
+ color: var(--active-color);
1927
1940
  }
1928
1941
 
1929
1942
  &[aria-disabled='true'] {
1930
1943
  background: none;
1931
1944
  color: currentColor;
1945
+ opacity: var(--opacity-50);
1946
+ cursor: default;
1932
1947
  }
1933
1948
 
1934
1949
  // fixes menu resizing issue within iframes
@@ -2002,8 +2017,7 @@ var inputMultiLine = (lines) => css5`
2002
2017
 
2003
2018
  // src/components/Variables/toolbox/InputVariablesProvider.tsx
2004
2019
  import { hasReferencedVariables } from "@uniformdev/canvas";
2005
- import * as React4 from "react";
2006
- import { useMemo as useMemo7 } from "react";
2020
+ import { useEffect as useEffect7, useMemo as useMemo7, useState as useState5 } from "react";
2007
2021
  function useInputVariablesState({
2008
2022
  value,
2009
2023
  onChange,
@@ -2019,14 +2033,14 @@ function useInputVariablesState({
2019
2033
  }) {
2020
2034
  const { variables } = useVariables(true);
2021
2035
  const variableReferenceCountInValue = hasReferencedVariables(value != null ? value : "");
2022
- const [lastKnownId, setLastKnownId] = React4.useState(id);
2023
- const [hadVariablesInValue, setHadVariablesInValue] = React4.useState(variableReferenceCountInValue > 0);
2024
- React4.useEffect(() => {
2036
+ const [lastKnownId, setLastKnownId] = useState5(id);
2037
+ const [hadVariablesInValue, setHadVariablesInValue] = useState5(variableReferenceCountInValue > 0);
2038
+ useEffect7(() => {
2025
2039
  if (variableReferenceCountInValue) {
2026
2040
  setHadVariablesInValue(true);
2027
2041
  }
2028
2042
  }, [variableReferenceCountInValue]);
2029
- React4.useEffect(() => {
2043
+ useEffect7(() => {
2030
2044
  if (id !== lastKnownId) {
2031
2045
  setLastKnownId(id);
2032
2046
  setHadVariablesInValue(variableReferenceCountInValue > 0);
@@ -2076,30 +2090,6 @@ var labelText = css6`
2076
2090
  font-weight: var(--fw-regular);
2077
2091
  margin: 0 0 var(--spacing-xs);
2078
2092
  `;
2079
- var variableBindButton2 = css6`
2080
- align-items: center;
2081
- border: none;
2082
- border-radius: var(--rounded-base);
2083
- background: none;
2084
- display: flex;
2085
- height: 1.2rem;
2086
- padding: var(--spacing-2xs);
2087
- transition:
2088
- background var(--duration-fast) var(--timing-ease-out),
2089
- color var(--duration-fast) var(--timing-ease-out);
2090
- width: 1.2rem;
2091
-
2092
- &:hover,
2093
- &[aria-pressed='true']:not(:disabled) {
2094
- background: var(--brand-secondary-3);
2095
- color: var(--white);
2096
- }
2097
-
2098
- &[aria-disabled='true'] {
2099
- background: none;
2100
- color: currentColor;
2101
- }
2102
- `;
2103
2093
 
2104
2094
  // src/components/Variables/toolbox/VariablesComposerVariableMenu.tsx
2105
2095
  import { useLexicalComposerContext as useLexicalComposerContext6 } from "@lexical/react/LexicalComposerContext";
@@ -2146,7 +2136,7 @@ function SelectVariableMenu({
2146
2136
  css: [menuBtn, buttonCss],
2147
2137
  type: "button",
2148
2138
  "data-testid": "insert-variable",
2149
- children: /* @__PURE__ */ jsx23(CgUsbC, { size: "1.4rem" })
2139
+ children: /* @__PURE__ */ jsx23(CgUsbC, { size: "1rem" })
2150
2140
  }
2151
2141
  ),
2152
2142
  children: [
@@ -2239,7 +2229,7 @@ function VariableField({
2239
2229
  VariablesComposerVariableMenu,
2240
2230
  {
2241
2231
  ...selectVariableMenuOptions,
2242
- buttonCss: [variableBindButton2, selectVariableMenuOptions == null ? void 0 : selectVariableMenuOptions.buttonCss],
2232
+ buttonCss: [variableBindButton, selectVariableMenuOptions == null ? void 0 : selectVariableMenuOptions.buttonCss],
2243
2233
  buttonProps: isActive ? { "aria-pressed": "true" } : void 0
2244
2234
  }
2245
2235
  ) }) : null;
@@ -2310,8 +2300,8 @@ function VariablesComposer(props) {
2310
2300
  // eslint-disable-next-line react-hooks/exhaustive-deps
2311
2301
  []
2312
2302
  );
2313
- const editorState = useRef5();
2314
- const updateTimeout = useRef5();
2303
+ const editorState = useRef5(void 0);
2304
+ const updateTimeout = useRef5(void 0);
2315
2305
  if (typeof document === "undefined") return null;
2316
2306
  return /* @__PURE__ */ jsxs10(LexicalComposer, { initialConfig: editorConfig, children: [
2317
2307
  /* @__PURE__ */ jsx26(
@@ -2352,7 +2342,7 @@ import {
2352
2342
  } from "@lexical/clipboard";
2353
2343
  import { useLexicalComposerContext as useLexicalComposerContext9 } from "@lexical/react/LexicalComposerContext";
2354
2344
  import { ContentEditable } from "@lexical/react/LexicalContentEditable";
2355
- import LexicalErrorBoundary from "@lexical/react/LexicalErrorBoundary";
2345
+ import { LexicalErrorBoundary } from "@lexical/react/LexicalErrorBoundary";
2356
2346
  import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
2357
2347
  import { PlainTextPlugin } from "@lexical/react/LexicalPlainTextPlugin";
2358
2348
  import { mergeRegister as mergeRegister4, objectKlassEquals } from "@lexical/utils";
@@ -2528,6 +2518,7 @@ function InputVariables(props) {
2528
2518
  portal: renderMenuInPortal,
2529
2519
  replaceValueOnVariableInsert: useInputWithNoVariables,
2530
2520
  useInputWhenNoVariables: useInputWithNoVariables,
2521
+ isActive: hadVariablesInValue,
2531
2522
  children: /* @__PURE__ */ jsx28(
2532
2523
  VariablesComposerInput,
2533
2524
  {
@@ -2616,6 +2607,7 @@ function InputVariablesOverlayMenu({
2616
2607
  disabled,
2617
2608
  useInputWhenNoVariables,
2618
2609
  portal,
2610
+ isActive,
2619
2611
  ...props
2620
2612
  }) {
2621
2613
  if (disabled) {
@@ -2629,7 +2621,8 @@ function InputVariablesOverlayMenu({
2629
2621
  ...props,
2630
2622
  portal,
2631
2623
  tip: useInputWhenNoVariables ? void 0 : "Tip: access this list by typing $$",
2632
- buttonCss: menuBtn2
2624
+ buttonCss: [menuBtn2, variableBindButton],
2625
+ buttonProps: isActive ? { "aria-pressed": "true" } : void 0
2633
2626
  }
2634
2627
  )
2635
2628
  ] });
@@ -2682,7 +2675,7 @@ function ParameterConnectionIndicator({
2682
2675
  css: [menuBtn, variableBindButton],
2683
2676
  type: "button",
2684
2677
  "data-testid": "insert-variable",
2685
- children: /* @__PURE__ */ jsx29(CgUsbC2, { size: "1.4rem" })
2678
+ children: /* @__PURE__ */ jsx29(CgUsbC2, { size: "1rem" })
2686
2679
  }
2687
2680
  )
2688
2681
  }
@@ -2902,6 +2895,7 @@ ${prettifyBindExpression(bindExpression)}`
2902
2895
 
2903
2896
  // src/components/Variables/VariablesList.tsx
2904
2897
  import { css as css10 } from "@emotion/react";
2898
+ import { Draggable, Droppable } from "@hello-pangea/dnd";
2905
2899
  import { CgTrash } from "@react-icons/all-files/cg/CgTrash";
2906
2900
  import {
2907
2901
  AddListButton,
@@ -2914,11 +2908,10 @@ import {
2914
2908
  TableHead,
2915
2909
  TableRow
2916
2910
  } from "@uniformdev/design-system";
2917
- import { Draggable, Droppable } from "react-beautiful-dnd";
2918
2911
 
2919
2912
  // src/components/DragDropContext.tsx
2913
+ import { DragDropContext as BaseDragDropContext } from "@hello-pangea/dnd";
2920
2914
  import { useState as useState8 } from "react";
2921
- import { DragDropContext as BaseDragDropContext } from "react-beautiful-dnd";
2922
2915
  import { useDebounce } from "react-use";
2923
2916
  import { jsx as jsx32 } from "@emotion/react/jsx-runtime";
2924
2917
  function DragDropContext({ children, ...props }) {
@@ -3173,7 +3166,8 @@ function TextVariableRenderer({ definition, value, setValue }) {
3173
3166
  value: value != null ? value : "",
3174
3167
  caption: (_a = definition.helpText) != null ? _a : definition.default !== "" ? `Default value: ${definition.default}` : void 0,
3175
3168
  onChange: setValue,
3176
- "data-testid": "variable-input"
3169
+ "data-testid": "variable-input",
3170
+ disableInlineMenu: "by-label"
3177
3171
  }
3178
3172
  ) });
3179
3173
  }
@@ -3181,14 +3175,15 @@ function TextVariableRenderer({ definition, value, setValue }) {
3181
3175
  // src/components/Request/RequestBody.tsx
3182
3176
  import { css as css12 } from "@emotion/react";
3183
3177
  import { InputSelect, JsonEditor } from "@uniformdev/design-system";
3184
- import { useState as useState9 } from "react";
3178
+ import { useState as useState10 } from "react";
3185
3179
 
3186
3180
  // src/components/Request/RequestProvider.tsx
3187
- import * as React5 from "react";
3181
+ import * as React4 from "react";
3188
3182
  import { jsx as jsx36 } from "@emotion/react/jsx-runtime";
3189
- var RequestContext = React5.createContext(null);
3183
+ var RequestContext = React4.createContext(null);
3190
3184
  function RequestProvider({ value, onChange, children }) {
3191
- const contextValue = React5.useMemo(() => {
3185
+ const [listVersion, setListVersion] = React4.useState(0);
3186
+ const contextValue = React4.useMemo(() => {
3192
3187
  return {
3193
3188
  dispatch: (event) => {
3194
3189
  if (event.type === "setRelativeUrl") {
@@ -3207,6 +3202,7 @@ function RequestProvider({ value, onChange, children }) {
3207
3202
  return { ...old, parameters: newParameters };
3208
3203
  });
3209
3204
  } else if (event.type === "removeParameter") {
3205
+ setListVersion((v) => v + 1);
3210
3206
  onChange((old) => {
3211
3207
  const newParameters = [...old.parameters];
3212
3208
  newParameters.splice(event.index, 1);
@@ -3223,6 +3219,7 @@ function RequestProvider({ value, onChange, children }) {
3223
3219
  return { ...old, headers: newHeaders };
3224
3220
  });
3225
3221
  } else if (event.type === "removeHeader") {
3222
+ setListVersion((v) => v + 1);
3226
3223
  onChange((old) => {
3227
3224
  const newHeaders = [...old.headers];
3228
3225
  newHeaders.splice(event.index, 1);
@@ -3251,13 +3248,14 @@ function RequestProvider({ value, onChange, children }) {
3251
3248
  throw new Error(`Unknown event ${JSON.stringify(event)}`);
3252
3249
  }
3253
3250
  },
3254
- request: value
3251
+ request: value,
3252
+ listVersion
3255
3253
  };
3256
- }, [onChange, value]);
3254
+ }, [onChange, value, listVersion]);
3257
3255
  return /* @__PURE__ */ jsx36(RequestContext.Provider, { value: contextValue, children });
3258
3256
  }
3259
3257
  function useRequest() {
3260
- const context = React5.useContext(RequestContext);
3258
+ const context = React4.useContext(RequestContext);
3261
3259
  if (!context) {
3262
3260
  throw new Error("No RequestProvider present");
3263
3261
  }
@@ -3307,7 +3305,7 @@ var LANGUAGE_TO_CONTENT_TYPE = {
3307
3305
  };
3308
3306
  function RequestBody() {
3309
3307
  const { request, dispatch } = useRequest();
3310
- const [language, setLanguage] = useState9("json");
3308
+ const [language, setLanguage] = useState10("json");
3311
3309
  return /* @__PURE__ */ jsxs17(
3312
3310
  "div",
3313
3311
  {
@@ -3380,7 +3378,7 @@ function RequestHeaders({
3380
3378
  addOmitIfEmpty
3381
3379
  }) {
3382
3380
  var _a, _b;
3383
- const { dispatch, request } = useRequest();
3381
+ const { dispatch, request, listVersion } = useRequest();
3384
3382
  const deezHeaders = [...request.headers, { key: "", value: "" }];
3385
3383
  const handleUpdateParamFromMenu = ({
3386
3384
  key,
@@ -3466,7 +3464,7 @@ function RequestHeaders({
3466
3464
  })
3467
3465
  }
3468
3466
  ) : null }) : null
3469
- ] }, index);
3467
+ ] }, `${index}-${listVersion}`);
3470
3468
  })
3471
3469
  ] })
3472
3470
  ] }) });
@@ -3511,7 +3509,7 @@ function RequestParameters({
3511
3509
  addOmitIfEmpty
3512
3510
  }) {
3513
3511
  var _a, _b;
3514
- const { dispatch, request } = useRequest();
3512
+ const { dispatch, request, listVersion } = useRequest();
3515
3513
  const deezParameters = [...request.parameters, { key: "", value: "" }];
3516
3514
  const handleUpdateParamFromMenu = ({
3517
3515
  key,
@@ -3609,7 +3607,7 @@ function RequestParameters({
3609
3607
  }
3610
3608
  }
3611
3609
  ) : null }) : null
3612
- ] }, index);
3610
+ ] }, `${index}-${listVersion}`);
3613
3611
  })
3614
3612
  ] })
3615
3613
  ] }) });
@@ -3891,10 +3889,10 @@ import { LoadingIndicator as LoadingIndicator2, Theme as Theme2 } from "@uniform
3891
3889
 
3892
3890
  // src/hooks/useInitializeUniformMeshSdk.ts
3893
3891
  import { initializeUniformMeshSDK } from "@uniformdev/mesh-sdk";
3894
- import { useEffect as useEffect12, useRef as useRef7, useState as useState10 } from "react";
3892
+ import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
3895
3893
  var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
3896
- const [error, setError] = useState10();
3897
- const [sdk, setSdk] = useState10();
3894
+ const [error, setError] = useState11();
3895
+ const [sdk, setSdk] = useState11();
3898
3896
  const initializationInProgress = useRef7(false);
3899
3897
  useEffect12(
3900
3898
  () => {
@@ -3989,7 +3987,7 @@ import {
3989
3987
  useContext as useContext5,
3990
3988
  useDeferredValue,
3991
3989
  useMemo as useMemo12,
3992
- useState as useState11
3990
+ useState as useState12
3993
3991
  } from "react";
3994
3992
  import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
3995
3993
  var ObjectSearchContext = createContext5({
@@ -4013,15 +4011,15 @@ var ObjectSearchProvider = ({
4013
4011
  children,
4014
4012
  defaultQuery
4015
4013
  }) => {
4016
- const [query, setQuery] = useState11({
4014
+ const [query, setQuery] = useState12({
4017
4015
  contentType: "",
4018
4016
  keyword: "",
4019
4017
  ...defaultQuery
4020
4018
  });
4021
4019
  const { flatVariables } = useVariables(true);
4022
4020
  const querySearchDeferred = useDeferredValue(query);
4023
- const [selectedItems, setSelectedItems] = useState11(currentlySelectedItems != null ? currentlySelectedItems : []);
4024
- const [list, setList] = useState11({});
4021
+ const [selectedItems, setSelectedItems] = useState12(currentlySelectedItems != null ? currentlySelectedItems : []);
4022
+ const [list, setList] = useState12({});
4025
4023
  const onSetQuery = useCallback5(
4026
4024
  (value2) => {
4027
4025
  if (Array.isArray(value2.contentType) && value2.contentType.length > 0) {
@@ -4337,7 +4335,7 @@ var DefaultResultList = () => {
4337
4335
 
4338
4336
  // src/components/ObjectSearch/ObjectSearchFilter.tsx
4339
4337
  import { DebouncedInputKeywordSearch, InputSelect as InputSelect3 } from "@uniformdev/design-system";
4340
- import { useMemo as useMemo13, useState as useState12 } from "react";
4338
+ import { useMemo as useMemo13, useState as useState13 } from "react";
4341
4339
 
4342
4340
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
4343
4341
  import { css as css17 } from "@emotion/react";
@@ -4371,7 +4369,7 @@ var ObjectSearchFilter = ({
4371
4369
  }) => {
4372
4370
  var _a, _b;
4373
4371
  const { query, onSetQuery } = useObjectSearchContext();
4374
- const [searchState, setSearchState] = useState12({
4372
+ const [searchState, setSearchState] = useState13({
4375
4373
  contentType: (_a = query.contentType) != null ? _a : "",
4376
4374
  keyword: (_b = query.keyword) != null ? _b : ""
4377
4375
  });
@@ -4660,11 +4658,11 @@ function legacyThemeMapper(theme) {
4660
4658
  }
4661
4659
 
4662
4660
  // src/components/ObjectSearch/ObjectSearchResultList.tsx
4663
- import { Button as Button4, Counter } from "@uniformdev/design-system";
4664
4661
  import {
4665
4662
  Draggable as Draggable2,
4666
4663
  Droppable as Droppable2
4667
- } from "react-beautiful-dnd";
4664
+ } from "@hello-pangea/dnd";
4665
+ import { Button as Button4, Counter } from "@uniformdev/design-system";
4668
4666
 
4669
4667
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
4670
4668
  import { css as css20 } from "@emotion/react";
@@ -4793,7 +4791,7 @@ function ObjectSearchResultList({
4793
4791
 
4794
4792
  // src/components/ObjectSearch/QueryFilter.tsx
4795
4793
  import { DebouncedInputKeywordSearch as DebouncedInputKeywordSearch2, Input as Input4, InputSelect as InputSelect4, VerticalRhythm as VerticalRhythm4 } from "@uniformdev/design-system";
4796
- import { useEffect as useEffect13, useState as useState13 } from "react";
4794
+ import { useEffect as useEffect13, useState as useState14 } from "react";
4797
4795
  import { jsx as jsx57, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
4798
4796
  var QueryFilter = ({
4799
4797
  requireContentType,
@@ -4822,7 +4820,7 @@ var QueryFilter = ({
4822
4820
  }) => {
4823
4821
  var _a, _b, _c, _d, _e, _f, _g;
4824
4822
  const { query, onSetQuery } = useObjectSearchContext();
4825
- const [queryState, setQueryState] = useState13({
4823
+ const [queryState, setQueryState] = useState14({
4826
4824
  contentType: (_a = query.contentType) != null ? _a : "",
4827
4825
  keyword: (_b = query.keyword) != null ? _b : "",
4828
4826
  count: (_c = query.count) != null ? _c : 5,
@@ -5447,7 +5445,7 @@ var MULTI_SELECT_OPERATORS = [
5447
5445
 
5448
5446
  // src/components/SearchAndFilter/editors/DateEditor.tsx
5449
5447
  import { Input as Input5 } from "@uniformdev/design-system";
5450
- import { useState as useState14 } from "react";
5448
+ import { useState as useState15 } from "react";
5451
5449
  import { useDebounce as useDebounce2 } from "react-use";
5452
5450
  import { jsx as jsx59 } from "@emotion/react/jsx-runtime";
5453
5451
  var DateEditor = ({
@@ -5458,7 +5456,7 @@ var DateEditor = ({
5458
5456
  readOnly,
5459
5457
  valueTestId
5460
5458
  }) => {
5461
- const [innerValue, setInnerValue] = useState14(value != null ? value : "");
5459
+ const [innerValue, setInnerValue] = useState15(value != null ? value : "");
5462
5460
  useDebounce2(() => onChange(innerValue), 500, [innerValue]);
5463
5461
  return /* @__PURE__ */ jsx59(
5464
5462
  Input5,
@@ -5477,7 +5475,7 @@ var DateEditor = ({
5477
5475
 
5478
5476
  // src/components/SearchAndFilter/editors/DateRangeEditor.tsx
5479
5477
  import { Input as Input6 } from "@uniformdev/design-system";
5480
- import { useEffect as useEffect15, useState as useState15 } from "react";
5478
+ import { useEffect as useEffect15, useState as useState16 } from "react";
5481
5479
  import { useDebounce as useDebounce3 } from "react-use";
5482
5480
 
5483
5481
  // src/components/SearchAndFilter/editors/shared/ErrorContainer.tsx
@@ -5513,9 +5511,9 @@ var DateRangeEditor = ({
5513
5511
  readOnly,
5514
5512
  valueTestId
5515
5513
  }) => {
5516
- const [minDateValue, setMinDateValue] = useState15(value ? value[0] : "");
5517
- const [maxDateValue, setMaxDateValue] = useState15(value ? value[1] : "");
5518
- const [error, setError] = useState15("");
5514
+ const [minDateValue, setMinDateValue] = useState16(value ? value[0] : "");
5515
+ const [maxDateValue, setMaxDateValue] = useState16(value ? value[1] : "");
5516
+ const [error, setError] = useState16("");
5519
5517
  useDebounce3(
5520
5518
  () => {
5521
5519
  if (minDateValue && maxDateValue && !error) {
@@ -5710,7 +5708,7 @@ var FilterSingleChoiceEditor = ({
5710
5708
 
5711
5709
  // src/components/SearchAndFilter/editors/NumberEditor.tsx
5712
5710
  import { Input as Input7 } from "@uniformdev/design-system";
5713
- import { useState as useState16 } from "react";
5711
+ import { useState as useState17 } from "react";
5714
5712
  import { useDebounce as useDebounce4 } from "react-use";
5715
5713
  import { jsx as jsx64 } from "@emotion/react/jsx-runtime";
5716
5714
  var NumberEditor = ({
@@ -5721,7 +5719,7 @@ var NumberEditor = ({
5721
5719
  readOnly,
5722
5720
  valueTestId
5723
5721
  }) => {
5724
- const [innerValue, setInnerValue] = useState16(value != null ? value : "");
5722
+ const [innerValue, setInnerValue] = useState17(value != null ? value : "");
5725
5723
  useDebounce4(() => onChange(innerValue), 500, [innerValue]);
5726
5724
  return /* @__PURE__ */ jsx64(
5727
5725
  Input7,
@@ -5741,7 +5739,7 @@ var NumberEditor = ({
5741
5739
 
5742
5740
  // src/components/SearchAndFilter/editors/NumberRangeEditor.tsx
5743
5741
  import { Input as Input8 } from "@uniformdev/design-system";
5744
- import { useEffect as useEffect16, useState as useState17 } from "react";
5742
+ import { useEffect as useEffect16, useState as useState18 } from "react";
5745
5743
  import { useDebounce as useDebounce5 } from "react-use";
5746
5744
  import { Fragment as Fragment12, jsx as jsx65, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
5747
5745
  var NumberRangeEditor = ({
@@ -5752,9 +5750,9 @@ var NumberRangeEditor = ({
5752
5750
  readOnly,
5753
5751
  valueTestId
5754
5752
  }) => {
5755
- const [minValue, setMinValue] = useState17("");
5756
- const [maxValue, setMaxValue] = useState17("");
5757
- const [error, setError] = useState17("");
5753
+ const [minValue, setMinValue] = useState18("");
5754
+ const [maxValue, setMaxValue] = useState18("");
5755
+ const [error, setError] = useState18("");
5758
5756
  useDebounce5(
5759
5757
  () => {
5760
5758
  if (minValue && maxValue && !error) {
@@ -5942,7 +5940,7 @@ var StatusSingleEditor = ({
5942
5940
 
5943
5941
  // src/components/SearchAndFilter/editors/TextEditor.tsx
5944
5942
  import { Input as Input9 } from "@uniformdev/design-system";
5945
- import { useState as useState18 } from "react";
5943
+ import { useState as useState19 } from "react";
5946
5944
  import { useDebounce as useDebounce6 } from "react-use";
5947
5945
  import { jsx as jsx69 } from "@emotion/react/jsx-runtime";
5948
5946
  var TextEditor = ({
@@ -5952,7 +5950,7 @@ var TextEditor = ({
5952
5950
  readOnly,
5953
5951
  valueTestId
5954
5952
  }) => {
5955
- const [innerValue, setInnerValue] = useState18(value != null ? value : "");
5953
+ const [innerValue, setInnerValue] = useState19(value != null ? value : "");
5956
5954
  useDebounce6(() => onChange(innerValue), 500, [innerValue]);
5957
5955
  return /* @__PURE__ */ jsx69(
5958
5956
  Input9,
@@ -6316,7 +6314,7 @@ import { CgClose } from "@react-icons/all-files/cg/CgClose";
6316
6314
  import { hasReferencedVariables as hasReferencedVariables2 } from "@uniformdev/canvas";
6317
6315
  import { Icon as Icon3, InputKeywordSearch } from "@uniformdev/design-system";
6318
6316
  import { CLEAR_EDITOR_COMMAND as CLEAR_EDITOR_COMMAND2 } from "lexical";
6319
- import { useEffect as useEffect18, useRef as useRef9, useState as useState20 } from "react";
6317
+ import { useEffect as useEffect18, useRef as useRef9, useState as useState21 } from "react";
6320
6318
  import { useDebounce as useDebounce7 } from "react-use";
6321
6319
  import { v4 as v42 } from "uuid";
6322
6320
 
@@ -6329,7 +6327,7 @@ import {
6329
6327
  useDeferredValue as useDeferredValue2,
6330
6328
  useEffect as useEffect17,
6331
6329
  useMemo as useMemo20,
6332
- useState as useState19
6330
+ useState as useState20
6333
6331
  } from "react";
6334
6332
 
6335
6333
  // src/components/SearchAndFilter/FilterEditor.tsx
@@ -6443,9 +6441,9 @@ var SearchAndFilterProvider = ({
6443
6441
  children,
6444
6442
  allowBindingSearchTerm
6445
6443
  }) => {
6446
- const [searchTerm, setSearchTerm] = useState19(defaultSearchTerm);
6444
+ const [searchTerm, setSearchTerm] = useState20(defaultSearchTerm);
6447
6445
  const deferredSearchTerm = useDeferredValue2(searchTerm);
6448
- const [filterVisibility, setFilterVisibility] = useState19(alwaysVisible || filterVisible);
6446
+ const [filterVisibility, setFilterVisibility] = useState20(alwaysVisible || filterVisible);
6449
6447
  const handleSearchTerm = useCallback6(
6450
6448
  (term) => {
6451
6449
  setSearchTerm(term);
@@ -6542,8 +6540,8 @@ var FilterControls = ({
6542
6540
  } = useSearchAndFilter();
6543
6541
  const editorRef = useRef9(null);
6544
6542
  const variableRefernceCountInSearchTerm = hasReferencedVariables2(searchTerm);
6545
- const [idToResetInputVariables, setIdToResetInputVariables] = useState20("data-resource-search-term-input");
6546
- const [localSearchTerm, setLocalSearchTerm] = useState20(searchTerm);
6543
+ const [idToResetInputVariables, setIdToResetInputVariables] = useState21("data-resource-search-term-input");
6544
+ const [localSearchTerm, setLocalSearchTerm] = useState21(searchTerm);
6547
6545
  useDebounce7(
6548
6546
  () => {
6549
6547
  setSearchTerm(localSearchTerm);
@@ -6784,7 +6782,7 @@ import { Icon as Icon5 } from "@uniformdev/design-system";
6784
6782
 
6785
6783
  // src/components/SearchAndFilter/FilterMenu.tsx
6786
6784
  import { HorizontalRhythm as HorizontalRhythm8, VerticalRhythm as VerticalRhythm6 } from "@uniformdev/design-system";
6787
- import React7, { useEffect as useEffect19 } from "react";
6785
+ import React6, { useEffect as useEffect19 } from "react";
6788
6786
  import { jsx as jsx76, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
6789
6787
  var SearchAndFilterOptionsContainer2 = ({
6790
6788
  buttonRow,
@@ -6816,7 +6814,7 @@ var FilterMenu = ({
6816
6814
  resetButtonText = "reset"
6817
6815
  }) => {
6818
6816
  const { filterVisibility, setFilterVisibility, handleResetFilters, filters } = useSearchAndFilter();
6819
- const innerMenuRef = React7.useRef(null);
6817
+ const innerMenuRef = React6.useRef(null);
6820
6818
  useEffect19(() => {
6821
6819
  var _a;
6822
6820
  if (filterVisibility) {
@@ -7162,7 +7160,7 @@ var SearchAndFilter = ({
7162
7160
 
7163
7161
  // src/components/SearchAndFilter/SearchOnlyFilter.tsx
7164
7162
  import { InputKeywordSearch as InputKeywordSearch2 } from "@uniformdev/design-system";
7165
- import { createContext as createContext7, useState as useState21 } from "react";
7163
+ import { createContext as createContext7, useState as useState22 } from "react";
7166
7164
  import { useDebounce as useDebounce8 } from "react-use";
7167
7165
  import { jsx as jsx80 } from "@emotion/react/jsx-runtime";
7168
7166
  var SearchOnlyContext = createContext7({
@@ -7172,7 +7170,7 @@ var SearchOnlyContext = createContext7({
7172
7170
  });
7173
7171
  var SearchOnlyFilter = ({ onSearchChange, maxWidth }) => {
7174
7172
  const { searchTerm, setSearchTerm } = useSearchAndFilter();
7175
- const [localeSearchTerm, setLocaleSearchTerm] = useState21("");
7173
+ const [localeSearchTerm, setLocaleSearchTerm] = useState22("");
7176
7174
  useDebounce8(
7177
7175
  () => {
7178
7176
  setSearchTerm(localeSearchTerm);