@equinor/apollo-components 3.2.0-beta.1 → 3.2.0-beta.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -247,15 +247,19 @@ declare function addFormMeta<T>(withoutFormMeta: T): T & FormMeta;
247
247
 
248
248
  declare function EditableCheckboxCell<T extends FormMeta>(context: CellContext<T, boolean>): JSX.Element;
249
249
 
250
- interface EditableDateCellProps<T extends FormMeta> extends CellContext<T, unknown> {
250
+ interface EditableDateCellProps<T extends FormMeta, Value> extends CellContext<T, Value> {
251
251
  dateStringFormatter?: (date: string) => string;
252
252
  /**
253
253
  * FieldError object used to overwrite react-hook-form validation result. It is prioritized over
254
254
  * react-hook-form's validation.
255
255
  */
256
256
  error?: FieldError;
257
+ /**
258
+ *
259
+ */
260
+ onChange?: (value: Value, original: T) => void;
257
261
  }
258
- declare function EditableDateCell<T extends FormMeta>({ dateStringFormatter, error: errorFromProps, ...context }: EditableDateCellProps<T>): JSX.Element;
262
+ declare function EditableDateCell<T extends FormMeta, Value>({ dateStringFormatter, error: errorFromProps, ...context }: EditableDateCellProps<T, Value>): JSX.Element;
259
263
 
260
264
  interface Option {
261
265
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/apollo-components",
3
- "version": "3.2.0-beta.1",
3
+ "version": "3.2.0-beta.2",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",