@atlaskit/editor-plugin-loom 2.2.0 → 2.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,118 +1,160 @@
1
1
  # @atlaskit/editor-plugin-loom
2
2
 
3
+ ## 2.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#96234](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96234)
8
+ [`d414d3e7503b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d414d3e7503b) -
9
+ Update copy for Loom toolbar tooltip item and quickinsert description
10
+
11
+ ## 2.2.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#93654](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93654)
16
+ [`19a2873de742`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/19a2873de742) -
17
+ Export loom recordVideo action in loom plugin
18
+
3
19
  ## 2.2.0
4
20
 
5
21
  ### Minor Changes
6
22
 
7
- - [#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
23
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
24
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
25
+ bumped editor-prosemirror version to 4.0.0
8
26
 
9
27
  ### Patch Changes
10
28
 
11
- - Updated dependencies
29
+ - Updated dependencies
12
30
 
13
31
  ## 2.1.0
14
32
 
15
33
  ### Minor Changes
16
34
 
17
- - [#90626](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90626) [`8efec4489602`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8efec4489602) - show/hide loom button in toolbar via editor plugin config
35
+ - [#90626](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90626)
36
+ [`8efec4489602`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8efec4489602) -
37
+ show/hide loom button in toolbar via editor plugin config
18
38
 
19
39
  ### Patch Changes
20
40
 
21
- - [#90878](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90878) [`962275ee0910`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962275ee0910) - [ux] [ED-22852] Update loom quick insert title, description and logo
22
- - Updated dependencies
41
+ - [#90878](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90878)
42
+ [`962275ee0910`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962275ee0910) -
43
+ [ux] [ED-22852] Update loom quick insert title, description and logo
44
+ - Updated dependencies
23
45
 
24
46
  ## 2.0.1
25
47
 
26
48
  ### Patch Changes
27
49
 
28
- - [#90526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90526) [`2f75eb73984f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f75eb73984f) - [ux] Update toolbar icon to Loom
50
+ - [#90526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90526)
51
+ [`2f75eb73984f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f75eb73984f) -
52
+ [ux] Update toolbar icon to Loom
29
53
 
30
54
  ## 2.0.0
31
55
 
32
56
  ### Major Changes
33
57
 
34
- - [#85470](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85470) [`32cb4d4ca34f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32cb4d4ca34f) - Update loom plugin to take in interface and remove SDK references
58
+ - [#85470](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85470)
59
+ [`32cb4d4ca34f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32cb4d4ca34f) -
60
+ Update loom plugin to take in interface and remove SDK references
35
61
 
36
62
  ### Patch Changes
37
63
 
38
- - Updated dependencies
64
+ - Updated dependencies
39
65
 
40
66
  ## 1.0.2
41
67
 
42
68
  ### Patch Changes
43
69
 
44
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
70
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
71
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
72
+ Upgrade Typescript from `4.9.5` to `5.4.2`
45
73
 
46
74
  ## 1.0.1
47
75
 
48
76
  ### Patch Changes
49
77
 
50
- - Updated dependencies
78
+ - Updated dependencies
51
79
 
52
80
  ## 1.0.0
53
81
 
54
82
  ### Major Changes
55
83
 
56
- - [#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.
84
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
85
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
86
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
87
+ is to address an issue with Jira plugin consumption.
57
88
 
58
89
  ### Patch Changes
59
90
 
60
- - Updated dependencies
91
+ - Updated dependencies
61
92
 
62
93
  ## 0.3.1
63
94
 
64
95
  ### Patch Changes
65
96
 
66
- - [#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
97
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
98
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
99
+ Upgrading @atlaskit/editor-prosemirror dependency
67
100
 
68
101
  ## 0.3.0
69
102
 
70
103
  ### Minor Changes
71
104
 
72
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790) [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) - Support maybeAdd plugins in usePreset. Add typing support for universal preset.
105
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
106
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
107
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
73
108
 
74
- Now when using the editor API with the universal preset
109
+ Now when using the editor API with the universal preset
75
110
 
76
111
  ### Patch Changes
77
112
 
78
- - Updated dependencies
113
+ - Updated dependencies
79
114
 
80
115
  ## 0.2.4
81
116
 
82
117
  ### Patch Changes
83
118
 
84
- - Updated dependencies
119
+ - Updated dependencies
85
120
 
86
121
  ## 0.2.3
87
122
 
88
123
  ### Patch Changes
89
124
 
90
- - [#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
125
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
126
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
127
+ [ED-21835] Change EditorAPI type to always union with undefined
91
128
 
92
129
  ## 0.2.2
93
130
 
94
131
  ### Patch Changes
95
132
 
96
- - Updated dependencies
133
+ - Updated dependencies
97
134
 
98
135
  ## 0.2.1
99
136
 
100
137
  ### Patch Changes
101
138
 
102
- - Updated dependencies
139
+ - Updated dependencies
103
140
 
104
141
  ## 0.2.0
105
142
 
106
143
  ### Minor Changes
107
144
 
108
- - [#59421](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59421) [`3747754f8ab0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3747754f8ab0) - NO-ISSUE Added the capability to directly trigger an analytics event as an action to the editor analytics plugin
145
+ - [#59421](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59421)
146
+ [`3747754f8ab0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3747754f8ab0) -
147
+ NO-ISSUE Added the capability to directly trigger an analytics event as an action to the editor
148
+ analytics plugin
109
149
 
110
150
  ### Patch Changes
111
151
 
112
- - Updated dependencies
152
+ - Updated dependencies
113
153
 
114
154
  ## 0.1.1
115
155
 
116
156
  ### Patch Changes
117
157
 
118
- - [#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).
158
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
159
+ [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
160
+ Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
@@ -20,6 +20,9 @@ var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
20
20
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
21
21
  return {
22
22
  name: 'loom',
23
+ actions: {
24
+ recordVideo: _commands.recordVideo
25
+ },
23
26
  pmPlugins: function pmPlugins() {
24
27
  return [{
25
28
  name: 'loom',
@@ -82,13 +85,15 @@ var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
82
85
  },
83
86
  // Enable inserting Loom recordings through main toolbar
84
87
  primaryToolbarComponent: function primaryToolbarComponent(_ref3) {
85
- var disabled = _ref3.disabled;
88
+ var disabled = _ref3.disabled,
89
+ appearance = _ref3.appearance;
86
90
  if (!config.shouldShowToolbarButton) {
87
91
  return null;
88
92
  }
89
93
  return /*#__PURE__*/_react.default.createElement(_ToolbarButton.default, {
90
94
  disabled: disabled,
91
- api: api
95
+ api: api,
96
+ appearance: appearance
92
97
  });
93
98
  }
94
99
  };
@@ -16,13 +16,14 @@ var _commands = require("../commands");
16
16
  var LoomToolbarButton = function LoomToolbarButton(_ref) {
17
17
  var disabled = _ref.disabled,
18
18
  api = _ref.api,
19
+ appearance = _ref.appearance,
19
20
  formatMessage = _ref.intl.formatMessage;
20
21
  var _useSharedPluginState = (0, _hooks.useSharedPluginState)(api, ['loom']),
21
22
  loomState = _useSharedPluginState.loomState;
22
23
  if (!loomState) {
23
24
  return null;
24
25
  }
25
- var label = formatMessage(_messages.toolbarInsertBlockMessages.addLoomVideo);
26
+ var label = formatMessage(appearance === 'comment' ? _messages.toolbarInsertBlockMessages.addLoomVideoComment : _messages.toolbarInsertBlockMessages.addLoomVideo);
26
27
  return /*#__PURE__*/_react.default.createElement(_uiMenu.ToolbarButton, {
27
28
  buttonId: _uiMenu.TOOLBAR_BUTTON.RECORD_VIDEO,
28
29
  onClick: function onClick() {
@@ -14,6 +14,9 @@ export const loomPlugin = ({
14
14
  const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
15
15
  return {
16
16
  name: 'loom',
17
+ actions: {
18
+ recordVideo
19
+ },
17
20
  pmPlugins: () => [{
18
21
  name: 'loom',
19
22
  plugin: () => createPlugin({
@@ -69,14 +72,16 @@ export const loomPlugin = ({
69
72
  },
70
73
  // Enable inserting Loom recordings through main toolbar
71
74
  primaryToolbarComponent({
72
- disabled
75
+ disabled,
76
+ appearance
73
77
  }) {
74
78
  if (!config.shouldShowToolbarButton) {
75
79
  return null;
76
80
  }
77
81
  return /*#__PURE__*/React.createElement(LoomToolbarButton, {
78
82
  disabled: disabled,
79
- api: api
83
+ api: api,
84
+ appearance: appearance
80
85
  });
81
86
  }
82
87
  };
@@ -9,6 +9,7 @@ import { recordVideo } from '../commands';
9
9
  const LoomToolbarButton = ({
10
10
  disabled,
11
11
  api,
12
+ appearance,
12
13
  intl: {
13
14
  formatMessage
14
15
  }
@@ -19,7 +20,7 @@ const LoomToolbarButton = ({
19
20
  if (!loomState) {
20
21
  return null;
21
22
  }
22
- const label = formatMessage(toolbarInsertBlockMessages.addLoomVideo);
23
+ const label = formatMessage(appearance === 'comment' ? toolbarInsertBlockMessages.addLoomVideoComment : toolbarInsertBlockMessages.addLoomVideo);
23
24
  return /*#__PURE__*/React.createElement(ToolbarButton, {
24
25
  buttonId: TOOLBAR_BUTTON.RECORD_VIDEO,
25
26
  onClick: () => {
@@ -13,6 +13,9 @@ export var loomPlugin = function loomPlugin(_ref) {
13
13
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
14
14
  return {
15
15
  name: 'loom',
16
+ actions: {
17
+ recordVideo: recordVideo
18
+ },
16
19
  pmPlugins: function pmPlugins() {
17
20
  return [{
18
21
  name: 'loom',
@@ -75,13 +78,15 @@ export var loomPlugin = function loomPlugin(_ref) {
75
78
  },
76
79
  // Enable inserting Loom recordings through main toolbar
77
80
  primaryToolbarComponent: function primaryToolbarComponent(_ref3) {
78
- var disabled = _ref3.disabled;
81
+ var disabled = _ref3.disabled,
82
+ appearance = _ref3.appearance;
79
83
  if (!config.shouldShowToolbarButton) {
80
84
  return null;
81
85
  }
82
86
  return /*#__PURE__*/React.createElement(LoomToolbarButton, {
83
87
  disabled: disabled,
84
- api: api
88
+ api: api,
89
+ appearance: appearance
85
90
  });
86
91
  }
87
92
  };
@@ -9,13 +9,14 @@ import { recordVideo } from '../commands';
9
9
  var LoomToolbarButton = function LoomToolbarButton(_ref) {
10
10
  var disabled = _ref.disabled,
11
11
  api = _ref.api,
12
+ appearance = _ref.appearance,
12
13
  formatMessage = _ref.intl.formatMessage;
13
14
  var _useSharedPluginState = useSharedPluginState(api, ['loom']),
14
15
  loomState = _useSharedPluginState.loomState;
15
16
  if (!loomState) {
16
17
  return null;
17
18
  }
18
- var label = formatMessage(toolbarInsertBlockMessages.addLoomVideo);
19
+ var label = formatMessage(appearance === 'comment' ? toolbarInsertBlockMessages.addLoomVideoComment : toolbarInsertBlockMessages.addLoomVideo);
19
20
  return /*#__PURE__*/React.createElement(ToolbarButton, {
20
21
  buttonId: TOOLBAR_BUTTON.RECORD_VIDEO,
21
22
  onClick: function onClick() {
@@ -1,4 +1,6 @@
1
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
+ import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
4
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
5
  import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
4
6
  import type { LoomPluginState } from './pm-plugin';
@@ -10,5 +12,11 @@ export type LoomPlugin = NextEditorPlugin<'loom', {
10
12
  HyperlinkPlugin
11
13
  ];
12
14
  sharedState: LoomPluginState | undefined;
15
+ actions: {
16
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
17
+ inputMethod: INPUT_METHOD;
18
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
19
+ }) => EditorCommand;
20
+ };
13
21
  }>;
14
22
  export declare const loomPlugin: LoomPlugin;
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
+ import type { EditorAppearance } from '@atlaskit/editor-common/types';
3
5
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
4
6
  disabled: boolean;
7
+ appearance: EditorAppearance;
5
8
  api: import("@atlaskit/editor-common/types").PublicPluginAPI<[import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
6
9
  pluginConfiguration: import("..").LoomPluginOptions;
7
10
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -44,6 +47,12 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
44
47
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
45
48
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>];
46
49
  sharedState: import("..").LoomPluginState | undefined;
50
+ actions: {
51
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
52
+ inputMethod: INPUT_METHOD;
53
+ editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined;
54
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
55
+ };
47
56
  }, import("..").LoomPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
48
57
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
49
58
  sharedState: {
@@ -86,6 +95,7 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
86
95
  } & WrappedComponentProps>> & {
87
96
  WrappedComponent: React.ComponentType<{
88
97
  disabled: boolean;
98
+ appearance: EditorAppearance;
89
99
  api: import("@atlaskit/editor-common/types").PublicPluginAPI<[import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
90
100
  pluginConfiguration: import("..").LoomPluginOptions;
91
101
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -128,6 +138,12 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
128
138
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
129
139
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>];
130
140
  sharedState: import("..").LoomPluginState | undefined;
141
+ actions: {
142
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
143
+ inputMethod: INPUT_METHOD;
144
+ editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined;
145
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
146
+ };
131
147
  }, import("..").LoomPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
132
148
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
133
149
  sharedState: {
@@ -1,4 +1,6 @@
1
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
+ import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
4
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
5
  import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
4
6
  import type { LoomPluginState } from './pm-plugin';
@@ -10,5 +12,11 @@ export type LoomPlugin = NextEditorPlugin<'loom', {
10
12
  HyperlinkPlugin
11
13
  ];
12
14
  sharedState: LoomPluginState | undefined;
15
+ actions: {
16
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
17
+ inputMethod: INPUT_METHOD;
18
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
19
+ }) => EditorCommand;
20
+ };
13
21
  }>;
14
22
  export declare const loomPlugin: LoomPlugin;
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
+ import type { EditorAppearance } from '@atlaskit/editor-common/types';
3
5
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
4
6
  disabled: boolean;
7
+ appearance: EditorAppearance;
5
8
  api: import("@atlaskit/editor-common/types").PublicPluginAPI<[
6
9
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
7
10
  pluginConfiguration: import("..").LoomPluginOptions;
@@ -54,6 +57,12 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
54
57
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>
55
58
  ];
56
59
  sharedState: import("..").LoomPluginState | undefined;
60
+ actions: {
61
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
62
+ inputMethod: INPUT_METHOD;
63
+ editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined;
64
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
65
+ };
57
66
  }, import("..").LoomPluginOptions>,
58
67
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
59
68
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
@@ -105,6 +114,7 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
105
114
  } & WrappedComponentProps>> & {
106
115
  WrappedComponent: React.ComponentType<{
107
116
  disabled: boolean;
117
+ appearance: EditorAppearance;
108
118
  api: import("@atlaskit/editor-common/types").PublicPluginAPI<[
109
119
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
110
120
  pluginConfiguration: import("..").LoomPluginOptions;
@@ -157,6 +167,12 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
157
167
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>
158
168
  ];
159
169
  sharedState: import("..").LoomPluginState | undefined;
170
+ actions: {
171
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
172
+ inputMethod: INPUT_METHOD;
173
+ editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined;
174
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
175
+ };
160
176
  }, import("..").LoomPluginOptions>,
161
177
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
162
178
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-loom",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  ".": "./src/index.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/editor-common": "^78.31.0",
39
+ "@atlaskit/editor-common": "^78.37.0",
40
40
  "@atlaskit/editor-plugin-analytics": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-hyperlink": "^1.6.0",
42
42
  "@atlaskit/editor-prosemirror": "4.0.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
56
56
  "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
57
57
  "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
58
- "@atlaskit/editor-plugin-floating-toolbar": "^1.3.0",
58
+ "@atlaskit/editor-plugin-floating-toolbar": "^1.4.0",
59
59
  "@atlaskit/editor-plugin-grid": "^1.1.0",
60
60
  "@atlaskit/editor-plugin-width": "^1.1.0",
61
61
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",