@mercurjs/dashboard-shared 2.4.2-canary.1 → 2.4.2-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -765,7 +765,9 @@ declare const DataGrid: (<TData, TFieldValues extends FieldValues = FieldValues>
765
765
  disabled?: boolean;
766
766
  }) => react_jsx_runtime.JSX.Element;
767
767
  TextCell: <TData, TValue = any>({ context, }: DataGridCellProps<TData, TValue>) => react_jsx_runtime.JSX.Element;
768
- MultilineCell: <TData, TValue = any>({ context, }: DataGridCellProps<TData, TValue>) => react_jsx_runtime.JSX.Element;
768
+ MultilineCell: <TData, TValue = any>({ context, outerComponent, }: DataGridCellProps<TData, TValue> & {
769
+ outerComponent?: React$1.ReactNode;
770
+ }) => react_jsx_runtime.JSX.Element;
769
771
  ExpandableTextCell: <TData, TValue = any>({ context, fieldLabel, }: DataGridCellProps<TData, TValue> & {
770
772
  fieldLabel?: string;
771
773
  }) => react_jsx_runtime.JSX.Element;
package/dist/index.js CHANGED
@@ -19642,7 +19642,8 @@ import { useCallback as useCallback13, useEffect as useEffect9, useRef as useRef
19642
19642
  import { Controller as Controller4 } from "react-hook-form";
19643
19643
  import { jsx as jsx41 } from "react/jsx-runtime";
19644
19644
  var DataGridMultilineCell = ({
19645
- context
19645
+ context,
19646
+ outerComponent
19646
19647
  }) => {
19647
19648
  const { field, control, renderProps } = useDataGridCell({
19648
19649
  context
@@ -19655,7 +19656,16 @@ var DataGridMultilineCell = ({
19655
19656
  control,
19656
19657
  name: field,
19657
19658
  render: ({ field: field2 }) => {
19658
- return /* @__PURE__ */ jsx41(DataGridCellContainer, { ...container, ...errorProps, isMultiLine: true, children: /* @__PURE__ */ jsx41(Inner3, { field: field2, inputProps: input }) });
19659
+ return /* @__PURE__ */ jsx41(
19660
+ DataGridCellContainer,
19661
+ {
19662
+ ...container,
19663
+ ...errorProps,
19664
+ outerComponent,
19665
+ isMultiLine: true,
19666
+ children: /* @__PURE__ */ jsx41(Inner3, { field: field2, inputProps: input })
19667
+ }
19668
+ );
19659
19669
  }
19660
19670
  }
19661
19671
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/dashboard-shared",
3
- "version": "2.4.2-canary.1",
3
+ "version": "2.4.2-canary.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -34,7 +34,7 @@
34
34
  "@medusajs/dashboard": "2.22.3",
35
35
  "@medusajs/icons": "2.22.3",
36
36
  "@medusajs/ui": "4.2.3",
37
- "@mercurjs/client": "2.4.2-canary.1",
37
+ "@mercurjs/client": "2.4.2-canary.3",
38
38
  "@radix-ui/react-dialog": "1.1.19",
39
39
  "@radix-ui/react-dismissable-layer": "1.1.4",
40
40
  "@tanstack/react-query": "5.64.2",
@@ -70,9 +70,9 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@medusajs/types": "2.22.3",
73
- "@mercurjs/core": "2.4.2-canary.1",
74
- "@mercurjs/dashboard-sdk": "2.4.2-canary.1",
75
- "@mercurjs/types": "2.4.2-canary.1",
73
+ "@mercurjs/core": "2.4.2-canary.3",
74
+ "@mercurjs/dashboard-sdk": "2.4.2-canary.3",
75
+ "@mercurjs/types": "2.4.2-canary.3",
76
76
  "@types/lodash.debounce": "^4.0.8",
77
77
  "@types/react": "^18.3.2",
78
78
  "@types/react-dom": "^18.2.22",