@measured/puck 0.14.0-canary.55740c4 → 0.14.0-canary.b365418

Sign up to get free protection for your applications and to get access to all the features.
@@ -91,11 +91,15 @@ type ExternalField<Props extends {
91
91
  placeholder?: string;
92
92
  fetchList: (params: {
93
93
  query: string;
94
+ filters: Record<string, any>;
94
95
  }) => Promise<any[] | null>;
95
96
  mapProp?: (value: any) => Props;
97
+ mapRow?: (value: any) => Record<string, string | number>;
96
98
  getItemSummary: (item: Props, index?: number) => string;
97
99
  showSearch?: boolean;
98
100
  initialQuery?: string;
101
+ filterFields?: Record<string, Field>;
102
+ initialFilters?: Record<string, any>;
99
103
  };
100
104
  type CustomField<Props extends {
101
105
  [key: string]: any;