@atlaskit/editor-plugin-date 10.0.0 → 10.0.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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/pm-plugins/main.js +6 -6
- package/dist/cjs/ui/DatePicker/date-picker-input.js +3 -2
- package/dist/cjs/ui/DatePicker/index.js +3 -2
- package/dist/es2019/pm-plugins/main.js +3 -4
- package/dist/es2019/ui/DatePicker/date-picker-input.js +4 -1
- package/dist/es2019/ui/DatePicker/index.js +4 -1
- package/dist/esm/pm-plugins/main.js +6 -6
- package/dist/esm/ui/DatePicker/date-picker-input.js +3 -2
- package/dist/esm/ui/DatePicker/index.js +3 -2
- package/dist/types/nodeviews/dateNodeSpec.d.ts +2 -2
- package/dist/types/pm-plugins/main.d.ts +2 -1
- package/dist/types/ui/DatePicker/date-picker-input.d.ts +3 -3
- package/dist/types/ui/DatePicker/index.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/dateNodeSpec.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -1
- package/dist/types-ts4.5/ui/DatePicker/date-picker-input.d.ts +3 -3
- package/dist/types-ts4.5/ui/DatePicker/index.d.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,12 +9,12 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
9
9
|
var _DateNodeView = require("../nodeviews/DateNodeView");
|
|
10
10
|
var _pluginKey = require("./plugin-key");
|
|
11
11
|
var _utils2 = require("./utils");
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
var dest = (0, _utils.pluginFactory)(_pluginKey.pluginKey, _utils2.reducer, {
|
|
13
|
+
mapping: _utils2.mapping,
|
|
14
|
+
onSelectionChanged: _utils2.onSelectionChanged
|
|
15
|
+
});
|
|
16
|
+
var createPluginState = dest.createPluginState;
|
|
17
|
+
var getPluginState = exports.getPluginState = dest.getPluginState;
|
|
18
18
|
var createPlugin = function createPlugin(pmPluginFactoryParams) {
|
|
19
19
|
var dispatch = pmPluginFactoryParams.dispatch;
|
|
20
20
|
var newPluginState = {
|
|
@@ -238,5 +238,6 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
}]);
|
|
241
|
-
}(_react.default.Component);
|
|
242
|
-
var
|
|
241
|
+
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
242
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(DatePickerInput);
|
|
243
|
+
var _default = exports.default = _default_1;
|
|
@@ -186,5 +186,6 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
186
186
|
}));
|
|
187
187
|
}
|
|
188
188
|
}]);
|
|
189
|
-
}(_react.default.Component);
|
|
190
|
-
var
|
|
189
|
+
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
190
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(DatePicker);
|
|
191
|
+
var _default = exports.default = _default_1;
|
|
@@ -3,13 +3,12 @@ import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
|
3
3
|
import { DateNodeView } from '../nodeviews/DateNodeView';
|
|
4
4
|
import { pluginKey } from './plugin-key';
|
|
5
5
|
import { mapping, onSelectionChanged, reducer } from './utils';
|
|
6
|
-
const {
|
|
7
|
-
createPluginState,
|
|
8
|
-
getPluginState
|
|
9
|
-
} = pluginFactory(pluginKey, reducer, {
|
|
6
|
+
const dest = pluginFactory(pluginKey, reducer, {
|
|
10
7
|
mapping,
|
|
11
8
|
onSelectionChanged
|
|
12
9
|
});
|
|
10
|
+
const createPluginState = dest.createPluginState;
|
|
11
|
+
const getPluginState = dest.getPluginState;
|
|
13
12
|
const createPlugin = pmPluginFactoryParams => {
|
|
14
13
|
const {
|
|
15
14
|
dispatch
|
|
@@ -230,4 +230,7 @@ class DatePickerInput extends React.Component {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
|
|
234
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
235
|
+
const _default_1 = injectIntl(DatePickerInput);
|
|
236
|
+
export default _default_1;
|
|
@@ -3,12 +3,12 @@ import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
|
3
3
|
import { DateNodeView } from '../nodeviews/DateNodeView';
|
|
4
4
|
import { pluginKey } from './plugin-key';
|
|
5
5
|
import { mapping, onSelectionChanged, reducer } from './utils';
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
var dest = pluginFactory(pluginKey, reducer, {
|
|
7
|
+
mapping: mapping,
|
|
8
|
+
onSelectionChanged: onSelectionChanged
|
|
9
|
+
});
|
|
10
|
+
var createPluginState = dest.createPluginState;
|
|
11
|
+
var getPluginState = dest.getPluginState;
|
|
12
12
|
var createPlugin = function createPlugin(pmPluginFactoryParams) {
|
|
13
13
|
var dispatch = pmPluginFactoryParams.dispatch;
|
|
14
14
|
var newPluginState = {
|
|
@@ -232,5 +232,6 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
}]);
|
|
235
|
-
}(React.Component);
|
|
236
|
-
|
|
235
|
+
}(React.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
236
|
+
var _default_1 = injectIntl(DatePickerInput);
|
|
237
|
+
export default _default_1;
|
|
@@ -180,5 +180,6 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
180
180
|
}));
|
|
181
181
|
}
|
|
182
182
|
}]);
|
|
183
|
-
}(React.Component);
|
|
184
|
-
|
|
183
|
+
}(React.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
184
|
+
var _default_1 = injectIntl(DatePicker);
|
|
185
|
+
export default _default_1;
|
|
@@ -10,11 +10,11 @@ export declare const dateToDOM: (node: PMNode, state: EditorState, getPos: getPo
|
|
|
10
10
|
})[])[], (string | Record<string, string> | (string | {
|
|
11
11
|
class: string;
|
|
12
12
|
style: string;
|
|
13
|
-
})[])[], (string | {
|
|
13
|
+
})[])[], ((string | {
|
|
14
14
|
class: string;
|
|
15
15
|
contentEditable: string;
|
|
16
16
|
} | (string | {
|
|
17
17
|
class: string;
|
|
18
18
|
})[])[] | (string | {
|
|
19
19
|
class: string;
|
|
20
|
-
})[]];
|
|
20
|
+
})[])];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import type { DatePluginState } from './types';
|
|
4
|
-
declare const getPluginState: (state:
|
|
5
|
+
declare const getPluginState: (state: EditorState) => DatePluginState;
|
|
5
6
|
declare const createPlugin: (pmPluginFactoryParams: PMPluginFactoryParams) => SafePlugin<DatePluginState>;
|
|
6
7
|
export { getPluginState };
|
|
7
8
|
export default createPlugin;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { DateType } from '../../types';
|
|
9
9
|
export interface InputProps {
|
|
@@ -22,7 +22,7 @@ export interface InputProps {
|
|
|
22
22
|
export interface InputState {
|
|
23
23
|
inputText: string;
|
|
24
24
|
}
|
|
25
|
-
declare const
|
|
25
|
+
declare const _default_1: React.FC<WithIntlProps<InputProps & WrappedComponentProps>> & {
|
|
26
26
|
WrappedComponent: React.ComponentType<InputProps & WrappedComponentProps>;
|
|
27
27
|
};
|
|
28
|
-
export default
|
|
28
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
8
8
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
@@ -33,7 +33,7 @@ export interface State {
|
|
|
33
33
|
selected: Array<string>;
|
|
34
34
|
setInputSelectionPos?: number;
|
|
35
35
|
}
|
|
36
|
-
declare const
|
|
36
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
37
37
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
38
38
|
};
|
|
39
|
-
export default
|
|
39
|
+
export default _default_1;
|
|
@@ -15,12 +15,12 @@ export declare const dateToDOM: (node: PMNode, state: EditorState, getPos: getPo
|
|
|
15
15
|
class: string;
|
|
16
16
|
style: string;
|
|
17
17
|
})[])[],
|
|
18
|
-
(string | {
|
|
18
|
+
((string | {
|
|
19
19
|
class: string;
|
|
20
20
|
contentEditable: string;
|
|
21
21
|
} | (string | {
|
|
22
22
|
class: string;
|
|
23
23
|
})[])[] | (string | {
|
|
24
24
|
class: string;
|
|
25
|
-
})[]
|
|
25
|
+
})[])
|
|
26
26
|
];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import type { DatePluginState } from './types';
|
|
4
|
-
declare const getPluginState: (state:
|
|
5
|
+
declare const getPluginState: (state: EditorState) => DatePluginState;
|
|
5
6
|
declare const createPlugin: (pmPluginFactoryParams: PMPluginFactoryParams) => SafePlugin<DatePluginState>;
|
|
6
7
|
export { getPluginState };
|
|
7
8
|
export default createPlugin;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { DateType } from '../../types';
|
|
9
9
|
export interface InputProps {
|
|
@@ -22,7 +22,7 @@ export interface InputProps {
|
|
|
22
22
|
export interface InputState {
|
|
23
23
|
inputText: string;
|
|
24
24
|
}
|
|
25
|
-
declare const
|
|
25
|
+
declare const _default_1: React.FC<WithIntlProps<InputProps & WrappedComponentProps>> & {
|
|
26
26
|
WrappedComponent: React.ComponentType<InputProps & WrappedComponentProps>;
|
|
27
27
|
};
|
|
28
|
-
export default
|
|
28
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
8
8
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
@@ -33,7 +33,7 @@ export interface State {
|
|
|
33
33
|
selected: Array<string>;
|
|
34
34
|
setInputSelectionPos?: number;
|
|
35
35
|
}
|
|
36
|
-
declare const
|
|
36
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
37
37
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
38
38
|
};
|
|
39
|
-
export default
|
|
39
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.2.0",
|
|
46
46
|
"@atlaskit/theme": "^22.0.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^11.1.0",
|
|
49
49
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|