@uniformdev/mesh-sdk-react 20.35.0 → 20.35.1-alpha.210

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.js CHANGED
@@ -646,14 +646,14 @@ function deserializeVariablesEditorState(serialized) {
646
646
  children: [
647
647
  {
648
648
  children: result,
649
- direction: "ltr",
649
+ direction: null,
650
650
  format: "",
651
651
  indent: 0,
652
652
  type: "paragraph",
653
653
  version: 1
654
654
  }
655
655
  ],
656
- direction: "ltr",
656
+ direction: null,
657
657
  format: "",
658
658
  indent: 0,
659
659
  type: "root",
@@ -920,7 +920,7 @@ var import_zod = require("@hookform/resolvers/zod");
920
920
  var import_design_system4 = require("@uniformdev/design-system");
921
921
  var import_react12 = require("react");
922
922
  var import_react_hook_form = require("react-hook-form");
923
- var z = __toESM(require("zod"));
923
+ var z = __toESM(require("zod/v3"));
924
924
 
925
925
  // src/components/Variables/styles/VariableEditor.styles.ts
926
926
  var import_react11 = require("@emotion/react");
@@ -1292,18 +1292,17 @@ var DISCONNECT_VARIABLE_COMMAND = (0, import_lexical4.createCommand)(
1292
1292
  "uniform:disconnect-variable"
1293
1293
  );
1294
1294
  var INSERT_VARIABLE_COMMAND = (0, import_lexical4.createCommand)("uniform:insert-variable");
1295
- var TRIGGER = "\\$\\$";
1296
- var LENGTH_LIMIT = 20;
1297
- var DollarSignVariablesRegex = new RegExp(`(^.*)(${TRIGGER}(.{0,${LENGTH_LIMIT}}))$`);
1295
+ var DollarSignVariablesRegex = /(^.*)(\$\$(.{0,20}))$/;
1298
1296
  function getPossibleQueryMatch(text) {
1299
1297
  const match = DollarSignVariablesRegex.exec(text);
1300
1298
  if (match !== null) {
1301
1299
  const maybeLeadingWhitespace = match[1];
1302
1300
  const matchingString = match[3];
1301
+ const replaceableString = match[2];
1303
1302
  return {
1304
1303
  leadOffset: match.index + maybeLeadingWhitespace.length,
1305
1304
  matchingString,
1306
- replaceableString: match[2]
1305
+ replaceableString
1307
1306
  };
1308
1307
  }
1309
1308
  return null;
@@ -1390,7 +1389,8 @@ function VariablesPlugin({
1390
1389
  enableEditingVariables,
1391
1390
  getEditorContext,
1392
1391
  replaceValueOnVariableInsert,
1393
- filterVariable
1392
+ filterVariable,
1393
+ disableVariableDisplayNames
1394
1394
  }) {
1395
1395
  const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
1396
1396
  const { variables, dispatch, isEditing, canDispatch, readOnly, knownUndefinedValues, isLoading } = useVariables(true);
@@ -1422,7 +1422,10 @@ function VariablesPlugin({
1422
1422
  filteredGroupedVariables: groupedVariables.map((group) => ({
1423
1423
  name: group.name,
1424
1424
  variables: group.variables.filter(
1425
- (option) => option.name.toLowerCase().includes(query) || option.name === ADD_VARIABLE_OPTION
1425
+ (option) => {
1426
+ var _a;
1427
+ return option.name === ADD_VARIABLE_OPTION || option.name.toLowerCase().includes(query) || ((_a = option.displayName) == null ? void 0 : _a.toLowerCase().includes(query));
1428
+ }
1426
1429
  )
1427
1430
  })).filter((group) => group.variables.length > 0),
1428
1431
  filteredMenuOptions: menuOptions.filter(
@@ -1468,9 +1471,10 @@ function VariablesPlugin({
1468
1471
  });
1469
1472
  return;
1470
1473
  }
1474
+ const initialDisplayName = disableVariableDisplayNames ? prettifyBindExpression(result.selectedVariable.name) : result.selectedVariable.displayName;
1471
1475
  editor.dispatchCommand(INSERT_VARIABLE_COMMAND, {
1472
1476
  variable: result.selectedVariable.name,
1473
- initialDisplayName: result.selectedVariable.displayName,
1477
+ initialDisplayName,
1474
1478
  targetKey: sourceKey,
1475
1479
  overwriteExistingValue: replaceValueOnVariableInsert
1476
1480
  });
@@ -1518,9 +1522,10 @@ function VariablesPlugin({
1518
1522
  if (result.canceled) {
1519
1523
  return;
1520
1524
  }
1525
+ const initialDisplayName = disableVariableDisplayNames ? prettifyBindExpression(result.selectedVariable.name) : result.selectedVariable.displayName;
1521
1526
  editor.dispatchCommand(INSERT_VARIABLE_COMMAND, {
1522
1527
  variable: result.selectedVariable.name,
1523
- initialDisplayName: result.selectedVariable.displayName,
1528
+ initialDisplayName,
1524
1529
  targetKey: void 0,
1525
1530
  overwriteExistingValue: replaceValueOnVariableInsert
1526
1531
  });
@@ -1539,8 +1544,9 @@ function VariablesPlugin({
1539
1544
  var _a, _b;
1540
1545
  if (!disableVariables) {
1541
1546
  const targetVariable = variablesRef.current.variables[reference];
1547
+ const displayName = disableVariableDisplayNames ? prettifyBindExpression(reference) : initialDisplayName != null ? initialDisplayName : (targetVariable == null ? void 0 : targetVariable.displayName) || prettifyBindExpression(reference);
1542
1548
  const variableNode = $createVariableNode(reference, {
1543
- displayName: initialDisplayName != null ? initialDisplayName : (targetVariable == null ? void 0 : targetVariable.displayName) || prettifyBindExpression(reference),
1549
+ displayName,
1544
1550
  hasClickEvent: canEditVariable(reference, targetVariable),
1545
1551
  referenceIsValid: true,
1546
1552
  tooltip: (_a = targetVariable == null ? void 0 : targetVariable.tooltip) != null ? _a : targetVariable == null ? void 0 : targetVariable.helpText,
@@ -1577,7 +1583,8 @@ function VariablesPlugin({
1577
1583
  readOnly,
1578
1584
  getEditorContext,
1579
1585
  editVariable,
1580
- replaceValueOnVariableInsert
1586
+ replaceValueOnVariableInsert,
1587
+ disableVariableDisplayNames
1581
1588
  ]);
1582
1589
  const updateExistingNodeIfChanged = (0, import_react15.useCallback)(
1583
1590
  (variableNode) => {
@@ -1590,9 +1597,10 @@ function VariablesPlugin({
1590
1597
  return;
1591
1598
  }
1592
1599
  const tooltip = (_d = (_c = (_b = (_a = targetVar == null ? void 0 : targetVar.tooltip) != null ? _a : targetVar == null ? void 0 : targetVar.helpText) != null ? _b : targetUndefinedVar == null ? void 0 : targetUndefinedVar.error) != null ? _c : targetUndefinedVar == null ? void 0 : targetUndefinedVar.warning) != null ? _d : targetUndefinedVar == null ? void 0 : targetUndefinedVar.info;
1600
+ const displayName = disableVariableDisplayNames ? prettifyBindExpression(variableNode.reference) : (targetVar == null ? void 0 : targetVar.displayName) || (targetUndefinedVar == null ? void 0 : targetUndefinedVar.displayName) || prettifyBindExpression(variableNode.reference);
1593
1601
  const newState = {
1594
1602
  ...currentState,
1595
- displayName: (targetVar == null ? void 0 : targetVar.displayName) || (targetUndefinedVar == null ? void 0 : targetUndefinedVar.displayName) || prettifyBindExpression(variableNode.reference),
1603
+ displayName,
1596
1604
  isLoading: isLoadingVariables && !targetVar && !(targetUndefinedVar == null ? void 0 : targetUndefinedVar.info),
1597
1605
  hasClickEvent: canEditVariable(variableNode.reference, targetVar),
1598
1606
  referenceIsValid: (targetUndefinedVar == null ? void 0 : targetUndefinedVar.error) ? false : (targetUndefinedVar == null ? void 0 : targetUndefinedVar.warning) ? "warning" : (targetUndefinedVar == null ? void 0 : targetUndefinedVar.info) ? "info" : isLoadingVariables ? true : Boolean(targetVar),
@@ -1603,7 +1611,7 @@ function VariablesPlugin({
1603
1611
  variableNode.setState(newState);
1604
1612
  }
1605
1613
  },
1606
- [canEditVariable]
1614
+ [canEditVariable, disableVariableDisplayNames]
1607
1615
  );
1608
1616
  (0, import_react15.useEffect)(() => {
1609
1617
  let selection;
@@ -1708,13 +1716,13 @@ var VariableNode = class _VariableNode extends import_lexical5.DecoratorNode {
1708
1716
  constructor(reference, state, key) {
1709
1717
  super(key);
1710
1718
  this.reference = reference;
1711
- this.__state = state;
1719
+ this.__variableState = state;
1712
1720
  }
1713
1721
  static getType() {
1714
1722
  return "variable";
1715
1723
  }
1716
1724
  static clone(node) {
1717
- return new _VariableNode(node.reference, { ...node.__state }, node.__key);
1725
+ return new _VariableNode(node.reference, { ...node.__variableState }, node.__key);
1718
1726
  }
1719
1727
  /** Imports the node from serialized JSON (i.e. the data provided to the editor's initial state) */
1720
1728
  static importJSON(serializedNode) {
@@ -1729,14 +1737,14 @@ var VariableNode = class _VariableNode extends import_lexical5.DecoratorNode {
1729
1737
  }
1730
1738
  /** Gets the node's current state */
1731
1739
  getState() {
1732
- return this.getLatest().__state;
1740
+ return this.getLatest().__variableState;
1733
1741
  }
1734
1742
  /**
1735
1743
  * Updates the node's variables state so it knows its current validity, display name, etc
1736
1744
  * The plugin updates this whenever the variables prop changes.
1737
1745
  */
1738
1746
  setState(state) {
1739
- this.getWritable().__state = state;
1747
+ this.getWritable().__variableState = state;
1740
1748
  }
1741
1749
  /**
1742
1750
  * Serializes the node to JSON for editor initial state
@@ -1762,15 +1770,38 @@ var VariableNode = class _VariableNode extends import_lexical5.DecoratorNode {
1762
1770
  updateDOM() {
1763
1771
  return false;
1764
1772
  }
1773
+ static importDOM() {
1774
+ return {
1775
+ binding: () => ({
1776
+ conversion: $convertBindingElement,
1777
+ priority: 0
1778
+ })
1779
+ };
1780
+ }
1765
1781
  /**
1766
1782
  * Render the variable node using React.
1767
1783
  * NOTE: this is effectively an island of React, and you may not call hooks,
1768
1784
  * rely on Context, etc in this renderer.
1769
1785
  */
1770
1786
  decorate() {
1771
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(VariableNodeComponent, { state: this.__state, reference: this.reference, nodeKey: this.__key });
1787
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(VariableNodeComponent, { state: this.__variableState, reference: this.reference, nodeKey: this.__key });
1772
1788
  }
1773
1789
  };
1790
+ function $convertBindingElement(domNode) {
1791
+ const element = domNode;
1792
+ const reference = element.textContent.replace(variablePrefix, "").replace(variableSuffix, "");
1793
+ const node = $createVariableNode(reference, {
1794
+ displayName: prettifyBindExpression(reference),
1795
+ hasClickEvent: true,
1796
+ referenceIsValid: true,
1797
+ tooltip: void 0,
1798
+ isFresh: true,
1799
+ isLoading: false
1800
+ });
1801
+ return {
1802
+ node
1803
+ };
1804
+ }
1774
1805
  function $createVariableNode(variableReference, state) {
1775
1806
  return new VariableNode(variableReference, state);
1776
1807
  }
@@ -2019,27 +2050,40 @@ var placeholderCompact = import_react18.css`
2019
2050
  var import_react19 = require("@emotion/react");
2020
2051
  var import_design_system7 = require("@uniformdev/design-system");
2021
2052
  var variableBindButton = import_react19.css`
2022
- align-items: center;
2023
- border: none;
2053
+ --hover-color: var(--accent-dark-hover);
2054
+ --active-color: var(--accent-dark-active);
2055
+ border: 1px solid transparent;
2024
2056
  border-radius: var(--rounded-base);
2025
2057
  background: none;
2058
+ color: var(--gray-300);
2026
2059
  display: flex;
2027
- height: 1.2rem;
2028
- padding: var(--spacing-2xs);
2060
+ align-items: center;
2061
+ justify-content: center;
2062
+ max-width: fit-content;
2063
+ padding: 0.125rem;
2029
2064
  transition:
2065
+ border-color var(--duration-fast) var(--timing-ease-out),
2030
2066
  background var(--duration-fast) var(--timing-ease-out),
2031
- color var(--duration-fast) var(--timing-ease-out);
2032
- width: 1.2rem;
2067
+ color var(--duration-fast) var(--timing-ease-out),
2068
+ box-shadow var(--duration-fast) var(--timing-ease-out);
2033
2069
 
2034
- &:hover,
2035
- &[aria-pressed='true']:not(:disabled) {
2036
- background: var(--brand-secondary-3);
2037
- color: var(--white);
2070
+ &:hover:not([aria-disabled='true']),
2071
+ &:focus:not([aria-disabled='true']),
2072
+ &:focus-within:not([aria-disabled='true']) {
2073
+ color: var(--gray-500);
2074
+ border-color: var(--hover-color);
2075
+ }
2076
+
2077
+ &:active:not([aria-disabled='true']),
2078
+ &[aria-pressed='true']:not([aria-disabled='true']) {
2079
+ color: var(--active-color);
2038
2080
  }
2039
2081
 
2040
2082
  &[aria-disabled='true'] {
2041
2083
  background: none;
2042
2084
  color: currentColor;
2085
+ opacity: var(--opacity-50);
2086
+ cursor: default;
2043
2087
  }
2044
2088
 
2045
2089
  // fixes menu resizing issue within iframes
@@ -2085,6 +2129,7 @@ var input2 = import_react19.css`
2085
2129
  &:disabled,
2086
2130
  &:disabled::placeholder,
2087
2131
  &:disabled:hover {
2132
+ border-color: var(--gray-200);
2088
2133
  border-radius: var(--rounded-sm);
2089
2134
  cursor: not-allowed;
2090
2135
  color: var(--gray-400);
@@ -2094,6 +2139,7 @@ var input2 = import_react19.css`
2094
2139
  &[contenteditable='false'] {
2095
2140
  cursor: not-allowed;
2096
2141
  color: var(--gray-400);
2142
+ border-color: var(--gray-200);
2097
2143
  }
2098
2144
 
2099
2145
  > p {
@@ -2111,7 +2157,6 @@ var inputMultiLine = (lines) => import_react19.css`
2111
2157
 
2112
2158
  // src/components/Variables/toolbox/InputVariablesProvider.tsx
2113
2159
  var import_canvas6 = require("@uniformdev/canvas");
2114
- var React4 = __toESM(require("react"));
2115
2160
  var import_react20 = require("react");
2116
2161
  function useInputVariablesState({
2117
2162
  value,
@@ -2128,14 +2173,14 @@ function useInputVariablesState({
2128
2173
  }) {
2129
2174
  const { variables } = useVariables(true);
2130
2175
  const variableReferenceCountInValue = (0, import_canvas6.hasReferencedVariables)(value != null ? value : "");
2131
- const [lastKnownId, setLastKnownId] = React4.useState(id);
2132
- const [hadVariablesInValue, setHadVariablesInValue] = React4.useState(variableReferenceCountInValue > 0);
2133
- React4.useEffect(() => {
2176
+ const [lastKnownId, setLastKnownId] = (0, import_react20.useState)(id);
2177
+ const [hadVariablesInValue, setHadVariablesInValue] = (0, import_react20.useState)(variableReferenceCountInValue > 0);
2178
+ (0, import_react20.useEffect)(() => {
2134
2179
  if (variableReferenceCountInValue) {
2135
2180
  setHadVariablesInValue(true);
2136
2181
  }
2137
2182
  }, [variableReferenceCountInValue]);
2138
- React4.useEffect(() => {
2183
+ (0, import_react20.useEffect)(() => {
2139
2184
  if (id !== lastKnownId) {
2140
2185
  setLastKnownId(id);
2141
2186
  setHadVariablesInValue(variableReferenceCountInValue > 0);
@@ -2185,30 +2230,6 @@ var labelText = import_react21.css`
2185
2230
  font-weight: var(--fw-regular);
2186
2231
  margin: 0 0 var(--spacing-xs);
2187
2232
  `;
2188
- var variableBindButton2 = import_react21.css`
2189
- align-items: center;
2190
- border: none;
2191
- border-radius: var(--rounded-base);
2192
- background: none;
2193
- display: flex;
2194
- height: 1.2rem;
2195
- padding: var(--spacing-2xs);
2196
- transition:
2197
- background var(--duration-fast) var(--timing-ease-out),
2198
- color var(--duration-fast) var(--timing-ease-out);
2199
- width: 1.2rem;
2200
-
2201
- &:hover,
2202
- &[aria-pressed='true']:not(:disabled) {
2203
- background: var(--brand-secondary-3);
2204
- color: var(--white);
2205
- }
2206
-
2207
- &[aria-disabled='true'] {
2208
- background: none;
2209
- color: currentColor;
2210
- }
2211
- `;
2212
2233
 
2213
2234
  // src/components/Variables/toolbox/VariablesComposerVariableMenu.tsx
2214
2235
  var import_LexicalComposerContext6 = require("@lexical/react/LexicalComposerContext");
@@ -2255,7 +2276,7 @@ function SelectVariableMenu({
2255
2276
  css: [menuBtn, buttonCss],
2256
2277
  type: "button",
2257
2278
  "data-testid": "insert-variable",
2258
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_CgUsbC.CgUsbC, { size: "1.4rem" })
2279
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_CgUsbC.CgUsbC, { size: "1rem" })
2259
2280
  }
2260
2281
  ),
2261
2282
  children: [
@@ -2348,7 +2369,7 @@ function VariableField({
2348
2369
  VariablesComposerVariableMenu,
2349
2370
  {
2350
2371
  ...selectVariableMenuOptions,
2351
- buttonCss: [variableBindButton2, selectVariableMenuOptions == null ? void 0 : selectVariableMenuOptions.buttonCss],
2372
+ buttonCss: [variableBindButton, selectVariableMenuOptions == null ? void 0 : selectVariableMenuOptions.buttonCss],
2352
2373
  buttonProps: isActive ? { "aria-pressed": "true" } : void 0
2353
2374
  }
2354
2375
  ) }) : null;
@@ -2419,8 +2440,8 @@ function VariablesComposer(props) {
2419
2440
  // eslint-disable-next-line react-hooks/exhaustive-deps
2420
2441
  []
2421
2442
  );
2422
- const editorState = (0, import_react25.useRef)();
2423
- const updateTimeout = (0, import_react25.useRef)();
2443
+ const editorState = (0, import_react25.useRef)(void 0);
2444
+ const updateTimeout = (0, import_react25.useRef)(void 0);
2424
2445
  if (typeof document === "undefined") return null;
2425
2446
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_LexicalComposer.LexicalComposer, { initialConfig: editorConfig, children: [
2426
2447
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
@@ -2457,7 +2478,7 @@ function VariablesComposer(props) {
2457
2478
  var import_clipboard = require("@lexical/clipboard");
2458
2479
  var import_LexicalComposerContext9 = require("@lexical/react/LexicalComposerContext");
2459
2480
  var import_LexicalContentEditable = require("@lexical/react/LexicalContentEditable");
2460
- var import_LexicalErrorBoundary = __toESM(require("@lexical/react/LexicalErrorBoundary"));
2481
+ var import_LexicalErrorBoundary = require("@lexical/react/LexicalErrorBoundary");
2461
2482
  var import_LexicalHistoryPlugin = require("@lexical/react/LexicalHistoryPlugin");
2462
2483
  var import_LexicalPlainTextPlugin = require("@lexical/react/LexicalPlainTextPlugin");
2463
2484
  var import_utils4 = require("@lexical/utils");
@@ -2475,7 +2496,7 @@ function VariablesComposerInput({
2475
2496
  {
2476
2497
  contentEditable: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_LexicalContentEditable.ContentEditable, { ...contentEditableProps, placeholder: null, "aria-placeholder": void 0 }),
2477
2498
  placeholder: placeholder ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: placeholder }) : null,
2478
- ErrorBoundary: import_LexicalErrorBoundary.default
2499
+ ErrorBoundary: import_LexicalErrorBoundary.LexicalErrorBoundary
2479
2500
  }
2480
2501
  ),
2481
2502
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(RichishCopyAndPastePlugin, {}),
@@ -2588,7 +2609,8 @@ function InputVariables(props) {
2588
2609
  styleVariant = "default",
2589
2610
  renderMenuInPortal,
2590
2611
  disableDismissEditorOnChange,
2591
- singleTokenMode
2612
+ singleTokenMode,
2613
+ disableVariableDisplayNames
2592
2614
  } = props;
2593
2615
  const [finalId] = (0, import_react28.useState)(id != null ? id : () => (0, import_uuid.v4)());
2594
2616
  const { dispatch, canDispatch, isEditing } = useVariables(true);
@@ -2624,6 +2646,7 @@ function InputVariables(props) {
2624
2646
  portal: renderMenuInPortal,
2625
2647
  replaceValueOnVariableInsert: useInputWithNoVariables,
2626
2648
  useInputWhenNoVariables: useInputWithNoVariables,
2649
+ isActive: hadVariablesInValue,
2627
2650
  children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2628
2651
  VariablesComposerInput,
2629
2652
  {
@@ -2697,6 +2720,7 @@ function InputVariables(props) {
2697
2720
  replaceValueOnVariableInsert: useInputWithNoVariables,
2698
2721
  autoFocus,
2699
2722
  filterVariable,
2723
+ disableVariableDisplayNames,
2700
2724
  children: [
2701
2725
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PasteTransformerPlugin, { transformPaste }),
2702
2726
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ControlledValuePlugin, { value, enabled: singleTokenMode || useInputWithNoVariables }),
@@ -2711,6 +2735,7 @@ function InputVariablesOverlayMenu({
2711
2735
  disabled,
2712
2736
  useInputWhenNoVariables,
2713
2737
  portal,
2738
+ isActive,
2714
2739
  ...props
2715
2740
  }) {
2716
2741
  if (disabled) {
@@ -2724,7 +2749,8 @@ function InputVariablesOverlayMenu({
2724
2749
  ...props,
2725
2750
  portal,
2726
2751
  tip: useInputWhenNoVariables ? void 0 : "Tip: access this list by typing $$",
2727
- buttonCss: menuBtn2
2752
+ buttonCss: [menuBtn2, variableBindButton],
2753
+ buttonProps: isActive ? { "aria-pressed": "true" } : void 0
2728
2754
  }
2729
2755
  )
2730
2756
  ] });
@@ -2777,7 +2803,7 @@ function ParameterConnectionIndicator({
2777
2803
  css: [menuBtn, variableBindButton],
2778
2804
  type: "button",
2779
2805
  "data-testid": "insert-variable",
2780
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_CgUsbC2.CgUsbC, { size: "1.4rem" })
2806
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_CgUsbC2.CgUsbC, { size: "1rem" })
2781
2807
  }
2782
2808
  )
2783
2809
  }
@@ -2997,13 +3023,13 @@ ${prettifyBindExpression(bindExpression)}`
2997
3023
 
2998
3024
  // src/components/Variables/VariablesList.tsx
2999
3025
  var import_react35 = require("@emotion/react");
3026
+ var import_dnd2 = require("@hello-pangea/dnd");
3000
3027
  var import_CgTrash = require("@react-icons/all-files/cg/CgTrash");
3001
3028
  var import_design_system13 = require("@uniformdev/design-system");
3002
- var import_react_beautiful_dnd2 = require("react-beautiful-dnd");
3003
3029
 
3004
3030
  // src/components/DragDropContext.tsx
3031
+ var import_dnd = require("@hello-pangea/dnd");
3005
3032
  var import_react33 = require("react");
3006
- var import_react_beautiful_dnd = require("react-beautiful-dnd");
3007
3033
  var import_react_use = require("react-use");
3008
3034
  var import_jsx_runtime31 = require("@emotion/react/jsx-runtime");
3009
3035
  function DragDropContext({ children, ...props }) {
@@ -3015,7 +3041,7 @@ function DragDropContext({ children, ...props }) {
3015
3041
  300,
3016
3042
  []
3017
3043
  );
3018
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_beautiful_dnd.DragDropContext, { ...props, children: isReady ? children : null });
3044
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_dnd.DragDropContext, { ...props, children: isReady ? children : null });
3019
3045
  }
3020
3046
 
3021
3047
  // src/components/Variables/styles/VariablesList.styles.ts
@@ -3065,8 +3091,8 @@ var variableValue = import_react34.css`
3065
3091
 
3066
3092
  // src/components/Variables/VariablesList.tsx
3067
3093
  var import_jsx_runtime32 = require("@emotion/react/jsx-runtime");
3068
- var DroppableHack = import_react_beautiful_dnd2.Droppable;
3069
- var DraggableHack = import_react_beautiful_dnd2.Draggable;
3094
+ var DroppableHack = import_dnd2.Droppable;
3095
+ var DraggableHack = import_dnd2.Draggable;
3070
3096
  function VariablesList() {
3071
3097
  const { variables, dispatch, readOnly } = useVariables();
3072
3098
  const sorted = variablesToList(variables).filter((variable) => !variable.system);
@@ -3258,7 +3284,8 @@ function TextVariableRenderer({ definition, value, setValue }) {
3258
3284
  value: value != null ? value : "",
3259
3285
  caption: (_a = definition.helpText) != null ? _a : definition.default !== "" ? `Default value: ${definition.default}` : void 0,
3260
3286
  onChange: setValue,
3261
- "data-testid": "variable-input"
3287
+ "data-testid": "variable-input",
3288
+ disableInlineMenu: "by-label"
3262
3289
  }
3263
3290
  ) });
3264
3291
  }
@@ -3269,11 +3296,11 @@ var import_design_system15 = require("@uniformdev/design-system");
3269
3296
  var import_react38 = require("react");
3270
3297
 
3271
3298
  // src/components/Request/RequestProvider.tsx
3272
- var React5 = __toESM(require("react"));
3299
+ var React4 = __toESM(require("react"));
3273
3300
  var import_jsx_runtime35 = require("@emotion/react/jsx-runtime");
3274
- var RequestContext = React5.createContext(null);
3301
+ var RequestContext = React4.createContext(null);
3275
3302
  function RequestProvider({ value, onChange, children }) {
3276
- const contextValue = React5.useMemo(() => {
3303
+ const contextValue = React4.useMemo(() => {
3277
3304
  return {
3278
3305
  dispatch: (event) => {
3279
3306
  if (event.type === "setRelativeUrl") {
@@ -3342,7 +3369,7 @@ function RequestProvider({ value, onChange, children }) {
3342
3369
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RequestContext.Provider, { value: contextValue, children });
3343
3370
  }
3344
3371
  function useRequest() {
3345
- const context = React5.useContext(RequestContext);
3372
+ const context = React4.useContext(RequestContext);
3346
3373
  if (!context) {
3347
3374
  throw new Error("No RequestProvider present");
3348
3375
  }
@@ -4295,7 +4322,7 @@ var ObjectSearchListItem = ({
4295
4322
  ),
4296
4323
  /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { css: ObjectListItemInfoContainer, children: [
4297
4324
  selected ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_design_system22.Chip, { text: "selected", size: "xs" }) : null,
4298
- !popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_design_system22.Popover, { ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
4325
+ !popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_design_system22.Popover, { ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
4299
4326
  ] }),
4300
4327
  !children ? null : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { css: ObjectListItemUnControlledContent, children })
4301
4328
  ]
@@ -4718,8 +4745,8 @@ function legacyThemeMapper(theme) {
4718
4745
  }
4719
4746
 
4720
4747
  // src/components/ObjectSearch/ObjectSearchResultList.tsx
4748
+ var import_dnd3 = require("@hello-pangea/dnd");
4721
4749
  var import_design_system27 = require("@uniformdev/design-system");
4722
- var import_react_beautiful_dnd3 = require("react-beautiful-dnd");
4723
4750
 
4724
4751
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
4725
4752
  var import_react50 = require("@emotion/react");
@@ -4748,8 +4775,8 @@ var ObjectSearchResultListTitle = import_react50.css`
4748
4775
 
4749
4776
  // src/components/ObjectSearch/ObjectSearchResultList.tsx
4750
4777
  var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
4751
- var DroppableHack2 = import_react_beautiful_dnd3.Droppable;
4752
- var DraggableHack2 = import_react_beautiful_dnd3.Draggable;
4778
+ var DroppableHack2 = import_dnd3.Droppable;
4779
+ var DraggableHack2 = import_dnd3.Draggable;
4753
4780
  function ObjectSearchResultList({
4754
4781
  resultLabelText = "Selected",
4755
4782
  removeButtonText = "Remove all",