@atlaskit/editor-plugin-loom 2.1.0 → 2.2.1

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,108 +1,152 @@
1
1
  # @atlaskit/editor-plugin-loom
2
2
 
3
+ ## 2.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#93654](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93654)
8
+ [`19a2873de742`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/19a2873de742) -
9
+ Export loom recordVideo action in loom plugin
10
+
11
+ ## 2.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
16
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
17
+ bumped editor-prosemirror version to 4.0.0
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 2.1.0
4
24
 
5
25
  ### Minor Changes
6
26
 
7
- - [#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
27
+ - [#90626](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90626)
28
+ [`8efec4489602`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8efec4489602) -
29
+ show/hide loom button in toolbar via editor plugin config
8
30
 
9
31
  ### Patch Changes
10
32
 
11
- - [#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
12
- - Updated dependencies
33
+ - [#90878](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90878)
34
+ [`962275ee0910`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962275ee0910) -
35
+ [ux] [ED-22852] Update loom quick insert title, description and logo
36
+ - Updated dependencies
13
37
 
14
38
  ## 2.0.1
15
39
 
16
40
  ### Patch Changes
17
41
 
18
- - [#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
42
+ - [#90526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90526)
43
+ [`2f75eb73984f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f75eb73984f) -
44
+ [ux] Update toolbar icon to Loom
19
45
 
20
46
  ## 2.0.0
21
47
 
22
48
  ### Major Changes
23
49
 
24
- - [#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
50
+ - [#85470](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85470)
51
+ [`32cb4d4ca34f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32cb4d4ca34f) -
52
+ Update loom plugin to take in interface and remove SDK references
25
53
 
26
54
  ### Patch Changes
27
55
 
28
- - Updated dependencies
56
+ - Updated dependencies
29
57
 
30
58
  ## 1.0.2
31
59
 
32
60
  ### Patch Changes
33
61
 
34
- - [#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`
62
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
63
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
64
+ Upgrade Typescript from `4.9.5` to `5.4.2`
35
65
 
36
66
  ## 1.0.1
37
67
 
38
68
  ### Patch Changes
39
69
 
40
- - Updated dependencies
70
+ - Updated dependencies
41
71
 
42
72
  ## 1.0.0
43
73
 
44
74
  ### Major Changes
45
75
 
46
- - [#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.
76
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
77
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
78
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
79
+ is to address an issue with Jira plugin consumption.
47
80
 
48
81
  ### Patch Changes
49
82
 
50
- - Updated dependencies
83
+ - Updated dependencies
51
84
 
52
85
  ## 0.3.1
53
86
 
54
87
  ### Patch Changes
55
88
 
56
- - [#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
89
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
90
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
91
+ Upgrading @atlaskit/editor-prosemirror dependency
57
92
 
58
93
  ## 0.3.0
59
94
 
60
95
  ### Minor Changes
61
96
 
62
- - [#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.
97
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
98
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
99
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
63
100
 
64
- Now when using the editor API with the universal preset
101
+ Now when using the editor API with the universal preset
65
102
 
66
103
  ### Patch Changes
67
104
 
68
- - Updated dependencies
105
+ - Updated dependencies
69
106
 
70
107
  ## 0.2.4
71
108
 
72
109
  ### Patch Changes
73
110
 
74
- - Updated dependencies
111
+ - Updated dependencies
75
112
 
76
113
  ## 0.2.3
77
114
 
78
115
  ### Patch Changes
79
116
 
80
- - [#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
117
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
118
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
119
+ [ED-21835] Change EditorAPI type to always union with undefined
81
120
 
82
121
  ## 0.2.2
83
122
 
84
123
  ### Patch Changes
85
124
 
86
- - Updated dependencies
125
+ - Updated dependencies
87
126
 
88
127
  ## 0.2.1
89
128
 
90
129
  ### Patch Changes
91
130
 
92
- - Updated dependencies
131
+ - Updated dependencies
93
132
 
94
133
  ## 0.2.0
95
134
 
96
135
  ### Minor Changes
97
136
 
98
- - [#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
137
+ - [#59421](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59421)
138
+ [`3747754f8ab0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3747754f8ab0) -
139
+ NO-ISSUE Added the capability to directly trigger an analytics event as an action to the editor
140
+ analytics plugin
99
141
 
100
142
  ### Patch Changes
101
143
 
102
- - Updated dependencies
144
+ - Updated dependencies
103
145
 
104
146
  ## 0.1.1
105
147
 
106
148
  ### Patch Changes
107
149
 
108
- - [#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).
150
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
151
+ [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
152
+ 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',
@@ -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({
@@ -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',
@@ -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,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
4
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
4
5
  disabled: boolean;
5
6
  api: import("@atlaskit/editor-common/types").PublicPluginAPI<[import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
@@ -44,6 +45,12 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
44
45
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
45
46
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>];
46
47
  sharedState: import("..").LoomPluginState | undefined;
48
+ actions: {
49
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
50
+ inputMethod: INPUT_METHOD;
51
+ editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined;
52
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
53
+ };
47
54
  }, import("..").LoomPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
48
55
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
49
56
  sharedState: {
@@ -128,6 +135,12 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
128
135
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
129
136
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>];
130
137
  sharedState: import("..").LoomPluginState | undefined;
138
+ actions: {
139
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
140
+ inputMethod: INPUT_METHOD;
141
+ editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined;
142
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
143
+ };
131
144
  }, import("..").LoomPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
132
145
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
133
146
  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,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
4
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
4
5
  disabled: boolean;
5
6
  api: import("@atlaskit/editor-common/types").PublicPluginAPI<[
@@ -54,6 +55,12 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
54
55
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>
55
56
  ];
56
57
  sharedState: import("..").LoomPluginState | undefined;
58
+ actions: {
59
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
60
+ inputMethod: INPUT_METHOD;
61
+ editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined;
62
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
63
+ };
57
64
  }, import("..").LoomPluginOptions>,
58
65
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
59
66
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
@@ -157,6 +164,12 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
157
164
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>
158
165
  ];
159
166
  sharedState: import("..").LoomPluginState | undefined;
167
+ actions: {
168
+ recordVideo: ({ inputMethod, editorAnalyticsAPI, }: {
169
+ inputMethod: INPUT_METHOD;
170
+ editorAnalyticsAPI: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI | undefined;
171
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
172
+ };
160
173
  }, import("..").LoomPluginOptions>,
161
174
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
162
175
  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.1.0",
3
+ "version": "2.2.1",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,10 +36,10 @@
36
36
  ".": "./src/index.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/editor-common": "^78.28.0",
40
- "@atlaskit/editor-plugin-analytics": "^1.0.0",
41
- "@atlaskit/editor-plugin-hyperlink": "^1.5.0",
42
- "@atlaskit/editor-prosemirror": "3.0.0",
39
+ "@atlaskit/editor-common": "^78.36.0",
40
+ "@atlaskit/editor-plugin-analytics": "^1.1.0",
41
+ "@atlaskit/editor-plugin-hyperlink": "^1.6.0",
42
+ "@atlaskit/editor-prosemirror": "4.0.0",
43
43
  "@atlaskit/logo": "^13.15.1",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@loomhq/record-sdk": "^2.36.18"
@@ -49,15 +49,15 @@
49
49
  "react-intl-next": "npm:react-intl@^5.18.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@atlaskit/editor-plugin-base": "^1.0.0",
53
- "@atlaskit/editor-plugin-card": "^1.8.0",
54
- "@atlaskit/editor-plugin-copy-button": "^1.0.0",
55
- "@atlaskit/editor-plugin-decorations": "^1.0.0",
56
- "@atlaskit/editor-plugin-editor-disabled": "^1.0.0",
57
- "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
58
- "@atlaskit/editor-plugin-floating-toolbar": "^1.2.0",
59
- "@atlaskit/editor-plugin-grid": "^1.0.0",
60
- "@atlaskit/editor-plugin-width": "^1.0.0",
52
+ "@atlaskit/editor-plugin-base": "^1.1.0",
53
+ "@atlaskit/editor-plugin-card": "^1.9.0",
54
+ "@atlaskit/editor-plugin-copy-button": "^1.1.0",
55
+ "@atlaskit/editor-plugin-decorations": "^1.1.0",
56
+ "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
57
+ "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
58
+ "@atlaskit/editor-plugin-floating-toolbar": "^1.4.0",
59
+ "@atlaskit/editor-plugin-grid": "^1.1.0",
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",
62
62
  "@testing-library/react": "^12.1.5",
63
63
  "@testing-library/user-event": "^14.4.3",