@atlaskit/editor-plugin-date 0.2.17 → 0.2.19

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,18 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 0.2.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238) [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) - [ED-21835] Change EditorAPI type to always union with undefined
8
+
9
+ ## 0.2.18
10
+
11
+ ### Patch Changes
12
+
13
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031) [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) - ED-21609 Update adf-schema to 35.3.0
14
+ - Updated dependencies
15
+
3
16
  ## 0.2.17
4
17
 
5
18
  ### Patch Changes
@@ -62,22 +62,25 @@ function ContentComponent(_ref) {
62
62
  isNew: isNew,
63
63
  autoFocus: focusDateInput,
64
64
  onDelete: function onDelete() {
65
- dependencyApi === null || dependencyApi === void 0 || dependencyApi.core.actions.execute((0, _commands.deleteDateCommand)(dependencyApi));
65
+ var _dependencyApi$core;
66
+ dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 || _dependencyApi$core.actions.execute((0, _commands.deleteDateCommand)(dependencyApi));
66
67
  editorView.focus();
67
68
  },
68
69
  onSelect: function onSelect(date, commitMethod) {
70
+ var _dependencyApi$core2;
69
71
  // Undefined means couldn't parse date, null means invalid (out of bounds) date
70
72
  if (date === undefined || date === null) {
71
73
  return;
72
74
  }
73
- dependencyApi === null || dependencyApi === void 0 || dependencyApi.core.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
75
+ dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 || _dependencyApi$core2.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
74
76
  date: date,
75
77
  commitMethod: commitMethod
76
78
  }));
77
79
  editorView.focus();
78
80
  },
79
81
  onTextChanged: function onTextChanged(date) {
80
- dependencyApi === null || dependencyApi === void 0 || dependencyApi.core.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
82
+ var _dependencyApi$core3;
83
+ dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 || _dependencyApi$core3.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
81
84
  date: date,
82
85
  enterPressed: false
83
86
  }));
@@ -50,22 +50,25 @@ function ContentComponent({
50
50
  isNew: isNew,
51
51
  autoFocus: focusDateInput,
52
52
  onDelete: () => {
53
- dependencyApi === null || dependencyApi === void 0 ? void 0 : dependencyApi.core.actions.execute(deleteDateCommand(dependencyApi));
53
+ var _dependencyApi$core;
54
+ dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 ? void 0 : _dependencyApi$core.actions.execute(deleteDateCommand(dependencyApi));
54
55
  editorView.focus();
55
56
  },
56
57
  onSelect: (date, commitMethod) => {
58
+ var _dependencyApi$core2;
57
59
  // Undefined means couldn't parse date, null means invalid (out of bounds) date
58
60
  if (date === undefined || date === null) {
59
61
  return;
60
62
  }
61
- dependencyApi === null || dependencyApi === void 0 ? void 0 : dependencyApi.core.actions.execute(insertDateCommand(dependencyApi)({
63
+ dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 ? void 0 : _dependencyApi$core2.actions.execute(insertDateCommand(dependencyApi)({
62
64
  date,
63
65
  commitMethod
64
66
  }));
65
67
  editorView.focus();
66
68
  },
67
69
  onTextChanged: date => {
68
- dependencyApi === null || dependencyApi === void 0 ? void 0 : dependencyApi.core.actions.execute(insertDateCommand(dependencyApi)({
70
+ var _dependencyApi$core3;
71
+ dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 ? void 0 : _dependencyApi$core3.actions.execute(insertDateCommand(dependencyApi)({
69
72
  date,
70
73
  enterPressed: false
71
74
  }));
@@ -50,22 +50,25 @@ function ContentComponent(_ref) {
50
50
  isNew: isNew,
51
51
  autoFocus: focusDateInput,
52
52
  onDelete: function onDelete() {
53
- dependencyApi === null || dependencyApi === void 0 || dependencyApi.core.actions.execute(deleteDateCommand(dependencyApi));
53
+ var _dependencyApi$core;
54
+ dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 || _dependencyApi$core.actions.execute(deleteDateCommand(dependencyApi));
54
55
  editorView.focus();
55
56
  },
56
57
  onSelect: function onSelect(date, commitMethod) {
58
+ var _dependencyApi$core2;
57
59
  // Undefined means couldn't parse date, null means invalid (out of bounds) date
58
60
  if (date === undefined || date === null) {
59
61
  return;
60
62
  }
61
- dependencyApi === null || dependencyApi === void 0 || dependencyApi.core.actions.execute(insertDateCommand(dependencyApi)({
63
+ dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 || _dependencyApi$core2.actions.execute(insertDateCommand(dependencyApi)({
62
64
  date: date,
63
65
  commitMethod: commitMethod
64
66
  }));
65
67
  editorView.focus();
66
68
  },
67
69
  onTextChanged: function onTextChanged(date) {
68
- dependencyApi === null || dependencyApi === void 0 || dependencyApi.core.actions.execute(insertDateCommand(dependencyApi)({
70
+ var _dependencyApi$core3;
71
+ dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 || _dependencyApi$core3.actions.execute(insertDateCommand(dependencyApi)({
69
72
  date: date,
70
73
  enterPressed: false
71
74
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "Date plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -10,9 +10,10 @@
10
10
  "atlassian": {
11
11
  "team": "Editor: AI",
12
12
  "singleton": true,
13
- "releaseModel": "continuous"
13
+ "releaseModel": "continuous",
14
+ "runReact18": false
14
15
  },
15
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
16
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
16
17
  "main": "dist/cjs/index.js",
17
18
  "module": "dist/esm/index.js",
18
19
  "module:es2019": "dist/es2019/index.js",
@@ -31,19 +32,19 @@
31
32
  ".": "./src/index.ts"
32
33
  },
33
34
  "dependencies": {
34
- "@atlaskit/adf-schema": "^35.2.0",
35
+ "@atlaskit/adf-schema": "^35.3.0",
35
36
  "@atlaskit/calendar": "^14.0.3",
36
37
  "@atlaskit/date": "^0.10.0",
37
- "@atlaskit/editor-common": "^76.27.0",
38
+ "@atlaskit/editor-common": "^76.39.0",
38
39
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
39
40
  "@atlaskit/editor-plugin-editor-disabled": "^0.2.0",
40
41
  "@atlaskit/editor-prosemirror": "1.1.0",
41
- "@atlaskit/editor-shared-styles": "^2.8.0",
42
+ "@atlaskit/editor-shared-styles": "^2.9.0",
42
43
  "@atlaskit/form": "^9.0.3",
43
44
  "@atlaskit/locale": "^2.6.0",
44
45
  "@atlaskit/textfield": "6.0.0",
45
46
  "@atlaskit/theme": "^12.6.0",
46
- "@atlaskit/tokens": "^1.30.0",
47
+ "@atlaskit/tokens": "^1.33.0",
47
48
  "@babel/runtime": "^7.0.0",
48
49
  "@emotion/react": "^11.7.1",
49
50
  "date-fns": "^2.17.0",
@@ -58,10 +59,10 @@
58
59
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
59
60
  "@atlaskit/editor-plugin-guideline": "^0.5.0",
60
61
  "@atlaskit/editor-plugin-quick-insert": "^0.2.0",
61
- "@atlaskit/editor-plugin-selection": "^0.1.0",
62
- "@atlaskit/editor-plugin-table": "^5.6.0",
62
+ "@atlaskit/editor-plugin-selection": "^0.2.0",
63
+ "@atlaskit/editor-plugin-table": "^5.8.0",
63
64
  "@atlaskit/editor-plugin-tasks-and-decisions": "^0.2.0",
64
- "@atlaskit/editor-plugin-type-ahead": "^0.8.0",
65
+ "@atlaskit/editor-plugin-type-ahead": "^0.9.0",
65
66
  "@atlaskit/editor-plugin-width": "^0.2.0",
66
67
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
67
68
  "@testing-library/react": "^12.1.5"