@atlaskit/editor-plugin-loom 3.0.1 → 3.0.3
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 +17 -0
- package/dist/cjs/commands.js +15 -19
- package/dist/cjs/ui/PrimaryToolbarButton.js +8 -9
- package/dist/es2019/commands.js +14 -19
- package/dist/es2019/ui/PrimaryToolbarButton.js +7 -7
- package/dist/esm/commands.js +15 -19
- package/dist/esm/ui/PrimaryToolbarButton.js +8 -9
- package/dist/types/commands.d.ts +1 -1
- package/dist/types-ts4.5/commands.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-loom
|
|
2
2
|
|
|
3
|
+
## 3.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#146839](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146839)
|
|
8
|
+
[`5150b3ba1d31d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5150b3ba1d31d) -
|
|
9
|
+
Subscribe to plugin state changes within custom Loom editor toolbar button
|
|
10
|
+
|
|
11
|
+
## 3.0.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#145206](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145206)
|
|
16
|
+
[`cca8cc490ec20`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cca8cc490ec20) -
|
|
17
|
+
[ED-25135] Fix: loom is not initialised correctly if `initLoom` is called when collab-edit plugin
|
|
18
|
+
is not ready
|
|
19
|
+
|
|
3
20
|
## 3.0.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/commands.js
CHANGED
|
@@ -130,9 +130,9 @@ var executeRecordVideo = exports.executeRecordVideo = function executeRecordVide
|
|
|
130
130
|
}));
|
|
131
131
|
};
|
|
132
132
|
var setupLoom = exports.setupLoom = /*#__PURE__*/function () {
|
|
133
|
-
var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(loomProvider, api, editorView,
|
|
134
|
-
var _api$core4;
|
|
135
|
-
var clientResult, _api$core2, _api$analytics2, attachToButton, loomButton
|
|
133
|
+
var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(loomProvider, api, editorView, initViaCommand) {
|
|
134
|
+
var _api$core4, _api$analytics5;
|
|
135
|
+
var clientResult, _api$core2, _api$analytics2, attachToButton, loomButton;
|
|
136
136
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
137
137
|
while (1) switch (_context.prev = _context.next) {
|
|
138
138
|
case 0:
|
|
@@ -191,28 +191,24 @@ var setupLoom = exports.setupLoom = /*#__PURE__*/function () {
|
|
|
191
191
|
})({
|
|
192
192
|
tr: tr
|
|
193
193
|
});
|
|
194
|
-
if (
|
|
195
|
-
var _api$quickInsert, _api$analytics4
|
|
194
|
+
if (initViaCommand) {
|
|
195
|
+
var _api$quickInsert, _api$analytics4;
|
|
196
196
|
api === null || api === void 0 || (_api$quickInsert = api.quickInsert) === null || _api$quickInsert === void 0 || _api$quickInsert.commands.addQuickInsertItem((0, _quickInsert.getQuickInsertItem)(api === null || api === void 0 || (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions))({
|
|
197
197
|
tr: tr
|
|
198
198
|
});
|
|
199
|
-
api === null || api === void 0 || (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 || _api$analytics5.actions.attachAnalyticsEvent({
|
|
200
|
-
action: _analytics.ACTION.INITIALISED,
|
|
201
|
-
actionSubject: _analytics.ACTION_SUBJECT.LOOM,
|
|
202
|
-
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
203
|
-
})(tr);
|
|
204
199
|
}
|
|
205
200
|
return tr;
|
|
206
201
|
});
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
202
|
+
|
|
203
|
+
// We're not combining the analytics steps into the enable / disable commands because the collab-edit plugin
|
|
204
|
+
// filters out any transactions with steps (even analytics) when it's initialising.
|
|
205
|
+
// Even if `initViaCommand` is true, collab-edit might not be ready depending on when `initLoom` is called,
|
|
206
|
+
// hence the analytics step is added separately in both cases
|
|
207
|
+
api === null || api === void 0 || (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 || _api$analytics5.actions.fireAnalyticsEvent({
|
|
208
|
+
action: _analytics.ACTION.INITIALISED,
|
|
209
|
+
actionSubject: _analytics.ACTION_SUBJECT.LOOM,
|
|
210
|
+
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
211
|
+
});
|
|
216
212
|
return _context.abrupt("return", {});
|
|
217
213
|
case 14:
|
|
218
214
|
case "end":
|
|
@@ -12,7 +12,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
14
14
|
var _commands = require("../commands");
|
|
15
|
-
var _pmPlugin = require("../pm-plugin");
|
|
16
15
|
var _ToolbarButtonComponent = _interopRequireDefault(require("./ToolbarButtonComponent"));
|
|
17
16
|
var _excluded = ["onClickBeforeInit", "isDisabled", "href"];
|
|
18
17
|
/**
|
|
@@ -22,15 +21,16 @@ var _excluded = ["onClickBeforeInit", "isDisabled", "href"];
|
|
|
22
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
|
-
var CustomisableLoomToolbarButton = function CustomisableLoomToolbarButton(
|
|
24
|
+
var CustomisableLoomToolbarButton = function CustomisableLoomToolbarButton(disabled, appearance, api) {
|
|
26
25
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
27
|
-
var _loomPluginKey$getSta;
|
|
28
26
|
var onClickBeforeInit = props.onClickBeforeInit,
|
|
29
27
|
_props$isDisabled = props.isDisabled,
|
|
30
28
|
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
31
29
|
href = props.href,
|
|
32
30
|
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
33
|
-
var
|
|
31
|
+
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(api, ['loom']),
|
|
32
|
+
loomState = _useSharedPluginState.loomState;
|
|
33
|
+
var isLoomEnabled = !!(loomState !== null && loomState !== void 0 && loomState.isEnabled);
|
|
34
34
|
var handleOnClick = (0, _react.useCallback)(function (e) {
|
|
35
35
|
if (isLoomEnabled) {
|
|
36
36
|
(0, _commands.executeRecordVideo)(api);
|
|
@@ -60,8 +60,8 @@ var LoomToolbarButtonWrapper = function LoomToolbarButtonWrapper(_ref) {
|
|
|
60
60
|
var handleOnClick = (0, _react.useCallback)(function () {
|
|
61
61
|
return (0, _commands.executeRecordVideo)(api);
|
|
62
62
|
}, [api]);
|
|
63
|
-
var
|
|
64
|
-
loomState =
|
|
63
|
+
var _useSharedPluginState2 = (0, _hooks.useSharedPluginState)(api, ['loom']),
|
|
64
|
+
loomState = _useSharedPluginState2.loomState;
|
|
65
65
|
if (!loomState) {
|
|
66
66
|
return null;
|
|
67
67
|
}
|
|
@@ -77,13 +77,12 @@ var LoomToolbarButtonWrapper = function LoomToolbarButtonWrapper(_ref) {
|
|
|
77
77
|
var loomPrimaryToolbarComponent = exports.loomPrimaryToolbarComponent = function loomPrimaryToolbarComponent(config, api) {
|
|
78
78
|
return function (_ref2) {
|
|
79
79
|
var disabled = _ref2.disabled,
|
|
80
|
-
appearance = _ref2.appearance
|
|
81
|
-
editorView = _ref2.editorView;
|
|
80
|
+
appearance = _ref2.appearance;
|
|
82
81
|
if (config.shouldShowToolbarButton === false) {
|
|
83
82
|
return null;
|
|
84
83
|
}
|
|
85
84
|
if (config.renderButton) {
|
|
86
|
-
return config.renderButton(CustomisableLoomToolbarButton(
|
|
85
|
+
return config.renderButton(CustomisableLoomToolbarButton(disabled, appearance, api));
|
|
87
86
|
}
|
|
88
87
|
if (config.shouldShowToolbarButton) {
|
|
89
88
|
return (0, _react2.jsx)(LoomToolbarButtonWrapper
|
package/dist/es2019/commands.js
CHANGED
|
@@ -123,8 +123,8 @@ export const executeRecordVideo = api => {
|
|
|
123
123
|
editorAnalyticsAPI: api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions
|
|
124
124
|
}));
|
|
125
125
|
};
|
|
126
|
-
export const setupLoom = async (loomProvider, api, editorView,
|
|
127
|
-
var _api$core4;
|
|
126
|
+
export const setupLoom = async (loomProvider, api, editorView, initViaCommand) => {
|
|
127
|
+
var _api$core4, _api$analytics5;
|
|
128
128
|
const clientResult = await loomProvider.getClient();
|
|
129
129
|
if (clientResult.status === 'error') {
|
|
130
130
|
var _api$core2, _api$analytics2;
|
|
@@ -182,28 +182,23 @@ export const setupLoom = async (loomProvider, api, editorView, isAfterEditorLoad
|
|
|
182
182
|
})({
|
|
183
183
|
tr
|
|
184
184
|
});
|
|
185
|
-
if (
|
|
186
|
-
var _api$quickInsert, _api$analytics4
|
|
185
|
+
if (initViaCommand) {
|
|
186
|
+
var _api$quickInsert, _api$analytics4;
|
|
187
187
|
api === null || api === void 0 ? void 0 : (_api$quickInsert = api.quickInsert) === null || _api$quickInsert === void 0 ? void 0 : _api$quickInsert.commands.addQuickInsertItem(getQuickInsertItem(api === null || api === void 0 ? void 0 : (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions))({
|
|
188
188
|
tr
|
|
189
189
|
});
|
|
190
|
-
api === null || api === void 0 ? void 0 : (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions.attachAnalyticsEvent({
|
|
191
|
-
action: ACTION.INITIALISED,
|
|
192
|
-
actionSubject: ACTION_SUBJECT.LOOM,
|
|
193
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
194
|
-
})(tr);
|
|
195
190
|
}
|
|
196
191
|
return tr;
|
|
197
192
|
});
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
193
|
+
|
|
194
|
+
// We're not combining the analytics steps into the enable / disable commands because the collab-edit plugin
|
|
195
|
+
// filters out any transactions with steps (even analytics) when it's initialising.
|
|
196
|
+
// Even if `initViaCommand` is true, collab-edit might not be ready depending on when `initLoom` is called,
|
|
197
|
+
// hence the analytics step is added separately in both cases
|
|
198
|
+
api === null || api === void 0 ? void 0 : (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions.fireAnalyticsEvent({
|
|
199
|
+
action: ACTION.INITIALISED,
|
|
200
|
+
actionSubject: ACTION_SUBJECT.LOOM,
|
|
201
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
202
|
+
});
|
|
208
203
|
return {};
|
|
209
204
|
};
|
|
@@ -9,17 +9,18 @@ import React, { useCallback } from 'react';
|
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
11
11
|
import { executeRecordVideo } from '../commands';
|
|
12
|
-
import { loomPluginKey } from '../pm-plugin';
|
|
13
12
|
import ToolbarButtonComponent from './ToolbarButtonComponent';
|
|
14
|
-
const CustomisableLoomToolbarButton = (
|
|
15
|
-
var _loomPluginKey$getSta;
|
|
13
|
+
const CustomisableLoomToolbarButton = (disabled, appearance, api) => /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
16
14
|
const {
|
|
17
15
|
onClickBeforeInit,
|
|
18
16
|
isDisabled = false,
|
|
19
17
|
href,
|
|
20
18
|
...restProps
|
|
21
19
|
} = props;
|
|
22
|
-
const
|
|
20
|
+
const {
|
|
21
|
+
loomState
|
|
22
|
+
} = useSharedPluginState(api, ['loom']);
|
|
23
|
+
const isLoomEnabled = !!(loomState !== null && loomState !== void 0 && loomState.isEnabled);
|
|
23
24
|
const handleOnClick = useCallback(e => {
|
|
24
25
|
if (isLoomEnabled) {
|
|
25
26
|
executeRecordVideo(api);
|
|
@@ -62,14 +63,13 @@ const LoomToolbarButtonWrapper = ({
|
|
|
62
63
|
};
|
|
63
64
|
export const loomPrimaryToolbarComponent = (config, api) => ({
|
|
64
65
|
disabled,
|
|
65
|
-
appearance
|
|
66
|
-
editorView
|
|
66
|
+
appearance
|
|
67
67
|
}) => {
|
|
68
68
|
if (config.shouldShowToolbarButton === false) {
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
71
71
|
if (config.renderButton) {
|
|
72
|
-
return config.renderButton(CustomisableLoomToolbarButton(
|
|
72
|
+
return config.renderButton(CustomisableLoomToolbarButton(disabled, appearance, api));
|
|
73
73
|
}
|
|
74
74
|
if (config.shouldShowToolbarButton) {
|
|
75
75
|
return jsx(LoomToolbarButtonWrapper
|
package/dist/esm/commands.js
CHANGED
|
@@ -123,9 +123,9 @@ export var executeRecordVideo = function executeRecordVideo(api) {
|
|
|
123
123
|
}));
|
|
124
124
|
};
|
|
125
125
|
export var setupLoom = /*#__PURE__*/function () {
|
|
126
|
-
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(loomProvider, api, editorView,
|
|
127
|
-
var _api$core4;
|
|
128
|
-
var clientResult, _api$core2, _api$analytics2, attachToButton, loomButton
|
|
126
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(loomProvider, api, editorView, initViaCommand) {
|
|
127
|
+
var _api$core4, _api$analytics5;
|
|
128
|
+
var clientResult, _api$core2, _api$analytics2, attachToButton, loomButton;
|
|
129
129
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
130
130
|
while (1) switch (_context.prev = _context.next) {
|
|
131
131
|
case 0:
|
|
@@ -184,28 +184,24 @@ export var setupLoom = /*#__PURE__*/function () {
|
|
|
184
184
|
})({
|
|
185
185
|
tr: tr
|
|
186
186
|
});
|
|
187
|
-
if (
|
|
188
|
-
var _api$quickInsert, _api$analytics4
|
|
187
|
+
if (initViaCommand) {
|
|
188
|
+
var _api$quickInsert, _api$analytics4;
|
|
189
189
|
api === null || api === void 0 || (_api$quickInsert = api.quickInsert) === null || _api$quickInsert === void 0 || _api$quickInsert.commands.addQuickInsertItem(getQuickInsertItem(api === null || api === void 0 || (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions))({
|
|
190
190
|
tr: tr
|
|
191
191
|
});
|
|
192
|
-
api === null || api === void 0 || (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 || _api$analytics5.actions.attachAnalyticsEvent({
|
|
193
|
-
action: ACTION.INITIALISED,
|
|
194
|
-
actionSubject: ACTION_SUBJECT.LOOM,
|
|
195
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
196
|
-
})(tr);
|
|
197
192
|
}
|
|
198
193
|
return tr;
|
|
199
194
|
});
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
195
|
+
|
|
196
|
+
// We're not combining the analytics steps into the enable / disable commands because the collab-edit plugin
|
|
197
|
+
// filters out any transactions with steps (even analytics) when it's initialising.
|
|
198
|
+
// Even if `initViaCommand` is true, collab-edit might not be ready depending on when `initLoom` is called,
|
|
199
|
+
// hence the analytics step is added separately in both cases
|
|
200
|
+
api === null || api === void 0 || (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 || _api$analytics5.actions.fireAnalyticsEvent({
|
|
201
|
+
action: ACTION.INITIALISED,
|
|
202
|
+
actionSubject: ACTION_SUBJECT.LOOM,
|
|
203
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
204
|
+
});
|
|
209
205
|
return _context.abrupt("return", {});
|
|
210
206
|
case 14:
|
|
211
207
|
case "end":
|
|
@@ -11,17 +11,17 @@ import React, { useCallback } from 'react';
|
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
12
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
13
13
|
import { executeRecordVideo } from '../commands';
|
|
14
|
-
import { loomPluginKey } from '../pm-plugin';
|
|
15
14
|
import ToolbarButtonComponent from './ToolbarButtonComponent';
|
|
16
|
-
var CustomisableLoomToolbarButton = function CustomisableLoomToolbarButton(
|
|
15
|
+
var CustomisableLoomToolbarButton = function CustomisableLoomToolbarButton(disabled, appearance, api) {
|
|
17
16
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18
|
-
var _loomPluginKey$getSta;
|
|
19
17
|
var onClickBeforeInit = props.onClickBeforeInit,
|
|
20
18
|
_props$isDisabled = props.isDisabled,
|
|
21
19
|
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
22
20
|
href = props.href,
|
|
23
21
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
24
|
-
var
|
|
22
|
+
var _useSharedPluginState = useSharedPluginState(api, ['loom']),
|
|
23
|
+
loomState = _useSharedPluginState.loomState;
|
|
24
|
+
var isLoomEnabled = !!(loomState !== null && loomState !== void 0 && loomState.isEnabled);
|
|
25
25
|
var handleOnClick = useCallback(function (e) {
|
|
26
26
|
if (isLoomEnabled) {
|
|
27
27
|
executeRecordVideo(api);
|
|
@@ -51,8 +51,8 @@ var LoomToolbarButtonWrapper = function LoomToolbarButtonWrapper(_ref) {
|
|
|
51
51
|
var handleOnClick = useCallback(function () {
|
|
52
52
|
return executeRecordVideo(api);
|
|
53
53
|
}, [api]);
|
|
54
|
-
var
|
|
55
|
-
loomState =
|
|
54
|
+
var _useSharedPluginState2 = useSharedPluginState(api, ['loom']),
|
|
55
|
+
loomState = _useSharedPluginState2.loomState;
|
|
56
56
|
if (!loomState) {
|
|
57
57
|
return null;
|
|
58
58
|
}
|
|
@@ -68,13 +68,12 @@ var LoomToolbarButtonWrapper = function LoomToolbarButtonWrapper(_ref) {
|
|
|
68
68
|
export var loomPrimaryToolbarComponent = function loomPrimaryToolbarComponent(config, api) {
|
|
69
69
|
return function (_ref2) {
|
|
70
70
|
var disabled = _ref2.disabled,
|
|
71
|
-
appearance = _ref2.appearance
|
|
72
|
-
editorView = _ref2.editorView;
|
|
71
|
+
appearance = _ref2.appearance;
|
|
73
72
|
if (config.shouldShowToolbarButton === false) {
|
|
74
73
|
return null;
|
|
75
74
|
}
|
|
76
75
|
if (config.renderButton) {
|
|
77
|
-
return config.renderButton(CustomisableLoomToolbarButton(
|
|
76
|
+
return config.renderButton(CustomisableLoomToolbarButton(disabled, appearance, api));
|
|
78
77
|
}
|
|
79
78
|
if (config.shouldShowToolbarButton) {
|
|
80
79
|
return jsx(LoomToolbarButtonWrapper
|
package/dist/types/commands.d.ts
CHANGED
|
@@ -26,6 +26,6 @@ export declare const insertVideo: ({ editorAnalyticsAPI, video, }: {
|
|
|
26
26
|
}) => EditorCommand;
|
|
27
27
|
export declare const insertLoom: (editorView: EditorView | null, api: ExtractInjectionAPI<LoomPlugin> | undefined, video: VideoMeta, positionType: PositionType) => boolean;
|
|
28
28
|
export declare const executeRecordVideo: (api: ExtractInjectionAPI<LoomPlugin> | undefined) => void;
|
|
29
|
-
export declare const setupLoom: (loomProvider: LoomProviderOptions, api: ExtractInjectionAPI<LoomPlugin> | undefined, editorView: EditorView | null,
|
|
29
|
+
export declare const setupLoom: (loomProvider: LoomProviderOptions, api: ExtractInjectionAPI<LoomPlugin> | undefined, editorView: EditorView | null, initViaCommand?: boolean) => Promise<{
|
|
30
30
|
error?: string;
|
|
31
31
|
}>;
|
|
@@ -26,6 +26,6 @@ export declare const insertVideo: ({ editorAnalyticsAPI, video, }: {
|
|
|
26
26
|
}) => EditorCommand;
|
|
27
27
|
export declare const insertLoom: (editorView: EditorView | null, api: ExtractInjectionAPI<LoomPlugin> | undefined, video: VideoMeta, positionType: PositionType) => boolean;
|
|
28
28
|
export declare const executeRecordVideo: (api: ExtractInjectionAPI<LoomPlugin> | undefined) => void;
|
|
29
|
-
export declare const setupLoom: (loomProvider: LoomProviderOptions, api: ExtractInjectionAPI<LoomPlugin> | undefined, editorView: EditorView | null,
|
|
29
|
+
export declare const setupLoom: (loomProvider: LoomProviderOptions, api: ExtractInjectionAPI<LoomPlugin> | undefined, editorView: EditorView | null, initViaCommand?: boolean) => Promise<{
|
|
30
30
|
error?: string;
|
|
31
31
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-loom",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Loom plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
".": "./src/index.ts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/button": "^20.
|
|
38
|
-
"@atlaskit/editor-common": "^91.
|
|
37
|
+
"@atlaskit/button": "^20.2.0",
|
|
38
|
+
"@atlaskit/editor-common": "^91.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
40
40
|
"@atlaskit/editor-plugin-hyperlink": "^2.9.0",
|
|
41
41
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@atlaskit/editor-plugin-base": "^1.11.0",
|
|
62
|
-
"@atlaskit/editor-plugin-card": "^3.
|
|
62
|
+
"@atlaskit/editor-plugin-card": "^3.3.0",
|
|
63
63
|
"@atlaskit/editor-plugin-copy-button": "^1.3.0",
|
|
64
64
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
65
65
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|