@atlaskit/editor-plugin-caption 3.1.4 → 3.2.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,24 @@
1
1
  # @atlaskit/editor-plugin-caption
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`1b13c6ccd13e1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1b13c6ccd13e1) -
8
+ Debounced caption rendering
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 3.1.5
15
+
16
+ ### Patch Changes
17
+
18
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
19
+ Sorted type and interface props to improve Atlaskit docs
20
+ - Updated dependencies
21
+
3
22
  ## 3.1.4
4
23
 
5
24
  ### Patch Changes
@@ -21,9 +21,7 @@ var CaptionNodeView = exports.CaptionNodeView = /*#__PURE__*/function (_Selectio
21
21
  function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
22
22
  var _this;
23
23
  (0, _classCallCheck2.default)(this, CaptionNodeView);
24
- _this = _callSuper(this, CaptionNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate,
25
- // @portal-render-immediately
26
- true]);
24
+ _this = _callSuper(this, CaptionNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate]);
27
25
  (0, _defineProperty2.default)(_this, "selected", _this.insideSelection());
28
26
  _this.pluginInjectionApi = pluginInjectionApi;
29
27
  _this.handleEditorDisabledChanged();
@@ -4,9 +4,7 @@ import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-
4
4
  import { Caption } from '@atlaskit/editor-common/ui';
5
5
  export class CaptionNodeView extends SelectionBasedNodeView {
6
6
  constructor(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
7
- super(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate,
8
- // @portal-render-immediately
9
- true);
7
+ super(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate);
10
8
  _defineProperty(this, "selected", this.insideSelection());
11
9
  this.pluginInjectionApi = pluginInjectionApi;
12
10
  this.handleEditorDisabledChanged();
@@ -13,9 +13,7 @@ export var CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
13
13
  function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
14
14
  var _this;
15
15
  _classCallCheck(this, CaptionNodeView);
16
- _this = _callSuper(this, CaptionNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate,
17
- // @portal-render-immediately
18
- true]);
16
+ _this = _callSuper(this, CaptionNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate]);
19
17
  _defineProperty(_this, "selected", _this.insideSelection());
20
18
  _this.pluginInjectionApi = pluginInjectionApi;
21
19
  _this.handleEditorDisabledChanged();
@@ -17,8 +17,8 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
17
17
  dom: HTMLDivElement;
18
18
  };
19
19
  ignoreMutation(mutation: MutationRecord | {
20
- type: 'selection';
21
20
  target: Node;
21
+ type: 'selection';
22
22
  }): boolean;
23
23
  handleEditorDisabledChanged(): void;
24
24
  render(_props: never, forwardRef: ForwardRef): React.JSX.Element;
@@ -17,8 +17,8 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
17
17
  dom: HTMLDivElement;
18
18
  };
19
19
  ignoreMutation(mutation: MutationRecord | {
20
- type: 'selection';
21
20
  target: Node;
21
+ type: 'selection';
22
22
  }): boolean;
23
23
  handleEditorDisabledChanged(): void;
24
24
  render(_props: never, forwardRef: ForwardRef): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-caption",
3
- "version": "3.1.4",
3
+ "version": "3.2.0",
4
4
  "description": "Caption plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,18 +38,18 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@atlaskit/editor-plugin-copy-button": "^3.0.0",
41
- "@atlaskit/editor-plugin-decorations": "^3.0.0",
41
+ "@atlaskit/editor-plugin-decorations": "^3.1.0",
42
42
  "@atlaskit/editor-plugin-feature-flags": "^2.0.0",
43
- "@atlaskit/editor-plugin-floating-toolbar": "^5.1.0",
43
+ "@atlaskit/editor-plugin-floating-toolbar": "^5.2.0",
44
44
  "@atlaskit/editor-plugin-focus": "^2.0.0",
45
45
  "@atlaskit/editor-plugin-grid": "^3.1.0",
46
46
  "@atlaskit/editor-plugin-guideline": "^3.0.0",
47
- "@atlaskit/editor-plugin-selection": "^3.1.0",
47
+ "@atlaskit/editor-plugin-selection": "^3.2.0",
48
48
  "@atlaskit/editor-plugin-width": "^4.0.0",
49
- "@atlaskit/renderer": "^120.4.0"
49
+ "@atlaskit/renderer": "^120.5.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@atlaskit/editor-common": "^107.26.0",
52
+ "@atlaskit/editor-common": "^107.29.0",
53
53
  "react": "^18.2.0"
54
54
  },
55
55
  "techstack": {