@uniformdev/mesh-sdk-react 19.119.0 → 19.122.1-alpha.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/LICENSE.txt CHANGED
@@ -1,2 +1,2 @@
1
- © 2023 Uniform Systems, Inc. All Rights Reserved.
1
+ © 2024 Uniform Systems, Inc. All Rights Reserved.
2
2
  See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
package/dist/index.d.mts CHANGED
@@ -1359,11 +1359,11 @@ type ObjectSearchListItemProps = SelectedItemProps & {
1359
1359
  isMulti?: boolean;
1360
1360
  /** sets disabled state to the interactive element */
1361
1361
  disabled?: boolean;
1362
- };
1362
+ } & React$1.HTMLAttributes<HTMLDivElement>;
1363
1363
  /**
1364
1364
  * @description entry search list item is an opinionated UI component best used for initial retrieved results
1365
1365
  * @example <ObjectSearchListItem id="my-result-item" title="title" popoverData={<p>some data info</p>}><div>example of uncontrolled content</div></ObjectSearchListItem> */
1366
- declare const ObjectSearchListItem: ({ id, title, contentType, image, imageUrl, popoverData, onSelect, isMulti, disabled, children, }: ObjectSearchListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1366
+ declare const ObjectSearchListItem: ({ id, title, contentType, image, imageUrl, popoverData, onSelect, isMulti, disabled, children, ...props }: ObjectSearchListItemProps & React$1.HTMLAttributes<HTMLDivElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1367
1367
  /**
1368
1368
  * An opinionated loading skeleton component best used with ObjectSearchListItem
1369
1369
  * @example <ObjectSearchListItemLoadingSkeleton />
@@ -1415,6 +1415,8 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1415
1415
  * @default 'Selected'
1416
1416
  */
1417
1417
  resultLabelText?: string;
1418
+ /** sets and override react node replacing the whole HTML block for the result label and counter */
1419
+ resultLabelOverride?: ReactNode;
1418
1420
  /** sets the on remove button click action */
1419
1421
  onRemoveAllSelected?: () => void;
1420
1422
  /** sets the remove button text
@@ -1426,9 +1428,9 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1426
1428
  */
1427
1429
  hideRemoveButton?: boolean;
1428
1430
  /** allows additional buttons to be added to the result title group */
1429
- additionalButtons?: React.ReactNode;
1431
+ additionalButtons?: React__default.ReactNode;
1430
1432
  /** allows placing child components within the result list area */
1431
- renderResultComponent?: (value: TRenderComponent) => React.ReactNode;
1433
+ renderResultComponent?: (value: TRenderComponent) => React__default.ReactNode;
1432
1434
  /** disable or enable drag and drop functionality
1433
1435
  * @default false
1434
1436
  */
@@ -1436,7 +1438,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1436
1438
  /** sets the draggable id value */
1437
1439
  multiSelectId?: string;
1438
1440
  /** Rendered when nothing is selected */
1439
- whenNothingSelected?: React.ReactNode;
1441
+ whenNothingSelected?: React__default.ReactNode;
1440
1442
  /**
1441
1443
  * Special case for re-parenting the drag and drop container in case of issues with "position: fixed" and "transform:
1442
1444
  * You can read more about this here https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/reparenting.md
@@ -1450,7 +1452,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1450
1452
  * maintain drag and drop functionality
1451
1453
  * @example <ObjectSearchResultList id="my-id" title="title" renderResultComponent={(values) => <CustomComponent {...values} />} />
1452
1454
  */
1453
- declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1455
+ declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, resultLabelOverride, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1454
1456
 
1455
1457
  type QueryFilterSearchProps = {
1456
1458
  /** sets the count value */
package/dist/index.d.ts CHANGED
@@ -1359,11 +1359,11 @@ type ObjectSearchListItemProps = SelectedItemProps & {
1359
1359
  isMulti?: boolean;
1360
1360
  /** sets disabled state to the interactive element */
1361
1361
  disabled?: boolean;
1362
- };
1362
+ } & React$1.HTMLAttributes<HTMLDivElement>;
1363
1363
  /**
1364
1364
  * @description entry search list item is an opinionated UI component best used for initial retrieved results
1365
1365
  * @example <ObjectSearchListItem id="my-result-item" title="title" popoverData={<p>some data info</p>}><div>example of uncontrolled content</div></ObjectSearchListItem> */
1366
- declare const ObjectSearchListItem: ({ id, title, contentType, image, imageUrl, popoverData, onSelect, isMulti, disabled, children, }: ObjectSearchListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1366
+ declare const ObjectSearchListItem: ({ id, title, contentType, image, imageUrl, popoverData, onSelect, isMulti, disabled, children, ...props }: ObjectSearchListItemProps & React$1.HTMLAttributes<HTMLDivElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1367
1367
  /**
1368
1368
  * An opinionated loading skeleton component best used with ObjectSearchListItem
1369
1369
  * @example <ObjectSearchListItemLoadingSkeleton />
@@ -1415,6 +1415,8 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1415
1415
  * @default 'Selected'
1416
1416
  */
1417
1417
  resultLabelText?: string;
1418
+ /** sets and override react node replacing the whole HTML block for the result label and counter */
1419
+ resultLabelOverride?: ReactNode;
1418
1420
  /** sets the on remove button click action */
1419
1421
  onRemoveAllSelected?: () => void;
1420
1422
  /** sets the remove button text
@@ -1426,9 +1428,9 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1426
1428
  */
1427
1429
  hideRemoveButton?: boolean;
1428
1430
  /** allows additional buttons to be added to the result title group */
1429
- additionalButtons?: React.ReactNode;
1431
+ additionalButtons?: React__default.ReactNode;
1430
1432
  /** allows placing child components within the result list area */
1431
- renderResultComponent?: (value: TRenderComponent) => React.ReactNode;
1433
+ renderResultComponent?: (value: TRenderComponent) => React__default.ReactNode;
1432
1434
  /** disable or enable drag and drop functionality
1433
1435
  * @default false
1434
1436
  */
@@ -1436,7 +1438,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1436
1438
  /** sets the draggable id value */
1437
1439
  multiSelectId?: string;
1438
1440
  /** Rendered when nothing is selected */
1439
- whenNothingSelected?: React.ReactNode;
1441
+ whenNothingSelected?: React__default.ReactNode;
1440
1442
  /**
1441
1443
  * Special case for re-parenting the drag and drop container in case of issues with "position: fixed" and "transform:
1442
1444
  * You can read more about this here https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/reparenting.md
@@ -1450,7 +1452,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1450
1452
  * maintain drag and drop functionality
1451
1453
  * @example <ObjectSearchResultList id="my-id" title="title" renderResultComponent={(values) => <CustomComponent {...values} />} />
1452
1454
  */
1453
- declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1455
+ declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, resultLabelOverride, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1454
1456
 
1455
1457
  type QueryFilterSearchProps = {
1456
1458
  /** sets the count value */
package/dist/index.esm.js CHANGED
@@ -6386,7 +6386,8 @@ var ObjectSearchListItem = ({
6386
6386
  onSelect,
6387
6387
  isMulti,
6388
6388
  disabled,
6389
- children
6389
+ children,
6390
+ ...props
6390
6391
  }) => {
6391
6392
  const { onSelectItem, selectedListItems, isMulti: globalIsMulti } = useObjectSearchContext();
6392
6393
  const formatedContentType = Array.isArray(contentType) ? contentType.join(", ") : contentType;
@@ -6406,6 +6407,7 @@ var ObjectSearchListItem = ({
6406
6407
  role: "listitem",
6407
6408
  css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
6408
6409
  "data-testid": "list-item",
6410
+ ...props,
6409
6411
  children: [
6410
6412
  /* @__PURE__ */ jsxs34(
6411
6413
  "div",
@@ -6840,6 +6842,7 @@ function ObjectSearchResultList({
6840
6842
  removeButtonText = "Remove all",
6841
6843
  onRemoveAllSelected,
6842
6844
  hideRemoveButton = false,
6845
+ resultLabelOverride,
6843
6846
  additionalButtons,
6844
6847
  renderResultComponent = (value) => /* @__PURE__ */ jsx66(ObjectSearchResultItem, { ...value }),
6845
6848
  multiSelectId,
@@ -6885,11 +6888,11 @@ function ObjectSearchResultList({
6885
6888
  };
6886
6889
  return /* @__PURE__ */ jsxs40(Fragment13, { children: [
6887
6890
  /* @__PURE__ */ jsxs40("div", { role: "group", css: ObjectSearchResultListContainer, children: [
6888
- /* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
6891
+ !resultLabelOverride ? /* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
6889
6892
  /* @__PURE__ */ jsx66("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
6890
6893
  " ",
6891
6894
  !selectedListItems.length ? null : /* @__PURE__ */ jsx66(Counter, { count: selectedListItems.length })
6892
- ] }),
6895
+ ] }) : resultLabelOverride,
6893
6896
  /* @__PURE__ */ jsxs40("div", { css: ObjectSearchResultListCounterContainer, children: [
6894
6897
  additionalButtons,
6895
6898
  hideRemoveButton ? null : /* @__PURE__ */ jsx66(
package/dist/index.js CHANGED
@@ -6518,7 +6518,8 @@ var ObjectSearchListItem = ({
6518
6518
  onSelect,
6519
6519
  isMulti,
6520
6520
  disabled,
6521
- children
6521
+ children,
6522
+ ...props
6522
6523
  }) => {
6523
6524
  const { onSelectItem, selectedListItems, isMulti: globalIsMulti } = useObjectSearchContext();
6524
6525
  const formatedContentType = Array.isArray(contentType) ? contentType.join(", ") : contentType;
@@ -6538,6 +6539,7 @@ var ObjectSearchListItem = ({
6538
6539
  role: "listitem",
6539
6540
  css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
6540
6541
  "data-testid": "list-item",
6542
+ ...props,
6541
6543
  children: [
6542
6544
  /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
6543
6545
  "div",
@@ -6972,6 +6974,7 @@ function ObjectSearchResultList({
6972
6974
  removeButtonText = "Remove all",
6973
6975
  onRemoveAllSelected,
6974
6976
  hideRemoveButton = false,
6977
+ resultLabelOverride,
6975
6978
  additionalButtons,
6976
6979
  renderResultComponent = (value) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ObjectSearchResultItem, { ...value }),
6977
6980
  multiSelectId,
@@ -7017,11 +7020,11 @@ function ObjectSearchResultList({
7017
7020
  };
7018
7021
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
7019
7022
  /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { role: "group", css: ObjectSearchResultListContainer, children: [
7020
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
7023
+ !resultLabelOverride ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
7021
7024
  /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
7022
7025
  " ",
7023
7026
  !selectedListItems.length ? null : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_design_system39.Counter, { count: selectedListItems.length })
7024
- ] }),
7027
+ ] }) : resultLabelOverride,
7025
7028
  /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { css: ObjectSearchResultListCounterContainer, children: [
7026
7029
  additionalButtons,
7027
7030
  hideRemoveButton ? null : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
package/dist/index.mjs CHANGED
@@ -6386,7 +6386,8 @@ var ObjectSearchListItem = ({
6386
6386
  onSelect,
6387
6387
  isMulti,
6388
6388
  disabled,
6389
- children
6389
+ children,
6390
+ ...props
6390
6391
  }) => {
6391
6392
  const { onSelectItem, selectedListItems, isMulti: globalIsMulti } = useObjectSearchContext();
6392
6393
  const formatedContentType = Array.isArray(contentType) ? contentType.join(", ") : contentType;
@@ -6406,6 +6407,7 @@ var ObjectSearchListItem = ({
6406
6407
  role: "listitem",
6407
6408
  css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
6408
6409
  "data-testid": "list-item",
6410
+ ...props,
6409
6411
  children: [
6410
6412
  /* @__PURE__ */ jsxs34(
6411
6413
  "div",
@@ -6840,6 +6842,7 @@ function ObjectSearchResultList({
6840
6842
  removeButtonText = "Remove all",
6841
6843
  onRemoveAllSelected,
6842
6844
  hideRemoveButton = false,
6845
+ resultLabelOverride,
6843
6846
  additionalButtons,
6844
6847
  renderResultComponent = (value) => /* @__PURE__ */ jsx66(ObjectSearchResultItem, { ...value }),
6845
6848
  multiSelectId,
@@ -6885,11 +6888,11 @@ function ObjectSearchResultList({
6885
6888
  };
6886
6889
  return /* @__PURE__ */ jsxs40(Fragment13, { children: [
6887
6890
  /* @__PURE__ */ jsxs40("div", { role: "group", css: ObjectSearchResultListContainer, children: [
6888
- /* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
6891
+ !resultLabelOverride ? /* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
6889
6892
  /* @__PURE__ */ jsx66("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
6890
6893
  " ",
6891
6894
  !selectedListItems.length ? null : /* @__PURE__ */ jsx66(Counter, { count: selectedListItems.length })
6892
- ] }),
6895
+ ] }) : resultLabelOverride,
6893
6896
  /* @__PURE__ */ jsxs40("div", { css: ObjectSearchResultListCounterContainer, children: [
6894
6897
  additionalButtons,
6895
6898
  hideRemoveButton ? null : /* @__PURE__ */ jsx66(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.119.0",
3
+ "version": "19.122.1-alpha.0+03f737f1b5",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -50,9 +50,9 @@
50
50
  "@lexical/selection": "^0.12.0",
51
51
  "@lexical/utils": "^0.12.0",
52
52
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
53
- "@uniformdev/canvas": "19.119.0",
54
- "@uniformdev/design-system": "19.119.0",
55
- "@uniformdev/mesh-sdk": "19.119.0",
53
+ "@uniformdev/canvas": "19.122.1-alpha.0+03f737f1b5",
54
+ "@uniformdev/design-system": "19.122.1-alpha.0+03f737f1b5",
55
+ "@uniformdev/mesh-sdk": "19.122.1-alpha.0+03f737f1b5",
56
56
  "dequal": "^2.0.3",
57
57
  "lexical": "^0.12.0",
58
58
  "mitt": "^3.0.0",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "103e99a2813a021e3a9bc6e3c4fd27474c74c09e"
89
+ "gitHead": "03f737f1b507886971bc90dde2367d1bf85f5edf"
90
90
  }