@measured/puck-field-contentful 0.16.3-canary.af421c6 → 0.17.0-canary.35170f8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -81,9 +81,12 @@ type ExternalField<Props extends {
81
81
  filters: Record<string, any>;
82
82
  }) => Promise<any[] | null>;
83
83
  mapProp?: (value: any) => Props;
84
- mapRow?: (value: any) => Record<string, string | number>;
84
+ mapRow?: (value: any) => Record<string, string | number | ReactElement>;
85
85
  getItemSummary?: (item: Props, index?: number) => string;
86
86
  showSearch?: boolean;
87
+ renderFooter?: (props: {
88
+ items: any[];
89
+ }) => ReactElement;
87
90
  initialQuery?: string;
88
91
  filterFields?: Record<string, Field>;
89
92
  initialFilters?: Record<string, any>;
package/dist/index.d.ts CHANGED
@@ -81,9 +81,12 @@ type ExternalField<Props extends {
81
81
  filters: Record<string, any>;
82
82
  }) => Promise<any[] | null>;
83
83
  mapProp?: (value: any) => Props;
84
- mapRow?: (value: any) => Record<string, string | number>;
84
+ mapRow?: (value: any) => Record<string, string | number | ReactElement>;
85
85
  getItemSummary?: (item: Props, index?: number) => string;
86
86
  showSearch?: boolean;
87
+ renderFooter?: (props: {
88
+ items: any[];
89
+ }) => ReactElement;
87
90
  initialQuery?: string;
88
91
  filterFields?: Record<string, Field>;
89
92
  initialFilters?: Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-field-contentful",
3
- "version": "0.16.3-canary.af421c6",
3
+ "version": "0.17.0-canary.35170f8",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "devDependencies": {
25
- "@measured/puck": "^0.16.3-canary.af421c6",
25
+ "@measured/puck": "^0.17.0-canary.35170f8",
26
26
  "@types/react": "^18.2.0",
27
27
  "@types/react-dom": "^18.2.0",
28
28
  "contentful": "^10.8.6",