@measured/puck-plugin-emotion-cache 0.16.3-canary.af421c6 → 0.17.0-canary.159d819

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -84,9 +84,12 @@ type ExternalField<Props extends {
84
84
  filters: Record<string, any>;
85
85
  }) => Promise<any[] | null>;
86
86
  mapProp?: (value: any) => Props;
87
- mapRow?: (value: any) => Record<string, string | number>;
87
+ mapRow?: (value: any) => Record<string, string | number | ReactElement>;
88
88
  getItemSummary?: (item: Props, index?: number) => string;
89
89
  showSearch?: boolean;
90
+ renderFooter?: (props: {
91
+ items: any[];
92
+ }) => ReactElement;
90
93
  initialQuery?: string;
91
94
  filterFields?: Record<string, Field>;
92
95
  initialFilters?: Record<string, any>;
@@ -147,6 +150,9 @@ type UiState = {
147
150
  controlsVisible: boolean;
148
151
  options: Viewport[];
149
152
  };
153
+ field: {
154
+ focus?: string | null;
155
+ };
150
156
  };
151
157
 
152
158
  type RenderFunc<Props extends {
package/dist/index.d.ts CHANGED
@@ -84,9 +84,12 @@ type ExternalField<Props extends {
84
84
  filters: Record<string, any>;
85
85
  }) => Promise<any[] | null>;
86
86
  mapProp?: (value: any) => Props;
87
- mapRow?: (value: any) => Record<string, string | number>;
87
+ mapRow?: (value: any) => Record<string, string | number | ReactElement>;
88
88
  getItemSummary?: (item: Props, index?: number) => string;
89
89
  showSearch?: boolean;
90
+ renderFooter?: (props: {
91
+ items: any[];
92
+ }) => ReactElement;
90
93
  initialQuery?: string;
91
94
  filterFields?: Record<string, Field>;
92
95
  initialFilters?: Record<string, any>;
@@ -147,6 +150,9 @@ type UiState = {
147
150
  controlsVisible: boolean;
148
151
  options: Viewport[];
149
152
  };
153
+ field: {
154
+ focus?: string | null;
155
+ };
150
156
  };
151
157
 
152
158
  type RenderFunc<Props extends {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-emotion-cache",
3
- "version": "0.16.3-canary.af421c6",
3
+ "version": "0.17.0-canary.159d819",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "devDependencies": {
25
25
  "@emotion/react": "^11.13.3",
26
- "@measured/puck": "^0.16.3-canary.af421c6",
26
+ "@measured/puck": "^0.17.0-canary.159d819",
27
27
  "@types/react": "^18.2.0",
28
28
  "@types/react-dom": "^18.2.0",
29
29
  "eslint": "^7.32.0",