@contentful/field-editor-date 1.5.1 → 1.6.1

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.
@@ -151,7 +151,7 @@ function DateEditor(props) {
151
151
  field: field,
152
152
  isInitiallyDisabled: props.isInitiallyDisabled,
153
153
  isDisabled: props.isDisabled,
154
- throttle: 0
154
+ debounce: 0
155
155
  }, ({ value , disabled , setValue , externalReset })=>{
156
156
  const datetimeValue = (0, _date.userInputFromDatetime)({
157
157
  value,
@@ -97,7 +97,7 @@ export function DateEditor(props) {
97
97
  field: field,
98
98
  isInitiallyDisabled: props.isInitiallyDisabled,
99
99
  isDisabled: props.isDisabled,
100
- throttle: 0
100
+ debounce: 0
101
101
  }, ({ value , disabled , setValue , externalReset })=>{
102
102
  const datetimeValue = userInputFromDatetime({
103
103
  value,
@@ -14,12 +14,10 @@ export interface DateEditorProps {
14
14
  /**
15
15
  * sdk.parameters
16
16
  */
17
- parameters?: ParametersAPI & {
18
- instance?: {
19
- format?: DateTimeFormat;
20
- ampm?: TimeFormat;
21
- };
22
- };
17
+ parameters?: ParametersAPI<Record<string, any>, {
18
+ format?: DateTimeFormat;
19
+ ampm?: TimeFormat;
20
+ }, Record<string, any>>;
23
21
  }
24
22
  export declare function DateEditor(props: DateEditorProps): React.JSX.Element;
25
23
  export declare namespace DateEditor {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-date",
3
- "version": "1.5.1",
3
+ "version": "1.6.1",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -38,18 +38,18 @@
38
38
  "dependencies": {
39
39
  "@contentful/f36-components": "^4.34.1",
40
40
  "@contentful/f36-tokens": "^4.0.1",
41
- "@contentful/field-editor-shared": "^1.3.1",
41
+ "@contentful/field-editor-shared": "^1.4.1",
42
42
  "emotion": "^10.0.17",
43
43
  "moment": "^2.20.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/core": "^7.7.4",
47
- "@contentful/field-editor-test-utils": "^1.4.1",
47
+ "@contentful/field-editor-test-utils": "^1.4.2",
48
48
  "@types/timezoned-date": "^3.0.0",
49
49
  "timezoned-date": "^3.0.2"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=16.8.0"
53
53
  },
54
- "gitHead": "ca904b19ca794a2c40d82e1f7ede9e0be3560f22"
54
+ "gitHead": "0fc8da4aa8ad8603c3adf4bd77b26ba46de11e33"
55
55
  }