@uniformdev/mesh-sdk-react 19.79.1-alpha.11 → 19.79.1-alpha.13

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.mjs CHANGED
@@ -988,7 +988,7 @@ var searchRowPopover = css6`
988
988
  border-left: 4px solid var(--brand-secondary-3);
989
989
  border-radius: var(--rounded-base);
990
990
  box-shadow: var(--shadow-base);
991
- color: var(--brand-secondary-1);
991
+ color: var(--typography-base);
992
992
  padding: var(--spacing-base);
993
993
  position: absolute;
994
994
  top: var(--spacing-base);
@@ -1122,7 +1122,7 @@ var selectedItemCopy = css8`
1122
1122
  position: relative;
1123
1123
  `;
1124
1124
  var selectedItemTitle = css8`
1125
- color: var(--brand-secondary-1);
1125
+ color: var(--typography-base);
1126
1126
  font-size: var(--fs-base);
1127
1127
  font-weight: var(--fw-bold);
1128
1128
  line-height: 1;
@@ -1375,8 +1375,8 @@ import {
1375
1375
  scrollbarStyles as scrollbarStyles2
1376
1376
  } from "@uniformdev/design-system";
1377
1377
  import * as React5 from "react";
1378
- import { DragDropContext, Draggable, Droppable } from "react-beautiful-dnd";
1379
- import { useDebounce as useDebounce2 } from "react-use";
1378
+ import { Draggable, Droppable } from "react-beautiful-dnd";
1379
+ import { useDebounce as useDebounce3 } from "react-use";
1380
1380
  import { v4 } from "uuid";
1381
1381
 
1382
1382
  // src/hooks/useLoadingDelay.ts
@@ -1412,6 +1412,23 @@ function useLoadingDelay(loading, { delay = 500, minDuration = 200 } = {
1412
1412
  return state === "DISPLAY" || state === "EXPIRE";
1413
1413
  }
1414
1414
 
1415
+ // src/components/DragDropContext.tsx
1416
+ import { useState as useState4 } from "react";
1417
+ import { DragDropContext as BaseDragDropContext } from "react-beautiful-dnd";
1418
+ import { useDebounce as useDebounce2 } from "react-use";
1419
+ import { jsx as jsx21 } from "@emotion/react/jsx-runtime";
1420
+ function DragDropContext({ children, ...props }) {
1421
+ const [isReady, setIsReady] = useState4(false);
1422
+ useDebounce2(
1423
+ () => {
1424
+ setIsReady(true);
1425
+ },
1426
+ 300,
1427
+ []
1428
+ );
1429
+ return /* @__PURE__ */ jsx21(BaseDragDropContext, { ...props, children: isReady ? children : null });
1430
+ }
1431
+
1415
1432
  // src/components/legacy/EntrySearch/styles/EntrySearch.styles.ts
1416
1433
  import { css as css10 } from "@emotion/react";
1417
1434
  var entrySearchWrapper = css10`
@@ -1431,7 +1448,7 @@ var entrySearchBtn = css10`
1431
1448
  border: 0;
1432
1449
  `;
1433
1450
  var entrySearchLoadMoreBtn = css10`
1434
- color: var(--brand-secondary-1);
1451
+ color: var(--typography-base);
1435
1452
  display: block;
1436
1453
  font-weight: var(--fw-bold);
1437
1454
  font-size: var(--fs-sm);
@@ -1480,7 +1497,7 @@ var entrySearchSelectIcon = css10`
1480
1497
  padding-right: var(--spacing-sm);
1481
1498
  `;
1482
1499
  var entrySearchSelectImg = css10`
1483
- color: var(--brand-secondary-1);
1500
+ color: var(--typography-base);
1484
1501
  width: 1.25rem;
1485
1502
  height: 1.25rem;
1486
1503
  transition: transform var(--duration-fast) var(--timing-ease-out);
@@ -1488,7 +1505,7 @@ var entrySearchSelectImg = css10`
1488
1505
  `;
1489
1506
  var entrySearchSelectOption = css10`
1490
1507
  background: var(--white);
1491
- color: var(--brand-secondary-1);
1508
+ color: var(--typography-base);
1492
1509
  `;
1493
1510
  var draggableContainer = css10`
1494
1511
  position: relative;
@@ -1512,7 +1529,7 @@ var draggableIconWrapper = css10`
1512
1529
  opacity: 0;
1513
1530
  `;
1514
1531
  var draggableIcon = css10`
1515
- color: var(--brand-secondary-1);
1532
+ color: var(--typography-base);
1516
1533
  `;
1517
1534
  var draggableIconOffset = css10`
1518
1535
  position: absolute;
@@ -1524,7 +1541,7 @@ var badgeIcon = css10`
1524
1541
  `;
1525
1542
 
1526
1543
  // src/components/legacy/EntrySearch/EntrySearch.tsx
1527
- import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
1544
+ import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
1528
1545
  var DefaultNoResults = ({ searchText, selectedContentType }) => {
1529
1546
  let message = "No content found";
1530
1547
  if (selectedContentType && selectedContentType !== "any") {
@@ -1533,7 +1550,7 @@ var DefaultNoResults = ({ searchText, selectedContentType }) => {
1533
1550
  if (searchText) {
1534
1551
  message = `${message} for keyword '${searchText}'.`;
1535
1552
  }
1536
- return /* @__PURE__ */ jsx21(Callout, { type: "info", children: message });
1553
+ return /* @__PURE__ */ jsx22(Callout, { type: "info", children: message });
1537
1554
  };
1538
1555
  var EntrySearch = ({
1539
1556
  search,
@@ -1577,7 +1594,7 @@ var EntrySearch = ({
1577
1594
  const [selectedListItems, setSelectedListItems] = React5.useState([]);
1578
1595
  const [loadingMore, setLoadingMore] = React5.useState(false);
1579
1596
  const listBoxId = React5.useRef(`x${v4()}`);
1580
- useDebounce2(
1597
+ useDebounce3(
1581
1598
  () => {
1582
1599
  search(textInput, {
1583
1600
  count: pageSize,
@@ -1656,7 +1673,7 @@ var EntrySearch = ({
1656
1673
  const ResolvedSelectedItemComponent = selectedItemComponent || DefaultSelectedItem;
1657
1674
  const ResolvedNoResultsComponent = noResultsComponent || DefaultNoResults;
1658
1675
  const CompIcon = logoIcon && typeof logoIcon !== "string" ? logoIcon : null;
1659
- const resolvedIcon = CompIcon ? /* @__PURE__ */ jsx21(CompIcon, { css: badgeIcon }) : /* @__PURE__ */ jsx21("img", { src: logoIcon, alt: "Logo", css: badgeIcon });
1676
+ const resolvedIcon = CompIcon ? /* @__PURE__ */ jsx22(CompIcon, { css: badgeIcon }) : /* @__PURE__ */ jsx22("img", { src: logoIcon, alt: "Logo", css: badgeIcon });
1660
1677
  const onDragEnd = (res) => {
1661
1678
  var _a2, _b2;
1662
1679
  if (res.destination && res.source.droppableId === ((_a2 = res.destination) == null ? void 0 : _a2.droppableId)) {
@@ -1670,7 +1687,7 @@ var EntrySearch = ({
1670
1687
  return result;
1671
1688
  }
1672
1689
  };
1673
- return /* @__PURE__ */ jsx21(
1690
+ return /* @__PURE__ */ jsx22(
1674
1691
  "div",
1675
1692
  {
1676
1693
  css: css11`
@@ -1685,7 +1702,7 @@ var EntrySearch = ({
1685
1702
  `,
1686
1703
  children: [
1687
1704
  showSearchBox ? /* @__PURE__ */ jsxs10(Fragment3, { children: [
1688
- /* @__PURE__ */ jsx21("div", { css: entrySearchWrapper, "data-testid": "component-search", children: /* @__PURE__ */ jsxs10(
1705
+ /* @__PURE__ */ jsx22("div", { css: entrySearchWrapper, "data-testid": "component-search", children: /* @__PURE__ */ jsxs10(
1689
1706
  "button",
1690
1707
  {
1691
1708
  css: entrySearchBtn,
@@ -1696,7 +1713,7 @@ var EntrySearch = ({
1696
1713
  "aria-controls": `entry-search-config-${listBoxId.current}`,
1697
1714
  children: [
1698
1715
  resolvedIcon,
1699
- /* @__PURE__ */ jsx21(
1716
+ /* @__PURE__ */ jsx22(
1700
1717
  "span",
1701
1718
  {
1702
1719
  css: css11`
@@ -1705,7 +1722,7 @@ var EntrySearch = ({
1705
1722
  children: "Select"
1706
1723
  }
1707
1724
  ),
1708
- /* @__PURE__ */ jsx21("span", { css: entrySearchSelectIcon, children: /* @__PURE__ */ jsx21(
1725
+ /* @__PURE__ */ jsx22("span", { css: entrySearchSelectIcon, children: /* @__PURE__ */ jsx22(
1709
1726
  ChevronDown_default,
1710
1727
  {
1711
1728
  css: [
@@ -1736,7 +1753,7 @@ var EntrySearch = ({
1736
1753
  margin-bottom: var(--spacing-base);
1737
1754
  `,
1738
1755
  children: [
1739
- /* @__PURE__ */ jsx21(
1756
+ /* @__PURE__ */ jsx22(
1740
1757
  InputSelect3,
1741
1758
  {
1742
1759
  onChange: (e) => setContentTypeSelected(e.target.value),
@@ -1754,13 +1771,13 @@ var EntrySearch = ({
1754
1771
  ]
1755
1772
  }
1756
1773
  ),
1757
- /* @__PURE__ */ jsx21(
1774
+ /* @__PURE__ */ jsx22(
1758
1775
  "div",
1759
1776
  {
1760
1777
  css: css11`
1761
1778
  flex-grow: 1;
1762
1779
  `,
1763
- children: /* @__PURE__ */ jsx21(
1780
+ children: /* @__PURE__ */ jsx22(
1764
1781
  InputKeywordSearch,
1765
1782
  {
1766
1783
  inputFieldName: "searchText",
@@ -1784,8 +1801,8 @@ var EntrySearch = ({
1784
1801
  tabIndex: 0,
1785
1802
  "data-testid": "entry-list",
1786
1803
  children: [
1787
- /* @__PURE__ */ jsx21(LoadingOverlay, { isActive: showLoadingOverlay }),
1788
- Array.isArray(results) && results.length > 0 ? results.map((result) => /* @__PURE__ */ jsx21(
1804
+ /* @__PURE__ */ jsx22(LoadingOverlay, { isActive: showLoadingOverlay }),
1805
+ Array.isArray(results) && results.length > 0 ? results.map((result) => /* @__PURE__ */ jsx22(
1789
1806
  ResolvedRowComponent,
1790
1807
  {
1791
1808
  isSelected: selectedListItems.some((item) => item.id === result.id),
@@ -1793,14 +1810,14 @@ var EntrySearch = ({
1793
1810
  triggerSelection: () => handleListItemSelect(result)
1794
1811
  },
1795
1812
  result.id
1796
- )) : resultsLoading ? null : /* @__PURE__ */ jsx21(
1813
+ )) : resultsLoading ? null : /* @__PURE__ */ jsx22(
1797
1814
  ResolvedNoResultsComponent,
1798
1815
  {
1799
1816
  searchText: textInput || textInput,
1800
1817
  selectedContentType: (_b = (_a = contentTypes == null ? void 0 : contentTypes.find((t) => t.id === contentTypeSelected)) == null ? void 0 : _a.name) != null ? _b : contentTypeSelected
1801
1818
  }
1802
1819
  ),
1803
- !resultsLoading && typeof totalResults !== "undefined" && results && (results == null ? void 0 : results.length) < totalResults && /* @__PURE__ */ jsx21("button", { type: "button", css: entrySearchLoadMoreBtn, onClick: handleLoadMoreClick, children: !loadingMore ? "Load More" : /* @__PURE__ */ jsx21(LoadingIndicator, {}) })
1820
+ !resultsLoading && typeof totalResults !== "undefined" && results && (results == null ? void 0 : results.length) < totalResults && /* @__PURE__ */ jsx22("button", { type: "button", css: entrySearchLoadMoreBtn, onClick: handleLoadMoreClick, children: !loadingMore ? "Load More" : /* @__PURE__ */ jsx22(LoadingIndicator, {}) })
1804
1821
  ]
1805
1822
  }
1806
1823
  ),
@@ -1812,17 +1829,17 @@ var EntrySearch = ({
1812
1829
  justify-content: space-between;
1813
1830
  `,
1814
1831
  children: [
1815
- /* @__PURE__ */ jsx21("div", { children: onAddNew && ((_c = contentTypes == null ? void 0 : contentTypes.length) != null ? _c : 0) > 0 ? /* @__PURE__ */ jsx21(
1832
+ /* @__PURE__ */ jsx22("div", { children: onAddNew && ((_c = contentTypes == null ? void 0 : contentTypes.length) != null ? _c : 0) > 0 ? /* @__PURE__ */ jsx22(
1816
1833
  Menu,
1817
1834
  {
1818
1835
  menuLabel: "Add new menu",
1819
- menuTrigger: /* @__PURE__ */ jsx21(Button, { buttonType: "secondary", children: "Add New" }),
1820
- children: contentTypes == null ? void 0 : contentTypes.map((ct) => /* @__PURE__ */ jsx21(
1836
+ menuTrigger: /* @__PURE__ */ jsx22(Button, { buttonType: "secondary", children: "Add New" }),
1837
+ children: contentTypes == null ? void 0 : contentTypes.map((ct) => /* @__PURE__ */ jsx22(
1821
1838
  MenuItem,
1822
1839
  {
1823
1840
  css: css11`
1824
1841
  background: var(--white);
1825
- color: var(--brand-secondary-1);
1842
+ color: var(--typography-base);
1826
1843
  `,
1827
1844
  onClick: () => onAddNew(ct),
1828
1845
  children: ct.name
@@ -1839,8 +1856,8 @@ var EntrySearch = ({
1839
1856
  gap: var(--spacing-base);
1840
1857
  `,
1841
1858
  children: [
1842
- /* @__PURE__ */ jsx21(Button, { buttonType: "unimportant", onClick: handleCancelClick, children: "Cancel" }),
1843
- /* @__PURE__ */ jsx21(
1859
+ /* @__PURE__ */ jsx22(Button, { buttonType: "unimportant", onClick: handleCancelClick, children: "Cancel" }),
1860
+ /* @__PURE__ */ jsx22(
1844
1861
  Button,
1845
1862
  {
1846
1863
  disabled: !selectedListItems.length,
@@ -1861,7 +1878,7 @@ var EntrySearch = ({
1861
1878
  ] }) : null,
1862
1879
  !listOpen ? multiSelect && selectedListItems.length > 1 ? (
1863
1880
  //enable dnd only if selected more then 1 item
1864
- /* @__PURE__ */ jsx21(DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx21(Droppable, { droppableId: multiSelectId || "canvas-multi-select", children: (provided) => /* @__PURE__ */ jsxs10(
1881
+ /* @__PURE__ */ jsx22(DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx22(Droppable, { droppableId: multiSelectId || "canvas-multi-select", children: (provided) => /* @__PURE__ */ jsxs10(
1865
1882
  "div",
1866
1883
  {
1867
1884
  ...provided.droppableProps,
@@ -1872,7 +1889,7 @@ var EntrySearch = ({
1872
1889
  children: [
1873
1890
  selectedListItems == null ? void 0 : selectedListItems.map((selectedItem, index) => {
1874
1891
  if (selectedItem == null ? void 0 : selectedItem.id) {
1875
- return /* @__PURE__ */ jsx21(Draggable, { draggableId: selectedItem.id, index, children: (provided2, snapshot) => {
1892
+ return /* @__PURE__ */ jsx22(Draggable, { draggableId: selectedItem.id, index, children: (provided2, snapshot) => {
1876
1893
  return /* @__PURE__ */ jsxs10(
1877
1894
  "div",
1878
1895
  {
@@ -1883,7 +1900,7 @@ var EntrySearch = ({
1883
1900
  ...provided2.dragHandleProps,
1884
1901
  children: [
1885
1902
  /* @__PURE__ */ jsxs10("span", { css: draggableIconWrapper, children: [
1886
- /* @__PURE__ */ jsx21(
1903
+ /* @__PURE__ */ jsx22(
1887
1904
  MoreVerticalAlt_default,
1888
1905
  {
1889
1906
  css: [draggableIcon, draggableIconOffset],
@@ -1891,9 +1908,9 @@ var EntrySearch = ({
1891
1908
  height: 24
1892
1909
  }
1893
1910
  ),
1894
- /* @__PURE__ */ jsx21(MoreVerticalAlt_default, { css: draggableIcon, width: 24, height: 24 })
1911
+ /* @__PURE__ */ jsx22(MoreVerticalAlt_default, { css: draggableIcon, width: 24, height: 24 })
1895
1912
  ] }),
1896
- /* @__PURE__ */ jsx21(
1913
+ /* @__PURE__ */ jsx22(
1897
1914
  ResolvedSelectedItemComponent,
1898
1915
  {
1899
1916
  logoIcon,
@@ -1913,7 +1930,7 @@ var EntrySearch = ({
1913
1930
  ]
1914
1931
  }
1915
1932
  ) }) })
1916
- ) : selectedListItems == null ? void 0 : selectedListItems.map((selectedItem) => /* @__PURE__ */ jsx21(
1933
+ ) : selectedListItems == null ? void 0 : selectedListItems.map((selectedItem) => /* @__PURE__ */ jsx22(
1917
1934
  ResolvedSelectedItemComponent,
1918
1935
  {
1919
1936
  logoIcon,
@@ -1978,7 +1995,7 @@ var productSearchRowActiveIcon = css12`
1978
1995
  `;
1979
1996
 
1980
1997
  // src/components/commerce/ProductSearchRow.tsx
1981
- import { jsx as jsx22, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
1998
+ import { jsx as jsx23, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
1982
1999
  function ProductSearchRow({
1983
2000
  result,
1984
2001
  isSelected,
@@ -1988,7 +2005,7 @@ function ProductSearchRow({
1988
2005
  const { categories, logoIcon } = useProductSearchContext();
1989
2006
  const [category] = result.categories || [{ id: "", name: "" }];
1990
2007
  const categoryName = typeof category === "undefined" || !categories ? void 0 : (_a = categories.find((c) => c.id === category.id)) == null ? void 0 : _a.name;
1991
- return /* @__PURE__ */ jsx22(
2008
+ return /* @__PURE__ */ jsx23(
1992
2009
  "div",
1993
2010
  {
1994
2011
  "data-value": result.id,
@@ -1997,7 +2014,7 @@ function ProductSearchRow({
1997
2014
  onClick: () => triggerSelection(),
1998
2015
  css: [productSearchRowContainer],
1999
2016
  children: /* @__PURE__ */ jsxs11("div", { css: [productSearchRowContent, isSelected ? productSearchRowContentActive : void 0], children: [
2000
- result.thumbnailUrl ? /* @__PURE__ */ jsx22(
2017
+ result.thumbnailUrl ? /* @__PURE__ */ jsx23(
2001
2018
  "img",
2002
2019
  {
2003
2020
  src: result.thumbnailUrl,
@@ -2009,7 +2026,7 @@ function ProductSearchRow({
2009
2026
  object-fit: cover;
2010
2027
  `
2011
2028
  }
2012
- ) : /* @__PURE__ */ jsx22(
2029
+ ) : /* @__PURE__ */ jsx23(
2013
2030
  Image,
2014
2031
  {
2015
2032
  src: logoIcon,
@@ -2022,14 +2039,14 @@ function ProductSearchRow({
2022
2039
  ),
2023
2040
  /* @__PURE__ */ jsxs11("h4", { css: [productSearchRowTitle], children: [
2024
2041
  result.title,
2025
- categoryName ? /* @__PURE__ */ jsx22("span", { css: [productSearchRowCategory], children: categoryName }) : null
2042
+ categoryName ? /* @__PURE__ */ jsx23("span", { css: [productSearchRowCategory], children: categoryName }) : null
2026
2043
  ] }),
2027
2044
  /* @__PURE__ */ jsxs11("p", { css: [productSearchRowDetails], children: [
2028
2045
  "SKU: ",
2029
2046
  result.sku || result.id,
2030
- result.price !== void 0 ? /* @__PURE__ */ jsx22("span", { children: result.price }) : null
2047
+ result.price !== void 0 ? /* @__PURE__ */ jsx23("span", { children: result.price }) : null
2031
2048
  ] }),
2032
- isSelected ? /* @__PURE__ */ jsx22(Checkmark_default, { css: [productSearchRowActiveIcon] }) : null
2049
+ isSelected ? /* @__PURE__ */ jsx23(Checkmark_default, { css: [productSearchRowActiveIcon] }) : null
2033
2050
  ] })
2034
2051
  },
2035
2052
  result.id
@@ -2114,7 +2131,7 @@ var productSelectedItemLinkContainer = css14`
2114
2131
  `;
2115
2132
 
2116
2133
  // src/components/commerce/ProductSelectedItem.tsx
2117
- import { jsx as jsx23, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
2134
+ import { jsx as jsx24, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
2118
2135
  function ProductSelectedItem({
2119
2136
  selectedItem,
2120
2137
  onDeselect
@@ -2123,9 +2140,9 @@ function ProductSelectedItem({
2123
2140
  const { categories, logoIcon } = useProductSearchContext();
2124
2141
  const [category] = selectedItem.categories || [{ id: "", name: "" }];
2125
2142
  const categoryName = typeof category === "undefined" || !categories ? void 0 : (_a = categories.find((c) => c.id === category.id)) == null ? void 0 : _a.name;
2126
- return /* @__PURE__ */ jsx23("div", { css: [productSelectedItemContainer], children: /* @__PURE__ */ jsxs12("article", { css: [productSelectedItemDetails], children: [
2143
+ return /* @__PURE__ */ jsx24("div", { css: [productSelectedItemContainer], children: /* @__PURE__ */ jsxs12("article", { css: [productSelectedItemDetails], children: [
2127
2144
  /* @__PURE__ */ jsxs12("div", { css: [productSelectedItemContent], children: [
2128
- selectedItem.thumbnailUrl ? /* @__PURE__ */ jsx23(
2145
+ selectedItem.thumbnailUrl ? /* @__PURE__ */ jsx24(
2129
2146
  "img",
2130
2147
  {
2131
2148
  src: selectedItem.thumbnailUrl,
@@ -2133,7 +2150,7 @@ function ProductSelectedItem({
2133
2150
  css: [productSelectedItemImage],
2134
2151
  loading: "lazy"
2135
2152
  }
2136
- ) : /* @__PURE__ */ jsx23("div", { css: [productSelectedItemImage] }),
2153
+ ) : /* @__PURE__ */ jsx24("div", { css: [productSelectedItemImage] }),
2137
2154
  /* @__PURE__ */ jsxs12(
2138
2155
  "div",
2139
2156
  {
@@ -2152,7 +2169,7 @@ function ProductSelectedItem({
2152
2169
  `,
2153
2170
  children: [
2154
2171
  selectedItem.title || selectedItem.id || "",
2155
- categoryName && /* @__PURE__ */ jsx23(
2172
+ categoryName && /* @__PURE__ */ jsx24(
2156
2173
  "span",
2157
2174
  {
2158
2175
  css: css15`
@@ -2178,7 +2195,7 @@ function ProductSelectedItem({
2178
2195
  `,
2179
2196
  children: [
2180
2197
  /* @__PURE__ */ jsxs12("li", { children: [
2181
- /* @__PURE__ */ jsx23(
2198
+ /* @__PURE__ */ jsx24(
2182
2199
  "span",
2183
2200
  {
2184
2201
  css: css15`
@@ -2190,7 +2207,7 @@ function ProductSelectedItem({
2190
2207
  selectedItem.sku || selectedItem.id
2191
2208
  ] }),
2192
2209
  selectedItem.price !== void 0 ? /* @__PURE__ */ jsxs12("li", { children: [
2193
- /* @__PURE__ */ jsx23(
2210
+ /* @__PURE__ */ jsx24(
2194
2211
  "span",
2195
2212
  {
2196
2213
  css: css15`
@@ -2199,7 +2216,7 @@ function ProductSelectedItem({
2199
2216
  children: "Price:"
2200
2217
  }
2201
2218
  ),
2202
- /* @__PURE__ */ jsx23("span", { children: selectedItem.price })
2219
+ /* @__PURE__ */ jsx24("span", { children: selectedItem.price })
2203
2220
  ] }) : null
2204
2221
  ]
2205
2222
  }
@@ -2218,8 +2235,8 @@ function ProductSelectedItem({
2218
2235
  target: "_blank",
2219
2236
  css: productedSelectedItemLinkBtn,
2220
2237
  children: [
2221
- /* @__PURE__ */ jsx23("span", { css: productedSelectedItemSmallText, children: "Edit" }),
2222
- /* @__PURE__ */ jsx23(Image, { src: logoIcon, alt: "Logo", css: productSelectedItemIcon })
2238
+ /* @__PURE__ */ jsx24("span", { css: productedSelectedItemSmallText, children: "Edit" }),
2239
+ /* @__PURE__ */ jsx24(Image, { src: logoIcon, alt: "Logo", css: productSelectedItemIcon })
2223
2240
  ]
2224
2241
  }
2225
2242
  ) : null,
@@ -2232,8 +2249,8 @@ function ProductSelectedItem({
2232
2249
  },
2233
2250
  css: productedSelectedItemLinkBtn,
2234
2251
  children: [
2235
- /* @__PURE__ */ jsx23("span", { css: productedSelectedItemSmallText, children: "Unlink" }),
2236
- /* @__PURE__ */ jsx23(Icon3, { icon: CgClose3, iconColor: "red", size: 16 })
2252
+ /* @__PURE__ */ jsx24("span", { css: productedSelectedItemSmallText, children: "Unlink" }),
2253
+ /* @__PURE__ */ jsx24(Icon3, { icon: CgClose3, iconColor: "red", size: 16 })
2237
2254
  ]
2238
2255
  }
2239
2256
  )
@@ -2242,7 +2259,7 @@ function ProductSelectedItem({
2242
2259
  }
2243
2260
 
2244
2261
  // src/components/commerce/ProductSearch.tsx
2245
- import { jsx as jsx24, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
2262
+ import { jsx as jsx25, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
2246
2263
  function ProductSearch({
2247
2264
  selectedProducts,
2248
2265
  setSelectedProducts,
@@ -2313,9 +2330,9 @@ function ProductSearch({
2313
2330
  "There was an error: ",
2314
2331
  (categoriesError2 == null ? void 0 : categoriesError2.message) || (searchError == null ? void 0 : searchError.message)
2315
2332
  ] });
2316
- return /* @__PURE__ */ jsx24(ErrorComp, { categoriesError, searchError: handleSearchState.error });
2333
+ return /* @__PURE__ */ jsx25(ErrorComp, { categoriesError, searchError: handleSearchState.error });
2317
2334
  }
2318
- return /* @__PURE__ */ jsx24(ProductSearchContext.Provider, { value: { categories, logoIcon }, children: /* @__PURE__ */ jsx24(
2335
+ return /* @__PURE__ */ jsx25(ProductSearchContext.Provider, { value: { categories, logoIcon }, children: /* @__PURE__ */ jsx25(
2319
2336
  EntrySearch,
2320
2337
  {
2321
2338
  search: handleSearch,
@@ -2353,7 +2370,7 @@ import { css as css17 } from "@emotion/react";
2353
2370
  import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
2354
2371
  import { CgInfo as CgInfo2 } from "@react-icons/all-files/cg/CgInfo";
2355
2372
  import { Icon as Icon4 } from "@uniformdev/design-system";
2356
- import { useEffect as useEffect4, useRef as useRef6, useState as useState5 } from "react";
2373
+ import { useEffect as useEffect4, useRef as useRef6, useState as useState6 } from "react";
2357
2374
  import { format as timeAgo2 } from "timeago.js";
2358
2375
 
2359
2376
  // src/components/dam/DamSelectedItem.styles.ts
@@ -2384,7 +2401,7 @@ var damSelectedItemCopy = css16`
2384
2401
  position: relative;
2385
2402
  `;
2386
2403
  var damSelectedItemTitle = css16`
2387
- color: var(--brand-secondary-1);
2404
+ color: var(--typography-base);
2388
2405
  font-size: var(--fs-base);
2389
2406
  font-weight: var(--fw-bold);
2390
2407
  line-height: 1;
@@ -2459,7 +2476,7 @@ var damSelectItemImage = css16`
2459
2476
  `;
2460
2477
 
2461
2478
  // src/components/dam/DamSelectedItem.tsx
2462
- import { jsx as jsx25, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
2479
+ import { jsx as jsx26, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
2463
2480
  function DamSelectedItem({
2464
2481
  selectedItem,
2465
2482
  onDeselect,
@@ -2468,7 +2485,7 @@ function DamSelectedItem({
2468
2485
  itemDetailsRendererComponent
2469
2486
  }) {
2470
2487
  const popoverRef = useRef6(null);
2471
- const [showInfo, setShowInfo] = useState5(false);
2488
+ const [showInfo, setShowInfo] = useState6(false);
2472
2489
  useEffect4(() => {
2473
2490
  const resizeHandler = () => {
2474
2491
  setShowInfo(false);
@@ -2479,7 +2496,7 @@ function DamSelectedItem({
2479
2496
  };
2480
2497
  }, [popoverRef]);
2481
2498
  const ResolvedItemDetailsRendererComponent = itemDetailsRendererComponent != null ? itemDetailsRendererComponent : DefaultDamItemRenderer;
2482
- return /* @__PURE__ */ jsx25(
2499
+ return /* @__PURE__ */ jsx26(
2483
2500
  "div",
2484
2501
  {
2485
2502
  css: [
@@ -2491,9 +2508,9 @@ function DamSelectedItem({
2491
2508
  children: /* @__PURE__ */ jsxs14("div", { css: damSelectedItemInner, children: [
2492
2509
  /* @__PURE__ */ jsxs14("div", { css: damSelectedItemDetails, children: [
2493
2510
  /* @__PURE__ */ jsxs14("div", { css: damSelectedItemCopy, children: [
2494
- /* @__PURE__ */ jsx25("h4", { css: [damSelectedItemTitle], title: `ID: ${selectedItem.id}`, "data-testid": "dam-selected-item", children: selectedItem.title || selectedItem.id || "" }),
2511
+ /* @__PURE__ */ jsx26("h4", { css: [damSelectedItemTitle], title: `ID: ${selectedItem.id}`, "data-testid": "dam-selected-item", children: selectedItem.title || selectedItem.id || "" }),
2495
2512
  selectedItem.popoverData ? /* @__PURE__ */ jsxs14("div", { ref: popoverRef, children: [
2496
- /* @__PURE__ */ jsx25(
2513
+ /* @__PURE__ */ jsx26(
2497
2514
  "button",
2498
2515
  {
2499
2516
  type: "button",
@@ -2501,7 +2518,7 @@ function DamSelectedItem({
2501
2518
  "aria-controls": "path-details",
2502
2519
  "aria-expanded": showInfo,
2503
2520
  onClick: () => setShowInfo(!showInfo),
2504
- children: /* @__PURE__ */ jsx25(
2521
+ children: /* @__PURE__ */ jsx26(
2505
2522
  Icon4,
2506
2523
  {
2507
2524
  icon: CgInfo2,
@@ -2514,7 +2531,7 @@ function DamSelectedItem({
2514
2531
  )
2515
2532
  }
2516
2533
  ),
2517
- /* @__PURE__ */ jsx25(
2534
+ /* @__PURE__ */ jsx26(
2518
2535
  "div",
2519
2536
  {
2520
2537
  id: "path-details",
@@ -2538,7 +2555,7 @@ function DamSelectedItem({
2538
2555
  )
2539
2556
  ] }) : null
2540
2557
  ] }),
2541
- /* @__PURE__ */ jsx25(ResolvedItemDetailsRendererComponent, { item: selectedItem })
2558
+ /* @__PURE__ */ jsx26(ResolvedItemDetailsRendererComponent, { item: selectedItem })
2542
2559
  ] }),
2543
2560
  /* @__PURE__ */ jsxs14("div", { css: damSelectedItemLinkContainer, children: [
2544
2561
  selectedItem.editLink ? typeof selectedItem.editLink === "string" ? /* @__PURE__ */ jsxs14(
@@ -2556,8 +2573,8 @@ function DamSelectedItem({
2556
2573
  },
2557
2574
  css: damSelectedItemLinkBtn,
2558
2575
  children: [
2559
- /* @__PURE__ */ jsx25("span", { css: damSelectedItemSmallText, children: "Edit" }),
2560
- logoIcon ? /* @__PURE__ */ jsx25(Image, { src: logoIcon, css: damSelectedItemIcon, alt: "Logo" }) : null
2576
+ /* @__PURE__ */ jsx26("span", { css: damSelectedItemSmallText, children: "Edit" }),
2577
+ logoIcon ? /* @__PURE__ */ jsx26(Image, { src: logoIcon, css: damSelectedItemIcon, alt: "Logo" }) : null
2561
2578
  ]
2562
2579
  }
2563
2580
  ) : selectedItem.editLink : null,
@@ -2570,8 +2587,8 @@ function DamSelectedItem({
2570
2587
  },
2571
2588
  css: damSelectedItemLinkBtn,
2572
2589
  children: [
2573
- /* @__PURE__ */ jsx25("span", { css: damSelectedItemSmallText, children: "Unlink" }),
2574
- /* @__PURE__ */ jsx25(Icon4, { icon: CgClose4, iconColor: "red", size: 16 })
2590
+ /* @__PURE__ */ jsx26("span", { css: damSelectedItemSmallText, children: "Unlink" }),
2591
+ /* @__PURE__ */ jsx26(Icon4, { icon: CgClose4, iconColor: "red", size: 16 })
2575
2592
  ]
2576
2593
  }
2577
2594
  )
@@ -2585,15 +2602,15 @@ function DefaultDamItemRenderer({ item }) {
2585
2602
  let preview = null;
2586
2603
  if (item.previewUrl && typeof item.previewUrl === "string") {
2587
2604
  if (item.type === "image") {
2588
- preview = /* @__PURE__ */ jsx25("img", { src: item.previewUrl, alt: item.id, width: "200", css: damSelectItemImage });
2605
+ preview = /* @__PURE__ */ jsx26("img", { src: item.previewUrl, alt: item.id, width: "200", css: damSelectItemImage });
2589
2606
  } else if (item.type === "video") {
2590
- preview = /* @__PURE__ */ jsx25("video", { src: item.previewUrl, title: item.id, width: "200", controls: true, css: damSelectItemImage });
2607
+ preview = /* @__PURE__ */ jsx26("video", { src: item.previewUrl, title: item.id, width: "200", controls: true, css: damSelectItemImage });
2591
2608
  }
2592
2609
  } else if (item.previewUrl && typeof item.previewUrl !== "string") {
2593
2610
  preview = item.previewUrl;
2594
2611
  }
2595
2612
  return preview || item.metadata ? /* @__PURE__ */ jsxs14("div", { css: damSelectedItemMediaContainer, children: [
2596
- preview ? /* @__PURE__ */ jsx25("div", { children: preview }) : null,
2613
+ preview ? /* @__PURE__ */ jsx26("div", { children: preview }) : null,
2597
2614
  /* @__PURE__ */ jsxs14("ul", { children: [
2598
2615
  item.metadata ? Object.entries(item.metadata).map(([key, value]) => {
2599
2616
  return /* @__PURE__ */ jsxs14(
@@ -2628,7 +2645,7 @@ function DefaultDamItemRenderer({ item }) {
2628
2645
  );
2629
2646
  }) : null,
2630
2647
  item.createdDate ? /* @__PURE__ */ jsxs14("li", { css: damSelectedItemSmallText, children: [
2631
- /* @__PURE__ */ jsx25("span", { css: damSelectedItemPopoverLabel, children: "Date:" }),
2648
+ /* @__PURE__ */ jsx26("span", { css: damSelectedItemPopoverLabel, children: "Date:" }),
2632
2649
  timeAgo2(item.createdDate)
2633
2650
  ] }) : null
2634
2651
  ] })
@@ -2654,13 +2671,14 @@ function useConnectedDataAsVariables(connectedData) {
2654
2671
  }
2655
2672
 
2656
2673
  // src/hooks/useDynamicInputsAsVariables.tsx
2674
+ import { LOCALE_DYNAMIC_INPUT_NAME } from "@uniformdev/canvas";
2657
2675
  import { useMemo as useMemo4 } from "react";
2658
- import { Fragment as Fragment4, jsx as jsx26 } from "@emotion/react/jsx-runtime";
2676
+ import { Fragment as Fragment4, jsx as jsx27 } from "@emotion/react/jsx-runtime";
2659
2677
  function useDynamicInputsAsVariables(dynamicInputs) {
2660
2678
  return useMemo4(() => {
2661
2679
  const result = Object.entries(dynamicInputs).reduce(
2662
2680
  (acc, [name, input3]) => {
2663
- const source = `from ${input3.type === "path" ? "URL path" : "query string"}`;
2681
+ const source = `from ${name === LOCALE_DYNAMIC_INPUT_NAME ? "current locale" : input3.type === "path" ? "URL path" : "query string"}`;
2664
2682
  acc[name] = {
2665
2683
  readOnly: true,
2666
2684
  type: input3.type,
@@ -2673,14 +2691,14 @@ Current preview value: ${input3.value || "not provided"}`
2673
2691
  if (!input3.value) {
2674
2692
  acc[name] = {
2675
2693
  ...acc[name],
2676
- helpText: /* @__PURE__ */ jsx26(Fragment4, { children: input3.value || /* @__PURE__ */ jsx26("em", { children: "not provided" }) }),
2694
+ helpText: /* @__PURE__ */ jsx27(Fragment4, { children: input3.value || /* @__PURE__ */ jsx27("em", { children: "not provided" }) }),
2677
2695
  displayName: name
2678
2696
  };
2679
2697
  } else {
2680
2698
  acc[name] = {
2681
2699
  ...acc[name],
2682
2700
  displayName: input3.value,
2683
- helpText: /* @__PURE__ */ jsx26(Fragment4, { children: name })
2701
+ helpText: /* @__PURE__ */ jsx27(Fragment4, { children: name })
2684
2702
  };
2685
2703
  }
2686
2704
  return acc;
@@ -2695,12 +2713,12 @@ Current preview value: ${input3.value || "not provided"}`
2695
2713
  import { useMemo as useMemo6, useRef as useRef7 } from "react";
2696
2714
 
2697
2715
  // src/components/UniformMeshLocationContext.tsx
2698
- import { createContext as createContext2, useContext as useContext4, useMemo as useMemo5, useState as useState6 } from "react";
2716
+ import { createContext as createContext2, useContext as useContext4, useMemo as useMemo5, useState as useState7 } from "react";
2699
2717
 
2700
2718
  // src/components/UniformMeshSdkContext.tsx
2701
2719
  import { Theme } from "@uniformdev/design-system";
2702
2720
  import { createContext, useContext as useContext3 } from "react";
2703
- import { jsx as jsx27, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
2721
+ import { jsx as jsx28, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
2704
2722
  var UniformMeshSdkContext = createContext(void 0);
2705
2723
  var useUniformMeshSdkContext = () => {
2706
2724
  const context = useContext3(UniformMeshSdkContext);
@@ -2717,13 +2735,13 @@ function useUniformMeshSdk() {
2717
2735
  }
2718
2736
 
2719
2737
  // src/components/UniformMeshLocationContext.tsx
2720
- import { jsx as jsx28 } from "@emotion/react/jsx-runtime";
2738
+ import { jsx as jsx29 } from "@emotion/react/jsx-runtime";
2721
2739
  var UniformMeshLocationContext = createContext2(void 0);
2722
2740
  var UniformMeshLocationContextProvider = ({
2723
2741
  children
2724
2742
  }) => {
2725
2743
  const sdk = useUniformMeshSdk();
2726
- const [location, setLocation] = useState6(sdk.getCurrentLocation());
2744
+ const [location, setLocation] = useState7(sdk.getCurrentLocation());
2727
2745
  useMemo5(() => {
2728
2746
  const valueChangeListener = (event) => {
2729
2747
  setLocation((old) => ({ ...old, value: event.newValue }));
@@ -2738,7 +2756,7 @@ var UniformMeshLocationContextProvider = ({
2738
2756
  sdk.events.off("onMetadataChanged", metaChangeListener);
2739
2757
  };
2740
2758
  }, [sdk]);
2741
- return /* @__PURE__ */ jsx28(UniformMeshLocationContext.Provider, { value: { location }, children });
2759
+ return /* @__PURE__ */ jsx29(UniformMeshLocationContext.Provider, { value: { location }, children });
2742
2760
  };
2743
2761
  var useUniformMeshLocationContext = () => {
2744
2762
  const context = useContext4(UniformMeshLocationContext);
@@ -2937,13 +2955,14 @@ function prettifyBindExpression(bindExpression) {
2937
2955
  // src/components/Variables/composer/VariableChip.tsx
2938
2956
  import { MultilineChip } from "@uniformdev/design-system";
2939
2957
  import { Fragment as Fragment5 } from "react";
2940
- import { jsx as jsx29 } from "@emotion/react/jsx-runtime";
2958
+ import { jsx as jsx30 } from "@emotion/react/jsx-runtime";
2941
2959
  function VariableChip({
2942
2960
  displayName,
2943
2961
  referenceIsValid,
2944
2962
  tooltip,
2945
2963
  reference,
2946
2964
  onClick,
2965
+ clickToEdit,
2947
2966
  isFresh,
2948
2967
  selected,
2949
2968
  disabled
@@ -2951,8 +2970,8 @@ function VariableChip({
2951
2970
  const hasClickEvent = !!onClick;
2952
2971
  const referenceIsValidFr = isFresh ? true : referenceIsValid;
2953
2972
  const Wrapper = referenceIsValidFr === "info" ? InfoVariableReference : referenceIsValidFr ? Fragment5 : UndefinedVariableReference;
2954
- const extraTitle = !referenceIsValidFr ? `${reference} is not defined.` : hasClickEvent ? "Click to edit" : void 0;
2955
- return /* @__PURE__ */ jsx29(
2973
+ const extraTitle = !referenceIsValidFr ? `${reference} is not defined.` : hasClickEvent && clickToEdit ? "Click to edit" : void 0;
2974
+ return /* @__PURE__ */ jsx30(
2956
2975
  MultilineChip,
2957
2976
  {
2958
2977
  title: tooltip ? `${tooltip}${extraTitle ? `
@@ -2961,12 +2980,12 @@ ${extraTitle}` : ""}` : extraTitle,
2961
2980
  onClick,
2962
2981
  "aria-selected": selected ? true : void 0,
2963
2982
  "aria-disabled": disabled,
2964
- children: /* @__PURE__ */ jsx29(Wrapper, { children: displayName || reference })
2983
+ children: /* @__PURE__ */ jsx30(Wrapper, { children: displayName || reference })
2965
2984
  }
2966
2985
  );
2967
2986
  }
2968
2987
  function UndefinedVariableReference({ children }) {
2969
- return /* @__PURE__ */ jsx29(
2988
+ return /* @__PURE__ */ jsx30(
2970
2989
  "span",
2971
2990
  {
2972
2991
  style: {
@@ -2979,7 +2998,7 @@ function UndefinedVariableReference({ children }) {
2979
2998
  );
2980
2999
  }
2981
3000
  function InfoVariableReference({ children }) {
2982
- return /* @__PURE__ */ jsx29(
3001
+ return /* @__PURE__ */ jsx30(
2983
3002
  "span",
2984
3003
  {
2985
3004
  style: {
@@ -3012,7 +3031,7 @@ import {
3012
3031
  COMMAND_PRIORITY_NORMAL,
3013
3032
  createCommand
3014
3033
  } from "lexical";
3015
- import { useCallback, useEffect as useEffect7, useMemo as useMemo8, useRef as useRef10, useState as useState9 } from "react";
3034
+ import { useCallback, useEffect as useEffect7, useMemo as useMemo8, useRef as useRef10, useState as useState10 } from "react";
3016
3035
  import { createPortal } from "react-dom";
3017
3036
 
3018
3037
  // src/components/Variables/toolbox/SelectVariableMenu.styles.ts
@@ -3045,11 +3064,11 @@ var variablesTipText = css18`
3045
3064
  `;
3046
3065
 
3047
3066
  // src/components/Variables/useVariableEditor.ts
3048
- import { useEffect as useEffect6, useState as useState8 } from "react";
3067
+ import { useEffect as useEffect6, useState as useState9 } from "react";
3049
3068
 
3050
3069
  // src/components/Variables/VariablesProvider.tsx
3051
3070
  import mitt from "mitt";
3052
- import { createContext as createContext3, useContext as useContext5, useMemo as useMemo7, useState as useState7 } from "react";
3071
+ import { createContext as createContext3, useContext as useContext5, useMemo as useMemo7, useState as useState8 } from "react";
3053
3072
 
3054
3073
  // src/components/Variables/VariableEditor.tsx
3055
3074
  import { zodResolver } from "@hookform/resolvers/zod";
@@ -3067,7 +3086,7 @@ var variablesFormContainer = css19`
3067
3086
  `;
3068
3087
 
3069
3088
  // src/components/Variables/VariableEditor.tsx
3070
- import { jsx as jsx30, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
3089
+ import { jsx as jsx31, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
3071
3090
  var schema = z.object({
3072
3091
  name: z.string().nonempty("Name can't be empty").regex(/^[^${}]+$/, "$, {, and } are reserved characters and cannot be used in a variable name"),
3073
3092
  default: z.string(),
@@ -3123,7 +3142,7 @@ function VariableEditor({
3123
3142
  // NOTE: this is intentionally NOT a <form> because it's regularly used in a nested modal and that can make it bubble
3124
3143
  // up a submit to its 'parent form' which is not what we want.
3125
3144
  /* @__PURE__ */ jsxs16("div", { css: variablesFormContainer, children: [
3126
- /* @__PURE__ */ jsx30(
3145
+ /* @__PURE__ */ jsx31(
3127
3146
  Input2,
3128
3147
  {
3129
3148
  ...nameRegister,
@@ -3137,7 +3156,7 @@ function VariableEditor({
3137
3156
  }
3138
3157
  }
3139
3158
  ),
3140
- /* @__PURE__ */ jsx30(
3159
+ /* @__PURE__ */ jsx31(
3141
3160
  Input2,
3142
3161
  {
3143
3162
  ...register("helpText"),
@@ -3147,7 +3166,7 @@ function VariableEditor({
3147
3166
  errorMessage: (_f = formState.errors.helpText) == null ? void 0 : _f.message
3148
3167
  }
3149
3168
  ),
3150
- /* @__PURE__ */ jsx30(
3169
+ /* @__PURE__ */ jsx31(
3151
3170
  Input2,
3152
3171
  {
3153
3172
  ...register("default"),
@@ -3156,14 +3175,14 @@ function VariableEditor({
3156
3175
  errorMessage: (_g = formState.errors.default) == null ? void 0 : _g.message
3157
3176
  }
3158
3177
  ),
3159
- /* @__PURE__ */ jsx30(HorizontalRhythm, { justify: "space-between", children: /* @__PURE__ */ jsxs16(HorizontalRhythm, { gap: "sm", children: [
3160
- /* @__PURE__ */ jsx30(Button2, { type: "button", onClick: submitHandler, children: "OK" }),
3161
- /* @__PURE__ */ jsx30(Button2, { type: "button", buttonType: "ghost", onClick: () => onCancel({ disconnect: false }), children: "cancel" })
3178
+ /* @__PURE__ */ jsx31(HorizontalRhythm, { justify: "space-between", children: /* @__PURE__ */ jsxs16(HorizontalRhythm, { gap: "sm", children: [
3179
+ /* @__PURE__ */ jsx31(Button2, { type: "button", onClick: submitHandler, children: "OK" }),
3180
+ /* @__PURE__ */ jsx31(Button2, { type: "button", buttonType: "ghost", onClick: () => onCancel({ disconnect: false }), children: "cancel" })
3162
3181
  ] }) }),
3163
3182
  disableMeshTip ? null : /* @__PURE__ */ jsxs16(Callout3, { type: "tip", title: "Customized User Interfaces", children: [
3164
3183
  "Developers can create customized user interfaces for variable editing by building a Uniform mesh integration. Get started quickly with our",
3165
3184
  " ",
3166
- /* @__PURE__ */ jsx30(
3185
+ /* @__PURE__ */ jsx31(
3167
3186
  "a",
3168
3187
  {
3169
3188
  href: "https://docs.uniform.app/docs/integrations/mesh-integrations/custom-integrations",
@@ -3179,7 +3198,7 @@ function VariableEditor({
3179
3198
  }
3180
3199
 
3181
3200
  // src/components/Variables/VariablesProvider.tsx
3182
- import { jsx as jsx31, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
3201
+ import { jsx as jsx32, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
3183
3202
  var VariablesContext = createContext3(null);
3184
3203
  function VariablesProvider({
3185
3204
  value,
@@ -3190,8 +3209,8 @@ function VariablesProvider({
3190
3209
  children,
3191
3210
  knownUndefinedValues = {}
3192
3211
  }) {
3193
- const [editing, setEditing] = useState7();
3194
- const [editingContext, setEditingContext] = useState7();
3212
+ const [editing, setEditing] = useState8();
3213
+ const [editingContext, setEditingContext] = useState8();
3195
3214
  const events = useMemo7(
3196
3215
  () => mitt(),
3197
3216
  []
@@ -3250,7 +3269,7 @@ function VariablesProvider({
3250
3269
  }, [editing, events, knownUndefinedValues, valueBasedContextValue, isLoading]);
3251
3270
  return /* @__PURE__ */ jsxs17(VariablesContext.Provider, { value: contextValue, children: [
3252
3271
  children,
3253
- typeof editing !== "undefined" ? /* @__PURE__ */ jsx31(
3272
+ typeof editing !== "undefined" ? /* @__PURE__ */ jsx32(
3254
3273
  Editor,
3255
3274
  {
3256
3275
  context: editingContext,
@@ -3309,7 +3328,7 @@ function flattenVariables(variables) {
3309
3328
  // src/components/Variables/useVariableEditor.ts
3310
3329
  function useVariableEditor() {
3311
3330
  const { variables, events, canDispatch, dispatch, isEditing } = useVariables(true);
3312
- const [isEditingBinding, setIsEditingBinding] = useState8();
3331
+ const [isEditingBinding, setIsEditingBinding] = useState9();
3313
3332
  useEffect6(() => {
3314
3333
  if (!canDispatch || !isEditingBinding) {
3315
3334
  return;
@@ -3406,7 +3425,7 @@ function variablesToGroupedList(variables, filterFn, context) {
3406
3425
  }
3407
3426
 
3408
3427
  // src/components/Variables/composer/VariablesPlugin.tsx
3409
- import { Fragment as Fragment6, jsx as jsx32, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
3428
+ import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
3410
3429
  var OPEN_INSERT_VARIABLE_COMMAND = createCommand("uniform:open-insert-variable");
3411
3430
  var EDIT_VARIABLE_COMMAND = createCommand("uniform:edit-variable");
3412
3431
  var DISCONNECT_VARIABLE_COMMAND = createCommand(
@@ -3525,7 +3544,7 @@ function VariablesPlugin({
3525
3544
  [canDispatch, enableEditingVariables, readOnly]
3526
3545
  );
3527
3546
  const { editVariable } = useVariableEditor();
3528
- const [queryString, setQueryString] = useState9(null);
3547
+ const [queryString, setQueryString] = useState10(null);
3529
3548
  const { groupedVariables, menuOptions, onSelect } = useVariablesMenu({
3530
3549
  showAddVariableMenuOption,
3531
3550
  filterVariable,
@@ -3726,7 +3745,7 @@ function VariablesPlugin({
3726
3745
  if (disableVariables) {
3727
3746
  return null;
3728
3747
  }
3729
- return /* @__PURE__ */ jsx32(
3748
+ return /* @__PURE__ */ jsx33(
3730
3749
  LexicalTypeaheadMenuPlugin,
3731
3750
  {
3732
3751
  onQueryChange: setQueryString,
@@ -3739,7 +3758,7 @@ function VariablesPlugin({
3739
3758
  }
3740
3759
  let currentCumulativeMenuIndex = -1;
3741
3760
  return createPortal(
3742
- /* @__PURE__ */ jsx32(
3761
+ /* @__PURE__ */ jsx33(
3743
3762
  "div",
3744
3763
  {
3745
3764
  "data-auto-resize-opt-in": true,
@@ -3758,14 +3777,14 @@ function VariablesPlugin({
3758
3777
  position: relative;
3759
3778
  z-index: var(--z-50);
3760
3779
  `,
3761
- children: /* @__PURE__ */ jsx32("div", { children: filteredGroupedVariables.map((group, index) => {
3780
+ children: /* @__PURE__ */ jsx33("div", { children: filteredGroupedVariables.map((group, index) => {
3762
3781
  var _a, _b;
3763
3782
  return /* @__PURE__ */ jsxs18(Fragment6, { children: [
3764
- /* @__PURE__ */ jsx32(MenuGroup, { title: (_a = group.name) != null ? _a : "", children: group.variables.map((variable) => {
3783
+ /* @__PURE__ */ jsx33(MenuGroup, { title: (_a = group.name) != null ? _a : "", children: group.variables.map((variable) => {
3765
3784
  var _a2;
3766
3785
  currentCumulativeMenuIndex++;
3767
3786
  const myCumulativeIndex = currentCumulativeMenuIndex;
3768
- return /* @__PURE__ */ jsx32(
3787
+ return /* @__PURE__ */ jsx33(
3769
3788
  MenuItemInner,
3770
3789
  {
3771
3790
  active: selectedIndex === myCumulativeIndex,
@@ -3778,18 +3797,18 @@ function VariablesPlugin({
3778
3797
  },
3779
3798
  css: menuItemTextGroup,
3780
3799
  children: variable.name === ADD_VARIABLE_OPTION ? /* @__PURE__ */ jsxs18(HorizontalRhythm2, { gap: "sm", align: "center", children: [
3781
- /* @__PURE__ */ jsx32(AiFillPlusCircle, { fill: "var(--gray-500)" }),
3800
+ /* @__PURE__ */ jsx33(AiFillPlusCircle, { fill: "var(--gray-500)" }),
3782
3801
  " ",
3783
- /* @__PURE__ */ jsx32("span", { children: variable.displayName })
3802
+ /* @__PURE__ */ jsx33("span", { children: variable.displayName })
3784
3803
  ] }) : /* @__PURE__ */ jsxs18(Fragment6, { children: [
3785
- /* @__PURE__ */ jsx32("span", { children: (_a2 = variable.displayName) != null ? _a2 : variable.name }),
3786
- variable.helpText ? /* @__PURE__ */ jsx32("small", { css: smallText, children: variable.helpText }) : null
3804
+ /* @__PURE__ */ jsx33("span", { children: (_a2 = variable.displayName) != null ? _a2 : variable.name }),
3805
+ variable.helpText ? /* @__PURE__ */ jsx33("small", { css: smallText, children: variable.helpText }) : null
3787
3806
  ] })
3788
3807
  },
3789
3808
  group.name + variable.name
3790
3809
  );
3791
3810
  }) }, (_b = group.name) != null ? _b : `none${index}`),
3792
- group.name || index === filteredGroupedVariables.length - 1 ? null : /* @__PURE__ */ jsx32(MenuItemSeparator, {})
3811
+ group.name || index === filteredGroupedVariables.length - 1 ? null : /* @__PURE__ */ jsx33(MenuItemSeparator, {})
3793
3812
  ] });
3794
3813
  }) })
3795
3814
  }
@@ -3802,7 +3821,7 @@ function VariablesPlugin({
3802
3821
  }
3803
3822
 
3804
3823
  // src/components/Variables/composer/VariableNode.tsx
3805
- import { jsx as jsx33 } from "@emotion/react/jsx-runtime";
3824
+ import { jsx as jsx34 } from "@emotion/react/jsx-runtime";
3806
3825
  var VariableNode = class _VariableNode extends DecoratorNode {
3807
3826
  constructor(reference, state, key) {
3808
3827
  super(key);
@@ -3867,7 +3886,7 @@ var VariableNode = class _VariableNode extends DecoratorNode {
3867
3886
  * rely on Context, etc in this renderer.
3868
3887
  */
3869
3888
  decorate() {
3870
- return /* @__PURE__ */ jsx33(VariableNodeComponent, { state: this.__state, reference: this.reference, nodeKey: this.__key });
3889
+ return /* @__PURE__ */ jsx34(VariableNodeComponent, { state: this.__state, reference: this.reference, nodeKey: this.__key });
3871
3890
  }
3872
3891
  };
3873
3892
  function $createVariableNode(variableReference, state) {
@@ -3960,14 +3979,15 @@ function VariableNodeComponent({
3960
3979
  )
3961
3980
  );
3962
3981
  }, [clearSelection, editor, isSelected, nodeKey, onDelete, setSelected]);
3963
- return /* @__PURE__ */ jsx33(
3982
+ return /* @__PURE__ */ jsx34(
3964
3983
  VariableChip,
3965
3984
  {
3966
3985
  ...state,
3967
3986
  reference,
3968
- displayName: state.isLoading ? /* @__PURE__ */ jsx33(LoadingIndicator2, { size: "sm" }) : state.displayName,
3987
+ displayName: state.isLoading ? /* @__PURE__ */ jsx34(LoadingIndicator2, { size: "sm" }) : state.displayName,
3969
3988
  selected: isSelected,
3970
3989
  disabled: readOnly,
3990
+ clickToEdit: state.hasClickEvent,
3971
3991
  onClick: state.hasClickEvent ? () => {
3972
3992
  setSelected(!isSelected);
3973
3993
  editor.dispatchCommand(EDIT_VARIABLE_COMMAND, {
@@ -3985,7 +4005,7 @@ function $isTargetWithinDecorator(target) {
3985
4005
 
3986
4006
  // src/components/Variables/InputVariables.tsx
3987
4007
  import { Caption, ErrorMessage, InfoMessage, WarningMessage } from "@uniformdev/design-system";
3988
- import { useState as useState12 } from "react";
4008
+ import { useState as useState13 } from "react";
3989
4009
  import { v4 as v42 } from "uuid";
3990
4010
 
3991
4011
  // src/components/Variables/composer/EditorRefPlugin.tsx
@@ -4047,8 +4067,8 @@ var menuBtn2 = css21`
4047
4067
  var input = css21`
4048
4068
  appearance: none;
4049
4069
  background-color: var(--white);
4050
- border: 1px solid var(--gray-400);
4051
- border-radius: var(--rounded-md);
4070
+ border: 1px solid var(--gray-200);
4071
+ border-radius: var(--rounded-sm);
4052
4072
  color: var(--gray-700);
4053
4073
  padding-block: var(--spacing-base);
4054
4074
  padding-left: var(--spacing-base);
@@ -4062,7 +4082,7 @@ var input = css21`
4062
4082
 
4063
4083
  &:focus,
4064
4084
  &:focus-within {
4065
- border-color: var(--brand-secondary-1);
4085
+ border-color: var(--typography-base);
4066
4086
  box-shadow: none;
4067
4087
  outline: none;
4068
4088
  }
@@ -4070,7 +4090,7 @@ var input = css21`
4070
4090
  &:disabled,
4071
4091
  &:disabled::placeholder {
4072
4092
  cursor: not-allowed;
4073
- color: var(--gray-300);
4093
+ color: var(--gray-400);
4074
4094
  border-color: var(--gray-300);
4075
4095
  }
4076
4096
 
@@ -4219,7 +4239,7 @@ import { BsFillPlusCircleFill } from "@react-icons/all-files/bs/BsFillPlusCircle
4219
4239
  import { CgUsbC } from "@react-icons/all-files/cg/CgUsbC";
4220
4240
  import { HorizontalRhythm as HorizontalRhythm3, Menu as Menu2, MenuGroup as MenuGroup2, MenuItem as MenuItem2, MenuItemSeparator as MenuItemSeparator2 } from "@uniformdev/design-system";
4221
4241
  import { useRef as useRef11 } from "react";
4222
- import { Fragment as Fragment7, jsx as jsx34, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
4242
+ import { Fragment as Fragment7, jsx as jsx35, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
4223
4243
  function SelectVariableMenu({
4224
4244
  onSelectVariable,
4225
4245
  onResetVariables,
@@ -4245,7 +4265,7 @@ function SelectVariableMenu({
4245
4265
  {
4246
4266
  placement: "bottom-start",
4247
4267
  withoutPortal: true,
4248
- menuTrigger: /* @__PURE__ */ jsx34(
4268
+ menuTrigger: /* @__PURE__ */ jsx35(
4249
4269
  "button",
4250
4270
  {
4251
4271
  ...buttonProps,
@@ -4254,12 +4274,12 @@ function SelectVariableMenu({
4254
4274
  css: [menuBtn, buttonCss],
4255
4275
  type: "button",
4256
4276
  "data-testid": "insert-variable",
4257
- children: /* @__PURE__ */ jsx34(CgUsbC, { size: "1.4rem" })
4277
+ children: /* @__PURE__ */ jsx35(CgUsbC, { size: "1.4rem" })
4258
4278
  }
4259
4279
  ),
4260
4280
  menuLabel: menuTooltip,
4261
4281
  children: [
4262
- showAddVariableMenuOptionForReals ? /* @__PURE__ */ jsx34(
4282
+ showAddVariableMenuOptionForReals ? /* @__PURE__ */ jsx35(
4263
4283
  MenuItem2,
4264
4284
  {
4265
4285
  onClick: async () => {
@@ -4271,15 +4291,15 @@ function SelectVariableMenu({
4271
4291
  },
4272
4292
  "data-testid": "add-variable-button",
4273
4293
  children: /* @__PURE__ */ jsxs19(HorizontalRhythm3, { gap: "sm", align: "center", children: [
4274
- /* @__PURE__ */ jsx34(BsFillPlusCircleFill, { fill: "var(--gray-500)", size: "1.25em" }),
4275
- /* @__PURE__ */ jsx34("span", { children: typeof showAddVariableMenuOption === "string" ? showAddVariableMenuOption : /* @__PURE__ */ jsx34(Fragment7, { children: "Add\u2026" }) })
4294
+ /* @__PURE__ */ jsx35(BsFillPlusCircleFill, { fill: "var(--gray-500)", size: "1.25em" }),
4295
+ /* @__PURE__ */ jsx35("span", { children: typeof showAddVariableMenuOption === "string" ? showAddVariableMenuOption : /* @__PURE__ */ jsx35(Fragment7, { children: "Add\u2026" }) })
4276
4296
  ] })
4277
4297
  }
4278
4298
  ) : null,
4279
- showAddVariableMenuOptionForReals && menuHasVariableOptions ? /* @__PURE__ */ jsx34(MenuItemSeparator2, {}) : null,
4299
+ showAddVariableMenuOptionForReals && menuHasVariableOptions ? /* @__PURE__ */ jsx35(MenuItemSeparator2, {}) : null,
4280
4300
  variablesGroups.map((group) => {
4281
4301
  var _a;
4282
- return /* @__PURE__ */ jsx34(MenuGroup2, { title: (_a = group.name) != null ? _a : "", children: group.variables.map((variable) => {
4302
+ return /* @__PURE__ */ jsx35(MenuGroup2, { title: (_a = group.name) != null ? _a : "", children: group.variables.map((variable) => {
4283
4303
  const { name, displayName, helpText } = variable;
4284
4304
  return /* @__PURE__ */ jsxs19(
4285
4305
  MenuItem2,
@@ -4288,25 +4308,25 @@ function SelectVariableMenu({
4288
4308
  css: menuItemTextGroup,
4289
4309
  onClick: () => onSelectVariable == null ? void 0 : onSelectVariable(variable),
4290
4310
  children: [
4291
- /* @__PURE__ */ jsx34("span", { children: displayName != null ? displayName : name }),
4292
- helpText ? /* @__PURE__ */ jsx34("small", { css: smallText, children: helpText }) : null
4311
+ /* @__PURE__ */ jsx35("span", { children: displayName != null ? displayName : name }),
4312
+ helpText ? /* @__PURE__ */ jsx35("small", { css: smallText, children: helpText }) : null
4293
4313
  ]
4294
4314
  },
4295
4315
  name
4296
4316
  );
4297
4317
  }) }, group.name);
4298
4318
  }),
4299
- menuHasVariableOptions && onResetVariables ? /* @__PURE__ */ jsx34(MenuItemSeparator2, {}) : null,
4300
- onResetVariables ? /* @__PURE__ */ jsx34(MenuItem2, { onClick: onResetVariables, css: { color: "var(--brand-secondary-5)" }, children: "Reset" }) : null,
4301
- tip && (menuHasVariableOptions || onResetVariables) ? /* @__PURE__ */ jsx34(MenuItemSeparator2, {}) : null,
4302
- tip ? /* @__PURE__ */ jsx34("i", { css: variablesTipText, children: tip }) : null
4319
+ menuHasVariableOptions && onResetVariables ? /* @__PURE__ */ jsx35(MenuItemSeparator2, {}) : null,
4320
+ onResetVariables ? /* @__PURE__ */ jsx35(MenuItem2, { onClick: onResetVariables, css: { color: "var(--brand-secondary-5)" }, children: "Reset" }) : null,
4321
+ tip && (menuHasVariableOptions || onResetVariables) ? /* @__PURE__ */ jsx35(MenuItemSeparator2, {}) : null,
4322
+ tip ? /* @__PURE__ */ jsx35("i", { css: variablesTipText, children: tip }) : null
4303
4323
  ]
4304
4324
  }
4305
4325
  );
4306
4326
  }
4307
4327
 
4308
4328
  // src/components/Variables/toolbox/VariablesComposerVariableMenu.tsx
4309
- import { jsx as jsx35 } from "@emotion/react/jsx-runtime";
4329
+ import { jsx as jsx36 } from "@emotion/react/jsx-runtime";
4310
4330
  function VariablesComposerVariableMenu(props) {
4311
4331
  const [editor] = useLexicalComposerContext6();
4312
4332
  const onSelectVariable = (selectedVariable) => {
@@ -4322,7 +4342,7 @@ function VariablesComposerVariableMenu(props) {
4322
4342
  editor.dispatchCommand(CLEAR_EDITOR_COMMAND, void 0);
4323
4343
  (_a = props.onResetVariables) == null ? void 0 : _a.call(props);
4324
4344
  };
4325
- return /* @__PURE__ */ jsx35(
4345
+ return /* @__PURE__ */ jsx36(
4326
4346
  SelectVariableMenu,
4327
4347
  {
4328
4348
  ...props,
@@ -4333,7 +4353,7 @@ function VariablesComposerVariableMenu(props) {
4333
4353
  }
4334
4354
 
4335
4355
  // src/components/Variables/toolbox/VariableField.tsx
4336
- import { jsx as jsx36, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
4356
+ import { jsx as jsx37, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
4337
4357
  function VariableField({
4338
4358
  label,
4339
4359
  selectVariableMenuOptions,
@@ -4344,7 +4364,7 @@ function VariableField({
4344
4364
  }) {
4345
4365
  const { variables } = useVariables(true);
4346
4366
  const varCount = Object.keys(variables).length;
4347
- const variableSelector = (varCount > 0 || (selectVariableMenuOptions == null ? void 0 : selectVariableMenuOptions.showAddVariableMenuOption)) && !disableVariables ? /* @__PURE__ */ jsx36(
4367
+ const variableSelector = (varCount > 0 || (selectVariableMenuOptions == null ? void 0 : selectVariableMenuOptions.showAddVariableMenuOption)) && !disableVariables ? /* @__PURE__ */ jsx37(
4348
4368
  VariablesComposerVariableMenu,
4349
4369
  {
4350
4370
  ...selectVariableMenuOptions,
@@ -4352,10 +4372,10 @@ function VariableField({
4352
4372
  buttonProps: isActive ? { "aria-pressed": "true" } : void 0
4353
4373
  }
4354
4374
  ) : null;
4355
- return /* @__PURE__ */ jsxs20("div", { children: [
4356
- /* @__PURE__ */ jsxs20("label", { htmlFor: id, css: labelText, children: [
4375
+ return /* @__PURE__ */ jsxs20("div", { "data-testid": "variable-field", children: [
4376
+ /* @__PURE__ */ jsxs20("label", { htmlFor: id, css: labelText, "data-testid": "field-name", children: [
4357
4377
  variableSelector,
4358
- /* @__PURE__ */ jsx36("span", { children: label })
4378
+ /* @__PURE__ */ jsx37("span", { children: label })
4359
4379
  ] }),
4360
4380
  children
4361
4381
  ] });
@@ -4366,7 +4386,7 @@ import { AutoFocusPlugin } from "@lexical/react/LexicalAutoFocusPlugin";
4366
4386
  import { ClearEditorPlugin } from "@lexical/react/LexicalClearEditorPlugin";
4367
4387
  import { LexicalComposer } from "@lexical/react/LexicalComposer";
4368
4388
  import { OnChangePlugin } from "@lexical/react/LexicalOnChangePlugin";
4369
- import { useMemo as useMemo10, useRef as useRef12, useState as useState11 } from "react";
4389
+ import { useMemo as useMemo10, useRef as useRef12, useState as useState12 } from "react";
4370
4390
 
4371
4391
  // src/components/Variables/composer/DisablePlugin.tsx
4372
4392
  import { useLexicalComposerContext as useLexicalComposerContext7 } from "@lexical/react/LexicalComposerContext";
@@ -4426,7 +4446,7 @@ function serializeRecursive(node, buffer) {
4426
4446
  }
4427
4447
 
4428
4448
  // src/components/Variables/toolbox/VariablesComposer.tsx
4429
- import { Fragment as Fragment8, jsx as jsx37, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
4449
+ import { Fragment as Fragment8, jsx as jsx38, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
4430
4450
  function VariablesComposer(props) {
4431
4451
  const {
4432
4452
  value,
@@ -4438,7 +4458,7 @@ function VariablesComposer(props) {
4438
4458
  autoFocus,
4439
4459
  ...variablesPluginProps
4440
4460
  } = props;
4441
- const [lastEmittedValue, setLastEmittedValue] = useState11(value);
4461
+ const [lastEmittedValue, setLastEmittedValue] = useState12(value);
4442
4462
  const editorConfig = useMemo10(
4443
4463
  () => ({
4444
4464
  namespace: "uniform",
@@ -4456,9 +4476,10 @@ function VariablesComposer(props) {
4456
4476
  if (typeof document === "undefined")
4457
4477
  return null;
4458
4478
  return /* @__PURE__ */ jsxs21(LexicalComposer, { initialConfig: editorConfig, children: [
4459
- /* @__PURE__ */ jsx37(
4479
+ /* @__PURE__ */ jsx38(
4460
4480
  OnChangePlugin,
4461
4481
  {
4482
+ ignoreSelectionChange: true,
4462
4483
  onChange: (state) => {
4463
4484
  editorState.current = state;
4464
4485
  if (updateTimeout.current) {
@@ -4476,12 +4497,12 @@ function VariablesComposer(props) {
4476
4497
  }
4477
4498
  }
4478
4499
  ),
4479
- /* @__PURE__ */ jsx37(Fragment8, { children: multiLine ? null : /* @__PURE__ */ jsx37(SingleLineTextPlugin, {}) }),
4480
- /* @__PURE__ */ jsx37(ClearEditorPlugin, {}),
4481
- /* @__PURE__ */ jsx37(VariablesPlugin, { ...variablesPluginProps }),
4482
- /* @__PURE__ */ jsx37(DisablePlugin, { disabled }),
4483
- /* @__PURE__ */ jsx37(Fragment8, { children: autoFocus ? /* @__PURE__ */ jsx37(AutoFocusPlugin, {}) : null }),
4484
- /* @__PURE__ */ jsx37(Fragment8, { children })
4500
+ /* @__PURE__ */ jsx38(Fragment8, { children: multiLine ? null : /* @__PURE__ */ jsx38(SingleLineTextPlugin, {}) }),
4501
+ /* @__PURE__ */ jsx38(ClearEditorPlugin, {}),
4502
+ /* @__PURE__ */ jsx38(VariablesPlugin, { ...variablesPluginProps }),
4503
+ /* @__PURE__ */ jsx38(DisablePlugin, { disabled }),
4504
+ /* @__PURE__ */ jsx38(Fragment8, { children: autoFocus ? /* @__PURE__ */ jsx38(AutoFocusPlugin, {}) : null }),
4505
+ /* @__PURE__ */ jsx38(Fragment8, { children })
4485
4506
  ] });
4486
4507
  }
4487
4508
 
@@ -4507,23 +4528,23 @@ import {
4507
4528
  PASTE_COMMAND as PASTE_COMMAND2
4508
4529
  } from "lexical";
4509
4530
  import { useEffect as useEffect13 } from "react";
4510
- import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
4531
+ import { Fragment as Fragment9, jsx as jsx39, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
4511
4532
  function VariablesComposerInput({
4512
4533
  css: css37,
4513
4534
  placeholder,
4514
4535
  ...contentEditableProps
4515
4536
  }) {
4516
4537
  return /* @__PURE__ */ jsxs22("div", { children: [
4517
- /* @__PURE__ */ jsx38(
4538
+ /* @__PURE__ */ jsx39(
4518
4539
  PlainTextPlugin,
4519
4540
  {
4520
- contentEditable: /* @__PURE__ */ jsx38(ContentEditable, { ...contentEditableProps }),
4521
- placeholder: placeholder ? /* @__PURE__ */ jsx38(Fragment9, { children: placeholder }) : null,
4541
+ contentEditable: /* @__PURE__ */ jsx39(ContentEditable, { ...contentEditableProps }),
4542
+ placeholder: placeholder ? /* @__PURE__ */ jsx39(Fragment9, { children: placeholder }) : null,
4522
4543
  ErrorBoundary: LexicalErrorBoundary
4523
4544
  }
4524
4545
  ),
4525
- /* @__PURE__ */ jsx38(RichishCopyAndPastePlugin, {}),
4526
- /* @__PURE__ */ jsx38(HistoryPlugin, {})
4546
+ /* @__PURE__ */ jsx39(RichishCopyAndPastePlugin, {}),
4547
+ /* @__PURE__ */ jsx39(HistoryPlugin, {})
4527
4548
  ] });
4528
4549
  }
4529
4550
  function RichishCopyAndPastePlugin() {
@@ -4603,7 +4624,7 @@ function RichishCopyAndPastePlugin() {
4603
4624
  }
4604
4625
 
4605
4626
  // src/components/Variables/InputVariables.tsx
4606
- import { Fragment as Fragment10, jsx as jsx39, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
4627
+ import { Fragment as Fragment10, jsx as jsx40, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
4607
4628
  function InputVariables(props) {
4608
4629
  const {
4609
4630
  id,
@@ -4630,7 +4651,7 @@ function InputVariables(props) {
4630
4651
  filterVariable,
4631
4652
  styleVariant = "default"
4632
4653
  } = props;
4633
- const [finalId] = useState12(id != null ? id : () => v42());
4654
+ const [finalId] = useState13(id != null ? id : () => v42());
4634
4655
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4635
4656
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps } = useInputVariablesState(props);
4636
4657
  const useInputWithNoVariables = Boolean(inputWhenNoVariables && !hadVariablesInValue);
@@ -4644,14 +4665,14 @@ function InputVariables(props) {
4644
4665
  },
4645
4666
  css: disabled ? inputDisabled : "",
4646
4667
  children: [
4647
- useInputWithNoVariables ? inputWhenNoVariables : /* @__PURE__ */ jsx39(
4668
+ useInputWithNoVariables ? inputWhenNoVariables : /* @__PURE__ */ jsx40(
4648
4669
  InputVariablesOverlayMenu,
4649
4670
  {
4650
4671
  ...sharedMenuProps,
4651
4672
  disabled: disableVariablesForReals || disableInlineMenu === true || disableInlineMenu === "by-input",
4652
4673
  replaceValueOnVariableInsert: useInputWithNoVariables,
4653
4674
  useInputWhenNoVariables: useInputWithNoVariables,
4654
- children: /* @__PURE__ */ jsx39(
4675
+ children: /* @__PURE__ */ jsx40(
4655
4676
  VariablesComposerInput,
4656
4677
  {
4657
4678
  id: finalId,
@@ -4659,7 +4680,7 @@ function InputVariables(props) {
4659
4680
  "data-testid": dataTestId ? dataTestId : "input-container",
4660
4681
  "data-text-value": value,
4661
4682
  css: [input, styleVariant === "compact" ? inputCompact : null],
4662
- placeholder: placeholder ? /* @__PURE__ */ jsx39(
4683
+ placeholder: placeholder ? /* @__PURE__ */ jsx40(
4663
4684
  Caption,
4664
4685
  {
4665
4686
  css: [
@@ -4673,16 +4694,16 @@ function InputVariables(props) {
4673
4694
  )
4674
4695
  }
4675
4696
  ),
4676
- caption ? /* @__PURE__ */ jsx39(Caption, { children: caption }) : null,
4677
- errorMessage ? /* @__PURE__ */ jsx39(ErrorMessage, { message: errorMessage }) : null,
4678
- warningMessage ? /* @__PURE__ */ jsx39(WarningMessage, { message: warningMessage }) : null,
4679
- infoMessage ? /* @__PURE__ */ jsx39(InfoMessage, { message: infoMessage }) : null
4697
+ caption ? /* @__PURE__ */ jsx40(Caption, { children: caption }) : null,
4698
+ errorMessage ? /* @__PURE__ */ jsx40(ErrorMessage, { message: errorMessage }) : null,
4699
+ warningMessage ? /* @__PURE__ */ jsx40(WarningMessage, { message: warningMessage }) : null,
4700
+ infoMessage ? /* @__PURE__ */ jsx40(InfoMessage, { message: infoMessage }) : null
4680
4701
  ]
4681
4702
  }
4682
4703
  );
4683
4704
  let body = input3;
4684
4705
  if (label) {
4685
- body = /* @__PURE__ */ jsx39(
4706
+ body = /* @__PURE__ */ jsx40(
4686
4707
  VariableField,
4687
4708
  {
4688
4709
  label,
@@ -4712,9 +4733,9 @@ function InputVariables(props) {
4712
4733
  autoFocus,
4713
4734
  filterVariable,
4714
4735
  children: [
4715
- /* @__PURE__ */ jsx39(PasteTransformerPlugin, { transformPaste }),
4716
- /* @__PURE__ */ jsx39(ControlledValuePlugin, { value, enabled: useInputWithNoVariables }),
4717
- editorRef ? /* @__PURE__ */ jsx39(EditorRefPlugin, { editorRef }) : null,
4736
+ /* @__PURE__ */ jsx40(PasteTransformerPlugin, { transformPaste }),
4737
+ /* @__PURE__ */ jsx40(ControlledValuePlugin, { value, enabled: useInputWithNoVariables }),
4738
+ editorRef ? /* @__PURE__ */ jsx40(EditorRefPlugin, { editorRef }) : null,
4718
4739
  body
4719
4740
  ]
4720
4741
  }
@@ -4727,11 +4748,11 @@ function InputVariablesOverlayMenu({
4727
4748
  ...props
4728
4749
  }) {
4729
4750
  if (disabled) {
4730
- return /* @__PURE__ */ jsx39(Fragment10, { children });
4751
+ return /* @__PURE__ */ jsx40(Fragment10, { children });
4731
4752
  }
4732
4753
  return /* @__PURE__ */ jsxs23("div", { css: menuContainer, children: [
4733
4754
  children,
4734
- /* @__PURE__ */ jsx39(
4755
+ /* @__PURE__ */ jsx40(
4735
4756
  VariablesComposerVariableMenu,
4736
4757
  {
4737
4758
  ...props,
@@ -4785,7 +4806,7 @@ var input2 = css23`
4785
4806
  appearance: none;
4786
4807
  box-sizing: border-box;
4787
4808
  background: var(--white);
4788
- border: 1px solid var(--white);
4809
+ border: 1px solid var(--gray-200);
4789
4810
  border-radius: var(--rounded-sm);
4790
4811
  color: var(--gray-700);
4791
4812
  font-size: var(--fs-sm);
@@ -4805,16 +4826,19 @@ var input2 = css23`
4805
4826
 
4806
4827
  &:focus,
4807
4828
  &:focus-within {
4808
- border-radius: var(--rounded-md);
4809
- box-shadow: none;
4810
- border: 1px solid var(--gray-300);
4829
+ border-radius: var(--rounded-sm);
4830
+ box-shadow: var(--elevation-100);
4831
+ border: 1px solid var(--accent-dark-active);
4811
4832
  outline: none;
4812
4833
  }
4834
+ &:hover {
4835
+ border: 1px solid var(--accent-dark-hover);
4836
+ }
4813
4837
 
4814
4838
  &:disabled,
4815
4839
  &:disabled::placeholder,
4816
4840
  &:disabled:hover {
4817
- border-radius: var(--rounded-md);
4841
+ border-radius: var(--rounded-sm);
4818
4842
  cursor: not-allowed;
4819
4843
  color: var(--gray-400);
4820
4844
  }
@@ -4839,7 +4863,7 @@ var inputMultiLine = (lines) => css23`
4839
4863
  `;
4840
4864
 
4841
4865
  // src/components/Variables/ParameterConnectionIndicator.tsx
4842
- import { jsx as jsx40, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
4866
+ import { jsx as jsx41, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
4843
4867
  function ParameterConnectionIndicator({
4844
4868
  children,
4845
4869
  value,
@@ -4859,20 +4883,20 @@ function ParameterConnectionIndicator({
4859
4883
  return result;
4860
4884
  }, [value]);
4861
4885
  return /* @__PURE__ */ jsxs24(HorizontalRhythm4, { align: "center", gap: "xs", css: { width: "100%" }, children: [
4862
- /* @__PURE__ */ jsx40("div", { css: { flex: 1 }, children }),
4863
- disabled ? null : /* @__PURE__ */ jsx40(
4886
+ /* @__PURE__ */ jsx41("div", { css: { flex: 1 }, children }),
4887
+ disabled ? null : /* @__PURE__ */ jsx41(
4864
4888
  Menu3,
4865
4889
  {
4866
4890
  placement: "bottom-start",
4867
4891
  withoutPortal: true,
4868
- menuTrigger: /* @__PURE__ */ jsx40(
4892
+ menuTrigger: /* @__PURE__ */ jsx41(
4869
4893
  "button",
4870
4894
  {
4871
4895
  title: menuTooltip,
4872
4896
  "aria-pressed": hasVariablesInValue,
4873
4897
  css: [menuBtn, variableBindButton2],
4874
4898
  type: "button",
4875
- children: /* @__PURE__ */ jsx40(CgUsbC2, { size: "1.4rem" })
4899
+ children: /* @__PURE__ */ jsx41(CgUsbC2, { size: "1.4rem" })
4876
4900
  }
4877
4901
  ),
4878
4902
  menuLabel: menuTooltip,
@@ -4924,7 +4948,7 @@ function OnDisconnectPlugin({
4924
4948
  }
4925
4949
 
4926
4950
  // src/components/Variables/ParameterOrSingleVariable.tsx
4927
- import { jsx as jsx41, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
4951
+ import { jsx as jsx42, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
4928
4952
  function ParameterOrSingleVariable(props) {
4929
4953
  const {
4930
4954
  value,
@@ -4966,11 +4990,11 @@ function ParameterOrSingleVariable(props) {
4966
4990
  replaceValueOnVariableInsert: true,
4967
4991
  disabled: true,
4968
4992
  children: [
4969
- /* @__PURE__ */ jsx41(OnDisconnectPlugin, { onDisconnect: handleDisconnect }),
4970
- editorRef ? /* @__PURE__ */ jsx41(EditorRefPlugin, { editorRef }) : null,
4971
- /* @__PURE__ */ jsx41(ControlledValuePlugin, { enabled: true, value }),
4993
+ /* @__PURE__ */ jsx42(OnDisconnectPlugin, { onDisconnect: handleDisconnect }),
4994
+ editorRef ? /* @__PURE__ */ jsx42(EditorRefPlugin, { editorRef }) : null,
4995
+ /* @__PURE__ */ jsx42(ControlledValuePlugin, { enabled: true, value }),
4972
4996
  /* @__PURE__ */ jsxs25(HorizontalRhythm5, { align: "center", gap: "xs", css: { width: "100%" }, children: [
4973
- /* @__PURE__ */ jsx41("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx41(
4997
+ /* @__PURE__ */ jsx42("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
4974
4998
  VariablesComposerInput,
4975
4999
  {
4976
5000
  "data-text-value": value,
@@ -4978,7 +5002,7 @@ function ParameterOrSingleVariable(props) {
4978
5002
  css: input2
4979
5003
  }
4980
5004
  ) }),
4981
- disableVariablesForReals ? null : /* @__PURE__ */ jsx41(
5005
+ disableVariablesForReals ? null : /* @__PURE__ */ jsx42(
4982
5006
  VariablesComposerVariableMenu,
4983
5007
  {
4984
5008
  ...sharedMenuProps,
@@ -4998,7 +5022,7 @@ function ParameterOrSingleVariable(props) {
4998
5022
  // src/components/Variables/ParameterVariables.tsx
4999
5023
  import { css as css24 } from "@emotion/react";
5000
5024
  import { HorizontalRhythm as HorizontalRhythm6 } from "@uniformdev/design-system";
5001
- import { jsx as jsx42, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
5025
+ import { jsx as jsx43, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
5002
5026
  function ParameterVariables(props) {
5003
5027
  const {
5004
5028
  value,
@@ -5033,8 +5057,8 @@ function ParameterVariables(props) {
5033
5057
  autoFocus,
5034
5058
  filterVariable,
5035
5059
  children: [
5036
- editorRef ? /* @__PURE__ */ jsx42(EditorRefPlugin, { editorRef }) : null,
5037
- /* @__PURE__ */ jsx42(ControlledValuePlugin, { value, enabled: useInputWhenNoVariables }),
5060
+ editorRef ? /* @__PURE__ */ jsx43(EditorRefPlugin, { editorRef }) : null,
5061
+ /* @__PURE__ */ jsx43(ControlledValuePlugin, { value, enabled: useInputWhenNoVariables }),
5038
5062
  /* @__PURE__ */ jsxs26(
5039
5063
  HorizontalRhythm6,
5040
5064
  {
@@ -5047,7 +5071,7 @@ function ParameterVariables(props) {
5047
5071
  }
5048
5072
  },
5049
5073
  children: [
5050
- /* @__PURE__ */ jsx42("div", { css: { flex: 1 }, children: useInputWhenNoVariables ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
5074
+ /* @__PURE__ */ jsx43("div", { css: { flex: 1 }, children: useInputWhenNoVariables ? inputWhenNoVariables : /* @__PURE__ */ jsx43(
5051
5075
  VariablesComposerInput,
5052
5076
  {
5053
5077
  "aria-label": ariaLabel,
@@ -5060,7 +5084,7 @@ function ParameterVariables(props) {
5060
5084
  ]
5061
5085
  }
5062
5086
  ) }),
5063
- disableVariablesForReals ? null : /* @__PURE__ */ jsx42(
5087
+ disableVariablesForReals ? null : /* @__PURE__ */ jsx43(
5064
5088
  VariablesComposerVariableMenu,
5065
5089
  {
5066
5090
  ...sharedMenuProps,
@@ -5104,7 +5128,7 @@ import {
5104
5128
  TableHead,
5105
5129
  TableRow
5106
5130
  } from "@uniformdev/design-system";
5107
- import { DragDropContext as DragDropContext2, Draggable as Draggable2, Droppable as Droppable2 } from "react-beautiful-dnd";
5131
+ import { Draggable as Draggable2, Droppable as Droppable2 } from "react-beautiful-dnd";
5108
5132
 
5109
5133
  // src/components/Variables/styles/VariablesList.styles.ts
5110
5134
  import { css as css25 } from "@emotion/react";
@@ -5136,7 +5160,6 @@ var tableCellDragIcon = css25`
5136
5160
  `;
5137
5161
  var variableName = css25`
5138
5162
  border: none;
5139
- color: var(--brand-secondary-5);
5140
5163
  font-weight: var(--fw-medium);
5141
5164
  padding: 0;
5142
5165
  background: none;
@@ -5153,7 +5176,7 @@ var variableValue = css25`
5153
5176
  `;
5154
5177
 
5155
5178
  // src/components/Variables/VariablesList.tsx
5156
- import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
5179
+ import { Fragment as Fragment11, jsx as jsx44, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
5157
5180
  function VariablesList() {
5158
5181
  const { variables, dispatch, readOnly } = useVariables();
5159
5182
  const sorted = variablesToList(variables).filter((variable) => !variable.system);
@@ -5175,17 +5198,17 @@ function VariablesList() {
5175
5198
  }
5176
5199
  };
5177
5200
  return /* @__PURE__ */ jsxs27(Fragment11, { children: [
5178
- /* @__PURE__ */ jsx43(DragDropContext2, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx43(Droppable2, { droppableId: "variables-table", children: (provided) => /* @__PURE__ */ jsxs27(Table, { ...provided.droppableProps, ref: provided.innerRef, children: [
5179
- /* @__PURE__ */ jsx43(TableHead, { children: /* @__PURE__ */ jsxs27(TableRow, { children: [
5180
- /* @__PURE__ */ jsx43(TableCellHead, { children: "Name" }),
5181
- /* @__PURE__ */ jsx43(TableCellHead, { children: "Default Value" }),
5182
- /* @__PURE__ */ jsx43(TableCellHead, {})
5201
+ /* @__PURE__ */ jsx44(DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx44(Droppable2, { droppableId: "variables-table", children: (provided) => /* @__PURE__ */ jsxs27(Table, { ...provided.droppableProps, ref: provided.innerRef, children: [
5202
+ /* @__PURE__ */ jsx44(TableHead, { children: /* @__PURE__ */ jsxs27(TableRow, { children: [
5203
+ /* @__PURE__ */ jsx44(TableCellHead, { children: "Name" }),
5204
+ /* @__PURE__ */ jsx44(TableCellHead, { children: "Default Value" }),
5205
+ /* @__PURE__ */ jsx44(TableCellHead, {})
5183
5206
  ] }) }),
5184
5207
  /* @__PURE__ */ jsxs27(TableBody, { children: [
5185
5208
  sorted.map(({ name, displayName, default: defaultValue }, index) => {
5186
5209
  const text = displayName != null ? displayName : name;
5187
5210
  const textValue = variableDefaultTextValue(defaultValue);
5188
- return /* @__PURE__ */ jsx43(
5211
+ return /* @__PURE__ */ jsx44(
5189
5212
  Draggable2,
5190
5213
  {
5191
5214
  draggableId: name,
@@ -5201,7 +5224,7 @@ function VariablesList() {
5201
5224
  css: tableRow(snapshot.isDragging),
5202
5225
  "data-dragging": snapshot.isDragging,
5203
5226
  children: [
5204
- /* @__PURE__ */ jsx43(TableCellData, { css: sorted.length > 1 ? tableCellDragIcon : void 0, children: readOnly ? /* @__PURE__ */ jsx43("span", { css: variableName, children: text }) : /* @__PURE__ */ jsx43(
5227
+ /* @__PURE__ */ jsx44(TableCellData, { css: sorted.length > 1 ? tableCellDragIcon : void 0, children: readOnly ? /* @__PURE__ */ jsx44("span", { css: variableName, children: text }) : /* @__PURE__ */ jsx44(
5205
5228
  "button",
5206
5229
  {
5207
5230
  css: variableName,
@@ -5214,8 +5237,8 @@ function VariablesList() {
5214
5237
  children: text
5215
5238
  }
5216
5239
  ) }),
5217
- /* @__PURE__ */ jsx43(TableCellData, { children: /* @__PURE__ */ jsx43("span", { css: variableValue, title: textValue, children: textValue }) }),
5218
- /* @__PURE__ */ jsx43(TableCellData, { align: "right", children: readOnly ? null : /* @__PURE__ */ jsx43(
5240
+ /* @__PURE__ */ jsx44(TableCellData, { children: /* @__PURE__ */ jsx44("span", { css: variableValue, title: textValue, children: textValue }) }),
5241
+ /* @__PURE__ */ jsx44(TableCellData, { align: "right", children: readOnly ? null : /* @__PURE__ */ jsx44(
5219
5242
  "button",
5220
5243
  {
5221
5244
  type: "button",
@@ -5228,7 +5251,7 @@ function VariablesList() {
5228
5251
  ],
5229
5252
  "aria-controls": text,
5230
5253
  onClick: () => dispatch({ type: "remove", variable: name }),
5231
- children: /* @__PURE__ */ jsx43(Icon5, { icon: "trash", iconColor: "red" })
5254
+ children: /* @__PURE__ */ jsx44(Icon5, { icon: "trash", iconColor: "red" })
5232
5255
  }
5233
5256
  ) })
5234
5257
  ]
@@ -5241,12 +5264,12 @@ function VariablesList() {
5241
5264
  provided.placeholder
5242
5265
  ] })
5243
5266
  ] }) }) }),
5244
- !readOnly && /* @__PURE__ */ jsx43(
5267
+ !readOnly && /* @__PURE__ */ jsx44(
5245
5268
  AddListButton,
5246
5269
  {
5247
5270
  onButtonClick: () => dispatch({ type: "edit", variable: "" }),
5248
5271
  "aria-label": "Add variable",
5249
- buttonText: "add variable",
5272
+ buttonText: "Add variable",
5250
5273
  icon: "math-plus",
5251
5274
  css: { marginLeft: "var(--spacing-md)" }
5252
5275
  }
@@ -5255,37 +5278,37 @@ function VariablesList() {
5255
5278
  }
5256
5279
 
5257
5280
  // src/components/DataResourceDynamicInputProvider.tsx
5258
- import { jsx as jsx44 } from "@emotion/react/jsx-runtime";
5281
+ import { jsx as jsx45 } from "@emotion/react/jsx-runtime";
5259
5282
  function DataResourceDynamicInputProvider(props) {
5260
5283
  const { children, dynamicInputs } = props;
5261
5284
  if (dynamicInputs) {
5262
- return /* @__PURE__ */ jsx44(DataResourceDynamicInputProviderRenderer, { ...props, children });
5285
+ return /* @__PURE__ */ jsx45(DataResourceDynamicInputProviderRenderer, { ...props, children });
5263
5286
  }
5264
- return /* @__PURE__ */ jsx44(DataResourceDynamicInputProviderContextShim, { children });
5287
+ return /* @__PURE__ */ jsx45(DataResourceDynamicInputProviderContextShim, { children });
5265
5288
  }
5266
5289
  function DataResourceDynamicInputProviderContextShim(props) {
5267
5290
  const {
5268
5291
  metadata: { dynamicInputs }
5269
5292
  } = useMeshLocation("dataResource");
5270
- return /* @__PURE__ */ jsx44(DataResourceDynamicInputProviderRenderer, { ...props, dynamicInputs });
5293
+ return /* @__PURE__ */ jsx45(DataResourceDynamicInputProviderRenderer, { ...props, dynamicInputs });
5271
5294
  }
5272
5295
  function DataResourceDynamicInputProviderRenderer({
5273
5296
  children,
5274
5297
  dynamicInputs
5275
5298
  }) {
5276
5299
  const variables = useDynamicInputsAsVariables(dynamicInputs);
5277
- return /* @__PURE__ */ jsx44(VariablesProvider, { value: variables, readOnly: true, children });
5300
+ return /* @__PURE__ */ jsx45(VariablesProvider, { value: variables, readOnly: true, children });
5278
5301
  }
5279
5302
 
5280
5303
  // src/components/DataResourceVariablesList.tsx
5281
5304
  import { Callout as Callout4, VerticalRhythm } from "@uniformdev/design-system";
5282
- import { jsx as jsx45 } from "@emotion/react/jsx-runtime";
5305
+ import { jsx as jsx46 } from "@emotion/react/jsx-runtime";
5283
5306
  function DataResourceVariablesList(props) {
5284
5307
  const {
5285
5308
  value,
5286
5309
  metadata: { dataType, dynamicInputs }
5287
5310
  } = useMeshLocation("dataResource");
5288
- return /* @__PURE__ */ jsx45(
5311
+ return /* @__PURE__ */ jsx46(
5289
5312
  DataResourceVariablesListExplicit,
5290
5313
  {
5291
5314
  ...props,
@@ -5306,14 +5329,14 @@ function DataResourceVariablesListExplicit({
5306
5329
  const variableDefinitions = variablesToList(dataType.variables);
5307
5330
  if (variableDefinitions.length === 0) {
5308
5331
  if (NoVariablesComponent) {
5309
- return /* @__PURE__ */ jsx45(NoVariablesComponent, {});
5332
+ return /* @__PURE__ */ jsx46(NoVariablesComponent, {});
5310
5333
  }
5311
- return /* @__PURE__ */ jsx45(Callout4, { type: "note", children: "No settings are required." });
5334
+ return /* @__PURE__ */ jsx46(Callout4, { type: "note", children: "No settings are required." });
5312
5335
  }
5313
- return /* @__PURE__ */ jsx45(DataResourceDynamicInputProvider, { dynamicInputs, children: /* @__PURE__ */ jsx45(VerticalRhythm, { children: variableDefinitions.map((variableDefinition) => {
5336
+ return /* @__PURE__ */ jsx46(DataResourceDynamicInputProvider, { dynamicInputs, children: /* @__PURE__ */ jsx46(VerticalRhythm, { children: variableDefinitions.map((variableDefinition) => {
5314
5337
  var _a, _b, _c;
5315
5338
  const VariableRenderer = variableDefinition.type ? (_a = typeRenderers == null ? void 0 : typeRenderers[variableDefinition.type]) != null ? _a : TextVariableRenderer : TextVariableRenderer;
5316
- return /* @__PURE__ */ jsx45("div", { children: /* @__PURE__ */ jsx45(
5339
+ return /* @__PURE__ */ jsx46("div", { children: /* @__PURE__ */ jsx46(
5317
5340
  VariableRenderer,
5318
5341
  {
5319
5342
  definition: variableDefinition,
@@ -5338,7 +5361,7 @@ function DataResourceVariablesListExplicit({
5338
5361
  }
5339
5362
  function TextVariableRenderer({ definition, value, setValue }) {
5340
5363
  var _a;
5341
- return /* @__PURE__ */ jsx45("div", { "data-testid": "variable-input-container", children: /* @__PURE__ */ jsx45(
5364
+ return /* @__PURE__ */ jsx46("div", { "data-testid": "variable-input-container", children: /* @__PURE__ */ jsx46(
5342
5365
  InputVariables,
5343
5366
  {
5344
5367
  label: definition.displayName || definition.name,
@@ -5353,11 +5376,11 @@ function TextVariableRenderer({ definition, value, setValue }) {
5353
5376
  // src/components/Request/RequestBody.tsx
5354
5377
  import { css as css28 } from "@emotion/react";
5355
5378
  import { InputSelect as InputSelect4, JsonEditor } from "@uniformdev/design-system";
5356
- import { useState as useState13 } from "react";
5379
+ import { useState as useState14 } from "react";
5357
5380
 
5358
5381
  // src/components/Request/RequestProvider.tsx
5359
5382
  import * as React11 from "react";
5360
- import { jsx as jsx46 } from "@emotion/react/jsx-runtime";
5383
+ import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
5361
5384
  var RequestContext = React11.createContext(null);
5362
5385
  function RequestProvider({ value, onChange, children }) {
5363
5386
  const contextValue = React11.useMemo(() => {
@@ -5426,7 +5449,7 @@ function RequestProvider({ value, onChange, children }) {
5426
5449
  request: value
5427
5450
  };
5428
5451
  }, [onChange, value]);
5429
- return /* @__PURE__ */ jsx46(RequestContext.Provider, { value: contextValue, children });
5452
+ return /* @__PURE__ */ jsx47(RequestContext.Provider, { value: contextValue, children });
5430
5453
  }
5431
5454
  function useRequest() {
5432
5455
  const context = React11.useContext(RequestContext);
@@ -5450,17 +5473,17 @@ var requestTypeContainer = (bgColor) => css27`
5450
5473
  `;
5451
5474
 
5452
5475
  // src/components/Request/RequestTypeContainer.tsx
5453
- import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
5476
+ import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
5454
5477
  var RequestTypeContainer = ({
5455
5478
  bgColor = "transparent",
5456
5479
  children,
5457
5480
  ...props
5458
5481
  }) => {
5459
- return /* @__PURE__ */ jsx47("div", { css: requestTypeContainer(bgColor), ...props, children });
5482
+ return /* @__PURE__ */ jsx48("div", { css: requestTypeContainer(bgColor), ...props, children });
5460
5483
  };
5461
5484
 
5462
5485
  // src/components/Request/RequestBody.tsx
5463
- import { jsx as jsx48, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
5486
+ import { jsx as jsx49, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
5464
5487
  var LANGUAGE_OPTIONS = [
5465
5488
  { label: "Text", value: "plaintext" },
5466
5489
  { label: "JSON", value: "json" },
@@ -5479,7 +5502,7 @@ var LANGUAGE_TO_CONTENT_TYPE = {
5479
5502
  };
5480
5503
  function RequestBody() {
5481
5504
  const { request, dispatch } = useRequest();
5482
- const [language, setLanguage] = useState13("json");
5505
+ const [language, setLanguage] = useState14("json");
5483
5506
  return /* @__PURE__ */ jsxs28(
5484
5507
  "div",
5485
5508
  {
@@ -5487,14 +5510,14 @@ function RequestBody() {
5487
5510
  background: var(--white);
5488
5511
  `,
5489
5512
  children: [
5490
- /* @__PURE__ */ jsx48(
5513
+ /* @__PURE__ */ jsx49(
5491
5514
  RequestTypeContainer,
5492
5515
  {
5493
5516
  bgColor: "var(--gray-100)",
5494
5517
  css: css28`
5495
5518
  padding: var(--spacing-sm) var(--spacing-base);
5496
5519
  `,
5497
- children: /* @__PURE__ */ jsx48(
5520
+ children: /* @__PURE__ */ jsx49(
5498
5521
  InputSelect4,
5499
5522
  {
5500
5523
  label: "Language",
@@ -5517,7 +5540,7 @@ function RequestBody() {
5517
5540
  )
5518
5541
  }
5519
5542
  ),
5520
- /* @__PURE__ */ jsx48(
5543
+ /* @__PURE__ */ jsx49(
5521
5544
  JsonEditor,
5522
5545
  {
5523
5546
  height: 200,
@@ -5545,7 +5568,7 @@ import {
5545
5568
  TableRow as TableRow2,
5546
5569
  WarningMessage as WarningMessage2
5547
5570
  } from "@uniformdev/design-system";
5548
- import { jsx as jsx49, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
5571
+ import { jsx as jsx50, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
5549
5572
  function RequestHeaders({
5550
5573
  disableVariables,
5551
5574
  addOmitIfEmpty
@@ -5564,29 +5587,29 @@ function RequestHeaders({
5564
5587
  index
5565
5588
  });
5566
5589
  };
5567
- return /* @__PURE__ */ jsx49("div", { css: innerContentStyles, children: /* @__PURE__ */ jsxs29(Table2, { children: [
5568
- /* @__PURE__ */ jsx49(TableHead2, { children: /* @__PURE__ */ jsxs29(TableRow2, { children: [
5569
- /* @__PURE__ */ jsx49(TableCellHead2, { children: "Name" }),
5570
- /* @__PURE__ */ jsx49(TableCellHead2, { children: "Value" }),
5571
- addOmitIfEmpty ? /* @__PURE__ */ jsx49(TableCellHead2, { children: "Omit If Empty" }) : null
5590
+ return /* @__PURE__ */ jsx50("div", { css: innerContentStyles, children: /* @__PURE__ */ jsxs29(Table2, { children: [
5591
+ /* @__PURE__ */ jsx50(TableHead2, { children: /* @__PURE__ */ jsxs29(TableRow2, { children: [
5592
+ /* @__PURE__ */ jsx50(TableCellHead2, { children: "Name" }),
5593
+ /* @__PURE__ */ jsx50(TableCellHead2, { children: "Value" }),
5594
+ addOmitIfEmpty ? /* @__PURE__ */ jsx50(TableCellHead2, { children: "Omit If Empty" }) : null
5572
5595
  ] }) }),
5573
5596
  /* @__PURE__ */ jsxs29(TableBody2, { children: [
5574
5597
  (_b = (_a = request.baseRequest) == null ? void 0 : _a.headers) == null ? void 0 : _b.map((baseHeader) => {
5575
5598
  return /* @__PURE__ */ jsxs29(TableRow2, { children: [
5576
5599
  /* @__PURE__ */ jsxs29(TableCellData2, { width: "50%", children: [
5577
5600
  baseHeader.key,
5578
- /* @__PURE__ */ jsx49("br", {}),
5579
- /* @__PURE__ */ jsx49("i", { css: { color: "var(--gray-500)" }, children: /* @__PURE__ */ jsx49("small", { children: "from data source" }) })
5601
+ /* @__PURE__ */ jsx50("br", {}),
5602
+ /* @__PURE__ */ jsx50("i", { css: { color: "var(--gray-500)" }, children: /* @__PURE__ */ jsx50("small", { children: "from data source" }) })
5580
5603
  ] }),
5581
5604
  /* @__PURE__ */ jsxs29(TableCellData2, { width: "50%", children: [
5582
- /* @__PURE__ */ jsx49("i", { css: { color: "var(--gray-500)" }, children: baseHeader.value }),
5583
- request.headers.find((p) => p.key === baseHeader.key) ? /* @__PURE__ */ jsx49(WarningMessage2, { message: "overridden below" }) : null
5605
+ /* @__PURE__ */ jsx50("i", { css: { color: "var(--gray-500)" }, children: baseHeader.value }),
5606
+ request.headers.find((p) => p.key === baseHeader.key) ? /* @__PURE__ */ jsx50(WarningMessage2, { message: "overridden below" }) : null
5584
5607
  ] })
5585
5608
  ] }, baseHeader.key);
5586
5609
  }),
5587
5610
  deezHeaders.map((header, index) => {
5588
5611
  return /* @__PURE__ */ jsxs29(TableRow2, { children: [
5589
- /* @__PURE__ */ jsx49(TableCellData2, { width: "50%", children: /* @__PURE__ */ jsx49(
5612
+ /* @__PURE__ */ jsx50(TableCellData2, { width: "50%", children: /* @__PURE__ */ jsx50(
5590
5613
  Input3,
5591
5614
  {
5592
5615
  label: header.key,
@@ -5606,7 +5629,7 @@ function RequestHeaders({
5606
5629
  "data-testid": "header-key"
5607
5630
  }
5608
5631
  ) }),
5609
- /* @__PURE__ */ jsx49(TableCellData2, { width: "50%", children: header.key ? /* @__PURE__ */ jsx49(
5632
+ /* @__PURE__ */ jsx50(TableCellData2, { width: "50%", children: header.key ? /* @__PURE__ */ jsx50(
5610
5633
  InputVariables,
5611
5634
  {
5612
5635
  value: header.value,
@@ -5617,7 +5640,7 @@ function RequestHeaders({
5617
5640
  "data-testid": "header-value"
5618
5641
  }
5619
5642
  ) : null }),
5620
- addOmitIfEmpty ? /* @__PURE__ */ jsx49(TableCellData2, { width: "50%", children: header.key ? /* @__PURE__ */ jsx49(
5643
+ addOmitIfEmpty ? /* @__PURE__ */ jsx50(TableCellData2, { width: "50%", children: header.key ? /* @__PURE__ */ jsx50(
5621
5644
  Input3,
5622
5645
  {
5623
5646
  type: "checkbox",
@@ -5642,11 +5665,11 @@ function RequestHeaders({
5642
5665
 
5643
5666
  // src/components/Request/RequestMethodSelect.tsx
5644
5667
  import { InputSelect as InputSelect5 } from "@uniformdev/design-system";
5645
- import { jsx as jsx50 } from "@emotion/react/jsx-runtime";
5668
+ import { jsx as jsx51 } from "@emotion/react/jsx-runtime";
5646
5669
  function RequestMethodSelect(props) {
5647
5670
  var _a;
5648
5671
  const { request, dispatch } = useRequest();
5649
- return /* @__PURE__ */ jsx50(
5672
+ return /* @__PURE__ */ jsx51(
5650
5673
  InputSelect5,
5651
5674
  {
5652
5675
  ...props,
@@ -5672,7 +5695,7 @@ import {
5672
5695
  TableRow as TableRow3,
5673
5696
  WarningMessage as WarningMessage3
5674
5697
  } from "@uniformdev/design-system";
5675
- import { jsx as jsx51, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
5698
+ import { jsx as jsx52, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
5676
5699
  function RequestParameters({
5677
5700
  disableVariables,
5678
5701
  addOmitIfEmpty
@@ -5692,29 +5715,29 @@ function RequestParameters({
5692
5715
  index
5693
5716
  });
5694
5717
  };
5695
- return /* @__PURE__ */ jsx51("div", { css: innerContentStyles, children: /* @__PURE__ */ jsxs30(Table3, { children: [
5696
- /* @__PURE__ */ jsx51(TableHead3, { children: /* @__PURE__ */ jsxs30(TableRow3, { children: [
5697
- /* @__PURE__ */ jsx51(TableCellHead3, { children: "Name" }),
5698
- /* @__PURE__ */ jsx51(TableCellHead3, { children: "Value" }),
5699
- addOmitIfEmpty ? /* @__PURE__ */ jsx51(TableCellHead3, { children: "Omit If Empty" }) : null
5718
+ return /* @__PURE__ */ jsx52("div", { css: innerContentStyles, children: /* @__PURE__ */ jsxs30(Table3, { children: [
5719
+ /* @__PURE__ */ jsx52(TableHead3, { children: /* @__PURE__ */ jsxs30(TableRow3, { children: [
5720
+ /* @__PURE__ */ jsx52(TableCellHead3, { children: "Name" }),
5721
+ /* @__PURE__ */ jsx52(TableCellHead3, { children: "Value" }),
5722
+ addOmitIfEmpty ? /* @__PURE__ */ jsx52(TableCellHead3, { children: "Omit If Empty" }) : null
5700
5723
  ] }) }),
5701
5724
  /* @__PURE__ */ jsxs30(TableBody3, { children: [
5702
5725
  (_b = (_a = request.baseRequest) == null ? void 0 : _a.parameters) == null ? void 0 : _b.map((baseParameter) => {
5703
5726
  return /* @__PURE__ */ jsxs30(TableRow3, { children: [
5704
5727
  /* @__PURE__ */ jsxs30(TableCellData3, { width: "50%", children: [
5705
5728
  baseParameter.key,
5706
- /* @__PURE__ */ jsx51("br", {}),
5707
- /* @__PURE__ */ jsx51("i", { css: { color: "var(--gray-500)" }, children: /* @__PURE__ */ jsx51("small", { children: "from data source" }) })
5729
+ /* @__PURE__ */ jsx52("br", {}),
5730
+ /* @__PURE__ */ jsx52("i", { css: { color: "var(--gray-500)" }, children: /* @__PURE__ */ jsx52("small", { children: "from data source" }) })
5708
5731
  ] }),
5709
5732
  /* @__PURE__ */ jsxs30(TableCellData3, { width: "50%", children: [
5710
- /* @__PURE__ */ jsx51("i", { css: { color: "var(--gray-500)" }, children: baseParameter.value }),
5711
- request.parameters.find((p) => p.key === baseParameter.key) ? /* @__PURE__ */ jsx51(WarningMessage3, { message: "overridden below" }) : null
5733
+ /* @__PURE__ */ jsx52("i", { css: { color: "var(--gray-500)" }, children: baseParameter.value }),
5734
+ request.parameters.find((p) => p.key === baseParameter.key) ? /* @__PURE__ */ jsx52(WarningMessage3, { message: "overridden below" }) : null
5712
5735
  ] })
5713
5736
  ] }, baseParameter.key);
5714
5737
  }),
5715
5738
  deezParameters.map((parameter, index) => {
5716
5739
  return /* @__PURE__ */ jsxs30(TableRow3, { children: [
5717
- /* @__PURE__ */ jsx51(TableCellData3, { width: "50%", children: /* @__PURE__ */ jsx51(
5740
+ /* @__PURE__ */ jsx52(TableCellData3, { width: "50%", children: /* @__PURE__ */ jsx52(
5718
5741
  Input4,
5719
5742
  {
5720
5743
  label: parameter.key,
@@ -5738,7 +5761,7 @@ function RequestParameters({
5738
5761
  "data-testid": "parameter-key"
5739
5762
  }
5740
5763
  ) }),
5741
- /* @__PURE__ */ jsx51(TableCellData3, { width: "50%", children: parameter.key ? /* @__PURE__ */ jsx51(
5764
+ /* @__PURE__ */ jsx52(TableCellData3, { width: "50%", children: parameter.key ? /* @__PURE__ */ jsx52(
5742
5765
  InputVariables,
5743
5766
  {
5744
5767
  value: parameter.value,
@@ -5754,7 +5777,7 @@ function RequestParameters({
5754
5777
  enableEditingVariables: true
5755
5778
  }
5756
5779
  ) : null }),
5757
- addOmitIfEmpty ? /* @__PURE__ */ jsx51(TableCellData3, { width: "50%", children: parameter.key ? /* @__PURE__ */ jsx51(
5780
+ addOmitIfEmpty ? /* @__PURE__ */ jsx52(TableCellData3, { width: "50%", children: parameter.key ? /* @__PURE__ */ jsx52(
5758
5781
  Input4,
5759
5782
  {
5760
5783
  type: "checkbox",
@@ -5802,7 +5825,7 @@ function decodeVariablesInUrlEncodedString(string, varValues) {
5802
5825
  }
5803
5826
 
5804
5827
  // src/components/Request/RequestUrl.tsx
5805
- import { Fragment as Fragment12, jsx as jsx52, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
5828
+ import { Fragment as Fragment12, jsx as jsx53, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
5806
5829
  function RequestUrl() {
5807
5830
  var _a, _b;
5808
5831
  const { variables } = useVariables();
@@ -5823,7 +5846,7 @@ function RequestUrl() {
5823
5846
  word-break: break-word;
5824
5847
  `,
5825
5848
  children: [
5826
- request.baseRequest ? /* @__PURE__ */ jsx52("span", { children: (_b = request.baseRequest) == null ? void 0 : _b.baseUrl }) : null,
5849
+ request.baseRequest ? /* @__PURE__ */ jsx53("span", { children: (_b = request.baseRequest) == null ? void 0 : _b.baseUrl }) : null,
5827
5850
  /* @__PURE__ */ jsxs31("span", { css: { fontWeight: request.baseRequest ? "bold" : "inherit" }, children: [
5828
5851
  urlEncodeRequestUrl(request.relativeUrl, variables),
5829
5852
  mergedParameters.length > 0 ? /* @__PURE__ */ jsxs31(Fragment12, { children: [
@@ -5869,10 +5892,10 @@ function transformPastedUrl(value, currentRequest, dispatch) {
5869
5892
  }
5870
5893
 
5871
5894
  // src/components/Request/RequestUrlInput.tsx
5872
- import { jsx as jsx53 } from "@emotion/react/jsx-runtime";
5895
+ import { jsx as jsx54 } from "@emotion/react/jsx-runtime";
5873
5896
  function RequestUrlInput(props) {
5874
5897
  const { request, dispatch } = useRequest();
5875
- return /* @__PURE__ */ jsx53(
5898
+ return /* @__PURE__ */ jsx54(
5876
5899
  InputVariables,
5877
5900
  {
5878
5901
  ...props,
@@ -5922,12 +5945,12 @@ function useRequestParameter(paramName) {
5922
5945
  }
5923
5946
 
5924
5947
  // src/components/DataSourceEditor.tsx
5925
- import { jsx as jsx54 } from "@emotion/react/jsx-runtime";
5948
+ import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
5926
5949
  function DataSourceEditor({ onChange, children, editVariableComponent }) {
5927
5950
  var _a;
5928
5951
  const { value } = useMeshLocation("dataSource");
5929
5952
  const currentRequestValue = convertDataSourceToRequestData(value);
5930
- return /* @__PURE__ */ jsx54(
5953
+ return /* @__PURE__ */ jsx55(
5931
5954
  VariablesProvider,
5932
5955
  {
5933
5956
  value: (_a = value.variables) != null ? _a : {},
@@ -5943,7 +5966,7 @@ function DataSourceEditor({ onChange, children, editVariableComponent }) {
5943
5966
  },
5944
5967
  editVariableComponent,
5945
5968
  readOnly: true,
5946
- children: /* @__PURE__ */ jsx54(
5969
+ children: /* @__PURE__ */ jsx55(
5947
5970
  RequestProvider,
5948
5971
  {
5949
5972
  value: currentRequestValue,
@@ -5980,7 +6003,7 @@ function convertRequestDataToDataSource(dataSource, requestData) {
5980
6003
  }
5981
6004
 
5982
6005
  // src/components/DataTypeEditor.tsx
5983
- import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
6006
+ import { jsx as jsx56 } from "@emotion/react/jsx-runtime";
5984
6007
  function DataTypeEditor({ onChange, children, editVariableComponent }) {
5985
6008
  var _a;
5986
6009
  const {
@@ -5989,7 +6012,7 @@ function DataTypeEditor({ onChange, children, editVariableComponent }) {
5989
6012
  isReadOnly
5990
6013
  } = useMeshLocation("dataType");
5991
6014
  const currentRequestValue = convertDataTypeToRequestData(value, dataSource);
5992
- return /* @__PURE__ */ jsx55(
6015
+ return /* @__PURE__ */ jsx56(
5993
6016
  VariablesProvider,
5994
6017
  {
5995
6018
  value: (_a = value.variables) != null ? _a : {},
@@ -6005,7 +6028,7 @@ function DataTypeEditor({ onChange, children, editVariableComponent }) {
6005
6028
  },
6006
6029
  editVariableComponent,
6007
6030
  readOnly: isReadOnly,
6008
- children: /* @__PURE__ */ jsx55(
6031
+ children: /* @__PURE__ */ jsx56(
6009
6032
  RequestProvider,
6010
6033
  {
6011
6034
  value: currentRequestValue,
@@ -6055,10 +6078,10 @@ import { LoadingIndicator as LoadingIndicator3, Theme as Theme2 } from "@uniform
6055
6078
 
6056
6079
  // src/hooks/useInitializeUniformMeshSdk.ts
6057
6080
  import { initializeUniformMeshSDK } from "@uniformdev/mesh-sdk";
6058
- import { useEffect as useEffect15, useRef as useRef14, useState as useState14 } from "react";
6081
+ import { useEffect as useEffect15, useRef as useRef14, useState as useState15 } from "react";
6059
6082
  var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
6060
- const [error, setError] = useState14();
6061
- const [sdk, setSdk] = useState14();
6083
+ const [error, setError] = useState15();
6084
+ const [sdk, setSdk] = useState15();
6062
6085
  const initializationInProgress = useRef14(false);
6063
6086
  useEffect15(
6064
6087
  () => {
@@ -6093,7 +6116,7 @@ var useInitializeUniformMeshSdk = ({ autoResizingDisabled } = {}) => {
6093
6116
  };
6094
6117
 
6095
6118
  // src/components/MeshApp.tsx
6096
- import { jsx as jsx56, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
6119
+ import { jsx as jsx57, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
6097
6120
  var MeshApp = ({
6098
6121
  children,
6099
6122
  loadingComponent,
@@ -6102,25 +6125,25 @@ var MeshApp = ({
6102
6125
  const { initializing, error, sdk } = useInitializeUniformMeshSdk();
6103
6126
  if (initializing || !sdk) {
6104
6127
  const LoadingComponent = loadingComponent;
6105
- return LoadingComponent ? /* @__PURE__ */ jsx56(LoadingComponent, {}) : /* @__PURE__ */ jsx56(LoadingIndicator3, {});
6128
+ return LoadingComponent ? /* @__PURE__ */ jsx57(LoadingComponent, {}) : /* @__PURE__ */ jsx57(LoadingIndicator3, {});
6106
6129
  }
6107
6130
  if (error) {
6108
6131
  const ErrorComponent = errorComponent;
6109
6132
  if (ErrorComponent) {
6110
- return /* @__PURE__ */ jsx56(ErrorComponent, { error });
6133
+ return /* @__PURE__ */ jsx57(ErrorComponent, { error });
6111
6134
  }
6112
6135
  throw error;
6113
6136
  }
6114
6137
  return /* @__PURE__ */ jsxs32(UniformMeshSdkContext.Provider, { value: { sdk }, children: [
6115
- /* @__PURE__ */ jsx56(Theme2, {}),
6116
- /* @__PURE__ */ jsx56(UniformMeshLocationContextProvider, { children })
6138
+ /* @__PURE__ */ jsx57(Theme2, {}),
6139
+ /* @__PURE__ */ jsx57(UniformMeshLocationContextProvider, { children })
6117
6140
  ] });
6118
6141
  };
6119
6142
 
6120
6143
  // src/components/ObjectSearch/DataRefreshButton.tsx
6121
6144
  import { css as css30 } from "@emotion/react";
6122
6145
  import { Button as Button3, LoadingIndicator as LoadingIndicator4 } from "@uniformdev/design-system";
6123
- import { jsx as jsx57, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
6146
+ import { jsx as jsx58, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
6124
6147
  var DataRefreshButton = ({
6125
6148
  buttonText,
6126
6149
  isLoading,
@@ -6128,7 +6151,7 @@ var DataRefreshButton = ({
6128
6151
  ...props
6129
6152
  }) => {
6130
6153
  return /* @__PURE__ */ jsxs33(Button3, { buttonType: "primaryInvert", onClick: onRefreshData, disabled: isLoading, ...props, children: [
6131
- !isLoading ? null : /* @__PURE__ */ jsx57(
6154
+ !isLoading ? null : /* @__PURE__ */ jsx58(
6132
6155
  LoadingIndicator4,
6133
6156
  {
6134
6157
  css: css30`
@@ -6141,9 +6164,9 @@ var DataRefreshButton = ({
6141
6164
  };
6142
6165
 
6143
6166
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
6144
- import { css as css31 } from "@emotion/react";
6167
+ import { css as css32 } from "@emotion/react";
6145
6168
  import { bindVariables } from "@uniformdev/canvas";
6146
- import { Container, IconsProvider, ScrollableList, VerticalRhythm as VerticalRhythm2 } from "@uniformdev/design-system";
6169
+ import { Callout as Callout5, Container, IconsProvider, ScrollableList, VerticalRhythm as VerticalRhythm2 } from "@uniformdev/design-system";
6147
6170
 
6148
6171
  // src/components/ObjectSearch/hooks/ObjectSearchContext.tsx
6149
6172
  import { bindVariablesToObject as bindVariablesToObject2 } from "@uniformdev/canvas";
@@ -6153,9 +6176,9 @@ import {
6153
6176
  useContext as useContext7,
6154
6177
  useDeferredValue,
6155
6178
  useMemo as useMemo14,
6156
- useState as useState15
6179
+ useState as useState16
6157
6180
  } from "react";
6158
- import { jsx as jsx58 } from "@emotion/react/jsx-runtime";
6181
+ import { jsx as jsx59 } from "@emotion/react/jsx-runtime";
6159
6182
  var ObjectSearchContext = createContext5({
6160
6183
  onSetQuery: () => {
6161
6184
  },
@@ -6168,17 +6191,24 @@ var ObjectSearchContext = createContext5({
6168
6191
  },
6169
6192
  selectedListItems: [],
6170
6193
  onRemoveAllSelectedItems: () => {
6171
- }
6194
+ },
6195
+ isMulti: false
6172
6196
  });
6173
- var ObjectSearchProvider = ({ currentlySelectedItems, children }) => {
6174
- const [query, setQuery] = useState15({
6197
+ var ObjectSearchProvider = ({
6198
+ currentlySelectedItems,
6199
+ isMulti = false,
6200
+ children,
6201
+ defaultQuery
6202
+ }) => {
6203
+ const [query, setQuery] = useState16({
6175
6204
  contentType: "",
6176
- keyword: ""
6205
+ keyword: "",
6206
+ ...defaultQuery
6177
6207
  });
6178
6208
  const { flatVariables } = useVariables(true);
6179
6209
  const querySearchDeferred = useDeferredValue(query);
6180
- const [selectedItems, setSelectedItems] = useState15(currentlySelectedItems != null ? currentlySelectedItems : []);
6181
- const [list, setList] = useState15({});
6210
+ const [selectedItems, setSelectedItems] = useState16(currentlySelectedItems != null ? currentlySelectedItems : []);
6211
+ const [list, setList] = useState16({});
6182
6212
  const onSetQuery = useCallback4(
6183
6213
  (value2) => {
6184
6214
  if (Array.isArray(value2.contentType) && value2.contentType.length > 0) {
@@ -6224,6 +6254,7 @@ var ObjectSearchProvider = ({ currentlySelectedItems, children }) => {
6224
6254
  selectedListItems: selectedItems,
6225
6255
  onRemoveAllSelectedItems,
6226
6256
  list,
6257
+ isMulti,
6227
6258
  onSetList
6228
6259
  }),
6229
6260
  [
@@ -6234,10 +6265,11 @@ var ObjectSearchProvider = ({ currentlySelectedItems, children }) => {
6234
6265
  selectedItems,
6235
6266
  onRemoveAllSelectedItems,
6236
6267
  list,
6268
+ isMulti,
6237
6269
  onSetList
6238
6270
  ]
6239
6271
  );
6240
- return /* @__PURE__ */ jsx58(ObjectSearchContext.Provider, { value, children });
6272
+ return /* @__PURE__ */ jsx59(ObjectSearchContext.Provider, { value, children });
6241
6273
  };
6242
6274
  function useObjectSearchContext() {
6243
6275
  return useContext7(ObjectSearchContext);
@@ -6254,8 +6286,148 @@ function bindQuery(query, inputs) {
6254
6286
  return result;
6255
6287
  }
6256
6288
 
6289
+ // src/components/ObjectSearch/ObjectSearchListItem.tsx
6290
+ import { Chip, Popover } from "@uniformdev/design-system";
6291
+
6292
+ // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
6293
+ import { css as css31 } from "@emotion/react";
6294
+ import { skeletonLoading } from "@uniformdev/design-system";
6295
+ var ObjectListItemContainer = css31`
6296
+ align-items: center;
6297
+ border: 1px solid var(--gray-300);
6298
+ border-radius: var(--rounded-base);
6299
+ background: var(--white);
6300
+ display: grid;
6301
+ grid-template-columns: 1fr auto;
6302
+ padding: var(--spacing-sm);
6303
+ `;
6304
+ var ObjectListItemContainerDisabled = css31`
6305
+ opacity: var(--opacity-50);
6306
+ pointer-events: none;
6307
+ `;
6308
+ var ObjectListItemLoading = css31`
6309
+ animation: ${skeletonLoading} 1s linear infinite alternate;
6310
+ border-color: transparent;
6311
+ min-height: 42px;
6312
+ position: relative;
6313
+
6314
+ &:before,
6315
+ &:after {
6316
+ background: var(--gray-200);
6317
+ content: '';
6318
+ display: block;
6319
+ height: 1rem;
6320
+ }
6321
+
6322
+ &:before {
6323
+ border-radius: var(--rounded-base);
6324
+ width: 10rem;
6325
+ }
6326
+
6327
+ &:after {
6328
+ border-radius: var(--rounded-full);
6329
+ width: 1rem;
6330
+ }
6331
+ `;
6332
+ var ObjectListItemHeadingGroup = css31`
6333
+ align-items: center;
6334
+ display: grid;
6335
+ `;
6336
+ var ObjectListItemThumbnail = css31`
6337
+ width: 30px;
6338
+ object-fit: contain;
6339
+ `;
6340
+ var ObjectListItemTitle = css31`
6341
+ color: var(--typography-base);
6342
+ display: block;
6343
+ font-size: var(--fs-sm);
6344
+ `;
6345
+ var ObjectListItemSubtitle = css31`
6346
+ color: var(--gray-500);
6347
+ display: block;
6348
+ font-size: var(--fs-xs);
6349
+ line-height: 1;
6350
+ `;
6351
+ var ObjectListItemInfoContainer = css31`
6352
+ align-items: center;
6353
+ display: flex;
6354
+ gap: var(--spacing-sm);
6355
+ justify-content: center;
6356
+ `;
6357
+ var ObjectListItemControlledContent = css31`
6358
+ display: flex;
6359
+ gap: var(--spacing-sm);
6360
+ `;
6361
+ var ObjectListItemUnControlledContent = css31`
6362
+ margin-top: var(--spacing-sm);
6363
+ grid-column: 1 / -1;
6364
+ `;
6365
+
6366
+ // src/components/ObjectSearch/ObjectSearchListItem.tsx
6367
+ import { jsx as jsx60, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
6368
+ var ObjectSearchListItem = ({
6369
+ id,
6370
+ title,
6371
+ contentType,
6372
+ image,
6373
+ imageUrl,
6374
+ popoverData,
6375
+ onSelect,
6376
+ isMulti,
6377
+ disabled,
6378
+ children
6379
+ }) => {
6380
+ const { onSelectItem, selectedListItems, isMulti: globalIsMulti } = useObjectSearchContext();
6381
+ const formatedContentType = Array.isArray(contentType) ? contentType.join(", ") : contentType;
6382
+ const handleSelectItem = () => {
6383
+ var _a;
6384
+ const extraData = (_a = onSelect == null ? void 0 : onSelect()) != null ? _a : {};
6385
+ const selectedItem = { id, title, contentType, imageUrl, image, popoverData, ...extraData };
6386
+ if (isMulti === true || globalIsMulti) {
6387
+ return onSelectItem(selectedItem);
6388
+ }
6389
+ return onSelectItem([selectedItem]);
6390
+ };
6391
+ const selected = selectedListItems.some((item) => item.id === id);
6392
+ return /* @__PURE__ */ jsxs34(
6393
+ "div",
6394
+ {
6395
+ role: "listitem",
6396
+ css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
6397
+ "data-testid": "list-item",
6398
+ children: [
6399
+ /* @__PURE__ */ jsxs34(
6400
+ "div",
6401
+ {
6402
+ role: "button",
6403
+ onClick: handleSelectItem,
6404
+ css: ObjectListItemControlledContent,
6405
+ "aria-disabled": disabled,
6406
+ children: [
6407
+ !imageUrl ? null : /* @__PURE__ */ jsx60("img", { src: imageUrl, alt: `Thumbnail for ${title}`, css: ObjectListItemThumbnail }),
6408
+ !image || imageUrl ? null : /* @__PURE__ */ jsx60("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6409
+ /* @__PURE__ */ jsxs34("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
6410
+ !contentType ? null : /* @__PURE__ */ jsx60("span", { css: ObjectListItemSubtitle, children: formatedContentType }),
6411
+ /* @__PURE__ */ jsx60("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
6412
+ ] })
6413
+ ]
6414
+ }
6415
+ ),
6416
+ /* @__PURE__ */ jsxs34("div", { css: ObjectListItemInfoContainer, children: [
6417
+ selected ? /* @__PURE__ */ jsx60(Chip, { text: "selected", size: "xs" }) : null,
6418
+ !popoverData ? null : /* @__PURE__ */ jsx60(Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
6419
+ ] }),
6420
+ !children ? null : /* @__PURE__ */ jsx60("div", { css: ObjectListItemUnControlledContent, children })
6421
+ ]
6422
+ }
6423
+ );
6424
+ };
6425
+ var ObjectSearchListItemLoadingSkeleton = () => {
6426
+ return /* @__PURE__ */ jsx60("div", { role: "presentation", css: [ObjectListItemContainer, ObjectListItemLoading] });
6427
+ };
6428
+
6257
6429
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
6258
- import { jsx as jsx59, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
6430
+ import { jsx as jsx61, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
6259
6431
  var ObjectSearchContainer = ({
6260
6432
  label,
6261
6433
  enableDynamicInputToResultId,
@@ -6267,21 +6439,22 @@ var ObjectSearchContainer = ({
6267
6439
  const { onSelectItem, selectedListItems, list } = useObjectSearchContext();
6268
6440
  const { flatVariables } = useVariables(true);
6269
6441
  const inputValue = (_b = (_a = selectedListItems == null ? void 0 : selectedListItems[0]) == null ? void 0 : _a.id) != null ? _b : "";
6270
- const body = /* @__PURE__ */ jsxs34(VerticalRhythm2, { children: [
6442
+ const listItems = resultList != null ? resultList : /* @__PURE__ */ jsx61(
6443
+ ScrollableList,
6444
+ {
6445
+ role: "list",
6446
+ css: css32`
6447
+ > div {
6448
+ transition: max-height var(--duration-slow) var(--timing-ease-out);
6449
+ max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6450
+ }
6451
+ `,
6452
+ children: /* @__PURE__ */ jsx61(DefaultResultList, {})
6453
+ }
6454
+ );
6455
+ const body = /* @__PURE__ */ jsxs35(VerticalRhythm2, { children: [
6271
6456
  searchFilters,
6272
- !resultList ? null : /* @__PURE__ */ jsx59(
6273
- ScrollableList,
6274
- {
6275
- role: "list",
6276
- css: css31`
6277
- > div {
6278
- transition: max-height var(--duration-slow) var(--timing-ease-out);
6279
- max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
6280
- }
6281
- `,
6282
- children: resultList
6283
- }
6284
- )
6457
+ listItems
6285
6458
  ] });
6286
6459
  const handleSelectedVariableChange = (selectedValue) => {
6287
6460
  var _a2;
@@ -6310,8 +6483,8 @@ var ObjectSearchContainer = ({
6310
6483
  }
6311
6484
  ]);
6312
6485
  };
6313
- return /* @__PURE__ */ jsx59(IconsProvider, { children: /* @__PURE__ */ jsxs34(VerticalRhythm2, { children: [
6314
- /* @__PURE__ */ jsx59(Container, { backgroundColor: "gray-50", padding: "var(--spacing-base)", border: true, children: label ? /* @__PURE__ */ jsx59(
6486
+ return /* @__PURE__ */ jsx61(IconsProvider, { children: /* @__PURE__ */ jsxs35(VerticalRhythm2, { children: [
6487
+ /* @__PURE__ */ jsx61(Container, { backgroundColor: "gray-50", padding: "var(--spacing-base)", border: true, children: label ? /* @__PURE__ */ jsx61(
6315
6488
  InputVariables,
6316
6489
  {
6317
6490
  label,
@@ -6329,14 +6502,25 @@ var ObjectSearchContainer = ({
6329
6502
  children
6330
6503
  ] }) });
6331
6504
  };
6505
+ var DefaultResultList = () => {
6506
+ var _a;
6507
+ const { list } = useObjectSearchContext();
6508
+ if (!list.items) {
6509
+ return Array.from(Array(5).keys()).map((i) => /* @__PURE__ */ jsx61(ObjectSearchListItemLoadingSkeleton, {}, i));
6510
+ }
6511
+ if (list.items.length === 0) {
6512
+ return /* @__PURE__ */ jsx61(Callout5, { type: "info", children: "No results were found" });
6513
+ }
6514
+ return (_a = list.items) == null ? void 0 : _a.map((item) => /* @__PURE__ */ jsx61(ObjectSearchListItem, { ...item }, item.id));
6515
+ };
6332
6516
 
6333
6517
  // src/components/ObjectSearch/ObjectSearchFilter.tsx
6334
6518
  import { InputKeywordSearch as InputKeywordSearch2, InputSelect as InputSelect6 } from "@uniformdev/design-system";
6335
- import { useMemo as useMemo15, useState as useState16 } from "react";
6519
+ import { useMemo as useMemo15, useState as useState17 } from "react";
6336
6520
 
6337
6521
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
6338
- import { css as css32 } from "@emotion/react";
6339
- var ObjectSearchFilterContainerLabel = css32`
6522
+ import { css as css33 } from "@emotion/react";
6523
+ var ObjectSearchFilterContainerLabel = css33`
6340
6524
  align-items: center;
6341
6525
  display: flex;
6342
6526
  font-size: var(--fs-sm);
@@ -6344,18 +6528,18 @@ var ObjectSearchFilterContainerLabel = css32`
6344
6528
  line-height: 1rem;
6345
6529
  margin-bottom: var(--spacing-sm);
6346
6530
  `;
6347
- var ObjectSearchFilterContainer = css32`
6531
+ var ObjectSearchFilterContainer = css33`
6348
6532
  display: grid;
6349
6533
  gap: var(--spacing-base);
6350
6534
  `;
6351
- var ObjectSearchFilterGrid = (gridColumns) => css32`
6535
+ var ObjectSearchFilterGrid = (gridColumns) => css33`
6352
6536
  display: grid;
6353
6537
  grid-template-columns: ${gridColumns};
6354
6538
  gap: var(--spacing-base);
6355
6539
  `;
6356
6540
 
6357
6541
  // src/components/ObjectSearch/ObjectSearchFilter.tsx
6358
- import { jsx as jsx60, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
6542
+ import { jsx as jsx62, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
6359
6543
  var ObjectSearchFilter = ({
6360
6544
  requireContentType,
6361
6545
  typeSelectorAllTypesOptionText = "All content types",
@@ -6364,10 +6548,11 @@ var ObjectSearchFilter = ({
6364
6548
  selectLabel = "Content Type Select",
6365
6549
  selectOptions
6366
6550
  }) => {
6551
+ var _a, _b;
6367
6552
  const { query, onSetQuery } = useObjectSearchContext();
6368
- const [searchState, setSearchState] = useState16({
6369
- contentType: "",
6370
- keyword: ""
6553
+ const [searchState, setSearchState] = useState17({
6554
+ contentType: (_a = query.contentType) != null ? _a : "",
6555
+ keyword: (_b = query.keyword) != null ? _b : ""
6371
6556
  });
6372
6557
  const handleFilterChange = (value) => {
6373
6558
  setSearchState((prev) => {
@@ -6381,14 +6566,11 @@ var ObjectSearchFilter = ({
6381
6566
  }
6382
6567
  return [
6383
6568
  ...!requireContentType ? [{ value: "any", label: typeSelectorAllTypesOptionText }] : [],
6384
- ...selectOptions ? selectOptions.map((option) => {
6385
- var _a;
6386
- return { name: option == null ? void 0 : option.name, label: (_a = option.label) != null ? _a : option == null ? void 0 : option.name, id: option.id };
6387
- }) : []
6569
+ ...selectOptions != null ? selectOptions : []
6388
6570
  ];
6389
6571
  }, [requireContentType, typeSelectorAllTypesOptionText, selectOptions]);
6390
6572
  const shouldRenderSelect = memoizedSelectOptions.length > 0;
6391
- return /* @__PURE__ */ jsxs35(
6573
+ return /* @__PURE__ */ jsxs36(
6392
6574
  "fieldset",
6393
6575
  {
6394
6576
  css: [
@@ -6396,7 +6578,7 @@ var ObjectSearchFilter = ({
6396
6578
  ObjectSearchFilterGrid(shouldRenderSelect ? "1fr 2fr" : "1fr")
6397
6579
  ],
6398
6580
  children: [
6399
- memoizedSelectOptions.length ? /* @__PURE__ */ jsx60(
6581
+ memoizedSelectOptions.length ? /* @__PURE__ */ jsx62(
6400
6582
  InputSelect6,
6401
6583
  {
6402
6584
  label: selectLabel,
@@ -6406,7 +6588,7 @@ var ObjectSearchFilter = ({
6406
6588
  value: query.contentType
6407
6589
  }
6408
6590
  ) : null,
6409
- /* @__PURE__ */ jsx60(
6591
+ /* @__PURE__ */ jsx62(
6410
6592
  InputKeywordSearch2,
6411
6593
  {
6412
6594
  inputFieldName: searchInputName,
@@ -6423,154 +6605,14 @@ var ObjectSearchFilter = ({
6423
6605
  };
6424
6606
 
6425
6607
  // src/components/ObjectSearch/ObjectSearchFilterContainer.tsx
6426
- import { jsx as jsx61, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
6608
+ import { jsx as jsx63, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
6427
6609
  var ObjectSearchFilterContainer2 = ({ label, children }) => {
6428
- return /* @__PURE__ */ jsxs36("div", { children: [
6429
- label ? /* @__PURE__ */ jsx61("span", { css: ObjectSearchFilterContainerLabel, children: label }) : null,
6430
- /* @__PURE__ */ jsx61("div", { css: ObjectSearchFilterContainer, children })
6610
+ return /* @__PURE__ */ jsxs37("div", { children: [
6611
+ label ? /* @__PURE__ */ jsx63("span", { css: ObjectSearchFilterContainerLabel, children: label }) : null,
6612
+ /* @__PURE__ */ jsx63("div", { css: ObjectSearchFilterContainer, children })
6431
6613
  ] });
6432
6614
  };
6433
6615
 
6434
- // src/components/ObjectSearch/ObjectSearchListItem.tsx
6435
- import { Chip, Popover } from "@uniformdev/design-system";
6436
-
6437
- // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
6438
- import { css as css33 } from "@emotion/react";
6439
- import { skeletonLoading } from "@uniformdev/design-system";
6440
- var ObjectListItemContainer = css33`
6441
- align-items: center;
6442
- border: 1px solid var(--gray-300);
6443
- border-radius: var(--rounded-base);
6444
- background: var(--white);
6445
- display: grid;
6446
- grid-template-columns: 1fr auto;
6447
- padding: var(--spacing-sm);
6448
- `;
6449
- var ObjectListItemContainerDisabled = css33`
6450
- opacity: var(--opacity-50);
6451
- pointer-events: none;
6452
- `;
6453
- var ObjectListItemLoading = css33`
6454
- animation: ${skeletonLoading} 1s linear infinite alternate;
6455
- border-color: transparent;
6456
- min-height: 42px;
6457
- position: relative;
6458
-
6459
- &:before,
6460
- &:after {
6461
- background: var(--gray-200);
6462
- content: '';
6463
- display: block;
6464
- height: 1rem;
6465
- }
6466
-
6467
- &:before {
6468
- border-radius: var(--rounded-base);
6469
- width: 10rem;
6470
- }
6471
-
6472
- &:after {
6473
- border-radius: var(--rounded-full);
6474
- width: 1rem;
6475
- }
6476
- `;
6477
- var ObjectListItemHeadingGroup = css33`
6478
- align-items: center;
6479
- display: grid;
6480
- `;
6481
- var ObjectListItemThumbnail = css33`
6482
- width: 30px;
6483
- object-fit: contain;
6484
- `;
6485
- var ObjectListItemTitle = css33`
6486
- color: var(--brand-secondary-1);
6487
- display: block;
6488
- font-size: var(--fs-sm);
6489
- `;
6490
- var ObjectListItemSubtitle = css33`
6491
- color: var(--gray-500);
6492
- display: block;
6493
- font-size: var(--fs-xs);
6494
- line-height: 1;
6495
- `;
6496
- var ObjectListItemInfoContainer = css33`
6497
- align-items: center;
6498
- display: flex;
6499
- gap: var(--spacing-sm);
6500
- justify-content: center;
6501
- `;
6502
- var ObjectListItemControlledContent = css33`
6503
- display: flex;
6504
- gap: var(--spacing-sm);
6505
- `;
6506
- var ObjectListItemUnControlledContent = css33`
6507
- margin-top: var(--spacing-sm);
6508
- grid-column: 1 / -1;
6509
- `;
6510
-
6511
- // src/components/ObjectSearch/ObjectSearchListItem.tsx
6512
- import { jsx as jsx62, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
6513
- var ObjectSearchListItem = ({
6514
- id,
6515
- title,
6516
- contentType,
6517
- image,
6518
- imageUrl,
6519
- popoverData,
6520
- onSelect,
6521
- isMulti = false,
6522
- disabled,
6523
- children
6524
- }) => {
6525
- const { onSelectItem, selectedListItems } = useObjectSearchContext();
6526
- const formatedContentType = Array.isArray(contentType) ? contentType.join(", ") : contentType;
6527
- const handleSelectItem = () => {
6528
- var _a;
6529
- const extraData = (_a = onSelect == null ? void 0 : onSelect()) != null ? _a : {};
6530
- const selectedItem = { id, title, contentType, imageUrl, image, popoverData, ...extraData };
6531
- if (isMulti) {
6532
- return onSelectItem(selectedItem);
6533
- }
6534
- return onSelectItem([selectedItem]);
6535
- };
6536
- const selected = selectedListItems.some((item) => item.id === id);
6537
- return /* @__PURE__ */ jsxs37(
6538
- "div",
6539
- {
6540
- role: "listitem",
6541
- css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
6542
- "data-testid": "list-item",
6543
- children: [
6544
- /* @__PURE__ */ jsxs37(
6545
- "div",
6546
- {
6547
- role: "button",
6548
- onClick: handleSelectItem,
6549
- css: ObjectListItemControlledContent,
6550
- "aria-disabled": disabled,
6551
- children: [
6552
- !imageUrl ? null : /* @__PURE__ */ jsx62("img", { src: imageUrl, alt: `Thumbnail for ${title}`, css: ObjectListItemThumbnail }),
6553
- !image || imageUrl ? null : /* @__PURE__ */ jsx62("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6554
- /* @__PURE__ */ jsxs37("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
6555
- !contentType ? null : /* @__PURE__ */ jsx62("span", { css: ObjectListItemSubtitle, children: formatedContentType }),
6556
- /* @__PURE__ */ jsx62("span", { css: ObjectListItemTitle, "data-testid": "title", children: title })
6557
- ] })
6558
- ]
6559
- }
6560
- ),
6561
- /* @__PURE__ */ jsxs37("div", { css: ObjectListItemInfoContainer, children: [
6562
- selected ? /* @__PURE__ */ jsx62(Chip, { text: "selected", size: "xs" }) : null,
6563
- !popoverData ? null : /* @__PURE__ */ jsx62(Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
6564
- ] }),
6565
- !children ? null : /* @__PURE__ */ jsx62("div", { css: ObjectListItemUnControlledContent, children })
6566
- ]
6567
- }
6568
- );
6569
- };
6570
- var ObjectSearchListItemLoadingSkeleton = () => {
6571
- return /* @__PURE__ */ jsx62("div", { role: "presentation", css: [ObjectListItemContainer, ObjectListItemLoading] });
6572
- };
6573
-
6574
6616
  // src/components/ObjectSearch/ObjectSearchResultItem.tsx
6575
6617
  import { Badge, Button as Button4, Popover as Popover2 } from "@uniformdev/design-system";
6576
6618
  import { format as timeagoFormat } from "timeago.js";
@@ -6581,8 +6623,8 @@ import { button as button2 } from "@uniformdev/design-system";
6581
6623
  var ButtonStyles = css34`
6582
6624
  ${button2}
6583
6625
  background: transparent;
6584
- border: 1px solid var(--brand-secondary-1);
6585
- color: var(--brand-secondary-1);
6626
+ border: 1px solid var(--typography-base);
6627
+ color: var(--typography-base);
6586
6628
  padding: var(--spacing-sm);
6587
6629
  font-size: var(--fs-sm);
6588
6630
  line-height: 1;
@@ -6611,14 +6653,14 @@ var ButtonIcon = css34`
6611
6653
  `;
6612
6654
 
6613
6655
  // src/components/ObjectSearch/ObjectSearchResultItemButton.tsx
6614
- import { jsx as jsx63, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
6656
+ import { jsx as jsx64, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
6615
6657
  var ObjectSearchResultItemButton = ({
6616
6658
  text,
6617
6659
  icon,
6618
6660
  ...props
6619
6661
  }) => {
6620
6662
  return /* @__PURE__ */ jsxs38("button", { type: "button", css: ButtonStyles, ...props, children: [
6621
- !icon ? null : /* @__PURE__ */ jsx63(Image, { src: icon, css: ButtonIcon }),
6663
+ !icon ? null : /* @__PURE__ */ jsx64(Image, { src: icon, css: ButtonIcon }),
6622
6664
  text
6623
6665
  ] });
6624
6666
  };
@@ -6628,7 +6670,7 @@ var LinkButton = ({
6628
6670
  ...props
6629
6671
  }) => {
6630
6672
  return /* @__PURE__ */ jsxs38("a", { ...props, css: ButtonStyles, target: "_blank", rel: "noopener noreferrer", children: [
6631
- !icon ? null : /* @__PURE__ */ jsx63(Image, { src: icon, css: ButtonIcon }),
6673
+ !icon ? null : /* @__PURE__ */ jsx64(Image, { src: icon, css: ButtonIcon }),
6632
6674
  text
6633
6675
  ] });
6634
6676
  };
@@ -6668,7 +6710,7 @@ var ObjectSearchResultItemSubtitle = css35`
6668
6710
  `;
6669
6711
  var ObjectSearchResultItemTitle = css35`
6670
6712
  align-items: center;
6671
- color: var(--brand-secondary-1);
6713
+ color: var(--typography-base);
6672
6714
  display: flex;
6673
6715
  gap: var(--spacing-xs);
6674
6716
  `;
@@ -6694,7 +6736,7 @@ var ObjectSearchImage = css35`
6694
6736
  `;
6695
6737
 
6696
6738
  // src/components/ObjectSearch/ObjectSearchResultItem.tsx
6697
- import { jsx as jsx64, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
6739
+ import { jsx as jsx65, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
6698
6740
  var ObjectSearchResultItem = ({
6699
6741
  id,
6700
6742
  title,
@@ -6718,42 +6760,42 @@ var ObjectSearchResultItem = ({
6718
6760
  onSelectItem({ id, title: id });
6719
6761
  onRemove == null ? void 0 : onRemove();
6720
6762
  };
6721
- return /* @__PURE__ */ jsxs39("div", { css: ObjectSearchResultItemContainer, children: [
6722
- disableDnD ? null : /* @__PURE__ */ jsx64("div", { role: "presentation", className: "drag-handle", css: ObjectSearchDragHandle }),
6723
- /* @__PURE__ */ jsx64("div", { children: /* @__PURE__ */ jsxs39("div", { css: ObjectSearchContentContainer, children: [
6724
- !imageUrl ? null : /* @__PURE__ */ jsx64("img", { src: imageUrl, alt: `Thumbnail for ${title}`, css: ObjectSearchImage }),
6763
+ return /* @__PURE__ */ jsxs39("div", { css: ObjectSearchResultItemContainer, "data-testid": "search-result-item", children: [
6764
+ disableDnD ? null : /* @__PURE__ */ jsx65("div", { role: "presentation", className: "drag-handle", css: ObjectSearchDragHandle }),
6765
+ /* @__PURE__ */ jsx65("div", { children: /* @__PURE__ */ jsxs39("div", { css: ObjectSearchContentContainer, children: [
6766
+ !imageUrl ? null : /* @__PURE__ */ jsx65("img", { src: imageUrl, alt: `Thumbnail for ${title}`, css: ObjectSearchImage }),
6725
6767
  /* @__PURE__ */ jsxs39("div", { children: [
6726
- /* @__PURE__ */ jsx64("span", { css: ObjectSearchResultItemSubtitle, children: formatedContentType }),
6727
- /* @__PURE__ */ jsxs39("span", { role: "heading", css: ObjectSearchResultItemTitle, children: [
6768
+ /* @__PURE__ */ jsx65("span", { css: ObjectSearchResultItemSubtitle, "data-testid": "sub-title", children: formatedContentType }),
6769
+ /* @__PURE__ */ jsxs39("span", { role: "heading", css: ObjectSearchResultItemTitle, "data-testid": "title", children: [
6728
6770
  title != null ? title : name,
6729
- !popoverData ? null : /* @__PURE__ */ jsx64(Popover2, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
6771
+ !popoverData ? null : /* @__PURE__ */ jsx65(Popover2, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData })
6730
6772
  ] }),
6731
6773
  !createdAt && !publishStatus ? null : /* @__PURE__ */ jsxs39("div", { css: ObjectSearchAuthorStateGroup, children: [
6732
- !(publishStatus == null ? void 0 : publishStatus.text) ? null : /* @__PURE__ */ jsx64(Badge, { ...publishStatus, size: "sm", uppercaseText: true }),
6774
+ !(publishStatus == null ? void 0 : publishStatus.text) ? null : /* @__PURE__ */ jsx65(Badge, { ...publishStatus, size: "sm", uppercaseText: true }),
6733
6775
  !createdAt && !publishedAt ? null : /* @__PURE__ */ jsxs39("div", { css: ObjectSearchUpdateGroup, children: [
6734
6776
  !createdAt ? null : /* @__PURE__ */ jsxs39("small", { css: ObjectSearchResultItemTimeStamp, children: [
6735
- /* @__PURE__ */ jsx64("strong", { children: "Last updated: " }),
6777
+ /* @__PURE__ */ jsx65("strong", { children: "Last updated: " }),
6736
6778
  timeagoFormat(createdAt)
6737
6779
  ] }),
6738
6780
  !publishedAt ? null : /* @__PURE__ */ jsxs39("small", { css: ObjectSearchResultItemTimeStamp, children: [
6739
- /* @__PURE__ */ jsx64("strong", { children: "Last published: " }),
6781
+ /* @__PURE__ */ jsx65("strong", { children: "Last published: " }),
6740
6782
  timeagoFormat(publishedAt)
6741
6783
  ] })
6742
6784
  ] })
6743
6785
  ] }),
6744
- /* @__PURE__ */ jsx64("div", { children })
6786
+ /* @__PURE__ */ jsx65("div", { children })
6745
6787
  ] })
6746
6788
  ] }) }),
6747
6789
  !editLink && hideRemoveButton ? null : /* @__PURE__ */ jsxs39("div", { css: ObjectSearchAuthorStateGroup, children: [
6748
- !editLink ? null : /* @__PURE__ */ jsx64(LinkButton, { text: "Edit", href: editLink, icon: editLinkIcon }),
6749
- hideRemoveButton ? null : /* @__PURE__ */ jsx64(Button4, { buttonType: "ghostDestructive", onClick: onRemoveItem, children: "Remove" })
6790
+ !editLink ? null : /* @__PURE__ */ jsx65(LinkButton, { text: "Edit", href: editLink, icon: editLinkIcon }),
6791
+ hideRemoveButton ? null : /* @__PURE__ */ jsx65(Button4, { buttonType: "ghostDestructive", onClick: onRemoveItem, children: "Remove" })
6750
6792
  ] })
6751
6793
  ] });
6752
6794
  };
6753
6795
 
6754
6796
  // src/components/ObjectSearch/ObjectSearchResultList.tsx
6755
6797
  import { Button as Button5, Counter } from "@uniformdev/design-system";
6756
- import { DragDropContext as DragDropContext3, Draggable as Draggable3, Droppable as Droppable3 } from "react-beautiful-dnd";
6798
+ import { Draggable as Draggable3, Droppable as Droppable3 } from "react-beautiful-dnd";
6757
6799
 
6758
6800
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
6759
6801
  import { css as css36 } from "@emotion/react";
@@ -6781,16 +6823,17 @@ var ObjectSearchResultListTitle = css36`
6781
6823
  `;
6782
6824
 
6783
6825
  // src/components/ObjectSearch/ObjectSearchResultList.tsx
6784
- import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
6826
+ import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
6785
6827
  function ObjectSearchResultList({
6786
6828
  resultLabelText = "Selected",
6787
6829
  removeButtonText = "Remove all",
6788
6830
  onRemoveAllSelected,
6789
6831
  hideRemoveButton = false,
6790
6832
  additionalButtons,
6791
- renderResultComponent = (value) => /* @__PURE__ */ jsx65(ObjectSearchResultItem, { ...value }),
6833
+ renderResultComponent = (value) => /* @__PURE__ */ jsx66(ObjectSearchResultItem, { ...value }),
6792
6834
  multiSelectId,
6793
6835
  disableDnD = false,
6836
+ getContainerForDnDReparenting,
6794
6837
  whenNothingSelected = null
6795
6838
  }) {
6796
6839
  const { selectedListItems, onRemoveAllSelectedItems, onSelectItem } = useObjectSearchContext();
@@ -6808,16 +6851,37 @@ function ObjectSearchResultList({
6808
6851
  return result;
6809
6852
  }
6810
6853
  };
6854
+ const getDraggableItem = (provided, snapshot, rubric) => {
6855
+ const item = selectedListItems.find((i) => i.id === rubric.draggableId);
6856
+ const renderListItem = renderResultComponent({
6857
+ ...item,
6858
+ disableDnD: selectedListItems.length === 1 || disableDnD
6859
+ });
6860
+ return /* @__PURE__ */ jsx66(
6861
+ "div",
6862
+ {
6863
+ css: [
6864
+ ObjectSearchDragContainer,
6865
+ snapshot.isDragging ? ObjectSearchContainerDragging : void 0
6866
+ ],
6867
+ ref: provided.innerRef,
6868
+ "data-dragging": snapshot.isDragging,
6869
+ ...provided.draggableProps,
6870
+ ...provided.dragHandleProps,
6871
+ children: renderListItem
6872
+ }
6873
+ );
6874
+ };
6811
6875
  return /* @__PURE__ */ jsxs40(Fragment13, { children: [
6812
6876
  /* @__PURE__ */ jsxs40("div", { role: "group", css: ObjectSearchResultListContainer, children: [
6813
6877
  /* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
6814
- /* @__PURE__ */ jsx65("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
6878
+ /* @__PURE__ */ jsx66("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
6815
6879
  " ",
6816
- !selectedListItems.length ? null : /* @__PURE__ */ jsx65(Counter, { count: selectedListItems.length })
6880
+ !selectedListItems.length ? null : /* @__PURE__ */ jsx66(Counter, { count: selectedListItems.length })
6817
6881
  ] }),
6818
6882
  /* @__PURE__ */ jsxs40("div", { css: ObjectSearchResultListCounterContainer, children: [
6819
6883
  additionalButtons,
6820
- hideRemoveButton ? null : /* @__PURE__ */ jsx65(
6884
+ hideRemoveButton ? null : /* @__PURE__ */ jsx66(
6821
6885
  Button5,
6822
6886
  {
6823
6887
  buttonType: "ghostDestructive",
@@ -6829,43 +6893,36 @@ function ObjectSearchResultList({
6829
6893
  )
6830
6894
  ] })
6831
6895
  ] }),
6832
- !selectedListItems.length ? whenNothingSelected : /* @__PURE__ */ jsx65(DragDropContext3, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx65(Droppable3, { droppableId: multiSelectId != null ? multiSelectId : "canvas-multi-select", children: (provided) => /* @__PURE__ */ jsxs40("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
6833
- selectedListItems.map((item, i) => {
6834
- const itemValues = selectedListItems.length === 1 ? { ...item, disableDnD: true } : { ...item, disableDnD };
6835
- const renderListItem = renderResultComponent(itemValues);
6836
- return /* @__PURE__ */ jsx65(
6837
- Draggable3,
6838
- {
6839
- draggableId: item.id,
6840
- index: i,
6841
- isDragDisabled: selectedListItems.length === 1 || disableDnD,
6842
- children: (provided2, snapshot) => /* @__PURE__ */ jsx65(
6843
- "div",
6896
+ !selectedListItems.length ? whenNothingSelected : /* @__PURE__ */ jsx66(DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx66(
6897
+ Droppable3,
6898
+ {
6899
+ droppableId: multiSelectId != null ? multiSelectId : "canvas-multi-select",
6900
+ renderClone: getContainerForDnDReparenting ? getDraggableItem : void 0,
6901
+ getContainerForClone: getContainerForDnDReparenting,
6902
+ children: (provided) => /* @__PURE__ */ jsxs40("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
6903
+ selectedListItems.map((item, i) => {
6904
+ return /* @__PURE__ */ jsx66(
6905
+ Draggable3,
6844
6906
  {
6845
- css: [
6846
- ObjectSearchDragContainer,
6847
- snapshot.isDragging ? ObjectSearchContainerDragging : void 0
6848
- ],
6849
- ref: provided2.innerRef,
6850
- "data-dragging": snapshot.isDragging,
6851
- ...provided2.draggableProps,
6852
- ...provided2.dragHandleProps,
6853
- children: renderListItem
6854
- }
6855
- )
6856
- },
6857
- item.id
6858
- );
6859
- }),
6860
- provided.placeholder
6861
- ] }) }) })
6907
+ draggableId: item.id,
6908
+ index: i,
6909
+ isDragDisabled: selectedListItems.length === 1 || disableDnD,
6910
+ children: getDraggableItem
6911
+ },
6912
+ item.id
6913
+ );
6914
+ }),
6915
+ provided.placeholder
6916
+ ] })
6917
+ }
6918
+ ) })
6862
6919
  ] });
6863
6920
  }
6864
6921
 
6865
6922
  // src/components/ObjectSearch/QueryFilter.tsx
6866
6923
  import { Input as Input5, InputKeywordSearch as InputKeywordSearch3, InputSelect as InputSelect7, VerticalRhythm as VerticalRhythm3 } from "@uniformdev/design-system";
6867
- import { useEffect as useEffect16, useState as useState17 } from "react";
6868
- import { jsx as jsx66, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
6924
+ import { useEffect as useEffect16, useState as useState18 } from "react";
6925
+ import { jsx as jsx67, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
6869
6926
  var QueryFilter = ({
6870
6927
  requireContentType,
6871
6928
  queryFilterTitle = "Configure Query",
@@ -6894,14 +6951,14 @@ var QueryFilter = ({
6894
6951
  ],
6895
6952
  children
6896
6953
  }) => {
6897
- var _a, _b, _c, _d;
6954
+ var _a, _b, _c, _d, _e, _f;
6898
6955
  const { query, onSetQuery } = useObjectSearchContext();
6899
- const [queryState, setQueryState] = useState17({
6900
- contentType: "",
6901
- keyword: "",
6956
+ const [queryState, setQueryState] = useState18({
6957
+ contentType: (_a = query.contentType) != null ? _a : "",
6958
+ keyword: (_b = query.contentType) != null ? _b : "",
6902
6959
  count: countValue != null ? countValue : 5,
6903
- sortBy: (_a = sortOptions[0].id) != null ? _a : "",
6904
- sortOrder: (_b = sortOrderOptions[0].id) != null ? _b : ""
6960
+ sortBy: (_c = sortOptions[0].id) != null ? _c : "",
6961
+ sortOrder: (_d = sortOrderOptions[0].id) != null ? _d : ""
6905
6962
  });
6906
6963
  const handleFilterChange = (value) => {
6907
6964
  setQueryState((prev) => ({ ...prev, ...value }));
@@ -6911,17 +6968,17 @@ var QueryFilter = ({
6911
6968
  onSetQuery(queryState);
6912
6969
  }, [onSetQuery, queryState]);
6913
6970
  return /* @__PURE__ */ jsxs41("fieldset", { children: [
6914
- /* @__PURE__ */ jsx66("span", { css: ObjectSearchFilterContainerLabel, children: queryFilterTitle }),
6915
- /* @__PURE__ */ jsx66("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ jsxs41(VerticalRhythm3, { children: [
6916
- /* @__PURE__ */ jsx66(
6971
+ /* @__PURE__ */ jsx67("span", { css: ObjectSearchFilterContainerLabel, children: queryFilterTitle }),
6972
+ /* @__PURE__ */ jsx67("div", { css: ObjectSearchFilterContainer, children: /* @__PURE__ */ jsxs41(VerticalRhythm3, { children: [
6973
+ /* @__PURE__ */ jsx67(
6917
6974
  InputVariables,
6918
6975
  {
6919
6976
  label: searchInputLabel,
6920
- value: (_c = queryState.keyword) != null ? _c : "",
6977
+ value: (_e = queryState.keyword) != null ? _e : "",
6921
6978
  onChange: (newQuery) => handleFilterChange({ keyword: newQuery }),
6922
6979
  disableInlineMenu: true,
6923
6980
  id: "qf_searchText",
6924
- inputWhenNoVariables: /* @__PURE__ */ jsx66(
6981
+ inputWhenNoVariables: /* @__PURE__ */ jsx67(
6925
6982
  InputKeywordSearch3,
6926
6983
  {
6927
6984
  id: "qf_searchText",
@@ -6936,15 +6993,15 @@ var QueryFilter = ({
6936
6993
  }
6937
6994
  ),
6938
6995
  /* @__PURE__ */ jsxs41("div", { css: ObjectSearchFilterGrid("1fr 100px"), children: [
6939
- /* @__PURE__ */ jsx66(
6996
+ /* @__PURE__ */ jsx67(
6940
6997
  InputVariables,
6941
6998
  {
6942
6999
  label: contentTypeLabel,
6943
7000
  id: "qf_contentType",
6944
- value: (_d = queryState.contentType) != null ? _d : "",
7001
+ value: (_f = queryState.contentType) != null ? _f : "",
6945
7002
  onChange: (newType) => handleFilterChange({ contentType: newType }),
6946
7003
  disableInlineMenu: true,
6947
- inputWhenNoVariables: /* @__PURE__ */ jsx66(
7004
+ inputWhenNoVariables: /* @__PURE__ */ jsx67(
6948
7005
  InputSelect7,
6949
7006
  {
6950
7007
  id: "qf_contentType",
@@ -6963,7 +7020,7 @@ var QueryFilter = ({
6963
7020
  )
6964
7021
  }
6965
7022
  ),
6966
- /* @__PURE__ */ jsx66(
7023
+ /* @__PURE__ */ jsx67(
6967
7024
  InputVariables,
6968
7025
  {
6969
7026
  label: countLabel,
@@ -6971,7 +7028,7 @@ var QueryFilter = ({
6971
7028
  value: queryState.count.toString(10),
6972
7029
  onChange: (newCount) => handleFilterChange({ count: newCount }),
6973
7030
  disableInlineMenu: true,
6974
- inputWhenNoVariables: /* @__PURE__ */ jsx66(
7031
+ inputWhenNoVariables: /* @__PURE__ */ jsx67(
6975
7032
  Input5,
6976
7033
  {
6977
7034
  id: "qf_count",
@@ -6987,7 +7044,7 @@ var QueryFilter = ({
6987
7044
  )
6988
7045
  ] }),
6989
7046
  /* @__PURE__ */ jsxs41("div", { css: ObjectSearchFilterGrid("2fr 1fr"), children: [
6990
- /* @__PURE__ */ jsx66(
7047
+ /* @__PURE__ */ jsx67(
6991
7048
  InputVariables,
6992
7049
  {
6993
7050
  id: "qf_sortBy",
@@ -6995,7 +7052,7 @@ var QueryFilter = ({
6995
7052
  value: queryState.sortBy,
6996
7053
  onChange: (newSortBy) => handleFilterChange({ sortBy: newSortBy }),
6997
7054
  disableInlineMenu: true,
6998
- inputWhenNoVariables: /* @__PURE__ */ jsx66(
7055
+ inputWhenNoVariables: /* @__PURE__ */ jsx67(
6999
7056
  InputSelect7,
7000
7057
  {
7001
7058
  label: sortLabel,
@@ -7017,7 +7074,7 @@ var QueryFilter = ({
7017
7074
  )
7018
7075
  }
7019
7076
  ),
7020
- /* @__PURE__ */ jsx66(
7077
+ /* @__PURE__ */ jsx67(
7021
7078
  InputVariables,
7022
7079
  {
7023
7080
  label: sortOrderLabel,
@@ -7025,7 +7082,7 @@ var QueryFilter = ({
7025
7082
  value: queryState.sortOrder,
7026
7083
  onChange: (newSort) => handleFilterChange({ sortOrder: newSort }),
7027
7084
  disableInlineMenu: true,
7028
- inputWhenNoVariables: /* @__PURE__ */ jsx66(
7085
+ inputWhenNoVariables: /* @__PURE__ */ jsx67(
7029
7086
  InputSelect7,
7030
7087
  {
7031
7088
  label: sortOrderLabel,
@@ -7051,7 +7108,7 @@ var QueryFilter = ({
7051
7108
 
7052
7109
  // src/components/ParamTypeDynamicDataProvider.tsx
7053
7110
  import { useEffect as useEffect17, useMemo as useMemo16, useRef as useRef15 } from "react";
7054
- import { jsx as jsx67 } from "@emotion/react/jsx-runtime";
7111
+ import { jsx as jsx68 } from "@emotion/react/jsx-runtime";
7055
7112
  function ParamTypeDynamicDataProvider(props) {
7056
7113
  const { children } = props;
7057
7114
  const {
@@ -7063,7 +7120,7 @@ function ParamTypeDynamicDataProvider(props) {
7063
7120
  () => ({ ...connectedDataAsVariables, ...dynamicInputsAsVariables }),
7064
7121
  [dynamicInputsAsVariables, connectedDataAsVariables]
7065
7122
  );
7066
- return /* @__PURE__ */ jsx67(VariablesProvider, { value: variables, onChange: () => {
7123
+ return /* @__PURE__ */ jsx68(VariablesProvider, { value: variables, onChange: () => {
7067
7124
  }, editVariableComponent: JsonMeshVariableEditor, children });
7068
7125
  }
7069
7126
  var JsonMeshVariableEditor = ({
@@ -7110,11 +7167,33 @@ function createLocationValidator(setValue, validate) {
7110
7167
  });
7111
7168
  }
7112
7169
 
7170
+ // src/utils/useContentDataResourceLocaleInfo.ts
7171
+ import { bindVariables as bindVariables2, createVariableReference as createVariableReference4, LOCALE_DYNAMIC_INPUT_NAME as LOCALE_DYNAMIC_INPUT_NAME2 } from "@uniformdev/canvas";
7172
+ import { useEffect as useEffect18, useRef as useRef16 } from "react";
7173
+ function useContentDataResourceLocaleInfo({
7174
+ locale,
7175
+ setLocale,
7176
+ dynamicInputs
7177
+ }) {
7178
+ var _a;
7179
+ const setLocaleRef = useRef16(setLocale);
7180
+ setLocaleRef.current = setLocale;
7181
+ const { flatVariables } = useVariables();
7182
+ const effectiveLocale = locale != null ? locale : dynamicInputs[LOCALE_DYNAMIC_INPUT_NAME2] ? createVariableReference4(LOCALE_DYNAMIC_INPUT_NAME2) : "";
7183
+ const boundLocale = (_a = bindVariables2({ variables: flatVariables, value: effectiveLocale }).result) != null ? _a : effectiveLocale;
7184
+ useEffect18(() => {
7185
+ if (locale === void 0 && effectiveLocale && setLocaleRef.current) {
7186
+ setLocaleRef.current(createVariableReference4(LOCALE_DYNAMIC_INPUT_NAME2));
7187
+ }
7188
+ }, [locale, effectiveLocale]);
7189
+ return { effectiveLocale, boundLocale: boundLocale ? boundLocale : void 0 };
7190
+ }
7191
+
7113
7192
  // src/index.ts
7114
7193
  import {
7115
7194
  AddListButton as AddListButton2,
7116
7195
  Button as Button6,
7117
- Callout as Callout5,
7196
+ Callout as Callout6,
7118
7197
  DrawerContent,
7119
7198
  Heading,
7120
7199
  Input as Input6,
@@ -7153,7 +7232,7 @@ export {
7153
7232
  $isVariableNode,
7154
7233
  AddListButton2 as AddListButton,
7155
7234
  Button6 as Button,
7156
- Callout5 as Callout,
7235
+ Callout6 as Callout,
7157
7236
  ControlledValuePlugin,
7158
7237
  DISCONNECT_VARIABLE_COMMAND,
7159
7238
  DamSelectedItem,
@@ -7313,6 +7392,7 @@ export {
7313
7392
  urlEncodeRequestParameter,
7314
7393
  urlEncodeRequestUrl,
7315
7394
  useConnectedDataAsVariables,
7395
+ useContentDataResourceLocaleInfo,
7316
7396
  useDynamicInputsAsVariables,
7317
7397
  useMeshLocation,
7318
7398
  useObjectSearchContext,