@atlaskit/editor-plugin-loom 12.1.1 → 13.0.0
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
|
@@ -133,15 +133,15 @@ var setupLoom = exports.setupLoom = /*#__PURE__*/function () {
|
|
|
133
133
|
var _ref1 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(loomProvider, api, editorView, initViaCommand) {
|
|
134
134
|
var _api$core4, _api$analytics5;
|
|
135
135
|
var clientResult, _api$core2, _api$analytics2, attachToButton, loomButton;
|
|
136
|
-
return _regenerator.default.wrap(function
|
|
136
|
+
return _regenerator.default.wrap(function (_context) {
|
|
137
137
|
while (1) switch (_context.prev = _context.next) {
|
|
138
138
|
case 0:
|
|
139
|
-
_context.next =
|
|
139
|
+
_context.next = 1;
|
|
140
140
|
return loomProvider.getClient();
|
|
141
|
-
case
|
|
141
|
+
case 1:
|
|
142
142
|
clientResult = _context.sent;
|
|
143
143
|
if (!(clientResult.status === 'error')) {
|
|
144
|
-
_context.next =
|
|
144
|
+
_context.next = 2;
|
|
145
145
|
break;
|
|
146
146
|
}
|
|
147
147
|
api === null || api === void 0 || (_api$core2 = api.core) === null || _api$core2 === void 0 || _api$core2.actions.execute(disableLoom({
|
|
@@ -161,7 +161,7 @@ var setupLoom = exports.setupLoom = /*#__PURE__*/function () {
|
|
|
161
161
|
return _context.abrupt("return", {
|
|
162
162
|
error: clientResult.message
|
|
163
163
|
});
|
|
164
|
-
case
|
|
164
|
+
case 2:
|
|
165
165
|
attachToButton = clientResult.client.attachToButton; // Hidden element to work around the SDK API
|
|
166
166
|
loomButton = document.createElement('button');
|
|
167
167
|
attachToButton({
|
|
@@ -210,7 +210,7 @@ var setupLoom = exports.setupLoom = /*#__PURE__*/function () {
|
|
|
210
210
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
211
211
|
});
|
|
212
212
|
return _context.abrupt("return", {});
|
|
213
|
-
case
|
|
213
|
+
case 3:
|
|
214
214
|
case "end":
|
|
215
215
|
return _context.stop();
|
|
216
216
|
}
|
|
@@ -126,15 +126,15 @@ export var setupLoom = /*#__PURE__*/function () {
|
|
|
126
126
|
var _ref1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(loomProvider, api, editorView, initViaCommand) {
|
|
127
127
|
var _api$core4, _api$analytics5;
|
|
128
128
|
var clientResult, _api$core2, _api$analytics2, attachToButton, loomButton;
|
|
129
|
-
return _regeneratorRuntime.wrap(function
|
|
129
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
130
130
|
while (1) switch (_context.prev = _context.next) {
|
|
131
131
|
case 0:
|
|
132
|
-
_context.next =
|
|
132
|
+
_context.next = 1;
|
|
133
133
|
return loomProvider.getClient();
|
|
134
|
-
case
|
|
134
|
+
case 1:
|
|
135
135
|
clientResult = _context.sent;
|
|
136
136
|
if (!(clientResult.status === 'error')) {
|
|
137
|
-
_context.next =
|
|
137
|
+
_context.next = 2;
|
|
138
138
|
break;
|
|
139
139
|
}
|
|
140
140
|
api === null || api === void 0 || (_api$core2 = api.core) === null || _api$core2 === void 0 || _api$core2.actions.execute(disableLoom({
|
|
@@ -154,7 +154,7 @@ export var setupLoom = /*#__PURE__*/function () {
|
|
|
154
154
|
return _context.abrupt("return", {
|
|
155
155
|
error: clientResult.message
|
|
156
156
|
});
|
|
157
|
-
case
|
|
157
|
+
case 2:
|
|
158
158
|
attachToButton = clientResult.client.attachToButton; // Hidden element to work around the SDK API
|
|
159
159
|
loomButton = document.createElement('button');
|
|
160
160
|
attachToButton({
|
|
@@ -203,7 +203,7 @@ export var setupLoom = /*#__PURE__*/function () {
|
|
|
203
203
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
204
204
|
});
|
|
205
205
|
return _context.abrupt("return", {});
|
|
206
|
-
case
|
|
206
|
+
case 3:
|
|
207
207
|
case "end":
|
|
208
208
|
return _context.stop();
|
|
209
209
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-loom",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Loom plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,25 +33,25 @@
|
|
|
33
33
|
"atlaskit:src": "src/index.ts",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/button": "^23.11.0",
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
37
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
38
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
39
|
-
"@atlaskit/editor-plugin-hyperlink": "^
|
|
40
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
41
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
42
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
43
|
-
"@atlaskit/editor-plugin-width": "^
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^11.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-connectivity": "^11.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^13.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-hyperlink": "^13.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^12.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-quick-insert": "^11.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-toolbar": "^8.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-width": "^12.0.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
45
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
46
|
-
"@atlaskit/icon": "^35.
|
|
45
|
+
"@atlaskit/editor-toolbar": "^1.9.0",
|
|
46
|
+
"@atlaskit/icon": "^35.3.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
|
-
"@atlaskit/tokens": "^13.
|
|
48
|
+
"@atlaskit/tokens": "^13.1.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"@loomhq/record-sdk": "^4.11.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^
|
|
54
|
+
"@atlaskit/editor-common": "^115.0.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-dom": "^18.2.0",
|
|
57
57
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
"@testing-library/react": "^16.3.0",
|
|
61
61
|
"@testing-library/user-event": "^14.4.3",
|
|
62
62
|
"raf-stub": "^2.0.1",
|
|
63
|
+
"react": "^18.2.0",
|
|
64
|
+
"react-dom": "^18.2.0",
|
|
63
65
|
"react-intl": "^6.6.2"
|
|
64
66
|
},
|
|
65
67
|
"techstack": {
|