@atlaskit/editor-jira-transformer 27.0.0 → 29.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 +12 -0
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/utils.js +6 -6
- package/dist/es2019/index.js +9 -8
- package/dist/es2019/utils.js +6 -6
- package/dist/esm/index.js +9 -8
- package/dist/esm/utils.js +6 -6
- package/dist/types/index.d.ts +1 -1
- package/package.json +7 -7
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -7,17 +7,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.JIRATransformer = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
11
|
-
var _parseHtml = _interopRequireDefault(require("./parse-html"));
|
|
12
|
-
var _fixDoc = _interopRequireDefault(require("./fix-doc"));
|
|
13
|
-
var _utils = require("./utils");
|
|
14
|
-
var _isSchemaWithLists = require("@atlaskit/adf-schema/is-schema-with-lists");
|
|
15
|
-
var _isSchemaWithMentions = require("@atlaskit/adf-schema/is-schema-with-mentions");
|
|
16
|
-
var _isSchemaWithEmojis = require("@atlaskit/adf-schema/is-schema-with-emojis");
|
|
17
|
-
var _isSchemaWithCodeBlock = require("@atlaskit/adf-schema/is-schema-with-code-block");
|
|
18
10
|
var _isSchemaWithBlockQuotes = require("@atlaskit/adf-schema/is-schema-with-block-quotes");
|
|
11
|
+
var _isSchemaWithCodeBlock = require("@atlaskit/adf-schema/is-schema-with-code-block");
|
|
12
|
+
var _isSchemaWithEmojis = require("@atlaskit/adf-schema/is-schema-with-emojis");
|
|
13
|
+
var _isSchemaWithLists = require("@atlaskit/adf-schema/is-schema-with-lists");
|
|
19
14
|
var _isSchemaWithMedia = require("@atlaskit/adf-schema/is-schema-with-media");
|
|
15
|
+
var _isSchemaWithMentions = require("@atlaskit/adf-schema/is-schema-with-mentions");
|
|
20
16
|
var _isSchemaWithTables = require("@atlaskit/adf-schema/is-schema-with-tables");
|
|
17
|
+
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
18
|
+
var _fixDoc = _interopRequireDefault(require("./fix-doc"));
|
|
19
|
+
var _parseHtml = _interopRequireDefault(require("./parse-html"));
|
|
20
|
+
var _utils = require("./utils");
|
|
21
21
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
22
22
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
23
23
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
package/dist/cjs/utils.js
CHANGED
|
@@ -7,17 +7,17 @@ exports.bfsOrder = bfsOrder;
|
|
|
7
7
|
exports.convert = convert;
|
|
8
8
|
exports.ensureBlocks = ensureBlocks;
|
|
9
9
|
exports.ensureInline = void 0;
|
|
10
|
-
var _normalizeHexColor = require("@atlaskit/adf-schema/normalize-hex-color");
|
|
11
|
-
var _isSchemaWithLists = require("@atlaskit/adf-schema/is-schema-with-lists");
|
|
12
|
-
var _isSchemaWithMentions = require("@atlaskit/adf-schema/is-schema-with-mentions");
|
|
13
|
-
var _isSchemaWithLinks = require("@atlaskit/adf-schema/is-schema-with-links");
|
|
14
10
|
var _isSchemaWithAdvancedTextFormattingMarks = require("@atlaskit/adf-schema/is-schema-with-advanced-text-formatting-marks");
|
|
15
|
-
var _isSchemaWithCodeBlock = require("@atlaskit/adf-schema/is-schema-with-code-block");
|
|
16
11
|
var _isSchemaWithBlockQuotes = require("@atlaskit/adf-schema/is-schema-with-block-quotes");
|
|
12
|
+
var _isSchemaWithCodeBlock = require("@atlaskit/adf-schema/is-schema-with-code-block");
|
|
13
|
+
var _isSchemaWithLinks = require("@atlaskit/adf-schema/is-schema-with-links");
|
|
14
|
+
var _isSchemaWithLists = require("@atlaskit/adf-schema/is-schema-with-lists");
|
|
17
15
|
var _isSchemaWithMedia = require("@atlaskit/adf-schema/is-schema-with-media");
|
|
16
|
+
var _isSchemaWithMentions = require("@atlaskit/adf-schema/is-schema-with-mentions");
|
|
18
17
|
var _isSchemaWithSubSupMark = require("@atlaskit/adf-schema/is-schema-with-sub-sup-mark");
|
|
19
|
-
var _isSchemaWithTextColor = require("@atlaskit/adf-schema/is-schema-with-text-color");
|
|
20
18
|
var _isSchemaWithTables = require("@atlaskit/adf-schema/is-schema-with-tables");
|
|
19
|
+
var _isSchemaWithTextColor = require("@atlaskit/adf-schema/is-schema-with-text-color");
|
|
20
|
+
var _normalizeHexColor = require("@atlaskit/adf-schema/normalize-hex-color");
|
|
21
21
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
22
22
|
var _emojiHelper = require("./emojiHelper");
|
|
23
23
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import parseHtml from './parse-html';
|
|
3
|
-
import fixDoc from './fix-doc';
|
|
4
|
-
import { bfsOrder, convert, ensureBlocks } from './utils';
|
|
5
|
-
import { isSchemaWithLists } from '@atlaskit/adf-schema/is-schema-with-lists';
|
|
6
|
-
import { isSchemaWithMentions } from '@atlaskit/adf-schema/is-schema-with-mentions';
|
|
7
|
-
import { isSchemaWithEmojis } from '@atlaskit/adf-schema/is-schema-with-emojis';
|
|
8
|
-
import { isSchemaWithCodeBlock } from '@atlaskit/adf-schema/is-schema-with-code-block';
|
|
9
1
|
import { isSchemaWithBlockQuotes } from '@atlaskit/adf-schema/is-schema-with-block-quotes';
|
|
2
|
+
import { isSchemaWithCodeBlock } from '@atlaskit/adf-schema/is-schema-with-code-block';
|
|
3
|
+
import { isSchemaWithEmojis } from '@atlaskit/adf-schema/is-schema-with-emojis';
|
|
4
|
+
import { isSchemaWithLists } from '@atlaskit/adf-schema/is-schema-with-lists';
|
|
10
5
|
import { isSchemaWithMedia } from '@atlaskit/adf-schema/is-schema-with-media';
|
|
6
|
+
import { isSchemaWithMentions } from '@atlaskit/adf-schema/is-schema-with-mentions';
|
|
11
7
|
import { isSchemaWithTables } from '@atlaskit/adf-schema/is-schema-with-tables';
|
|
8
|
+
import { Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
|
+
import fixDoc from './fix-doc';
|
|
10
|
+
import parseHtml from './parse-html';
|
|
11
|
+
import { bfsOrder, convert, ensureBlocks } from './utils';
|
|
12
|
+
|
|
12
13
|
// Ignored via go/ees005
|
|
13
14
|
// eslint-disable-next-line require-unicode-regexp
|
|
14
15
|
const FRAGMENT_HREF_REGEX = /^#/;
|
package/dist/es2019/utils.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { normalizeHexColor } from '@atlaskit/adf-schema/normalize-hex-color';
|
|
2
|
-
import { isSchemaWithLists } from '@atlaskit/adf-schema/is-schema-with-lists';
|
|
3
|
-
import { isSchemaWithMentions } from '@atlaskit/adf-schema/is-schema-with-mentions';
|
|
4
|
-
import { isSchemaWithLinks } from '@atlaskit/adf-schema/is-schema-with-links';
|
|
5
1
|
import { isSchemaWithAdvancedTextFormattingMarks } from '@atlaskit/adf-schema/is-schema-with-advanced-text-formatting-marks';
|
|
6
|
-
import { isSchemaWithCodeBlock } from '@atlaskit/adf-schema/is-schema-with-code-block';
|
|
7
2
|
import { isSchemaWithBlockQuotes } from '@atlaskit/adf-schema/is-schema-with-block-quotes';
|
|
3
|
+
import { isSchemaWithCodeBlock } from '@atlaskit/adf-schema/is-schema-with-code-block';
|
|
4
|
+
import { isSchemaWithLinks } from '@atlaskit/adf-schema/is-schema-with-links';
|
|
5
|
+
import { isSchemaWithLists } from '@atlaskit/adf-schema/is-schema-with-lists';
|
|
8
6
|
import { isSchemaWithMedia } from '@atlaskit/adf-schema/is-schema-with-media';
|
|
7
|
+
import { isSchemaWithMentions } from '@atlaskit/adf-schema/is-schema-with-mentions';
|
|
9
8
|
import { isSchemaWithSubSupMark } from '@atlaskit/adf-schema/is-schema-with-sub-sup-mark';
|
|
10
|
-
import { isSchemaWithTextColor } from '@atlaskit/adf-schema/is-schema-with-text-color';
|
|
11
9
|
import { isSchemaWithTables } from '@atlaskit/adf-schema/is-schema-with-tables';
|
|
10
|
+
import { isSchemaWithTextColor } from '@atlaskit/adf-schema/is-schema-with-text-color';
|
|
11
|
+
import { normalizeHexColor } from '@atlaskit/adf-schema/normalize-hex-color';
|
|
12
12
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
13
13
|
import { mapImageToEmoji } from './emojiHelper';
|
|
14
14
|
|
package/dist/esm/index.js
CHANGED
|
@@ -3,17 +3,18 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
4
4
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
5
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6
|
-
import { Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
-
import parseHtml from './parse-html';
|
|
8
|
-
import fixDoc from './fix-doc';
|
|
9
|
-
import { bfsOrder, convert, ensureBlocks } from './utils';
|
|
10
|
-
import { isSchemaWithLists } from '@atlaskit/adf-schema/is-schema-with-lists';
|
|
11
|
-
import { isSchemaWithMentions } from '@atlaskit/adf-schema/is-schema-with-mentions';
|
|
12
|
-
import { isSchemaWithEmojis } from '@atlaskit/adf-schema/is-schema-with-emojis';
|
|
13
|
-
import { isSchemaWithCodeBlock } from '@atlaskit/adf-schema/is-schema-with-code-block';
|
|
14
6
|
import { isSchemaWithBlockQuotes } from '@atlaskit/adf-schema/is-schema-with-block-quotes';
|
|
7
|
+
import { isSchemaWithCodeBlock } from '@atlaskit/adf-schema/is-schema-with-code-block';
|
|
8
|
+
import { isSchemaWithEmojis } from '@atlaskit/adf-schema/is-schema-with-emojis';
|
|
9
|
+
import { isSchemaWithLists } from '@atlaskit/adf-schema/is-schema-with-lists';
|
|
15
10
|
import { isSchemaWithMedia } from '@atlaskit/adf-schema/is-schema-with-media';
|
|
11
|
+
import { isSchemaWithMentions } from '@atlaskit/adf-schema/is-schema-with-mentions';
|
|
16
12
|
import { isSchemaWithTables } from '@atlaskit/adf-schema/is-schema-with-tables';
|
|
13
|
+
import { Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
+
import fixDoc from './fix-doc';
|
|
15
|
+
import parseHtml from './parse-html';
|
|
16
|
+
import { bfsOrder, convert, ensureBlocks } from './utils';
|
|
17
|
+
|
|
17
18
|
// Ignored via go/ees005
|
|
18
19
|
// eslint-disable-next-line require-unicode-regexp
|
|
19
20
|
var FRAGMENT_HREF_REGEX = /^#/;
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
2
2
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
3
3
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4
|
-
import { normalizeHexColor } from '@atlaskit/adf-schema/normalize-hex-color';
|
|
5
|
-
import { isSchemaWithLists } from '@atlaskit/adf-schema/is-schema-with-lists';
|
|
6
|
-
import { isSchemaWithMentions } from '@atlaskit/adf-schema/is-schema-with-mentions';
|
|
7
|
-
import { isSchemaWithLinks } from '@atlaskit/adf-schema/is-schema-with-links';
|
|
8
4
|
import { isSchemaWithAdvancedTextFormattingMarks } from '@atlaskit/adf-schema/is-schema-with-advanced-text-formatting-marks';
|
|
9
|
-
import { isSchemaWithCodeBlock } from '@atlaskit/adf-schema/is-schema-with-code-block';
|
|
10
5
|
import { isSchemaWithBlockQuotes } from '@atlaskit/adf-schema/is-schema-with-block-quotes';
|
|
6
|
+
import { isSchemaWithCodeBlock } from '@atlaskit/adf-schema/is-schema-with-code-block';
|
|
7
|
+
import { isSchemaWithLinks } from '@atlaskit/adf-schema/is-schema-with-links';
|
|
8
|
+
import { isSchemaWithLists } from '@atlaskit/adf-schema/is-schema-with-lists';
|
|
11
9
|
import { isSchemaWithMedia } from '@atlaskit/adf-schema/is-schema-with-media';
|
|
10
|
+
import { isSchemaWithMentions } from '@atlaskit/adf-schema/is-schema-with-mentions';
|
|
12
11
|
import { isSchemaWithSubSupMark } from '@atlaskit/adf-schema/is-schema-with-sub-sup-mark';
|
|
13
|
-
import { isSchemaWithTextColor } from '@atlaskit/adf-schema/is-schema-with-text-color';
|
|
14
12
|
import { isSchemaWithTables } from '@atlaskit/adf-schema/is-schema-with-tables';
|
|
13
|
+
import { isSchemaWithTextColor } from '@atlaskit/adf-schema/is-schema-with-text-color';
|
|
14
|
+
import { normalizeHexColor } from '@atlaskit/adf-schema/normalize-hex-color';
|
|
15
15
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
16
16
|
import { mapImageToEmoji } from './emojiHelper';
|
|
17
17
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
1
2
|
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
4
4
|
export type CustomEncoder = (userId: string) => string;
|
|
5
5
|
export interface JIRACustomEncoders {
|
|
6
6
|
mention?: CustomEncoder;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-jira-transformer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.0",
|
|
4
4
|
"description": "Editor JIRA transformer's",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^57.
|
|
27
|
+
"@atlaskit/adf-schema": "^57.6.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
29
29
|
"@babel/runtime": "^7.0.0",
|
|
30
30
|
"collapse-whitespace": "^1.1.6"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^
|
|
33
|
+
"@atlaskit/editor-common": "^125.0.0",
|
|
34
34
|
"react": "^18.2.0 || ^19.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@atlaskit/activity": "^1.0.1",
|
|
38
|
-
"@atlaskit/editor-core": "^
|
|
39
|
-
"@atlaskit/editor-json-transformer": "^
|
|
38
|
+
"@atlaskit/editor-core": "^231.0.0",
|
|
39
|
+
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
40
40
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
41
|
-
"@atlaskit/mention": "^
|
|
41
|
+
"@atlaskit/mention": "^30.0.0",
|
|
42
42
|
"@atlaskit/theme": "^28.2.0",
|
|
43
|
-
"@atlaskit/tokens": "^
|
|
43
|
+
"@atlaskit/tokens": "^20.0.0",
|
|
44
44
|
"@atlaskit/util-data-test": "^19.1.0",
|
|
45
45
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
46
46
|
"@atlassian/workbench": "workspace:*",
|
package/tsconfig.json
CHANGED