@atlaskit/editor-plugin-find-replace 0.1.0 → 0.1.2

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-find-replace
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
3
15
  ## 0.1.0
4
16
 
5
17
  ### Minor Changes
@@ -20,12 +20,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
20
20
  // between editor & findreplace dialog.
21
21
  // To address under ENGHEALTH-5853
22
22
  var useSharedPluginStateNoDebounce = function useSharedPluginStateNoDebounce(api) {
23
- var _useState = (0, _react.useState)(api === null || api === void 0 ? void 0 : api.findReplace.sharedState.currentState()),
23
+ var _api$findReplace;
24
+ var _useState = (0, _react.useState)(api === null || api === void 0 || (_api$findReplace = api.findReplace) === null || _api$findReplace === void 0 ? void 0 : _api$findReplace.sharedState.currentState()),
24
25
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
25
26
  state = _useState2[0],
26
27
  setState = _useState2[1];
27
28
  (0, _react.useLayoutEffect)(function () {
28
- var unsub = api === null || api === void 0 ? void 0 : api.findReplace.sharedState.onChange(function (_ref) {
29
+ var _api$findReplace2;
30
+ var unsub = api === null || api === void 0 || (_api$findReplace2 = api.findReplace) === null || _api$findReplace2 === void 0 ? void 0 : _api$findReplace2.sharedState.onChange(function (_ref) {
29
31
  var nextSharedState = _ref.nextSharedState;
30
32
  setState(nextSharedState);
31
33
  });
@@ -10,9 +10,11 @@ import FindReplaceToolbarButton from './ui/FindReplaceToolbarButton';
10
10
  // between editor & findreplace dialog.
11
11
  // To address under ENGHEALTH-5853
12
12
  const useSharedPluginStateNoDebounce = api => {
13
- const [state, setState] = useState(api === null || api === void 0 ? void 0 : api.findReplace.sharedState.currentState());
13
+ var _api$findReplace;
14
+ const [state, setState] = useState(api === null || api === void 0 ? void 0 : (_api$findReplace = api.findReplace) === null || _api$findReplace === void 0 ? void 0 : _api$findReplace.sharedState.currentState());
14
15
  useLayoutEffect(() => {
15
- const unsub = api === null || api === void 0 ? void 0 : api.findReplace.sharedState.onChange(({
16
+ var _api$findReplace2;
17
+ const unsub = api === null || api === void 0 ? void 0 : (_api$findReplace2 = api.findReplace) === null || _api$findReplace2 === void 0 ? void 0 : _api$findReplace2.sharedState.onChange(({
16
18
  nextSharedState
17
19
  }) => {
18
20
  setState(nextSharedState);
@@ -11,12 +11,14 @@ import FindReplaceToolbarButton from './ui/FindReplaceToolbarButton';
11
11
  // between editor & findreplace dialog.
12
12
  // To address under ENGHEALTH-5853
13
13
  var useSharedPluginStateNoDebounce = function useSharedPluginStateNoDebounce(api) {
14
- var _useState = useState(api === null || api === void 0 ? void 0 : api.findReplace.sharedState.currentState()),
14
+ var _api$findReplace;
15
+ var _useState = useState(api === null || api === void 0 || (_api$findReplace = api.findReplace) === null || _api$findReplace === void 0 ? void 0 : _api$findReplace.sharedState.currentState()),
15
16
  _useState2 = _slicedToArray(_useState, 2),
16
17
  state = _useState2[0],
17
18
  setState = _useState2[1];
18
19
  useLayoutEffect(function () {
19
- var unsub = api === null || api === void 0 ? void 0 : api.findReplace.sharedState.onChange(function (_ref) {
20
+ var _api$findReplace2;
21
+ var unsub = api === null || api === void 0 || (_api$findReplace2 = api.findReplace) === null || _api$findReplace2 === void 0 ? void 0 : _api$findReplace2.sharedState.onChange(function (_ref) {
20
22
  var nextSharedState = _ref.nextSharedState;
21
23
  setState(nextSharedState);
22
24
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -12,7 +12,7 @@
12
12
  "inPublicMirror": false,
13
13
  "releaseModel": "continuous"
14
14
  },
15
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
15
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
16
16
  "main": "dist/cjs/index.js",
17
17
  "module": "dist/esm/index.js",
18
18
  "module:es2019": "dist/es2019/index.js",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@atlaskit/button": "^17.2.0",
38
- "@atlaskit/editor-common": "^76.39.0",
38
+ "@atlaskit/editor-common": "^77.0.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
41
41
  "@atlaskit/editor-prosemirror": "1.1.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/platform-feature-flags": "^0.2.0",
45
45
  "@atlaskit/textfield": "^6.0.0",
46
46
  "@atlaskit/theme": "^12.6.0",
47
- "@atlaskit/tokens": "^1.33.0",
47
+ "@atlaskit/tokens": "^1.34.0",
48
48
  "@atlaskit/tooltip": "^18.1.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
@@ -54,7 +54,7 @@
54
54
  "devDependencies": {
55
55
  "@atlaskit/editor-plugin-block-type": "^3.0.0",
56
56
  "@atlaskit/editor-plugin-text-formatting": "^0.4.0",
57
- "@atlaskit/primitives": "^1.17.0",
57
+ "@atlaskit/primitives": "^1.18.0",
58
58
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
59
59
  "@testing-library/react": "^12.1.5",
60
60
  "@testing-library/user-event": "^14.4.3",