@atlaskit/editor-plugin-loom 3.1.19 → 3.1.20

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/{plugin.js → loomPlugin.js} +4 -4
  4. package/dist/cjs/{commands.js → pm-plugins/commands.js} +10 -10
  5. package/dist/cjs/types/index.js +5 -0
  6. package/dist/cjs/ui/PrimaryToolbarButton.js +1 -1
  7. package/dist/cjs/ui/quickInsert.js +3 -3
  8. package/dist/es2019/index.js +1 -1
  9. package/dist/es2019/{plugin.js → loomPlugin.js} +2 -2
  10. package/dist/es2019/{commands.js → pm-plugins/commands.js} +2 -2
  11. package/dist/es2019/ui/PrimaryToolbarButton.js +1 -1
  12. package/dist/es2019/ui/quickInsert.js +2 -2
  13. package/dist/esm/index.js +1 -1
  14. package/dist/esm/{plugin.js → loomPlugin.js} +2 -2
  15. package/dist/esm/loomPluginType.js +1 -0
  16. package/dist/esm/{commands.js → pm-plugins/commands.js} +2 -2
  17. package/dist/esm/types/index.js +1 -0
  18. package/dist/esm/ui/PrimaryToolbarButton.js +1 -1
  19. package/dist/esm/ui/quickInsert.js +2 -2
  20. package/dist/types/index.d.ts +3 -3
  21. package/dist/types/loomPlugin.d.ts +2 -0
  22. package/dist/{types-ts4.5/plugin.d.ts → types/loomPluginType.d.ts} +1 -2
  23. package/dist/types/{commands.d.ts → pm-plugins/commands.d.ts} +2 -2
  24. package/dist/types/{pm-plugin.d.ts → pm-plugins/main.d.ts} +2 -2
  25. package/dist/types/ui/PrimaryToolbarButton.d.ts +1 -1
  26. package/dist/types/ui/ToolbarButtonComponent.d.ts +1 -1
  27. package/dist/types-ts4.5/index.d.ts +3 -3
  28. package/dist/types-ts4.5/loomPlugin.d.ts +2 -0
  29. package/dist/{types/plugin.d.ts → types-ts4.5/loomPluginType.d.ts} +1 -2
  30. package/dist/types-ts4.5/{commands.d.ts → pm-plugins/commands.d.ts} +2 -2
  31. package/dist/types-ts4.5/{pm-plugin.d.ts → pm-plugins/main.d.ts} +2 -2
  32. package/dist/types-ts4.5/ui/PrimaryToolbarButton.d.ts +1 -1
  33. package/dist/types-ts4.5/ui/ToolbarButtonComponent.d.ts +1 -1
  34. package/package.json +5 -2
  35. /package/dist/cjs/{types.js → loomPluginType.js} +0 -0
  36. /package/dist/cjs/{pm-plugin.js → pm-plugins/main.js} +0 -0
  37. /package/dist/es2019/{types.js → loomPluginType.js} +0 -0
  38. /package/dist/es2019/{pm-plugin.js → pm-plugins/main.js} +0 -0
  39. /package/dist/{esm/types.js → es2019/types/index.js} +0 -0
  40. /package/dist/esm/{pm-plugin.js → pm-plugins/main.js} +0 -0
  41. /package/dist/types/{types.d.ts → types/index.d.ts} +0 -0
  42. /package/dist/types-ts4.5/{types.d.ts → types/index.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-plugin-loom
2
2
 
3
+ ## 3.1.20
4
+
5
+ ### Patch Changes
6
+
7
+ - [#170473](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/170473)
8
+ [`2c463f9682286`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2c463f9682286) -
9
+ ED-25813: refactors plugins to meet folder standards
10
+ - Updated dependencies
11
+
3
12
  ## 3.1.19
4
13
 
5
14
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "loomPlugin", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _plugin.loomPlugin;
9
+ return _loomPlugin.loomPlugin;
10
10
  }
11
11
  });
12
- var _plugin = require("./plugin");
12
+ var _loomPlugin = require("./loomPlugin");
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.loomPlugin = void 0;
7
7
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
- var _commands = require("./commands");
9
- var _pmPlugin = require("./pm-plugin");
8
+ var _commands = require("./pm-plugins/commands");
9
+ var _main = require("./pm-plugins/main");
10
10
  var _PrimaryToolbarButton = require("./ui/PrimaryToolbarButton");
11
11
  var _quickInsert = require("./ui/quickInsert");
12
12
  var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
@@ -42,7 +42,7 @@ var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
42
42
  return [{
43
43
  name: 'loom',
44
44
  plugin: function plugin() {
45
- return (0, _pmPlugin.createPlugin)({
45
+ return (0, _main.createPlugin)({
46
46
  config: config,
47
47
  api: api
48
48
  });
@@ -69,7 +69,7 @@ var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
69
69
  if (!editorState) {
70
70
  return;
71
71
  }
72
- return _pmPlugin.loomPluginKey.getState(editorState);
72
+ return _main.loomPluginKey.getState(editorState);
73
73
  },
74
74
  pluginsOptions: {
75
75
  // Enable inserting Loom recordings through the slash command
@@ -9,14 +9,14 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _monitoring = require("@atlaskit/editor-common/monitoring");
12
- var _pmPlugin = require("./pm-plugin");
13
- var _quickInsert = require("./ui/quickInsert");
12
+ var _quickInsert = require("../ui/quickInsert");
13
+ var _main = require("./main");
14
14
  var enableLoom = exports.enableLoom = function enableLoom(_ref) {
15
15
  var loomButton = _ref.loomButton;
16
16
  return function (_ref2) {
17
17
  var tr = _ref2.tr;
18
- tr.setMeta(_pmPlugin.loomPluginKey, {
19
- type: _pmPlugin.LoomPluginAction.ENABLE,
18
+ tr.setMeta(_main.loomPluginKey, {
19
+ type: _main.LoomPluginAction.ENABLE,
20
20
  loomButton: loomButton
21
21
  });
22
22
  return tr;
@@ -26,8 +26,8 @@ var disableLoom = exports.disableLoom = function disableLoom(_ref3) {
26
26
  var error = _ref3.error;
27
27
  return function (_ref4) {
28
28
  var tr = _ref4.tr;
29
- tr.setMeta(_pmPlugin.loomPluginKey, {
30
- type: _pmPlugin.LoomPluginAction.DISABLE,
29
+ tr.setMeta(_main.loomPluginKey, {
30
+ type: _main.LoomPluginAction.DISABLE,
31
31
  error: error
32
32
  });
33
33
  return tr;
@@ -38,8 +38,8 @@ var recordVideo = exports.recordVideo = function recordVideo(_ref5) {
38
38
  editorAnalyticsAPI = _ref5.editorAnalyticsAPI;
39
39
  return function (_ref6) {
40
40
  var tr = _ref6.tr;
41
- tr.setMeta(_pmPlugin.loomPluginKey, {
42
- type: _pmPlugin.LoomPluginAction.RECORD_VIDEO
41
+ tr.setMeta(_main.loomPluginKey, {
42
+ type: _main.LoomPluginAction.RECORD_VIDEO
43
43
  });
44
44
  editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
45
45
  action: _analytics.ACTION.RECORD_VIDEO,
@@ -75,8 +75,8 @@ var insertVideo = exports.insertVideo = function insertVideo(_ref9) {
75
75
  video = _ref9.video;
76
76
  return function (_ref10) {
77
77
  var tr = _ref10.tr;
78
- tr.setMeta(_pmPlugin.loomPluginKey, {
79
- type: _pmPlugin.LoomPluginAction.INSERT_VIDEO
78
+ tr.setMeta(_main.loomPluginKey, {
79
+ type: _main.LoomPluginAction.INSERT_VIDEO
80
80
  });
81
81
  editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
82
82
  action: _analytics.ACTION.INSERT_VIDEO,
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -11,7 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _react2 = require("@emotion/react");
13
13
  var _hooks = require("@atlaskit/editor-common/hooks");
14
- var _commands = require("../commands");
14
+ var _commands = require("../pm-plugins/commands");
15
15
  var _ToolbarButtonComponent = _interopRequireDefault(require("./ToolbarButtonComponent"));
16
16
  var _excluded = ["onClickBeforeInit", "isDisabled", "href"];
17
17
  /**
@@ -10,8 +10,8 @@ var _analytics = require("@atlaskit/editor-common/analytics");
10
10
  var _messages = require("@atlaskit/editor-common/messages");
11
11
  var _monitoring = require("@atlaskit/editor-common/monitoring");
12
12
  var _video = _interopRequireDefault(require("@atlaskit/icon/core/video"));
13
- var _commands = require("../commands");
14
- var _pmPlugin = require("../pm-plugin");
13
+ var _commands = require("../pm-plugins/commands");
14
+ var _main = require("../pm-plugins/main");
15
15
  var getQuickInsertItem = exports.getQuickInsertItem = function getQuickInsertItem(editorAnalyticsAPI) {
16
16
  return function (_ref) {
17
17
  var formatMessage = _ref.formatMessage;
@@ -31,7 +31,7 @@ var getQuickInsertItem = exports.getQuickInsertItem = function getQuickInsertIte
31
31
  action: function action(insert, editorState) {
32
32
  var _recordVideo;
33
33
  var tr = insert(undefined);
34
- var loomState = _pmPlugin.loomPluginKey.getState(editorState);
34
+ var loomState = _main.loomPluginKey.getState(editorState);
35
35
  if (!(loomState !== null && loomState !== void 0 && loomState.isEnabled)) {
36
36
  var _recordVideoFailed;
37
37
  var errorMessage = loomState === null || loomState === void 0 ? void 0 : loomState.error;
@@ -1 +1 @@
1
- export { loomPlugin } from './plugin';
1
+ export { loomPlugin } from './loomPlugin';
@@ -1,6 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { insertLoom, recordVideo, setupLoom } from './commands';
3
- import { createPlugin, loomPluginKey } from './pm-plugin';
2
+ import { insertLoom, recordVideo, setupLoom } from './pm-plugins/commands';
3
+ import { createPlugin, loomPluginKey } from './pm-plugins/main';
4
4
  import { loomPrimaryToolbarComponent } from './ui/PrimaryToolbarButton';
5
5
  import { getQuickInsertItem } from './ui/quickInsert';
6
6
  export const loomPlugin = ({
@@ -1,7 +1,7 @@
1
1
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import { logException } from '@atlaskit/editor-common/monitoring';
3
- import { LoomPluginAction, loomPluginKey } from './pm-plugin';
4
- import { getQuickInsertItem } from './ui/quickInsert';
3
+ import { getQuickInsertItem } from '../ui/quickInsert';
4
+ import { LoomPluginAction, loomPluginKey } from './main';
5
5
  export const enableLoom = ({
6
6
  loomButton
7
7
  }) => ({
@@ -8,7 +8,7 @@ import React, { useCallback } from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { jsx } from '@emotion/react';
10
10
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
11
- import { executeRecordVideo } from '../commands';
11
+ import { executeRecordVideo } from '../pm-plugins/commands';
12
12
  import ToolbarButtonComponent from './ToolbarButtonComponent';
13
13
  const CustomisableLoomToolbarButton = (disabled, appearance, api) => /*#__PURE__*/React.forwardRef((props, ref) => {
14
14
  const {
@@ -3,8 +3,8 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
4
4
  import { logException } from '@atlaskit/editor-common/monitoring';
5
5
  import VideoIcon from '@atlaskit/icon/core/video';
6
- import { recordVideo, recordVideoFailed } from '../commands';
7
- import { loomPluginKey } from '../pm-plugin';
6
+ import { recordVideo, recordVideoFailed } from '../pm-plugins/commands';
7
+ import { loomPluginKey } from '../pm-plugins/main';
8
8
  export const getQuickInsertItem = editorAnalyticsAPI => ({
9
9
  formatMessage
10
10
  }) => [{
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export { loomPlugin } from './plugin';
1
+ export { loomPlugin } from './loomPlugin';
@@ -1,6 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { insertLoom as _insertLoom, recordVideo, setupLoom } from './commands';
3
- import { createPlugin, loomPluginKey } from './pm-plugin';
2
+ import { insertLoom as _insertLoom, recordVideo, setupLoom } from './pm-plugins/commands';
3
+ import { createPlugin, loomPluginKey } from './pm-plugins/main';
4
4
  import { loomPrimaryToolbarComponent } from './ui/PrimaryToolbarButton';
5
5
  import { getQuickInsertItem } from './ui/quickInsert';
6
6
  export var loomPlugin = function loomPlugin(_ref) {
@@ -0,0 +1 @@
1
+ export {};
@@ -2,8 +2,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { logException } from '@atlaskit/editor-common/monitoring';
5
- import { LoomPluginAction, loomPluginKey } from './pm-plugin';
6
- import { getQuickInsertItem } from './ui/quickInsert';
5
+ import { getQuickInsertItem } from '../ui/quickInsert';
6
+ import { LoomPluginAction, loomPluginKey } from './main';
7
7
  export var enableLoom = function enableLoom(_ref) {
8
8
  var loomButton = _ref.loomButton;
9
9
  return function (_ref2) {
@@ -0,0 +1 @@
1
+ export {};
@@ -10,7 +10,7 @@ import React, { useCallback } from 'react';
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
  import { jsx } from '@emotion/react';
12
12
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
13
- import { executeRecordVideo } from '../commands';
13
+ import { executeRecordVideo } from '../pm-plugins/commands';
14
14
  import ToolbarButtonComponent from './ToolbarButtonComponent';
15
15
  var CustomisableLoomToolbarButton = function CustomisableLoomToolbarButton(disabled, appearance, api) {
16
16
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -3,8 +3,8 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
4
4
  import { logException } from '@atlaskit/editor-common/monitoring';
5
5
  import VideoIcon from '@atlaskit/icon/core/video';
6
- import { recordVideo, recordVideoFailed } from '../commands';
7
- import { loomPluginKey } from '../pm-plugin';
6
+ import { recordVideo, recordVideoFailed } from '../pm-plugins/commands';
7
+ import { loomPluginKey } from '../pm-plugins/main';
8
8
  export var getQuickInsertItem = function getQuickInsertItem(editorAnalyticsAPI) {
9
9
  return function (_ref) {
10
10
  var formatMessage = _ref.formatMessage;
@@ -1,4 +1,4 @@
1
- export { loomPlugin } from './plugin';
2
- export type { LoomPlugin } from './plugin';
3
- export type { LoomPluginState } from './pm-plugin';
1
+ export { loomPlugin } from './loomPlugin';
2
+ export type { LoomPlugin } from './loomPluginType';
3
+ export type { LoomPluginState } from './pm-plugins/main';
4
4
  export type { LoomPluginOptions, LoomProviderOptions, VideoMeta, GetClient, GetClientResult, LoomPluginErrorMessages, LoomSDKErrorMessages, ButtonComponentProps, ButtonComponent, RenderButton, } from './types';
@@ -0,0 +1,2 @@
1
+ import type { LoomPlugin } from './loomPluginType';
2
+ export declare const loomPlugin: LoomPlugin;
@@ -6,7 +6,7 @@ import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
6
6
  import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
7
7
  import { type QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
8
8
  import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
9
- import type { LoomPluginState } from './pm-plugin';
9
+ import type { LoomPluginState } from './pm-plugins/main';
10
10
  import type { LoomPluginOptions, LoomProviderOptions, PositionType, VideoMeta } from './types';
11
11
  export type LoomPlugin = NextEditorPlugin<'loom', {
12
12
  pluginConfiguration: LoomPluginOptions;
@@ -42,4 +42,3 @@ export type LoomPlugin = NextEditorPlugin<'loom', {
42
42
  }>;
43
43
  };
44
44
  }>;
45
- export declare const loomPlugin: LoomPlugin;
@@ -3,8 +3,8 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import type { EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { LoomPlugin } from './plugin';
7
- import type { LoomProviderOptions, PositionType, VideoMeta } from './types';
6
+ import type { LoomPlugin } from '../loomPluginType';
7
+ import type { LoomProviderOptions, PositionType, VideoMeta } from '../types';
8
8
  export declare const enableLoom: ({ loomButton }: {
9
9
  loomButton: HTMLButtonElement;
10
10
  }) => EditorCommand;
@@ -2,8 +2,8 @@ import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import type { LoomPlugin } from './plugin';
6
- import type { LoomPluginOptions } from './types';
5
+ import type { LoomPlugin } from '../loomPluginType';
6
+ import type { LoomPluginOptions } from '../types';
7
7
  export interface LoomPluginState {
8
8
  isEnabled: boolean;
9
9
  loomButton: HTMLButtonElement | null;
@@ -1,4 +1,4 @@
1
1
  import type { ExtractInjectionAPI, ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
2
- import type { LoomPlugin } from '../plugin';
2
+ import type { LoomPlugin } from '../loomPluginType';
3
3
  import { type LoomPluginOptions } from '../types';
4
4
  export declare const loomPrimaryToolbarComponent: (config: LoomPluginOptions, api: ExtractInjectionAPI<LoomPlugin> | undefined) => ToolbarUIComponentFactory;
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { WrappedComponentProps } from 'react-intl-next';
7
7
  import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type { LoomPlugin } from '../plugin';
8
+ import type { LoomPlugin } from '../loomPluginType';
9
9
  import { type ButtonComponentProps } from '../types';
10
10
  interface Props extends Omit<ButtonComponentProps, 'onClickBeforeInit'> {
11
11
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- export { loomPlugin } from './plugin';
2
- export type { LoomPlugin } from './plugin';
3
- export type { LoomPluginState } from './pm-plugin';
1
+ export { loomPlugin } from './loomPlugin';
2
+ export type { LoomPlugin } from './loomPluginType';
3
+ export type { LoomPluginState } from './pm-plugins/main';
4
4
  export type { LoomPluginOptions, LoomProviderOptions, VideoMeta, GetClient, GetClientResult, LoomPluginErrorMessages, LoomSDKErrorMessages, ButtonComponentProps, ButtonComponent, RenderButton, } from './types';
@@ -0,0 +1,2 @@
1
+ import type { LoomPlugin } from './loomPluginType';
2
+ export declare const loomPlugin: LoomPlugin;
@@ -6,7 +6,7 @@ import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
6
6
  import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
7
7
  import { type QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
8
8
  import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
9
- import type { LoomPluginState } from './pm-plugin';
9
+ import type { LoomPluginState } from './pm-plugins/main';
10
10
  import type { LoomPluginOptions, LoomProviderOptions, PositionType, VideoMeta } from './types';
11
11
  export type LoomPlugin = NextEditorPlugin<'loom', {
12
12
  pluginConfiguration: LoomPluginOptions;
@@ -42,4 +42,3 @@ export type LoomPlugin = NextEditorPlugin<'loom', {
42
42
  }>;
43
43
  };
44
44
  }>;
45
- export declare const loomPlugin: LoomPlugin;
@@ -3,8 +3,8 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import type { EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { LoomPlugin } from './plugin';
7
- import type { LoomProviderOptions, PositionType, VideoMeta } from './types';
6
+ import type { LoomPlugin } from '../loomPluginType';
7
+ import type { LoomProviderOptions, PositionType, VideoMeta } from '../types';
8
8
  export declare const enableLoom: ({ loomButton }: {
9
9
  loomButton: HTMLButtonElement;
10
10
  }) => EditorCommand;
@@ -2,8 +2,8 @@ import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import type { LoomPlugin } from './plugin';
6
- import type { LoomPluginOptions } from './types';
5
+ import type { LoomPlugin } from '../loomPluginType';
6
+ import type { LoomPluginOptions } from '../types';
7
7
  export interface LoomPluginState {
8
8
  isEnabled: boolean;
9
9
  loomButton: HTMLButtonElement | null;
@@ -1,4 +1,4 @@
1
1
  import type { ExtractInjectionAPI, ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
2
- import type { LoomPlugin } from '../plugin';
2
+ import type { LoomPlugin } from '../loomPluginType';
3
3
  import { type LoomPluginOptions } from '../types';
4
4
  export declare const loomPrimaryToolbarComponent: (config: LoomPluginOptions, api: ExtractInjectionAPI<LoomPlugin> | undefined) => ToolbarUIComponentFactory;
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { WrappedComponentProps } from 'react-intl-next';
7
7
  import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type { LoomPlugin } from '../plugin';
8
+ import type { LoomPlugin } from '../loomPluginType';
9
9
  import { type ButtonComponentProps } from '../types';
10
10
  interface Props extends Omit<ButtonComponentProps, 'onClickBeforeInit'> {
11
11
  disabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-loom",
3
- "version": "3.1.19",
3
+ "version": "3.1.20",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@atlaskit/button": "^20.3.0",
38
- "@atlaskit/editor-common": "^95.9.0",
38
+ "@atlaskit/editor-common": "^95.10.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
40
40
  "@atlaskit/editor-plugin-hyperlink": "^3.2.0",
41
41
  "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
@@ -70,6 +70,9 @@
70
70
  },
71
71
  "techstack": {
72
72
  "@atlassian/frontend": {
73
+ "code-structure": [
74
+ "editor-plugin"
75
+ ],
73
76
  "import-structure": [
74
77
  "atlassian-conventions"
75
78
  ],
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes