@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.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{plugin.js → loomPlugin.js} +4 -4
- package/dist/cjs/{commands.js → pm-plugins/commands.js} +10 -10
- package/dist/cjs/types/index.js +5 -0
- package/dist/cjs/ui/PrimaryToolbarButton.js +1 -1
- package/dist/cjs/ui/quickInsert.js +3 -3
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/{plugin.js → loomPlugin.js} +2 -2
- package/dist/es2019/{commands.js → pm-plugins/commands.js} +2 -2
- package/dist/es2019/ui/PrimaryToolbarButton.js +1 -1
- package/dist/es2019/ui/quickInsert.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/{plugin.js → loomPlugin.js} +2 -2
- package/dist/esm/loomPluginType.js +1 -0
- package/dist/esm/{commands.js → pm-plugins/commands.js} +2 -2
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/ui/PrimaryToolbarButton.js +1 -1
- package/dist/esm/ui/quickInsert.js +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/loomPlugin.d.ts +2 -0
- package/dist/{types-ts4.5/plugin.d.ts → types/loomPluginType.d.ts} +1 -2
- package/dist/types/{commands.d.ts → pm-plugins/commands.d.ts} +2 -2
- package/dist/types/{pm-plugin.d.ts → pm-plugins/main.d.ts} +2 -2
- package/dist/types/ui/PrimaryToolbarButton.d.ts +1 -1
- package/dist/types/ui/ToolbarButtonComponent.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +3 -3
- package/dist/types-ts4.5/loomPlugin.d.ts +2 -0
- package/dist/{types/plugin.d.ts → types-ts4.5/loomPluginType.d.ts} +1 -2
- package/dist/types-ts4.5/{commands.d.ts → pm-plugins/commands.d.ts} +2 -2
- package/dist/types-ts4.5/{pm-plugin.d.ts → pm-plugins/main.d.ts} +2 -2
- package/dist/types-ts4.5/ui/PrimaryToolbarButton.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarButtonComponent.d.ts +1 -1
- package/package.json +5 -2
- /package/dist/cjs/{types.js → loomPluginType.js} +0 -0
- /package/dist/cjs/{pm-plugin.js → pm-plugins/main.js} +0 -0
- /package/dist/es2019/{types.js → loomPluginType.js} +0 -0
- /package/dist/es2019/{pm-plugin.js → pm-plugins/main.js} +0 -0
- /package/dist/{esm/types.js → es2019/types/index.js} +0 -0
- /package/dist/esm/{pm-plugin.js → pm-plugins/main.js} +0 -0
- /package/dist/types/{types.d.ts → types/index.d.ts} +0 -0
- /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
|
|
9
|
+
return _loomPlugin.loomPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
13
|
-
var
|
|
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(
|
|
19
|
-
type:
|
|
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(
|
|
30
|
-
type:
|
|
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(
|
|
42
|
-
type:
|
|
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(
|
|
79
|
-
type:
|
|
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,
|
|
@@ -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
|
|
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 =
|
|
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;
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { loomPlugin } from './
|
|
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-
|
|
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 {
|
|
4
|
-
import {
|
|
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-
|
|
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 './
|
|
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-
|
|
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 {
|
|
6
|
-
import {
|
|
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-
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { loomPlugin } from './
|
|
2
|
-
export type { LoomPlugin } from './
|
|
3
|
-
export type { LoomPluginState } from './pm-
|
|
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';
|
|
@@ -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-
|
|
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 '
|
|
7
|
-
import type { LoomProviderOptions, PositionType, VideoMeta } from '
|
|
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 '
|
|
6
|
-
import type { LoomPluginOptions } from '
|
|
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 '../
|
|
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 '../
|
|
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 './
|
|
2
|
-
export type { LoomPlugin } from './
|
|
3
|
-
export type { LoomPluginState } from './pm-
|
|
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';
|
|
@@ -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-
|
|
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 '
|
|
7
|
-
import type { LoomProviderOptions, PositionType, VideoMeta } from '
|
|
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 '
|
|
6
|
-
import type { LoomPluginOptions } from '
|
|
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 '../
|
|
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 '../
|
|
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.
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|