@atlaskit/editor-plugin-date 24.0.9 → 25.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 +14 -0
- package/dist/cjs/datePlugin.js +1 -1
- package/dist/es2019/datePlugin.js +2 -2
- package/dist/esm/datePlugin.js +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 25.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`01a66c61973bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/01a66c61973bc) -
|
|
8
|
+
Remove lazy-loaded components from SSR bundle.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 25.0.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 24.0.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/datePlugin.js
CHANGED
|
@@ -38,7 +38,7 @@ var loadDatePicker = function loadDatePicker() {
|
|
|
38
38
|
return mod.default;
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
var DatePickerLazy = (0, _reactLooselyLazy.
|
|
41
|
+
var DatePickerLazy = (0, _reactLooselyLazy.lazy)(function () {
|
|
42
42
|
return Promise.resolve().then(function () {
|
|
43
43
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-datepicker" */'./ui/DatePicker'));
|
|
44
44
|
}).then(function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
4
|
-
import {
|
|
4
|
+
import { lazy, LazySuspense } from 'react-loosely-lazy';
|
|
5
5
|
import { date, dateWithLocalId } from '@atlaskit/adf-schema/date';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
@@ -21,7 +21,7 @@ import createDatePlugin from './pm-plugins/main';
|
|
|
21
21
|
import { pluginKey as datePluginKey } from './pm-plugins/plugin-key';
|
|
22
22
|
import { getDateQuickInsertComponents } from './ui/quick-insert/getDateQuickInsertComponents';
|
|
23
23
|
const loadDatePicker = () => import( /* webpackChunkName: "@atlaskit-internal_editor-datepicker" */'./ui/DatePicker').then(mod => mod.default);
|
|
24
|
-
const DatePickerLazy =
|
|
24
|
+
const DatePickerLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-datepicker" */'./ui/DatePicker').then(mod => mod.default));
|
|
25
25
|
const DatePickerLoadable = Loadable({
|
|
26
26
|
loader: loadDatePicker,
|
|
27
27
|
loading: () => null
|
package/dist/esm/datePlugin.js
CHANGED
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Loadable from 'react-loadable';
|
|
6
6
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
7
|
-
import {
|
|
7
|
+
import { lazy, LazySuspense } from 'react-loosely-lazy';
|
|
8
8
|
import { date, dateWithLocalId } from '@atlaskit/adf-schema/date';
|
|
9
9
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
@@ -28,7 +28,7 @@ var loadDatePicker = function loadDatePicker() {
|
|
|
28
28
|
return mod.default;
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
var DatePickerLazy =
|
|
31
|
+
var DatePickerLazy = lazy(function () {
|
|
32
32
|
return import( /* webpackChunkName: "@atlaskit-internal_editor-datepicker" */'./ui/DatePicker').then(function (mod) {
|
|
33
33
|
return mod.default;
|
|
34
34
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.1",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.6.0",
|
|
25
25
|
"@atlaskit/calendar": "^19.3.0",
|
|
26
26
|
"@atlaskit/css": "^1.1.0",
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
28
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
29
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
30
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
31
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "^23.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-annotation": "^23.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-editor-disabled": "^23.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^25.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^17.0.0",
|
|
32
32
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
33
33
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
34
34
|
"@atlaskit/editor-ui-control-model": "^2.10.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
40
40
|
"@atlaskit/textfield": "^10.2.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^220.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^20.1.0",
|
|
43
43
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react-intl": "^7.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@atlaskit/editor-common": "^
|
|
57
|
+
"@atlaskit/editor-common": "^127.2.0",
|
|
58
58
|
"react": "^18.2.0 || ^19.2.0",
|
|
59
59
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
60
60
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|