@atlaskit/editor-plugin-paste 11.2.6 → 11.2.8
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
|
@@ -101,32 +101,33 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
|
|
|
101
101
|
}
|
|
102
102
|
function _setExtensionAutoConverter() {
|
|
103
103
|
_setExtensionAutoConverter = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(name, extensionProviderPromise) {
|
|
104
|
-
|
|
104
|
+
var _t;
|
|
105
|
+
return _regenerator.default.wrap(function (_context) {
|
|
105
106
|
while (1) switch (_context.prev = _context.next) {
|
|
106
107
|
case 0:
|
|
107
108
|
if (!(name !== 'extensionProvider' || !extensionProviderPromise)) {
|
|
108
|
-
_context.next =
|
|
109
|
+
_context.next = 1;
|
|
109
110
|
break;
|
|
110
111
|
}
|
|
111
112
|
return _context.abrupt("return");
|
|
112
|
-
case
|
|
113
|
-
_context.prev =
|
|
114
|
-
_context.next =
|
|
113
|
+
case 1:
|
|
114
|
+
_context.prev = 1;
|
|
115
|
+
_context.next = 2;
|
|
115
116
|
return (0, _extensions.getExtensionAutoConvertersFromProvider)(extensionProviderPromise);
|
|
116
|
-
case
|
|
117
|
+
case 2:
|
|
117
118
|
extensionAutoConverter = _context.sent;
|
|
118
|
-
_context.next =
|
|
119
|
+
_context.next = 4;
|
|
119
120
|
break;
|
|
120
|
-
case
|
|
121
|
-
_context.prev =
|
|
122
|
-
|
|
121
|
+
case 3:
|
|
122
|
+
_context.prev = 3;
|
|
123
|
+
_t = _context["catch"](1);
|
|
123
124
|
// eslint-disable-next-line no-console
|
|
124
|
-
console.error(
|
|
125
|
-
case
|
|
125
|
+
console.error(_t);
|
|
126
|
+
case 4:
|
|
126
127
|
case "end":
|
|
127
128
|
return _context.stop();
|
|
128
129
|
}
|
|
129
|
-
}, _callee, null, [[
|
|
130
|
+
}, _callee, null, [[1, 3]]);
|
|
130
131
|
}));
|
|
131
132
|
return _setExtensionAutoConverter.apply(this, arguments);
|
|
132
133
|
}
|
|
@@ -586,24 +586,24 @@ function getSmartLinkAdf(_x, _x2, _x3) {
|
|
|
586
586
|
function _getSmartLinkAdf() {
|
|
587
587
|
_getSmartLinkAdf = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(text, type, cardOptions) {
|
|
588
588
|
var provider;
|
|
589
|
-
return _regenerator.default.wrap(function
|
|
589
|
+
return _regenerator.default.wrap(function (_context) {
|
|
590
590
|
while (1) switch (_context.prev = _context.next) {
|
|
591
591
|
case 0:
|
|
592
592
|
if (cardOptions.provider) {
|
|
593
|
-
_context.next =
|
|
593
|
+
_context.next = 1;
|
|
594
594
|
break;
|
|
595
595
|
}
|
|
596
596
|
throw Error('No card provider found');
|
|
597
|
-
case
|
|
598
|
-
_context.next =
|
|
597
|
+
case 1:
|
|
598
|
+
_context.next = 2;
|
|
599
599
|
return cardOptions.provider;
|
|
600
|
-
case
|
|
600
|
+
case 2:
|
|
601
601
|
provider = _context.sent;
|
|
602
|
-
_context.next =
|
|
602
|
+
_context.next = 3;
|
|
603
603
|
return provider.resolve(text, type);
|
|
604
|
-
case
|
|
604
|
+
case 3:
|
|
605
605
|
return _context.abrupt("return", _context.sent);
|
|
606
|
-
case
|
|
606
|
+
case 4:
|
|
607
607
|
case "end":
|
|
608
608
|
return _context.stop();
|
|
609
609
|
}
|
|
@@ -93,32 +93,33 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
93
93
|
}
|
|
94
94
|
function _setExtensionAutoConverter() {
|
|
95
95
|
_setExtensionAutoConverter = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(name, extensionProviderPromise) {
|
|
96
|
-
|
|
96
|
+
var _t;
|
|
97
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
97
98
|
while (1) switch (_context.prev = _context.next) {
|
|
98
99
|
case 0:
|
|
99
100
|
if (!(name !== 'extensionProvider' || !extensionProviderPromise)) {
|
|
100
|
-
_context.next =
|
|
101
|
+
_context.next = 1;
|
|
101
102
|
break;
|
|
102
103
|
}
|
|
103
104
|
return _context.abrupt("return");
|
|
104
|
-
case
|
|
105
|
-
_context.prev =
|
|
106
|
-
_context.next =
|
|
105
|
+
case 1:
|
|
106
|
+
_context.prev = 1;
|
|
107
|
+
_context.next = 2;
|
|
107
108
|
return getExtensionAutoConvertersFromProvider(extensionProviderPromise);
|
|
108
|
-
case
|
|
109
|
+
case 2:
|
|
109
110
|
extensionAutoConverter = _context.sent;
|
|
110
|
-
_context.next =
|
|
111
|
+
_context.next = 4;
|
|
111
112
|
break;
|
|
112
|
-
case
|
|
113
|
-
_context.prev =
|
|
114
|
-
|
|
113
|
+
case 3:
|
|
114
|
+
_context.prev = 3;
|
|
115
|
+
_t = _context["catch"](1);
|
|
115
116
|
// eslint-disable-next-line no-console
|
|
116
|
-
console.error(
|
|
117
|
-
case
|
|
117
|
+
console.error(_t);
|
|
118
|
+
case 4:
|
|
118
119
|
case "end":
|
|
119
120
|
return _context.stop();
|
|
120
121
|
}
|
|
121
|
-
}, _callee, null, [[
|
|
122
|
+
}, _callee, null, [[1, 3]]);
|
|
122
123
|
}));
|
|
123
124
|
return _setExtensionAutoConverter.apply(this, arguments);
|
|
124
125
|
}
|
|
@@ -559,24 +559,24 @@ function getSmartLinkAdf(_x, _x2, _x3) {
|
|
|
559
559
|
function _getSmartLinkAdf() {
|
|
560
560
|
_getSmartLinkAdf = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(text, type, cardOptions) {
|
|
561
561
|
var provider;
|
|
562
|
-
return _regeneratorRuntime.wrap(function
|
|
562
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
563
563
|
while (1) switch (_context.prev = _context.next) {
|
|
564
564
|
case 0:
|
|
565
565
|
if (cardOptions.provider) {
|
|
566
|
-
_context.next =
|
|
566
|
+
_context.next = 1;
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
throw Error('No card provider found');
|
|
570
|
-
case
|
|
571
|
-
_context.next =
|
|
570
|
+
case 1:
|
|
571
|
+
_context.next = 2;
|
|
572
572
|
return cardOptions.provider;
|
|
573
|
-
case
|
|
573
|
+
case 2:
|
|
574
574
|
provider = _context.sent;
|
|
575
|
-
_context.next =
|
|
575
|
+
_context.next = 3;
|
|
576
576
|
return provider.resolve(text, type);
|
|
577
|
-
case
|
|
577
|
+
case 3:
|
|
578
578
|
return _context.abrupt("return", _context.sent);
|
|
579
|
-
case
|
|
579
|
+
case 4:
|
|
580
580
|
case "end":
|
|
581
581
|
return _context.stop();
|
|
582
582
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.8",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^52.
|
|
30
|
+
"@atlaskit/adf-schema": "^52.15.0",
|
|
31
31
|
"@atlaskit/code": "^17.5.0",
|
|
32
32
|
"@atlaskit/editor-markdown-transformer": "^5.21.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-annotation": "^10.5.0",
|
|
35
35
|
"@atlaskit/editor-plugin-better-type-history": "^10.1.0",
|
|
36
|
-
"@atlaskit/editor-plugin-card": "^16.
|
|
36
|
+
"@atlaskit/editor-plugin-card": "^16.11.0",
|
|
37
37
|
"@atlaskit/editor-plugin-expand": "^11.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^9.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-list": "^12.1.0",
|
|
40
|
-
"@atlaskit/editor-plugin-media": "^12.
|
|
41
|
-
"@atlaskit/editor-plugin-mentions": "^12.
|
|
40
|
+
"@atlaskit/editor-plugin-media": "^12.9.0",
|
|
41
|
+
"@atlaskit/editor-plugin-mentions": "^12.3.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.10.0",
|
|
44
44
|
"@atlaskit/flag": "^17.12.0",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@atlaskit/media-common": "^13.3.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
52
|
-
"@atlaskit/tokens": "^13.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^86.0.0",
|
|
52
|
+
"@atlaskit/tokens": "^13.1.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
55
55
|
"uuid": "^3.1.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^114.
|
|
58
|
+
"@atlaskit/editor-common": "^114.54.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-dom": "^18.2.0",
|
|
61
61
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|