@uniformdev/mesh-sdk-react 19.22.1-alpha.8 → 19.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -766,8 +766,6 @@ type SelectedItemProps<TExtraProps = unknown> = {
766
766
  metadata?: Record<string, string>;
767
767
  /** allows for child react elements to be nested in the popover */
768
768
  popoverData?: ReactNode;
769
- /** disable or enable drag and drop functionality */
770
- disableDnD?: boolean;
771
769
  } & TExtraProps;
772
770
  type ItemListProps<TListItemExtraProps = unknown> = {
773
771
  items?: Array<SelectedItemProps<TListItemExtraProps>>;
package/dist/index.esm.js CHANGED
@@ -4548,7 +4548,6 @@ var DataRefreshButton = ({
4548
4548
 
4549
4549
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
4550
4550
  init_emotion_jsx_shim();
4551
- import { css as css28 } from "@emotion/react";
4552
4551
 
4553
4552
  // ../canvas/dist/index.mjs
4554
4553
  init_emotion_jsx_shim();
@@ -5835,19 +5834,7 @@ var ObjectSearchContainer = ({
5835
5834
  const { flatVariables } = useVariables(true);
5836
5835
  const body = /* @__PURE__ */ jsxs29(VerticalRhythm, { children: [
5837
5836
  searchFilters,
5838
- !resultList ? null : /* @__PURE__ */ jsx49(
5839
- ScrollableList,
5840
- {
5841
- role: "list",
5842
- css: css28`
5843
- > div {
5844
- transition: max-height var(--duration-slow) var(--timing-ease-out);
5845
- max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
5846
- }
5847
- `,
5848
- children: resultList
5849
- }
5850
- )
5837
+ !resultList ? null : /* @__PURE__ */ jsx49(ScrollableList, { role: "list", children: resultList })
5851
5838
  ] });
5852
5839
  const handleSelectedVariableChange = (selectedValue) => {
5853
5840
  var _a2;
@@ -5898,8 +5885,8 @@ import { useState as useState13 } from "react";
5898
5885
 
5899
5886
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
5900
5887
  init_emotion_jsx_shim();
5901
- import { css as css29 } from "@emotion/react";
5902
- var ObjectSearchFilterContainerLabel = css29`
5888
+ import { css as css28 } from "@emotion/react";
5889
+ var ObjectSearchFilterContainerLabel = css28`
5903
5890
  align-items: center;
5904
5891
  display: flex;
5905
5892
  font-size: var(--fs-sm);
@@ -5907,14 +5894,14 @@ var ObjectSearchFilterContainerLabel = css29`
5907
5894
  line-height: 1rem;
5908
5895
  margin-bottom: var(--spacing-sm);
5909
5896
  `;
5910
- var ObjectSearchFilterContainer = css29`
5897
+ var ObjectSearchFilterContainer = css28`
5911
5898
  display: grid;
5912
5899
  gap: var(--spacing-base);
5913
5900
  `;
5914
- var ObjectSearchFilterDropdownAndTextSearch = css29`
5901
+ var ObjectSearchFilterDropdownAndTextSearch = css28`
5915
5902
  grid-template-columns: 0.5fr 1fr;
5916
5903
  `;
5917
- var ObjectSearchFilterGrid = (gridColumns) => css29`
5904
+ var ObjectSearchFilterGrid = (gridColumns) => css28`
5918
5905
  display: grid;
5919
5906
  grid-template-columns: ${gridColumns};
5920
5907
  gap: var(--spacing-base);
@@ -5984,22 +5971,26 @@ var ObjectSearchFilterContainer2 = ({ label, children }) => {
5984
5971
 
5985
5972
  // src/components/ObjectSearch/ObjectSearchListItem.tsx
5986
5973
  init_emotion_jsx_shim();
5987
- import { Chip, Popover } from "@uniformdev/design-system";
5974
+ import { Popover } from "@uniformdev/design-system";
5988
5975
 
5989
5976
  // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
5990
5977
  init_emotion_jsx_shim();
5991
- import { css as css30 } from "@emotion/react";
5978
+ import { css as css29 } from "@emotion/react";
5992
5979
  import { skeletonLoading } from "@uniformdev/design-system";
5993
- var ObjectListItemContainer = css30`
5980
+ var ObjectListItemContainer = css29`
5994
5981
  align-items: center;
5995
5982
  border: 1px solid var(--gray-300);
5996
5983
  border-radius: var(--rounded-base);
5997
5984
  background: var(--white);
5998
5985
  display: grid;
5999
- grid-template-columns: 1fr auto;
5986
+ grid-template-columns: 1fr 32px;
6000
5987
  padding: var(--spacing-sm);
5988
+
5989
+ &[hidden] {
5990
+ display: none;
5991
+ }
6001
5992
  `;
6002
- var ObjectListItemLoading = css30`
5993
+ var ObjectListItemLoading = css29`
6003
5994
  animation: ${skeletonLoading} 1s linear infinite alternate;
6004
5995
  border-color: transparent;
6005
5996
  min-height: 42px;
@@ -6023,32 +6014,31 @@ var ObjectListItemLoading = css30`
6023
6014
  width: 1rem;
6024
6015
  }
6025
6016
  `;
6026
- var ObjectListItemHeadingGroup = css30`
6017
+ var ObjectListItemHeadingGroup = css29`
6027
6018
  align-items: center;
6028
6019
  display: grid;
6029
6020
  `;
6030
- var ObjectListItemTitle = css30`
6021
+ var ObjectListItemTitle = css29`
6031
6022
  color: var(--brand-secondary-1);
6032
6023
  display: block;
6033
6024
  font-size: var(--fs-sm);
6034
6025
  `;
6035
- var ObjectListItemSubtitle = css30`
6026
+ var ObjectListItemSubtitle = css29`
6036
6027
  color: var(--gray-500);
6037
6028
  display: block;
6038
6029
  font-size: var(--fs-xs);
6039
6030
  line-height: 1;
6040
6031
  `;
6041
- var ObjectListItemInfoContainer = css30`
6032
+ var ObjectListItemInfoContainer = css29`
6042
6033
  align-items: center;
6043
6034
  display: flex;
6044
- gap: var(--spacing-sm);
6045
6035
  justify-content: center;
6046
6036
  `;
6047
- var ObjectListItemControlledContent = css30`
6037
+ var ObjectListItemControlledContent = css29`
6048
6038
  display: flex;
6049
6039
  gap: var(--spacing-sm);
6050
6040
  `;
6051
- var ObjectListItemUnControlledContent = css30`
6041
+ var ObjectListItemUnControlledContent = css29`
6052
6042
  margin-top: var(--spacing-sm);
6053
6043
  grid-column: 1 / -1;
6054
6044
  `;
@@ -6076,8 +6066,8 @@ var ObjectSearchListItem = ({
6076
6066
  }
6077
6067
  return onSelectItem([selectedItem]);
6078
6068
  };
6079
- const selected = selectedListItems.some((item) => item.id === id);
6080
- return /* @__PURE__ */ jsxs32("div", { role: "listitem", css: ObjectListItemContainer, children: [
6069
+ const hideWhenInSelectedList = selectedListItems.some((item) => item.id === id);
6070
+ return /* @__PURE__ */ jsxs32("div", { role: "listitem", hidden: hideWhenInSelectedList, css: ObjectListItemContainer, children: [
6081
6071
  /* @__PURE__ */ jsxs32("div", { role: "button", onClick: handleSelectItem, css: ObjectListItemControlledContent, children: [
6082
6072
  !image ? null : /* @__PURE__ */ jsx52("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6083
6073
  /* @__PURE__ */ jsxs32("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
@@ -6085,10 +6075,7 @@ var ObjectSearchListItem = ({
6085
6075
  /* @__PURE__ */ jsx52("span", { css: ObjectListItemTitle, children: title })
6086
6076
  ] })
6087
6077
  ] }),
6088
- !popoverData ? null : /* @__PURE__ */ jsxs32("div", { css: ObjectListItemInfoContainer, children: [
6089
- selected ? /* @__PURE__ */ jsx52(Chip, { text: "selected", size: "xs" }) : null,
6090
- /* @__PURE__ */ jsx52(Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
6091
- ] }),
6078
+ !popoverData ? null : /* @__PURE__ */ jsx52("div", { css: ObjectListItemInfoContainer, children: /* @__PURE__ */ jsx52(Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData }) }),
6092
6079
  !children ? null : /* @__PURE__ */ jsx52("div", { css: ObjectListItemUnControlledContent, children })
6093
6080
  ] });
6094
6081
  };
@@ -6106,9 +6093,9 @@ init_emotion_jsx_shim();
6106
6093
 
6107
6094
  // src/components/ObjectSearch/styles/ObjectSearchResultItemButton.styles.ts
6108
6095
  init_emotion_jsx_shim();
6109
- import { css as css31 } from "@emotion/react";
6096
+ import { css as css30 } from "@emotion/react";
6110
6097
  import { button as button2 } from "@uniformdev/design-system";
6111
- var ButtonStyles = css31`
6098
+ var ButtonStyles = css30`
6112
6099
  ${button2}
6113
6100
  background: transparent;
6114
6101
  border: 1px solid var(--brand-secondary-1);
@@ -6135,7 +6122,7 @@ var ButtonStyles = css31`
6135
6122
  text-decoration: none;
6136
6123
  }
6137
6124
  `;
6138
- var ButtonIcon = css31`
6125
+ var ButtonIcon = css30`
6139
6126
  width: 1rem;
6140
6127
  height: 1rem;
6141
6128
  `;
@@ -6165,8 +6152,8 @@ var LinkButton = ({
6165
6152
 
6166
6153
  // src/components/ObjectSearch/styles/ObjectSearchResultItem.styles.ts
6167
6154
  init_emotion_jsx_shim();
6168
- import { css as css32 } from "@emotion/react";
6169
- var ObjectSearchResultItemContainer = css32`
6155
+ import { css as css31 } from "@emotion/react";
6156
+ var ObjectSearchResultItemContainer = css31`
6170
6157
  align-items: center;
6171
6158
  border: 1px solid var(--gray-300);
6172
6159
  border-radius: var(--rounded-base);
@@ -6182,7 +6169,7 @@ var ObjectSearchResultItemContainer = css32`
6182
6169
  }
6183
6170
  }
6184
6171
  `;
6185
- var ObjectSearchDragHandle = css32`
6172
+ var ObjectSearchDragHandle = css31`
6186
6173
  border-left: 2px dotted var(--gray-300);
6187
6174
  border-right: 2px dotted var(--gray-300);
6188
6175
  position: absolute;
@@ -6191,35 +6178,35 @@ var ObjectSearchDragHandle = css32`
6191
6178
  transition: opacity var(--duration-fast) var(--timing-ease-out);
6192
6179
  opacity: 0;
6193
6180
  `;
6194
- var ObjectSearchResultItemSubtitle = css32`
6181
+ var ObjectSearchResultItemSubtitle = css31`
6195
6182
  color: var(--gray-500);
6196
6183
  display: block;
6197
6184
  font-size: var(--fs-xs);
6198
6185
  line-height: 1;
6199
6186
  `;
6200
- var ObjectSearchResultItemTitle = css32`
6187
+ var ObjectSearchResultItemTitle = css31`
6201
6188
  align-items: center;
6202
6189
  color: var(--brand-secondary-1);
6203
6190
  display: flex;
6204
6191
  gap: var(--spacing-xs);
6205
6192
  `;
6206
- var ObjectSearchResultItemTimeStamp = css32`
6193
+ var ObjectSearchResultItemTimeStamp = css31`
6207
6194
  color: var(--gray-500);
6208
6195
  font-size: var(--fs-xs);
6209
6196
  `;
6210
- var ObjectSearchAuthorStateGroup = css32`
6197
+ var ObjectSearchAuthorStateGroup = css31`
6211
6198
  align-items: center;
6212
6199
  display: flex;
6213
6200
  gap: var(--spacing-sm);
6214
6201
  `;
6215
- var ObjectSearchUpdateGroup = css32`
6202
+ var ObjectSearchUpdateGroup = css31`
6216
6203
  display: grid;
6217
6204
  `;
6218
- var ObjectSearchContentContainer = css32`
6205
+ var ObjectSearchContentContainer = css31`
6219
6206
  display: flex;
6220
6207
  gap: var(--spacing-base);
6221
6208
  `;
6222
- var ObjectSearchImage = css32`
6209
+ var ObjectSearchImage = css31`
6223
6210
  width: 56px;
6224
6211
  object-fit: contain;
6225
6212
  `;
@@ -6289,26 +6276,22 @@ import { DragDropContext as DragDropContext3, Draggable as Draggable3, Droppable
6289
6276
 
6290
6277
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
6291
6278
  init_emotion_jsx_shim();
6292
- import { css as css33 } from "@emotion/react";
6293
- var ObjectSearchResultListContainer = css33`
6279
+ import { css as css32 } from "@emotion/react";
6280
+ var ObjectSearchResultListContainer = css32`
6294
6281
  align-items: center;
6295
6282
  display: flex;
6296
6283
  gap: var(--spacing-sm);
6297
6284
  justify-content: space-between;
6298
6285
  `;
6299
- var ObjectSearchDragContainer = css33`
6286
+ var ObjectSearchDragContainer = css32`
6300
6287
  margin: 0 0 var(--spacing-sm);
6301
6288
  `;
6302
- var ObjectSearchContainerDragging = css33`
6303
- box-shadow: var(--shadow-base);
6304
- opacity: var(--opacity-50);
6305
- `;
6306
- var ObjectSearchResultListCounterContainer = css33`
6289
+ var ObjectSearchResultListCounterContainer = css32`
6307
6290
  align-items: center;
6308
6291
  display: flex;
6309
6292
  gap: var(--spacing-sm);
6310
6293
  `;
6311
- var ObjectSearchResultListTitle = css33`
6294
+ var ObjectSearchResultListTitle = css32`
6312
6295
  font-weight: var(--fw-bold);
6313
6296
  line-height: 1;
6314
6297
  `;
@@ -6321,7 +6304,7 @@ function ObjectSearchResultList({
6321
6304
  onRemoveAllSelected,
6322
6305
  hideRemoveButton = false,
6323
6306
  additionalButtons,
6324
- renderResultComponent = (value) => /* @__PURE__ */ jsx55(ObjectSearchResultItem, { ...value }),
6307
+ renderResultComponent = (value) => /* @__PURE__ */ jsx55(ObjectSearchResultItem, { ...value, disableDnD }),
6325
6308
  multiSelectId,
6326
6309
  disableDnD = false,
6327
6310
  whenNothingSelected = null
@@ -6364,31 +6347,18 @@ function ObjectSearchResultList({
6364
6347
  ] }),
6365
6348
  !selectedListItems.length ? whenNothingSelected : /* @__PURE__ */ jsx55(DragDropContext3, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx55(Droppable3, { droppableId: multiSelectId != null ? multiSelectId : "canvas-multi-select", children: (provided) => /* @__PURE__ */ jsxs35("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
6366
6349
  selectedListItems.map((item, i2) => {
6367
- const itemValues = selectedListItems.length === 1 ? { ...item, disableDnD: true } : { ...item, disableDnD };
6368
- const renderListItem = renderResultComponent(itemValues);
6369
- return /* @__PURE__ */ jsx55(
6370
- Draggable3,
6350
+ const renderListItem = renderResultComponent(item);
6351
+ return /* @__PURE__ */ jsx55(Draggable3, { draggableId: item.id, index: i2, isDragDisabled: disableDnD, children: (provided2, snapshot) => /* @__PURE__ */ jsx55(
6352
+ "div",
6371
6353
  {
6372
- draggableId: item.id,
6373
- index: i2,
6374
- isDragDisabled: selectedListItems.length === 1 || disableDnD,
6375
- children: (provided2, snapshot) => /* @__PURE__ */ jsx55(
6376
- "div",
6377
- {
6378
- css: [
6379
- ObjectSearchDragContainer,
6380
- snapshot.isDragging ? ObjectSearchContainerDragging : void 0
6381
- ],
6382
- ref: provided2.innerRef,
6383
- "data-dragging": snapshot.isDragging,
6384
- ...provided2.draggableProps,
6385
- ...provided2.dragHandleProps,
6386
- children: renderListItem
6387
- }
6388
- )
6389
- },
6390
- item.id
6391
- );
6354
+ css: ObjectSearchDragContainer,
6355
+ ref: provided2.innerRef,
6356
+ "data-dragging": snapshot.isDragging,
6357
+ ...provided2.draggableProps,
6358
+ ...provided2.dragHandleProps,
6359
+ children: renderListItem
6360
+ }
6361
+ ) }, item.id);
6392
6362
  }),
6393
6363
  provided.placeholder
6394
6364
  ] }) }) })
package/dist/index.js CHANGED
@@ -4676,7 +4676,6 @@ var DataRefreshButton = ({
4676
4676
 
4677
4677
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
4678
4678
  init_emotion_jsx_shim();
4679
- var import_react44 = require("@emotion/react");
4680
4679
 
4681
4680
  // ../canvas/dist/index.mjs
4682
4681
  init_emotion_jsx_shim();
@@ -5956,19 +5955,7 @@ var ObjectSearchContainer = ({
5956
5955
  const { flatVariables } = useVariables(true);
5957
5956
  const body = /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_design_system25.VerticalRhythm, { children: [
5958
5957
  searchFilters,
5959
- !resultList ? null : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5960
- import_design_system25.ScrollableList,
5961
- {
5962
- role: "list",
5963
- css: import_react44.css`
5964
- > div {
5965
- transition: max-height var(--duration-slow) var(--timing-ease-out);
5966
- max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
5967
- }
5968
- `,
5969
- children: resultList
5970
- }
5971
- )
5958
+ !resultList ? null : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_design_system25.ScrollableList, { role: "list", children: resultList })
5972
5959
  ] });
5973
5960
  const handleSelectedVariableChange = (selectedValue) => {
5974
5961
  var _a2;
@@ -6015,12 +6002,12 @@ var ObjectSearchContainer = ({
6015
6002
  // src/components/ObjectSearch/ObjectSearchFilter.tsx
6016
6003
  init_emotion_jsx_shim();
6017
6004
  var import_design_system26 = require("@uniformdev/design-system");
6018
- var import_react46 = require("react");
6005
+ var import_react45 = require("react");
6019
6006
 
6020
6007
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
6021
6008
  init_emotion_jsx_shim();
6022
- var import_react45 = require("@emotion/react");
6023
- var ObjectSearchFilterContainerLabel = import_react45.css`
6009
+ var import_react44 = require("@emotion/react");
6010
+ var ObjectSearchFilterContainerLabel = import_react44.css`
6024
6011
  align-items: center;
6025
6012
  display: flex;
6026
6013
  font-size: var(--fs-sm);
@@ -6028,14 +6015,14 @@ var ObjectSearchFilterContainerLabel = import_react45.css`
6028
6015
  line-height: 1rem;
6029
6016
  margin-bottom: var(--spacing-sm);
6030
6017
  `;
6031
- var ObjectSearchFilterContainer = import_react45.css`
6018
+ var ObjectSearchFilterContainer = import_react44.css`
6032
6019
  display: grid;
6033
6020
  gap: var(--spacing-base);
6034
6021
  `;
6035
- var ObjectSearchFilterDropdownAndTextSearch = import_react45.css`
6022
+ var ObjectSearchFilterDropdownAndTextSearch = import_react44.css`
6036
6023
  grid-template-columns: 0.5fr 1fr;
6037
6024
  `;
6038
- var ObjectSearchFilterGrid = (gridColumns) => import_react45.css`
6025
+ var ObjectSearchFilterGrid = (gridColumns) => import_react44.css`
6039
6026
  display: grid;
6040
6027
  grid-template-columns: ${gridColumns};
6041
6028
  gap: var(--spacing-base);
@@ -6052,7 +6039,7 @@ var ObjectSearchFilter = ({
6052
6039
  selectOptions
6053
6040
  }) => {
6054
6041
  const { query, onSetQuery } = useObjectSearchContext();
6055
- const [searchState, setSearchState] = (0, import_react46.useState)({
6042
+ const [searchState, setSearchState] = (0, import_react45.useState)({
6056
6043
  contentType: "",
6057
6044
  keyword: ""
6058
6045
  });
@@ -6109,18 +6096,22 @@ var import_design_system28 = require("@uniformdev/design-system");
6109
6096
 
6110
6097
  // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
6111
6098
  init_emotion_jsx_shim();
6112
- var import_react47 = require("@emotion/react");
6099
+ var import_react46 = require("@emotion/react");
6113
6100
  var import_design_system27 = require("@uniformdev/design-system");
6114
- var ObjectListItemContainer = import_react47.css`
6101
+ var ObjectListItemContainer = import_react46.css`
6115
6102
  align-items: center;
6116
6103
  border: 1px solid var(--gray-300);
6117
6104
  border-radius: var(--rounded-base);
6118
6105
  background: var(--white);
6119
6106
  display: grid;
6120
- grid-template-columns: 1fr auto;
6107
+ grid-template-columns: 1fr 32px;
6121
6108
  padding: var(--spacing-sm);
6109
+
6110
+ &[hidden] {
6111
+ display: none;
6112
+ }
6122
6113
  `;
6123
- var ObjectListItemLoading = import_react47.css`
6114
+ var ObjectListItemLoading = import_react46.css`
6124
6115
  animation: ${import_design_system27.skeletonLoading} 1s linear infinite alternate;
6125
6116
  border-color: transparent;
6126
6117
  min-height: 42px;
@@ -6144,32 +6135,31 @@ var ObjectListItemLoading = import_react47.css`
6144
6135
  width: 1rem;
6145
6136
  }
6146
6137
  `;
6147
- var ObjectListItemHeadingGroup = import_react47.css`
6138
+ var ObjectListItemHeadingGroup = import_react46.css`
6148
6139
  align-items: center;
6149
6140
  display: grid;
6150
6141
  `;
6151
- var ObjectListItemTitle = import_react47.css`
6142
+ var ObjectListItemTitle = import_react46.css`
6152
6143
  color: var(--brand-secondary-1);
6153
6144
  display: block;
6154
6145
  font-size: var(--fs-sm);
6155
6146
  `;
6156
- var ObjectListItemSubtitle = import_react47.css`
6147
+ var ObjectListItemSubtitle = import_react46.css`
6157
6148
  color: var(--gray-500);
6158
6149
  display: block;
6159
6150
  font-size: var(--fs-xs);
6160
6151
  line-height: 1;
6161
6152
  `;
6162
- var ObjectListItemInfoContainer = import_react47.css`
6153
+ var ObjectListItemInfoContainer = import_react46.css`
6163
6154
  align-items: center;
6164
6155
  display: flex;
6165
- gap: var(--spacing-sm);
6166
6156
  justify-content: center;
6167
6157
  `;
6168
- var ObjectListItemControlledContent = import_react47.css`
6158
+ var ObjectListItemControlledContent = import_react46.css`
6169
6159
  display: flex;
6170
6160
  gap: var(--spacing-sm);
6171
6161
  `;
6172
- var ObjectListItemUnControlledContent = import_react47.css`
6162
+ var ObjectListItemUnControlledContent = import_react46.css`
6173
6163
  margin-top: var(--spacing-sm);
6174
6164
  grid-column: 1 / -1;
6175
6165
  `;
@@ -6197,8 +6187,8 @@ var ObjectSearchListItem = ({
6197
6187
  }
6198
6188
  return onSelectItem([selectedItem]);
6199
6189
  };
6200
- const selected = selectedListItems.some((item) => item.id === id);
6201
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { role: "listitem", css: ObjectListItemContainer, children: [
6190
+ const hideWhenInSelectedList = selectedListItems.some((item) => item.id === id);
6191
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { role: "listitem", hidden: hideWhenInSelectedList, css: ObjectListItemContainer, children: [
6202
6192
  /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { role: "button", onClick: handleSelectItem, css: ObjectListItemControlledContent, children: [
6203
6193
  !image ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6204
6194
  /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
@@ -6206,10 +6196,7 @@ var ObjectSearchListItem = ({
6206
6196
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { css: ObjectListItemTitle, children: title })
6207
6197
  ] })
6208
6198
  ] }),
6209
- !popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { css: ObjectListItemInfoContainer, children: [
6210
- selected ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_design_system28.Chip, { text: "selected", size: "xs" }) : null,
6211
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_design_system28.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
6212
- ] }),
6199
+ !popoverData ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { css: ObjectListItemInfoContainer, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_design_system28.Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData }) }),
6213
6200
  !children ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { css: ObjectListItemUnControlledContent, children })
6214
6201
  ] });
6215
6202
  };
@@ -6227,9 +6214,9 @@ init_emotion_jsx_shim();
6227
6214
 
6228
6215
  // src/components/ObjectSearch/styles/ObjectSearchResultItemButton.styles.ts
6229
6216
  init_emotion_jsx_shim();
6230
- var import_react48 = require("@emotion/react");
6217
+ var import_react47 = require("@emotion/react");
6231
6218
  var import_design_system29 = require("@uniformdev/design-system");
6232
- var ButtonStyles = import_react48.css`
6219
+ var ButtonStyles = import_react47.css`
6233
6220
  ${import_design_system29.button}
6234
6221
  background: transparent;
6235
6222
  border: 1px solid var(--brand-secondary-1);
@@ -6256,7 +6243,7 @@ var ButtonStyles = import_react48.css`
6256
6243
  text-decoration: none;
6257
6244
  }
6258
6245
  `;
6259
- var ButtonIcon = import_react48.css`
6246
+ var ButtonIcon = import_react47.css`
6260
6247
  width: 1rem;
6261
6248
  height: 1rem;
6262
6249
  `;
@@ -6286,8 +6273,8 @@ var LinkButton = ({
6286
6273
 
6287
6274
  // src/components/ObjectSearch/styles/ObjectSearchResultItem.styles.ts
6288
6275
  init_emotion_jsx_shim();
6289
- var import_react49 = require("@emotion/react");
6290
- var ObjectSearchResultItemContainer = import_react49.css`
6276
+ var import_react48 = require("@emotion/react");
6277
+ var ObjectSearchResultItemContainer = import_react48.css`
6291
6278
  align-items: center;
6292
6279
  border: 1px solid var(--gray-300);
6293
6280
  border-radius: var(--rounded-base);
@@ -6303,7 +6290,7 @@ var ObjectSearchResultItemContainer = import_react49.css`
6303
6290
  }
6304
6291
  }
6305
6292
  `;
6306
- var ObjectSearchDragHandle = import_react49.css`
6293
+ var ObjectSearchDragHandle = import_react48.css`
6307
6294
  border-left: 2px dotted var(--gray-300);
6308
6295
  border-right: 2px dotted var(--gray-300);
6309
6296
  position: absolute;
@@ -6312,35 +6299,35 @@ var ObjectSearchDragHandle = import_react49.css`
6312
6299
  transition: opacity var(--duration-fast) var(--timing-ease-out);
6313
6300
  opacity: 0;
6314
6301
  `;
6315
- var ObjectSearchResultItemSubtitle = import_react49.css`
6302
+ var ObjectSearchResultItemSubtitle = import_react48.css`
6316
6303
  color: var(--gray-500);
6317
6304
  display: block;
6318
6305
  font-size: var(--fs-xs);
6319
6306
  line-height: 1;
6320
6307
  `;
6321
- var ObjectSearchResultItemTitle = import_react49.css`
6308
+ var ObjectSearchResultItemTitle = import_react48.css`
6322
6309
  align-items: center;
6323
6310
  color: var(--brand-secondary-1);
6324
6311
  display: flex;
6325
6312
  gap: var(--spacing-xs);
6326
6313
  `;
6327
- var ObjectSearchResultItemTimeStamp = import_react49.css`
6314
+ var ObjectSearchResultItemTimeStamp = import_react48.css`
6328
6315
  color: var(--gray-500);
6329
6316
  font-size: var(--fs-xs);
6330
6317
  `;
6331
- var ObjectSearchAuthorStateGroup = import_react49.css`
6318
+ var ObjectSearchAuthorStateGroup = import_react48.css`
6332
6319
  align-items: center;
6333
6320
  display: flex;
6334
6321
  gap: var(--spacing-sm);
6335
6322
  `;
6336
- var ObjectSearchUpdateGroup = import_react49.css`
6323
+ var ObjectSearchUpdateGroup = import_react48.css`
6337
6324
  display: grid;
6338
6325
  `;
6339
- var ObjectSearchContentContainer = import_react49.css`
6326
+ var ObjectSearchContentContainer = import_react48.css`
6340
6327
  display: flex;
6341
6328
  gap: var(--spacing-base);
6342
6329
  `;
6343
- var ObjectSearchImage = import_react49.css`
6330
+ var ObjectSearchImage = import_react48.css`
6344
6331
  width: 56px;
6345
6332
  object-fit: contain;
6346
6333
  `;
@@ -6410,26 +6397,22 @@ var import_react_beautiful_dnd3 = require("react-beautiful-dnd");
6410
6397
 
6411
6398
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
6412
6399
  init_emotion_jsx_shim();
6413
- var import_react50 = require("@emotion/react");
6414
- var ObjectSearchResultListContainer = import_react50.css`
6400
+ var import_react49 = require("@emotion/react");
6401
+ var ObjectSearchResultListContainer = import_react49.css`
6415
6402
  align-items: center;
6416
6403
  display: flex;
6417
6404
  gap: var(--spacing-sm);
6418
6405
  justify-content: space-between;
6419
6406
  `;
6420
- var ObjectSearchDragContainer = import_react50.css`
6407
+ var ObjectSearchDragContainer = import_react49.css`
6421
6408
  margin: 0 0 var(--spacing-sm);
6422
6409
  `;
6423
- var ObjectSearchContainerDragging = import_react50.css`
6424
- box-shadow: var(--shadow-base);
6425
- opacity: var(--opacity-50);
6426
- `;
6427
- var ObjectSearchResultListCounterContainer = import_react50.css`
6410
+ var ObjectSearchResultListCounterContainer = import_react49.css`
6428
6411
  align-items: center;
6429
6412
  display: flex;
6430
6413
  gap: var(--spacing-sm);
6431
6414
  `;
6432
- var ObjectSearchResultListTitle = import_react50.css`
6415
+ var ObjectSearchResultListTitle = import_react49.css`
6433
6416
  font-weight: var(--fw-bold);
6434
6417
  line-height: 1;
6435
6418
  `;
@@ -6442,7 +6425,7 @@ function ObjectSearchResultList({
6442
6425
  onRemoveAllSelected,
6443
6426
  hideRemoveButton = false,
6444
6427
  additionalButtons,
6445
- renderResultComponent = (value) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ObjectSearchResultItem, { ...value }),
6428
+ renderResultComponent = (value) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ObjectSearchResultItem, { ...value, disableDnD }),
6446
6429
  multiSelectId,
6447
6430
  disableDnD = false,
6448
6431
  whenNothingSelected = null
@@ -6485,31 +6468,18 @@ function ObjectSearchResultList({
6485
6468
  ] }),
6486
6469
  !selectedListItems.length ? whenNothingSelected : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_beautiful_dnd3.DragDropContext, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_beautiful_dnd3.Droppable, { droppableId: multiSelectId != null ? multiSelectId : "canvas-multi-select", children: (provided) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
6487
6470
  selectedListItems.map((item, i2) => {
6488
- const itemValues = selectedListItems.length === 1 ? { ...item, disableDnD: true } : { ...item, disableDnD };
6489
- const renderListItem = renderResultComponent(itemValues);
6490
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6491
- import_react_beautiful_dnd3.Draggable,
6471
+ const renderListItem = renderResultComponent(item);
6472
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_beautiful_dnd3.Draggable, { draggableId: item.id, index: i2, isDragDisabled: disableDnD, children: (provided2, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6473
+ "div",
6492
6474
  {
6493
- draggableId: item.id,
6494
- index: i2,
6495
- isDragDisabled: selectedListItems.length === 1 || disableDnD,
6496
- children: (provided2, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
6497
- "div",
6498
- {
6499
- css: [
6500
- ObjectSearchDragContainer,
6501
- snapshot.isDragging ? ObjectSearchContainerDragging : void 0
6502
- ],
6503
- ref: provided2.innerRef,
6504
- "data-dragging": snapshot.isDragging,
6505
- ...provided2.draggableProps,
6506
- ...provided2.dragHandleProps,
6507
- children: renderListItem
6508
- }
6509
- )
6510
- },
6511
- item.id
6512
- );
6475
+ css: ObjectSearchDragContainer,
6476
+ ref: provided2.innerRef,
6477
+ "data-dragging": snapshot.isDragging,
6478
+ ...provided2.draggableProps,
6479
+ ...provided2.dragHandleProps,
6480
+ children: renderListItem
6481
+ }
6482
+ ) }, item.id);
6513
6483
  }),
6514
6484
  provided.placeholder
6515
6485
  ] }) }) })
@@ -6519,7 +6489,7 @@ function ObjectSearchResultList({
6519
6489
  // src/components/ObjectSearch/QueryFilter.tsx
6520
6490
  init_emotion_jsx_shim();
6521
6491
  var import_design_system32 = require("@uniformdev/design-system");
6522
- var import_react51 = require("react");
6492
+ var import_react50 = require("react");
6523
6493
  var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
6524
6494
  var QueryFilter = ({
6525
6495
  requireContentType,
@@ -6551,7 +6521,7 @@ var QueryFilter = ({
6551
6521
  }) => {
6552
6522
  var _a, _b, _c, _d;
6553
6523
  const { query, onSetQuery } = useObjectSearchContext();
6554
- const [queryState, setQueryState] = (0, import_react51.useState)({
6524
+ const [queryState, setQueryState] = (0, import_react50.useState)({
6555
6525
  contentType: "",
6556
6526
  keyword: "",
6557
6527
  count: countValue != null ? countValue : 5,
@@ -6562,7 +6532,7 @@ var QueryFilter = ({
6562
6532
  setQueryState((prev) => ({ ...prev, ...value }));
6563
6533
  onSetQuery({ ...query, ...value });
6564
6534
  };
6565
- (0, import_react51.useEffect)(() => {
6535
+ (0, import_react50.useEffect)(() => {
6566
6536
  onSetQuery(queryState);
6567
6537
  }, [onSetQuery, queryState]);
6568
6538
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("fieldset", { children: [
package/dist/index.mjs CHANGED
@@ -4548,7 +4548,6 @@ var DataRefreshButton = ({
4548
4548
 
4549
4549
  // src/components/ObjectSearch/ObjectSearchContainer.tsx
4550
4550
  init_emotion_jsx_shim();
4551
- import { css as css28 } from "@emotion/react";
4552
4551
 
4553
4552
  // ../canvas/dist/index.mjs
4554
4553
  init_emotion_jsx_shim();
@@ -5835,19 +5834,7 @@ var ObjectSearchContainer = ({
5835
5834
  const { flatVariables } = useVariables(true);
5836
5835
  const body = /* @__PURE__ */ jsxs29(VerticalRhythm, { children: [
5837
5836
  searchFilters,
5838
- !resultList ? null : /* @__PURE__ */ jsx49(
5839
- ScrollableList,
5840
- {
5841
- role: "list",
5842
- css: css28`
5843
- > div {
5844
- transition: max-height var(--duration-slow) var(--timing-ease-out);
5845
- max-height: ${selectedListItems.length === 0 ? "50vh" : "184px"};
5846
- }
5847
- `,
5848
- children: resultList
5849
- }
5850
- )
5837
+ !resultList ? null : /* @__PURE__ */ jsx49(ScrollableList, { role: "list", children: resultList })
5851
5838
  ] });
5852
5839
  const handleSelectedVariableChange = (selectedValue) => {
5853
5840
  var _a2;
@@ -5898,8 +5885,8 @@ import { useState as useState13 } from "react";
5898
5885
 
5899
5886
  // src/components/ObjectSearch/styles/ObjectSearchFilterContainer.styles.ts
5900
5887
  init_emotion_jsx_shim();
5901
- import { css as css29 } from "@emotion/react";
5902
- var ObjectSearchFilterContainerLabel = css29`
5888
+ import { css as css28 } from "@emotion/react";
5889
+ var ObjectSearchFilterContainerLabel = css28`
5903
5890
  align-items: center;
5904
5891
  display: flex;
5905
5892
  font-size: var(--fs-sm);
@@ -5907,14 +5894,14 @@ var ObjectSearchFilterContainerLabel = css29`
5907
5894
  line-height: 1rem;
5908
5895
  margin-bottom: var(--spacing-sm);
5909
5896
  `;
5910
- var ObjectSearchFilterContainer = css29`
5897
+ var ObjectSearchFilterContainer = css28`
5911
5898
  display: grid;
5912
5899
  gap: var(--spacing-base);
5913
5900
  `;
5914
- var ObjectSearchFilterDropdownAndTextSearch = css29`
5901
+ var ObjectSearchFilterDropdownAndTextSearch = css28`
5915
5902
  grid-template-columns: 0.5fr 1fr;
5916
5903
  `;
5917
- var ObjectSearchFilterGrid = (gridColumns) => css29`
5904
+ var ObjectSearchFilterGrid = (gridColumns) => css28`
5918
5905
  display: grid;
5919
5906
  grid-template-columns: ${gridColumns};
5920
5907
  gap: var(--spacing-base);
@@ -5984,22 +5971,26 @@ var ObjectSearchFilterContainer2 = ({ label, children }) => {
5984
5971
 
5985
5972
  // src/components/ObjectSearch/ObjectSearchListItem.tsx
5986
5973
  init_emotion_jsx_shim();
5987
- import { Chip, Popover } from "@uniformdev/design-system";
5974
+ import { Popover } from "@uniformdev/design-system";
5988
5975
 
5989
5976
  // src/components/ObjectSearch/styles/ObjectSearchListItem.styles.ts
5990
5977
  init_emotion_jsx_shim();
5991
- import { css as css30 } from "@emotion/react";
5978
+ import { css as css29 } from "@emotion/react";
5992
5979
  import { skeletonLoading } from "@uniformdev/design-system";
5993
- var ObjectListItemContainer = css30`
5980
+ var ObjectListItemContainer = css29`
5994
5981
  align-items: center;
5995
5982
  border: 1px solid var(--gray-300);
5996
5983
  border-radius: var(--rounded-base);
5997
5984
  background: var(--white);
5998
5985
  display: grid;
5999
- grid-template-columns: 1fr auto;
5986
+ grid-template-columns: 1fr 32px;
6000
5987
  padding: var(--spacing-sm);
5988
+
5989
+ &[hidden] {
5990
+ display: none;
5991
+ }
6001
5992
  `;
6002
- var ObjectListItemLoading = css30`
5993
+ var ObjectListItemLoading = css29`
6003
5994
  animation: ${skeletonLoading} 1s linear infinite alternate;
6004
5995
  border-color: transparent;
6005
5996
  min-height: 42px;
@@ -6023,32 +6014,31 @@ var ObjectListItemLoading = css30`
6023
6014
  width: 1rem;
6024
6015
  }
6025
6016
  `;
6026
- var ObjectListItemHeadingGroup = css30`
6017
+ var ObjectListItemHeadingGroup = css29`
6027
6018
  align-items: center;
6028
6019
  display: grid;
6029
6020
  `;
6030
- var ObjectListItemTitle = css30`
6021
+ var ObjectListItemTitle = css29`
6031
6022
  color: var(--brand-secondary-1);
6032
6023
  display: block;
6033
6024
  font-size: var(--fs-sm);
6034
6025
  `;
6035
- var ObjectListItemSubtitle = css30`
6026
+ var ObjectListItemSubtitle = css29`
6036
6027
  color: var(--gray-500);
6037
6028
  display: block;
6038
6029
  font-size: var(--fs-xs);
6039
6030
  line-height: 1;
6040
6031
  `;
6041
- var ObjectListItemInfoContainer = css30`
6032
+ var ObjectListItemInfoContainer = css29`
6042
6033
  align-items: center;
6043
6034
  display: flex;
6044
- gap: var(--spacing-sm);
6045
6035
  justify-content: center;
6046
6036
  `;
6047
- var ObjectListItemControlledContent = css30`
6037
+ var ObjectListItemControlledContent = css29`
6048
6038
  display: flex;
6049
6039
  gap: var(--spacing-sm);
6050
6040
  `;
6051
- var ObjectListItemUnControlledContent = css30`
6041
+ var ObjectListItemUnControlledContent = css29`
6052
6042
  margin-top: var(--spacing-sm);
6053
6043
  grid-column: 1 / -1;
6054
6044
  `;
@@ -6076,8 +6066,8 @@ var ObjectSearchListItem = ({
6076
6066
  }
6077
6067
  return onSelectItem([selectedItem]);
6078
6068
  };
6079
- const selected = selectedListItems.some((item) => item.id === id);
6080
- return /* @__PURE__ */ jsxs32("div", { role: "listitem", css: ObjectListItemContainer, children: [
6069
+ const hideWhenInSelectedList = selectedListItems.some((item) => item.id === id);
6070
+ return /* @__PURE__ */ jsxs32("div", { role: "listitem", hidden: hideWhenInSelectedList, css: ObjectListItemContainer, children: [
6081
6071
  /* @__PURE__ */ jsxs32("div", { role: "button", onClick: handleSelectItem, css: ObjectListItemControlledContent, children: [
6082
6072
  !image ? null : /* @__PURE__ */ jsx52("img", { ...image, loading: (image == null ? void 0 : image.width) && image.height ? "lazy" : "eager" }),
6083
6073
  /* @__PURE__ */ jsxs32("div", { role: "heading", css: ObjectListItemHeadingGroup, children: [
@@ -6085,10 +6075,7 @@ var ObjectSearchListItem = ({
6085
6075
  /* @__PURE__ */ jsx52("span", { css: ObjectListItemTitle, children: title })
6086
6076
  ] })
6087
6077
  ] }),
6088
- !popoverData ? null : /* @__PURE__ */ jsxs32("div", { css: ObjectListItemInfoContainer, children: [
6089
- selected ? /* @__PURE__ */ jsx52(Chip, { text: "selected", size: "xs" }) : null,
6090
- /* @__PURE__ */ jsx52(Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, iconColor: "default", children: popoverData })
6091
- ] }),
6078
+ !popoverData ? null : /* @__PURE__ */ jsx52("div", { css: ObjectListItemInfoContainer, children: /* @__PURE__ */ jsx52(Popover, { baseId: title, ariaLabel: title, buttonText: `See ${title} details`, children: popoverData }) }),
6092
6079
  !children ? null : /* @__PURE__ */ jsx52("div", { css: ObjectListItemUnControlledContent, children })
6093
6080
  ] });
6094
6081
  };
@@ -6106,9 +6093,9 @@ init_emotion_jsx_shim();
6106
6093
 
6107
6094
  // src/components/ObjectSearch/styles/ObjectSearchResultItemButton.styles.ts
6108
6095
  init_emotion_jsx_shim();
6109
- import { css as css31 } from "@emotion/react";
6096
+ import { css as css30 } from "@emotion/react";
6110
6097
  import { button as button2 } from "@uniformdev/design-system";
6111
- var ButtonStyles = css31`
6098
+ var ButtonStyles = css30`
6112
6099
  ${button2}
6113
6100
  background: transparent;
6114
6101
  border: 1px solid var(--brand-secondary-1);
@@ -6135,7 +6122,7 @@ var ButtonStyles = css31`
6135
6122
  text-decoration: none;
6136
6123
  }
6137
6124
  `;
6138
- var ButtonIcon = css31`
6125
+ var ButtonIcon = css30`
6139
6126
  width: 1rem;
6140
6127
  height: 1rem;
6141
6128
  `;
@@ -6165,8 +6152,8 @@ var LinkButton = ({
6165
6152
 
6166
6153
  // src/components/ObjectSearch/styles/ObjectSearchResultItem.styles.ts
6167
6154
  init_emotion_jsx_shim();
6168
- import { css as css32 } from "@emotion/react";
6169
- var ObjectSearchResultItemContainer = css32`
6155
+ import { css as css31 } from "@emotion/react";
6156
+ var ObjectSearchResultItemContainer = css31`
6170
6157
  align-items: center;
6171
6158
  border: 1px solid var(--gray-300);
6172
6159
  border-radius: var(--rounded-base);
@@ -6182,7 +6169,7 @@ var ObjectSearchResultItemContainer = css32`
6182
6169
  }
6183
6170
  }
6184
6171
  `;
6185
- var ObjectSearchDragHandle = css32`
6172
+ var ObjectSearchDragHandle = css31`
6186
6173
  border-left: 2px dotted var(--gray-300);
6187
6174
  border-right: 2px dotted var(--gray-300);
6188
6175
  position: absolute;
@@ -6191,35 +6178,35 @@ var ObjectSearchDragHandle = css32`
6191
6178
  transition: opacity var(--duration-fast) var(--timing-ease-out);
6192
6179
  opacity: 0;
6193
6180
  `;
6194
- var ObjectSearchResultItemSubtitle = css32`
6181
+ var ObjectSearchResultItemSubtitle = css31`
6195
6182
  color: var(--gray-500);
6196
6183
  display: block;
6197
6184
  font-size: var(--fs-xs);
6198
6185
  line-height: 1;
6199
6186
  `;
6200
- var ObjectSearchResultItemTitle = css32`
6187
+ var ObjectSearchResultItemTitle = css31`
6201
6188
  align-items: center;
6202
6189
  color: var(--brand-secondary-1);
6203
6190
  display: flex;
6204
6191
  gap: var(--spacing-xs);
6205
6192
  `;
6206
- var ObjectSearchResultItemTimeStamp = css32`
6193
+ var ObjectSearchResultItemTimeStamp = css31`
6207
6194
  color: var(--gray-500);
6208
6195
  font-size: var(--fs-xs);
6209
6196
  `;
6210
- var ObjectSearchAuthorStateGroup = css32`
6197
+ var ObjectSearchAuthorStateGroup = css31`
6211
6198
  align-items: center;
6212
6199
  display: flex;
6213
6200
  gap: var(--spacing-sm);
6214
6201
  `;
6215
- var ObjectSearchUpdateGroup = css32`
6202
+ var ObjectSearchUpdateGroup = css31`
6216
6203
  display: grid;
6217
6204
  `;
6218
- var ObjectSearchContentContainer = css32`
6205
+ var ObjectSearchContentContainer = css31`
6219
6206
  display: flex;
6220
6207
  gap: var(--spacing-base);
6221
6208
  `;
6222
- var ObjectSearchImage = css32`
6209
+ var ObjectSearchImage = css31`
6223
6210
  width: 56px;
6224
6211
  object-fit: contain;
6225
6212
  `;
@@ -6289,26 +6276,22 @@ import { DragDropContext as DragDropContext3, Draggable as Draggable3, Droppable
6289
6276
 
6290
6277
  // src/components/ObjectSearch/styles/ObjectSearchResultList.styles.ts
6291
6278
  init_emotion_jsx_shim();
6292
- import { css as css33 } from "@emotion/react";
6293
- var ObjectSearchResultListContainer = css33`
6279
+ import { css as css32 } from "@emotion/react";
6280
+ var ObjectSearchResultListContainer = css32`
6294
6281
  align-items: center;
6295
6282
  display: flex;
6296
6283
  gap: var(--spacing-sm);
6297
6284
  justify-content: space-between;
6298
6285
  `;
6299
- var ObjectSearchDragContainer = css33`
6286
+ var ObjectSearchDragContainer = css32`
6300
6287
  margin: 0 0 var(--spacing-sm);
6301
6288
  `;
6302
- var ObjectSearchContainerDragging = css33`
6303
- box-shadow: var(--shadow-base);
6304
- opacity: var(--opacity-50);
6305
- `;
6306
- var ObjectSearchResultListCounterContainer = css33`
6289
+ var ObjectSearchResultListCounterContainer = css32`
6307
6290
  align-items: center;
6308
6291
  display: flex;
6309
6292
  gap: var(--spacing-sm);
6310
6293
  `;
6311
- var ObjectSearchResultListTitle = css33`
6294
+ var ObjectSearchResultListTitle = css32`
6312
6295
  font-weight: var(--fw-bold);
6313
6296
  line-height: 1;
6314
6297
  `;
@@ -6321,7 +6304,7 @@ function ObjectSearchResultList({
6321
6304
  onRemoveAllSelected,
6322
6305
  hideRemoveButton = false,
6323
6306
  additionalButtons,
6324
- renderResultComponent = (value) => /* @__PURE__ */ jsx55(ObjectSearchResultItem, { ...value }),
6307
+ renderResultComponent = (value) => /* @__PURE__ */ jsx55(ObjectSearchResultItem, { ...value, disableDnD }),
6325
6308
  multiSelectId,
6326
6309
  disableDnD = false,
6327
6310
  whenNothingSelected = null
@@ -6364,31 +6347,18 @@ function ObjectSearchResultList({
6364
6347
  ] }),
6365
6348
  !selectedListItems.length ? whenNothingSelected : /* @__PURE__ */ jsx55(DragDropContext3, { onDragEnd: (res) => onDragEnd(res), children: /* @__PURE__ */ jsx55(Droppable3, { droppableId: multiSelectId != null ? multiSelectId : "canvas-multi-select", children: (provided) => /* @__PURE__ */ jsxs35("div", { ...provided.droppableProps, ref: provided.innerRef, children: [
6366
6349
  selectedListItems.map((item, i2) => {
6367
- const itemValues = selectedListItems.length === 1 ? { ...item, disableDnD: true } : { ...item, disableDnD };
6368
- const renderListItem = renderResultComponent(itemValues);
6369
- return /* @__PURE__ */ jsx55(
6370
- Draggable3,
6350
+ const renderListItem = renderResultComponent(item);
6351
+ return /* @__PURE__ */ jsx55(Draggable3, { draggableId: item.id, index: i2, isDragDisabled: disableDnD, children: (provided2, snapshot) => /* @__PURE__ */ jsx55(
6352
+ "div",
6371
6353
  {
6372
- draggableId: item.id,
6373
- index: i2,
6374
- isDragDisabled: selectedListItems.length === 1 || disableDnD,
6375
- children: (provided2, snapshot) => /* @__PURE__ */ jsx55(
6376
- "div",
6377
- {
6378
- css: [
6379
- ObjectSearchDragContainer,
6380
- snapshot.isDragging ? ObjectSearchContainerDragging : void 0
6381
- ],
6382
- ref: provided2.innerRef,
6383
- "data-dragging": snapshot.isDragging,
6384
- ...provided2.draggableProps,
6385
- ...provided2.dragHandleProps,
6386
- children: renderListItem
6387
- }
6388
- )
6389
- },
6390
- item.id
6391
- );
6354
+ css: ObjectSearchDragContainer,
6355
+ ref: provided2.innerRef,
6356
+ "data-dragging": snapshot.isDragging,
6357
+ ...provided2.draggableProps,
6358
+ ...provided2.dragHandleProps,
6359
+ children: renderListItem
6360
+ }
6361
+ ) }, item.id);
6392
6362
  }),
6393
6363
  provided.placeholder
6394
6364
  ] }) }) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.22.1-alpha.8+a8f730b12",
3
+ "version": "19.23.0",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@hookform/resolvers": "^3.0.1",
47
- "@uniformdev/design-system": "19.22.1-alpha.8+a8f730b12",
48
- "@uniformdev/mesh-sdk": "19.22.1-alpha.8+a8f730b12",
47
+ "@uniformdev/design-system": "19.23.0",
48
+ "@uniformdev/mesh-sdk": "19.23.0",
49
49
  "mitt": "^3.0.0",
50
50
  "react-beautiful-dnd": "13.1.1",
51
51
  "react-hook-form": "^7.43.9",
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "a8f730b12035a4d7c2e6a704d3777ff12df52ffc"
80
+ "gitHead": "35c696a78e1909a73bc290663603d015927bbe28"
81
81
  }