@contentful/field-editor-date 1.6.17 → 1.6.18

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.
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { FieldAPI, ParametersAPI } from '@contentful/field-editor-shared';
3
3
  import { TimeFormat, DateTimeFormat } from './types';
4
4
  export interface DateEditorProps {
@@ -19,7 +19,7 @@ export interface DateEditorProps {
19
19
  ampm?: TimeFormat;
20
20
  }, Record<string, any>>;
21
21
  }
22
- export declare function DateEditor(props: DateEditorProps): JSX.Element;
22
+ export declare function DateEditor(props: DateEditorProps): React.JSX.Element;
23
23
  export declare namespace DateEditor {
24
24
  var defaultProps: {
25
25
  isInitiallyDisabled: boolean;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import moment from 'moment';
3
3
  export type DatePickerProps = {
4
4
  value?: moment.Moment;
5
5
  onChange: (val: moment.Moment | undefined) => void;
6
6
  disabled?: boolean;
7
7
  };
8
- export declare const DatepickerInput: (props: DatePickerProps) => JSX.Element;
8
+ export declare const DatepickerInput: (props: DatePickerProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export type TimepickerProps = {
3
3
  disabled: boolean;
4
4
  uses12hClock: boolean;
@@ -9,4 +9,4 @@ export type TimepickerProps = {
9
9
  time?: string;
10
10
  ampm?: string;
11
11
  };
12
- export declare const TimepickerInput: ({ disabled, uses12hClock, time, ampm, onChange, }: TimepickerProps) => JSX.Element;
12
+ export declare const TimepickerInput: ({ disabled, uses12hClock, time, ampm, onChange, }: TimepickerProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export type TimezonepickerProps = {
3
3
  disabled: boolean;
4
4
  onChange: (value: string) => void;
5
5
  value?: string;
6
6
  };
7
- export declare const TimezonepickerInput: ({ disabled, onChange, value, }: TimezonepickerProps) => JSX.Element;
7
+ export declare const TimezonepickerInput: ({ disabled, onChange, value, }: TimezonepickerProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-date",
3
- "version": "1.6.17",
3
+ "version": "1.6.18",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -38,7 +38,7 @@
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.6.1",
41
+ "@contentful/field-editor-shared": "^1.6.2",
42
42
  "emotion": "^10.0.17",
43
43
  "moment": "^2.20.0"
44
44
  },
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "registry": "https://npm.pkg.github.com/"
56
56
  },
57
- "gitHead": "c29381bb6d6228af3c126376d9e9218ecfc7d1bb"
57
+ "gitHead": "6e7fb82c93e497874c875de0803ea7b6d8d6c990"
58
58
  }