@atlaskit/editor-plugin-loom 4.1.4 → 4.1.5
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
|
@@ -83,8 +83,8 @@ var recordVideoFailed = exports.recordVideoFailed = function recordVideoFailed(_
|
|
|
83
83
|
var insertVideo = exports.insertVideo = function insertVideo(_ref9) {
|
|
84
84
|
var editorAnalyticsAPI = _ref9.editorAnalyticsAPI,
|
|
85
85
|
video = _ref9.video;
|
|
86
|
-
return function (
|
|
87
|
-
var tr =
|
|
86
|
+
return function (_ref0) {
|
|
87
|
+
var tr = _ref0.tr;
|
|
88
88
|
tr.setMeta(_main.loomPluginKey, {
|
|
89
89
|
type: _main.LoomPluginAction.INSERT_VIDEO
|
|
90
90
|
});
|
|
@@ -140,7 +140,7 @@ var executeRecordVideo = exports.executeRecordVideo = function executeRecordVide
|
|
|
140
140
|
}));
|
|
141
141
|
};
|
|
142
142
|
var setupLoom = exports.setupLoom = /*#__PURE__*/function () {
|
|
143
|
-
var
|
|
143
|
+
var _ref1 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(loomProvider, api, editorView, initViaCommand) {
|
|
144
144
|
var _api$core4, _api$analytics5;
|
|
145
145
|
var clientResult, _api$core2, _api$analytics2, attachToButton, loomButton;
|
|
146
146
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
@@ -194,8 +194,8 @@ var setupLoom = exports.setupLoom = /*#__PURE__*/function () {
|
|
|
194
194
|
}));
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
api === null || api === void 0 || (_api$core4 = api.core) === null || _api$core4 === void 0 || _api$core4.actions.execute(function (
|
|
198
|
-
var tr =
|
|
197
|
+
api === null || api === void 0 || (_api$core4 = api.core) === null || _api$core4 === void 0 || _api$core4.actions.execute(function (_ref10) {
|
|
198
|
+
var tr = _ref10.tr;
|
|
199
199
|
enableLoom({
|
|
200
200
|
loomButton: loomButton
|
|
201
201
|
})({
|
|
@@ -227,6 +227,6 @@ var setupLoom = exports.setupLoom = /*#__PURE__*/function () {
|
|
|
227
227
|
}, _callee);
|
|
228
228
|
}));
|
|
229
229
|
return function setupLoom(_x, _x2, _x3, _x4) {
|
|
230
|
-
return
|
|
230
|
+
return _ref1.apply(this, arguments);
|
|
231
231
|
};
|
|
232
232
|
}();
|
|
@@ -20,8 +20,7 @@ var _excluded = ["onClickBeforeInit", "isDisabled", "href"];
|
|
|
20
20
|
* @jsx jsx
|
|
21
21
|
*/
|
|
22
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
-
function
|
|
24
|
-
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; }
|
|
23
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
25
24
|
var useSharedState = (0, _hooks.sharedPluginStateHookMigratorFactory)(function (api) {
|
|
26
25
|
var loomEnabled = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'loom.isEnabled');
|
|
27
26
|
var connectivityMode = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'connectivity.mode');
|
|
@@ -78,8 +78,8 @@ export var recordVideoFailed = function recordVideoFailed(_ref7) {
|
|
|
78
78
|
export var insertVideo = function insertVideo(_ref9) {
|
|
79
79
|
var editorAnalyticsAPI = _ref9.editorAnalyticsAPI,
|
|
80
80
|
video = _ref9.video;
|
|
81
|
-
return function (
|
|
82
|
-
var tr =
|
|
81
|
+
return function (_ref0) {
|
|
82
|
+
var tr = _ref0.tr;
|
|
83
83
|
tr.setMeta(loomPluginKey, {
|
|
84
84
|
type: LoomPluginAction.INSERT_VIDEO
|
|
85
85
|
});
|
|
@@ -135,7 +135,7 @@ export var executeRecordVideo = function executeRecordVideo(api) {
|
|
|
135
135
|
}));
|
|
136
136
|
};
|
|
137
137
|
export var setupLoom = /*#__PURE__*/function () {
|
|
138
|
-
var
|
|
138
|
+
var _ref1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(loomProvider, api, editorView, initViaCommand) {
|
|
139
139
|
var _api$core4, _api$analytics5;
|
|
140
140
|
var clientResult, _api$core2, _api$analytics2, attachToButton, loomButton;
|
|
141
141
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -189,8 +189,8 @@ export var setupLoom = /*#__PURE__*/function () {
|
|
|
189
189
|
}));
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
|
-
api === null || api === void 0 || (_api$core4 = api.core) === null || _api$core4 === void 0 || _api$core4.actions.execute(function (
|
|
193
|
-
var tr =
|
|
192
|
+
api === null || api === void 0 || (_api$core4 = api.core) === null || _api$core4 === void 0 || _api$core4.actions.execute(function (_ref10) {
|
|
193
|
+
var tr = _ref10.tr;
|
|
194
194
|
enableLoom({
|
|
195
195
|
loomButton: loomButton
|
|
196
196
|
})({
|
|
@@ -222,6 +222,6 @@ export var setupLoom = /*#__PURE__*/function () {
|
|
|
222
222
|
}, _callee);
|
|
223
223
|
}));
|
|
224
224
|
return function setupLoom(_x, _x2, _x3, _x4) {
|
|
225
|
-
return
|
|
225
|
+
return _ref1.apply(this, arguments);
|
|
226
226
|
};
|
|
227
227
|
}();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-loom",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"description": "Loom plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/button": "^23.2.0",
|
|
40
|
-
"@atlaskit/editor-common": "^106.
|
|
40
|
+
"@atlaskit/editor-common": "^106.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
42
42
|
"@atlaskit/editor-plugin-hyperlink": "^4.4.0",
|
|
43
43
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
47
47
|
"@atlaskit/icon": "^26.4.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
|
-
"@atlaskit/tokens": "^
|
|
49
|
+
"@atlaskit/tokens": "^5.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"@loomhq/record-sdk": "^2.36.18"
|