@atlaskit/editor-plugin-caption 1.1.3 → 1.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,198 +1,274 @@
1
1
  # @atlaskit/editor-plugin-caption
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#95168](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95168)
8
+ [`2091e194a817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2091e194a817) -
9
+ Introduced new PortalProviderAPI behind a FF
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 1.1.4
16
+
17
+ ### Patch Changes
18
+
19
+ - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
20
+ [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
21
+ [ED-23102] Bump ADF schema to version 35.12.2
22
+
3
23
  ## 1.1.3
4
24
 
5
25
  ### Patch Changes
6
26
 
7
- - [#94413](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94413) [`6fa79788f5a8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6fa79788f5a8) - Disallow editing of Media caption in live view mode
27
+ - [#94413](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94413)
28
+ [`6fa79788f5a8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6fa79788f5a8) -
29
+ Disallow editing of Media caption in live view mode
8
30
 
9
31
  ## 1.1.2
10
32
 
11
33
  ### Patch Changes
12
34
 
13
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901) [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) - [ED-23097] Bump ADF schema to version 35.12.1
35
+ - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
36
+ [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
37
+ [ED-23097] Bump ADF schema to version 35.12.1
14
38
 
15
39
  ## 1.1.1
16
40
 
17
41
  ### Patch Changes
18
42
 
19
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689) [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) - Updating adf-schema version to 35.10.0
43
+ - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
44
+ [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
45
+ Updating adf-schema version to 35.10.0
20
46
 
21
47
  ## 1.1.0
22
48
 
23
49
  ### Minor Changes
24
50
 
25
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934) [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) - bumped editor-prosemirror version to 4.0.0
51
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
52
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
53
+ bumped editor-prosemirror version to 4.0.0
26
54
 
27
55
  ### Patch Changes
28
56
 
29
- - Updated dependencies
57
+ - Updated dependencies
30
58
 
31
59
  ## 1.0.7
32
60
 
33
61
  ### Patch Changes
34
62
 
35
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426) [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) - Bump adf-schema to 35.9.2 to support table alignment options
63
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
64
+ [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
65
+ Bump adf-schema to 35.9.2 to support table alignment options
36
66
 
37
67
  ## 1.0.6
38
68
 
39
69
  ### Patch Changes
40
70
 
41
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106) [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) - Bump ADF-schema package to version 35.0.0
42
- - Updated dependencies
71
+ - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
72
+ [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
73
+ Bump ADF-schema package to version 35.0.0
74
+ - Updated dependencies
43
75
 
44
76
  ## 1.0.5
45
77
 
46
78
  ### Patch Changes
47
79
 
48
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724) [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) - [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from 35.7.0 to 35.8.0
80
+ - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
81
+ [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
82
+ [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
83
+ 35.7.0 to 35.8.0
49
84
 
50
85
  ## 1.0.4
51
86
 
52
87
  ### Patch Changes
53
88
 
54
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777) [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) - Bump adf-schema to 35.7.0
89
+ - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
90
+ [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
91
+ Bump adf-schema to 35.7.0
55
92
 
56
93
  ## 1.0.3
57
94
 
58
95
  ### Patch Changes
59
96
 
60
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679) [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) - ED-22553 Updating adf-schema version to 35.6.0
97
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
98
+ [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
99
+ ED-22553 Updating adf-schema version to 35.6.0
61
100
 
62
101
  ## 1.0.2
63
102
 
64
103
  ### Patch Changes
65
104
 
66
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224) [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) - ED-22219: adf-schema updated to 35.5.2
67
- - Updated dependencies
105
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
106
+ [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
107
+ ED-22219: adf-schema updated to 35.5.2
108
+ - Updated dependencies
68
109
 
69
110
  ## 1.0.1
70
111
 
71
112
  ### Patch Changes
72
113
 
73
- - Updated dependencies
114
+ - Updated dependencies
74
115
 
75
116
  ## 1.0.0
76
117
 
77
118
  ### Major Changes
78
119
 
79
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386) [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) - This changeset exists to bump all editor plugins that currently don't have a major version. This is to address an issue with Jira plugin consumption.
120
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
121
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
122
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
123
+ is to address an issue with Jira plugin consumption.
80
124
 
81
125
  ### Patch Changes
82
126
 
83
- - Updated dependencies
127
+ - Updated dependencies
84
128
 
85
129
  ## 0.2.16
86
130
 
87
131
  ### Patch Changes
88
132
 
89
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
133
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
134
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
135
+ Upgrading @atlaskit/editor-prosemirror dependency
90
136
 
91
137
  ## 0.2.15
92
138
 
93
139
  ### Patch Changes
94
140
 
95
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152) [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) - Updating adf-schema version to 35.5.1
141
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
142
+ [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
143
+ Updating adf-schema version to 35.5.1
96
144
 
97
145
  ## 0.2.14
98
146
 
99
147
  ### Patch Changes
100
148
 
101
- - Updated dependencies
149
+ - Updated dependencies
102
150
 
103
151
  ## 0.2.13
104
152
 
105
153
  ### Patch Changes
106
154
 
107
- - [#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
108
- - Updated dependencies
155
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
156
+ [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
157
+ ED-21609 Update adf-schema to 35.3.0
158
+ - Updated dependencies
109
159
 
110
160
  ## 0.2.12
111
161
 
112
162
  ### Patch Changes
113
163
 
114
- - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165) [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) - [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
164
+ - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
165
+ [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
166
+ [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
115
167
 
116
168
  ## 0.2.11
117
169
 
118
170
  ### Patch Changes
119
171
 
120
- - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808) [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) - ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
172
+ - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
173
+ [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
174
+ ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
121
175
 
122
176
  ## 0.2.10
123
177
 
124
178
  ### Patch Changes
125
179
 
126
- - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246) [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) - ED-21371 Update adf-schema to 35.1.0
180
+ - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
181
+ [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
182
+ ED-21371 Update adf-schema to 35.1.0
127
183
 
128
184
  ## 0.2.9
129
185
 
130
186
  ### Patch Changes
131
187
 
132
- - Updated dependencies
188
+ - Updated dependencies
133
189
 
134
190
  ## 0.2.8
135
191
 
136
192
  ### Patch Changes
137
193
 
138
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
194
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
195
+ [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
196
+ Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
139
197
 
140
198
  ## 0.2.7
141
199
 
142
200
  ### Patch Changes
143
201
 
144
- - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763) [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) - update ADF schema
202
+ - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
203
+ [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
204
+ update ADF schema
145
205
 
146
206
  ## 0.2.6
147
207
 
148
208
  ### Patch Changes
149
209
 
150
- - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790) [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) - ED-21266: Updated @atlaskit/adf-schema to 34.0.1
210
+ - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
211
+ [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
212
+ ED-21266: Updated @atlaskit/adf-schema to 34.0.1
151
213
 
152
214
  ## 0.2.5
153
215
 
154
216
  ### Patch Changes
155
217
 
156
- - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417) [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971 Upgrade adf-schema package to ^34.0.0
218
+ - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
219
+ [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
220
+ ED-20971 Upgrade adf-schema package to ^34.0.0
157
221
 
158
222
  ## 0.2.4
159
223
 
160
224
  ### Patch Changes
161
225
 
162
- - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379) [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
163
- - Updated dependencies
226
+ - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
227
+ [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) -
228
+ ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
229
+ - Updated dependencies
164
230
 
165
231
  ## 0.2.3
166
232
 
167
233
  ### Patch Changes
168
234
 
169
- - Updated dependencies
235
+ - Updated dependencies
170
236
 
171
237
  ## 0.2.2
172
238
 
173
239
  ### Patch Changes
174
240
 
175
- - [#41343](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41343) [`243143e8007`](https://bitbucket.org/atlassian/atlassian-frontend/commits/243143e8007) - Improved media single performance by preventing unnecessary updates to collab service on every component update
241
+ - [#41343](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41343)
242
+ [`243143e8007`](https://bitbucket.org/atlassian/atlassian-frontend/commits/243143e8007) -
243
+ Improved media single performance by preventing unnecessary updates to collab service on every
244
+ component update
176
245
 
177
246
  ## 0.2.1
178
247
 
179
248
  ### Patch Changes
180
249
 
181
- - [#40750](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40750) [`fc19a7b9edd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc19a7b9edd) - [ED-19875] Extraction of Editor Core's Selection Plugin into independent package '@atlaskit/editor-plugin-selection'.
182
- - Updated dependencies
250
+ - [#40750](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40750)
251
+ [`fc19a7b9edd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc19a7b9edd) -
252
+ [ED-19875] Extraction of Editor Core's Selection Plugin into independent package
253
+ '@atlaskit/editor-plugin-selection'.
254
+ - Updated dependencies
183
255
 
184
256
  ## 0.2.0
185
257
 
186
258
  ### Minor Changes
187
259
 
188
- - [#41239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41239) [`7d70b962986`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d70b962986) - Extract Caption Plugin from Editor Core
260
+ - [#41239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41239)
261
+ [`7d70b962986`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d70b962986) -
262
+ Extract Caption Plugin from Editor Core
189
263
 
190
264
  ## 0.1.0
191
265
 
192
266
  ### Minor Changes
193
267
 
194
- - [#41217](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41217) [`288b7a988c7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/288b7a988c7) - Caption Plugin Scaffolding
268
+ - [#41217](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41217)
269
+ [`288b7a988c7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/288b7a988c7) -
270
+ Caption Plugin Scaffolding
195
271
 
196
272
  ### Patch Changes
197
273
 
198
- - Updated dependencies
274
+ - Updated dependencies
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
3
+ import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
4
4
  import type { ForwardRef, ReactComponentProps, shouldUpdate } from '@atlaskit/editor-common/react-node-view';
5
5
  import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
6
+ import { type PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
6
7
  import type { ExtractInjectionAPI, getPosHandler } from '@atlaskit/editor-common/types';
7
8
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
8
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -11,7 +12,7 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
11
12
  private selected;
12
13
  private cleanupEditorDisabledListener?;
13
14
  pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>;
14
- constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>);
15
+ constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>);
15
16
  createDomRef(): HTMLElement;
16
17
  getContentDOM(): {
17
18
  dom: HTMLDivElement;
@@ -21,4 +22,4 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
21
22
  viewShouldUpdate(nextNode: PMNode): boolean;
22
23
  destroy(): void;
23
24
  }
24
- export default function captionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
25
+ export default function captionNodeView(portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
@@ -1,8 +1,9 @@
1
1
  import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
2
+ import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
3
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
+ import { type PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
5
6
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
7
  import type { CaptionPlugin } from '../types';
7
- declare const _default: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
8
+ declare const _default: (portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
8
9
  export default _default;
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
3
+ import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
4
4
  import type { ForwardRef, ReactComponentProps, shouldUpdate } from '@atlaskit/editor-common/react-node-view';
5
5
  import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
6
+ import { type PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
6
7
  import type { ExtractInjectionAPI, getPosHandler } from '@atlaskit/editor-common/types';
7
8
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
8
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -11,7 +12,7 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
11
12
  private selected;
12
13
  private cleanupEditorDisabledListener?;
13
14
  pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>;
14
- constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>);
15
+ constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>);
15
16
  createDomRef(): HTMLElement;
16
17
  getContentDOM(): {
17
18
  dom: HTMLDivElement;
@@ -21,4 +22,4 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
21
22
  viewShouldUpdate(nextNode: PMNode): boolean;
22
23
  destroy(): void;
23
24
  }
24
- export default function captionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
25
+ export default function captionNodeView(portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
@@ -1,8 +1,9 @@
1
1
  import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
2
+ import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
3
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
+ import { type PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
5
6
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
7
  import type { CaptionPlugin } from '../types';
7
- declare const _default: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
8
+ declare const _default: (portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
8
9
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-caption",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "Caption plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,8 +32,8 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^35.12.1",
36
- "@atlaskit/editor-common": "^78.36.0",
35
+ "@atlaskit/adf-schema": "^35.12.2",
36
+ "@atlaskit/editor-common": "^79.0.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.1.0",
38
38
  "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
39
39
  "@atlaskit/editor-prosemirror": "4.0.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/editor-plugin-guideline": "^1.1.0",
51
51
  "@atlaskit/editor-plugin-selection": "^1.2.0",
52
52
  "@atlaskit/editor-plugin-width": "^1.1.0",
53
- "@atlaskit/renderer": "^109.22.0",
53
+ "@atlaskit/renderer": "^109.24.0",
54
54
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0"
55
55
  },
56
56
  "peerDependencies": {