@atlaskit/editor-plugin-date 4.3.4 → 4.3.5
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 +9 -0
- package/dist/cjs/nodeviews/dateNodeSpec.js +7 -2
- package/dist/es2019/nodeviews/dateNodeSpec.js +8 -3
- package/dist/esm/nodeviews/dateNodeSpec.js +8 -3
- package/dist/types/datePluginType.d.ts +2 -2
- package/dist/types/nodeviews/dateNodeSpec.d.ts +5 -0
- package/dist/types-ts4.5/datePluginType.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/dateNodeSpec.d.ts +5 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 4.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#153359](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153359)
|
|
8
|
+
[`e55e93f0bddf8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e55e93f0bddf8) -
|
|
9
|
+
NOISSUE: fix whitepace after date node
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 4.3.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -84,7 +84,12 @@ var dateToDOM = exports.dateToDOM = function dateToDOM(node, state, getPos, intl
|
|
|
84
84
|
class: 'zeroWidthSpaceContainer'
|
|
85
85
|
}, ['span', {
|
|
86
86
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
87
|
-
}, _whitespace.ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], ['span', {
|
|
87
|
+
}, _whitespace.ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], _utils.browser.android ? ['span', {
|
|
88
|
+
class: 'zeroWidthSpaceContainer',
|
|
89
|
+
contentEditable: 'false'
|
|
90
|
+
}, ['span', {
|
|
91
|
+
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
92
|
+
}, _whitespace.ZERO_WIDTH_SPACE]] : ['span', {
|
|
88
93
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
89
|
-
},
|
|
94
|
+
}, '']];
|
|
90
95
|
};
|
|
@@ -2,7 +2,7 @@ import { createIntl } from 'react-intl-next';
|
|
|
2
2
|
import { date } from '@atlaskit/adf-schema';
|
|
3
3
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
4
4
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
5
|
-
import { timestampToString } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { browser, timestampToString } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
7
7
|
import { N30A, N800 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { getDateInformation } from './utils';
|
|
@@ -76,7 +76,12 @@ export const dateToDOM = (node, state, getPos, intl) => {
|
|
|
76
76
|
class: 'zeroWidthSpaceContainer'
|
|
77
77
|
}, ['span', {
|
|
78
78
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
79
|
-
}, ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], ['span', {
|
|
79
|
+
}, ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], browser.android ? ['span', {
|
|
80
|
+
class: 'zeroWidthSpaceContainer',
|
|
81
|
+
contentEditable: 'false'
|
|
82
|
+
}, ['span', {
|
|
83
|
+
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
84
|
+
}, ZERO_WIDTH_SPACE]] : ['span', {
|
|
80
85
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
81
|
-
},
|
|
86
|
+
}, '']];
|
|
82
87
|
};
|
|
@@ -5,7 +5,7 @@ import { createIntl } from 'react-intl-next';
|
|
|
5
5
|
import { date } from '@atlaskit/adf-schema';
|
|
6
6
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
7
7
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
8
|
-
import { timestampToString } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { browser, timestampToString } from '@atlaskit/editor-common/utils';
|
|
9
9
|
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
10
10
|
import { N30A, N800 } from '@atlaskit/theme/colors';
|
|
11
11
|
import { getDateInformation } from './utils';
|
|
@@ -77,7 +77,12 @@ export var dateToDOM = function dateToDOM(node, state, getPos, intl) {
|
|
|
77
77
|
class: 'zeroWidthSpaceContainer'
|
|
78
78
|
}, ['span', {
|
|
79
79
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
80
|
-
}, ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], ['span', {
|
|
80
|
+
}, ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], browser.android ? ['span', {
|
|
81
|
+
class: 'zeroWidthSpaceContainer',
|
|
82
|
+
contentEditable: 'false'
|
|
83
|
+
}, ['span', {
|
|
84
|
+
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
85
|
+
}, ZERO_WIDTH_SPACE]] : ['span', {
|
|
81
86
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
82
|
-
},
|
|
87
|
+
}, '']];
|
|
83
88
|
};
|
|
@@ -3,7 +3,7 @@ import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
|
3
3
|
import type { AnnotationPlugin } from '@atlaskit/editor-plugin-annotation';
|
|
4
4
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
5
5
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
6
|
-
import type {
|
|
6
|
+
import type { DatePluginOptions, DatePluginSharedState, DeleteDate, InsertDate } from './types';
|
|
7
7
|
export type DatePluginDependencies = [
|
|
8
8
|
typeof analyticsPlugin,
|
|
9
9
|
EditorDisabledPlugin,
|
|
@@ -11,7 +11,7 @@ export type DatePluginDependencies = [
|
|
|
11
11
|
OptionalPlugin<EditorViewModePlugin>
|
|
12
12
|
];
|
|
13
13
|
export type DatePlugin = NextEditorPlugin<'date', {
|
|
14
|
-
pluginConfiguration:
|
|
14
|
+
pluginConfiguration: DatePluginOptions | undefined;
|
|
15
15
|
dependencies: DatePluginDependencies;
|
|
16
16
|
sharedState: DatePluginSharedState;
|
|
17
17
|
commands: {
|
|
@@ -3,7 +3,7 @@ import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
|
3
3
|
import type { AnnotationPlugin } from '@atlaskit/editor-plugin-annotation';
|
|
4
4
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
5
5
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
6
|
-
import type {
|
|
6
|
+
import type { DatePluginOptions, DatePluginSharedState, DeleteDate, InsertDate } from './types';
|
|
7
7
|
export type DatePluginDependencies = [
|
|
8
8
|
typeof analyticsPlugin,
|
|
9
9
|
EditorDisabledPlugin,
|
|
@@ -11,7 +11,7 @@ export type DatePluginDependencies = [
|
|
|
11
11
|
OptionalPlugin<EditorViewModePlugin>
|
|
12
12
|
];
|
|
13
13
|
export type DatePlugin = NextEditorPlugin<'date', {
|
|
14
|
-
pluginConfiguration:
|
|
14
|
+
pluginConfiguration: DatePluginOptions | undefined;
|
|
15
15
|
dependencies: DatePluginDependencies;
|
|
16
16
|
sharedState: DatePluginSharedState;
|
|
17
17
|
commands: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@atlaskit/calendar": "^17.1.0",
|
|
38
38
|
"@atlaskit/css": "^0.10.0",
|
|
39
39
|
"@atlaskit/date": "^2.0.0",
|
|
40
|
-
"@atlaskit/editor-common": "^105.
|
|
41
|
-
"@atlaskit/editor-plugin-analytics": "^2.
|
|
40
|
+
"@atlaskit/editor-common": "^105.2.0",
|
|
41
|
+
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
42
42
|
"@atlaskit/editor-plugin-annotation": "^2.8.0",
|
|
43
43
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/textfield": "^8.0.0",
|
|
52
52
|
"@atlaskit/theme": "^18.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^4.21.0",
|
|
54
54
|
"@atlaskit/tokens": "^4.8.0",
|
|
55
55
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/editor-plugin-selection": "^2.2.0",
|
|
70
70
|
"@atlaskit/editor-plugin-table": "^10.9.0",
|
|
71
71
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^5.1.0",
|
|
72
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.
|
|
72
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.7.0",
|
|
73
73
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
74
74
|
"@testing-library/react": "^13.4.0"
|
|
75
75
|
},
|