@atlaskit/editor-plugin-placeholder 1.3.2 → 1.4.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,17 @@
1
1
  # @atlaskit/editor-plugin-placeholder
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
8
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
9
+ Update `React` from v16 to v18
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.3.2
4
16
 
5
17
  ### Patch Changes
@@ -57,9 +57,6 @@ function setPlaceHolderState(placeholderText, pos) {
57
57
  var emptyPlaceholder = {
58
58
  hasPlaceholder: false
59
59
  };
60
-
61
- // Ignored via go/ees005
62
- // eslint-disable-next-line @typescript-eslint/max-params
63
60
  function createPlaceHolderStateFrom(isEditorFocused, editorState, isTypeAheadOpen, defaultPlaceholderText, bracketPlaceholderText) {
64
61
  if (isTypeAheadOpen !== null && isTypeAheadOpen !== void 0 && isTypeAheadOpen(editorState)) {
65
62
  return emptyPlaceholder;
@@ -86,8 +83,6 @@ function createPlugin(defaultPlaceholderText, bracketPlaceholderText, api) {
86
83
  var _api$focus, _api$typeAhead;
87
84
  return createPlaceHolderStateFrom(Boolean(api === null || api === void 0 || (_api$focus = api.focus) === null || _api$focus === void 0 || (_api$focus = _api$focus.sharedState.currentState()) === null || _api$focus === void 0 ? void 0 : _api$focus.hasFocus), state, api === null || api === void 0 || (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 ? void 0 : _api$typeAhead.actions.isOpen, defaultPlaceholderText, bracketPlaceholderText);
88
85
  },
89
- // Ignored via go/ees005
90
- // eslint-disable-next-line @typescript-eslint/max-params
91
86
  apply: function apply(tr, _oldPluginState, _oldEditorState, newEditorState) {
92
87
  var _api$focus2, _api$typeAhead3;
93
88
  var meta = tr.getMeta(pluginKey);
@@ -48,9 +48,6 @@ function setPlaceHolderState(placeholderText, pos) {
48
48
  const emptyPlaceholder = {
49
49
  hasPlaceholder: false
50
50
  };
51
-
52
- // Ignored via go/ees005
53
- // eslint-disable-next-line @typescript-eslint/max-params
54
51
  function createPlaceHolderStateFrom(isEditorFocused, editorState, isTypeAheadOpen, defaultPlaceholderText, bracketPlaceholderText) {
55
52
  if (isTypeAheadOpen !== null && isTypeAheadOpen !== void 0 && isTypeAheadOpen(editorState)) {
56
53
  return emptyPlaceholder;
@@ -79,8 +76,6 @@ export function createPlugin(defaultPlaceholderText, bracketPlaceholderText, api
79
76
  var _api$focus, _api$focus$sharedStat, _api$typeAhead;
80
77
  return createPlaceHolderStateFrom(Boolean(api === null || api === void 0 ? void 0 : (_api$focus = api.focus) === null || _api$focus === void 0 ? void 0 : (_api$focus$sharedStat = _api$focus.sharedState.currentState()) === null || _api$focus$sharedStat === void 0 ? void 0 : _api$focus$sharedStat.hasFocus), state, api === null || api === void 0 ? void 0 : (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 ? void 0 : _api$typeAhead.actions.isOpen, defaultPlaceholderText, bracketPlaceholderText);
81
78
  },
82
- // Ignored via go/ees005
83
- // eslint-disable-next-line @typescript-eslint/max-params
84
79
  apply: (tr, _oldPluginState, _oldEditorState, newEditorState) => {
85
80
  var _api$focus2, _api$focus2$sharedSta, _api$typeAhead3;
86
81
  const meta = tr.getMeta(pluginKey);
@@ -49,9 +49,6 @@ function setPlaceHolderState(placeholderText, pos) {
49
49
  var emptyPlaceholder = {
50
50
  hasPlaceholder: false
51
51
  };
52
-
53
- // Ignored via go/ees005
54
- // eslint-disable-next-line @typescript-eslint/max-params
55
52
  function createPlaceHolderStateFrom(isEditorFocused, editorState, isTypeAheadOpen, defaultPlaceholderText, bracketPlaceholderText) {
56
53
  if (isTypeAheadOpen !== null && isTypeAheadOpen !== void 0 && isTypeAheadOpen(editorState)) {
57
54
  return emptyPlaceholder;
@@ -78,8 +75,6 @@ export function createPlugin(defaultPlaceholderText, bracketPlaceholderText, api
78
75
  var _api$focus, _api$typeAhead;
79
76
  return createPlaceHolderStateFrom(Boolean(api === null || api === void 0 || (_api$focus = api.focus) === null || _api$focus === void 0 || (_api$focus = _api$focus.sharedState.currentState()) === null || _api$focus === void 0 ? void 0 : _api$focus.hasFocus), state, api === null || api === void 0 || (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 ? void 0 : _api$typeAhead.actions.isOpen, defaultPlaceholderText, bracketPlaceholderText);
80
77
  },
81
- // Ignored via go/ees005
82
- // eslint-disable-next-line @typescript-eslint/max-params
83
78
  apply: function apply(tr, _oldPluginState, _oldEditorState, newEditorState) {
84
79
  var _api$focus2, _api$typeAhead3;
85
80
  var meta = tr.getMeta(pluginKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "Placeholder plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,10 +31,10 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^99.0.0",
34
+ "@atlaskit/editor-common": "^99.6.0",
35
35
  "@atlaskit/editor-plugin-composition": "^1.2.0",
36
36
  "@atlaskit/editor-plugin-focus": "^1.4.0",
37
- "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
37
+ "@atlaskit/editor-plugin-type-ahead": "^1.12.0",
38
38
  "@atlaskit/editor-prosemirror": "6.2.1",
39
39
  "@babel/runtime": "^7.0.0"
40
40
  },
@@ -43,7 +43,7 @@
43
43
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@testing-library/react": "^12.1.5",
46
+ "@testing-library/react": "^13.4.0",
47
47
  "typescript": "~5.4.2"
48
48
  },
49
49
  "techstack": {