@atlaskit/editor-plugin-caption 0.2.1 → 0.2.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,11 @@
1
1
  # @atlaskit/editor-plugin-caption
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
3
9
  ## 0.2.1
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,2 @@
1
+ export type { CaptionPlugin } from './types';
2
+ export { default as captionPlugin } from './plugin';
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
4
+ import type { ForwardRef } from '@atlaskit/editor-common/react-node-view';
5
+ import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
6
+ import type { ExtractInjectionAPI, getPosHandler } from '@atlaskit/editor-common/types';
7
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
8
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
+ import type { CaptionPlugin } from '../types';
10
+ export declare class CaptionNodeView extends SelectionBasedNodeView {
11
+ private selected;
12
+ createDomRef(): HTMLElement;
13
+ getContentDOM(): {
14
+ dom: HTMLDivElement;
15
+ };
16
+ render(_props: never, forwardRef: ForwardRef): JSX.Element;
17
+ viewShouldUpdate(nextNode: PMNode): boolean;
18
+ }
19
+ export default function captionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
@@ -0,0 +1,3 @@
1
+ import type { CaptionPlugin } from './types';
2
+ declare const captionPlugin: CaptionPlugin;
3
+ export default captionPlugin;
@@ -0,0 +1,2 @@
1
+ import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
+ export declare function captionKeymap(): SafePlugin;
@@ -0,0 +1,8 @@
1
+ import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
2
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
3
+ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
+ import type { CaptionPlugin } from '../types';
7
+ declare const _default: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
+ export declare const pluginKey: PluginKey<any>;
@@ -0,0 +1,7 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
+ export type CaptionPlugin = NextEditorPlugin<'caption', {
4
+ dependencies: [
5
+ typeof analyticsPlugin
6
+ ];
7
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-caption",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Caption plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^32.0.0",
35
- "@atlaskit/editor-common": "^76.8.0",
35
+ "@atlaskit/editor-common": "^76.10.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^0.2.0",
37
37
  "@atlaskit/editor-prosemirror": "1.1.0",
38
38
  "@babel/runtime": "^7.0.0"
@@ -0,0 +1,20 @@
1
+ ## API Report File for "@atlaskit/editor-plugin-caption"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
8
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
9
+
10
+ // @public (undocumented)
11
+ export type CaptionPlugin = NextEditorPlugin<'caption', {
12
+ dependencies: [typeof analyticsPlugin];
13
+ }>;
14
+
15
+ // @public (undocumented)
16
+ export const captionPlugin: CaptionPlugin;
17
+
18
+ // (No @packageDocumentation comment for this package)
19
+
20
+ ```