@atlaskit/editor-plugin-date 10.0.32 → 11.0.0
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,33 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 11.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b10c935ca9497`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b10c935ca9497) -
|
|
8
|
+
Removed deprecated `browser` singleton from editor-common. This has been replaced with a
|
|
9
|
+
`getBrowserInfo` function that returns the same information. This change was made to avoid issues
|
|
10
|
+
with module loading order and to provide a more consistent API for accessing browser information.
|
|
11
|
+
|
|
12
|
+
Please update any imports of `browser` to use `getBrowserInfo` instead. For example, the following
|
|
13
|
+
imports have been removed:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import { browser } from '@atlaskit/editor-common/utils';
|
|
17
|
+
import { browser } from '@atlaskit/editor-common/browser';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Instead, please use:
|
|
21
|
+
|
|
22
|
+
```javascript
|
|
23
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
If you were previously using `browser.ie_version`, you would now use
|
|
27
|
+
`getBrowserInfo().ie_version`.
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 10.0.32
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.dateToDOM = exports.dateNodeSpec = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
+
var _browser = require("@atlaskit/editor-common/browser");
|
|
10
11
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
12
13
|
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
@@ -75,7 +76,7 @@ var dateToDOM = exports.dateToDOM = function dateToDOM(node, state, getPos, intl
|
|
|
75
76
|
class: 'zeroWidthSpaceContainer'
|
|
76
77
|
}, ['span', {
|
|
77
78
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
78
|
-
}, _whitespace.ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]],
|
|
79
|
+
}, _whitespace.ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], (0, _browser.getBrowserInfo)().android ? ['span', {
|
|
79
80
|
class: 'zeroWidthSpaceContainer',
|
|
80
81
|
contentEditable: 'false'
|
|
81
82
|
}, ['span', {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createIntl } from 'react-intl-next';
|
|
2
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
2
3
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
-
import {
|
|
4
|
+
import { timestampToString } from '@atlaskit/editor-common/utils';
|
|
4
5
|
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
5
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -66,7 +67,7 @@ export const dateToDOM = (node, state, getPos, intl) => {
|
|
|
66
67
|
class: 'zeroWidthSpaceContainer'
|
|
67
68
|
}, ['span', {
|
|
68
69
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
69
|
-
}, ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]],
|
|
70
|
+
}, ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], getBrowserInfo().android ? ['span', {
|
|
70
71
|
class: 'zeroWidthSpaceContainer',
|
|
71
72
|
contentEditable: 'false'
|
|
72
73
|
}, ['span', {
|
|
@@ -2,8 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { createIntl } from 'react-intl-next';
|
|
5
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
5
6
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
|
-
import {
|
|
7
|
+
import { timestampToString } from '@atlaskit/editor-common/utils';
|
|
7
8
|
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -68,7 +69,7 @@ export var dateToDOM = function dateToDOM(node, state, getPos, intl) {
|
|
|
68
69
|
class: 'zeroWidthSpaceContainer'
|
|
69
70
|
}, ['span', {
|
|
70
71
|
class: 'inlineNodeViewAddZeroWidthSpace'
|
|
71
|
-
}, ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]],
|
|
72
|
+
}, ZERO_WIDTH_SPACE]], ['span', wrapperAttrs, ['span', attrs, displayString]], getBrowserInfo().android ? ['span', {
|
|
72
73
|
class: 'zeroWidthSpaceContainer',
|
|
73
74
|
contentEditable: 'false'
|
|
74
75
|
}, ['span', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^52.
|
|
32
|
+
"@atlaskit/adf-schema": "^52.5.0",
|
|
33
33
|
"@atlaskit/calendar": "^17.2.0",
|
|
34
34
|
"@atlaskit/css": "^0.19.0",
|
|
35
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
36
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
37
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
38
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^9.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-annotation": "^9.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-editor-disabled": "^9.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^11.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
41
41
|
"@atlaskit/form": "^15.5.0",
|
|
42
|
-
"@atlaskit/icon": "^34.
|
|
43
|
-
"@atlaskit/locale": "^4.
|
|
42
|
+
"@atlaskit/icon": "^34.2.0",
|
|
43
|
+
"@atlaskit/locale": "^4.1.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.3.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^62.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^62.4.0",
|
|
47
47
|
"@atlaskit/tokens": "^13.0.0",
|
|
48
48
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@testing-library/react": "^16.3.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^
|
|
59
|
+
"@atlaskit/editor-common": "^113.0.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0"
|
|
62
62
|
},
|