@atlaskit/editor-plugin-date 4.3.3 → 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 CHANGED
@@ -1,5 +1,20 @@
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
+
12
+ ## 4.3.4
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 4.3.3
4
19
 
5
20
  ### 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
- }, _whitespace.ZERO_WIDTH_SPACE]];
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
- }, ZERO_WIDTH_SPACE]];
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
- }, ZERO_WIDTH_SPACE]];
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 { DatePluginConfig, DatePluginSharedState, DeleteDate, InsertDate } from './types';
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: DatePluginConfig | undefined;
14
+ pluginConfiguration: DatePluginOptions | undefined;
15
15
  dependencies: DatePluginDependencies;
16
16
  sharedState: DatePluginSharedState;
17
17
  commands: {
@@ -20,4 +20,9 @@ export declare const dateToDOM: (node: PMNode, state: EditorState, getPos: getPo
20
20
  class: string;
21
21
  })[])[], (string | {
22
22
  class: string;
23
+ contentEditable: string;
24
+ } | (string | {
25
+ class: string;
26
+ })[])[] | (string | {
27
+ class: string;
23
28
  })[]];
@@ -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 { DatePluginConfig, DatePluginSharedState, DeleteDate, InsertDate } from './types';
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: DatePluginConfig | undefined;
14
+ pluginConfiguration: DatePluginOptions | undefined;
15
15
  dependencies: DatePluginDependencies;
16
16
  sharedState: DatePluginSharedState;
17
17
  commands: {
@@ -25,5 +25,10 @@ export declare const dateToDOM: (node: PMNode, state: EditorState, getPos: getPo
25
25
  })[])[],
26
26
  (string | {
27
27
  class: string;
28
+ contentEditable: string;
29
+ } | (string | {
30
+ class: string;
31
+ })[])[] | (string | {
32
+ class: string;
28
33
  })[]
29
34
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "4.3.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,9 +37,9 @@
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": "^104.1.0",
41
- "@atlaskit/editor-plugin-analytics": "^2.2.0",
42
- "@atlaskit/editor-plugin-annotation": "^2.7.0",
40
+ "@atlaskit/editor-common": "^105.2.0",
41
+ "@atlaskit/editor-plugin-analytics": "^2.3.0",
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",
45
45
  "@atlaskit/editor-prosemirror": "7.0.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.19.0",
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",
@@ -65,11 +65,11 @@
65
65
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
66
66
  "@atlaskit/editor-plugin-feature-flags": "^1.4.0",
67
67
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
68
- "@atlaskit/editor-plugin-quick-insert": "^2.4.0",
68
+ "@atlaskit/editor-plugin-quick-insert": "^2.5.0",
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.6.0",
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
  },