@atlaskit/editor-common 74.20.0 → 74.21.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 +7 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/assets/datasource-jira-issue.js +108 -0
- package/dist/cjs/quick-insert/assets/index.js +15 -2
- package/dist/cjs/quick-insert/index.js +6 -0
- package/dist/cjs/types/datasource.js +5 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/datasource.js +4 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/assets/datasource-jira-issue.js +100 -0
- package/dist/es2019/quick-insert/assets/index.js +4 -0
- package/dist/es2019/quick-insert/index.js +1 -1
- package/dist/es2019/types/datasource.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/datasource.js +4 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/assets/datasource-jira-issue.js +100 -0
- package/dist/esm/quick-insert/assets/index.js +10 -0
- package/dist/esm/quick-insert/index.js +1 -1
- package/dist/esm/types/datasource.js +1 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/datasource.js +4 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +1 -1
- package/dist/types/quick-insert/assets/datasource-jira-issue.d.ts +2 -0
- package/dist/types/quick-insert/assets/index.d.ts +1 -0
- package/dist/types/quick-insert/index.d.ts +1 -1
- package/dist/types/types/datasource.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/utils/datasource.d.ts +1 -2
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +1 -1
- package/dist/types-ts4.5/quick-insert/assets/datasource-jira-issue.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +1 -0
- package/dist/types-ts4.5/quick-insert/index.d.ts +1 -1
- package/dist/types-ts4.5/types/datasource.d.ts +1 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -0
- package/dist/types-ts4.5/utils/datasource.d.ts +1 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 74.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`680a4437157`](https://bitbucket.org/atlassian/atlassian-frontend/commits/680a4437157) - - Adds support for datasource quick insert
|
|
8
|
+
- Export type `DatasourceModalType`
|
|
9
|
+
|
|
3
10
|
## 74.20.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "74.
|
|
19
|
+
var packageVersion = "74.21.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = IconDatasourceJiraIssue;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
10
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
+
|
|
12
|
+
function IconDatasourceJiraIssue() {
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
|
+
width: "40",
|
|
15
|
+
height: "40",
|
|
16
|
+
viewBox: "0 0 40 40",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
+
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
20
|
+
clipPath: "url(#clip0_503_53432)"
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
22
|
+
width: "40",
|
|
23
|
+
height: "40",
|
|
24
|
+
rx: "3",
|
|
25
|
+
fill: "white"
|
|
26
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
27
|
+
fillRule: "evenodd",
|
|
28
|
+
clipRule: "evenodd",
|
|
29
|
+
d: "M18 12H44V22H18V12Z",
|
|
30
|
+
fill: "white",
|
|
31
|
+
stroke: "#C1C7D0"
|
|
32
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
33
|
+
fillRule: "evenodd",
|
|
34
|
+
clipRule: "evenodd",
|
|
35
|
+
d: "M18 8H43C43.5523 8 44 8.44772 44 9V12H18V8Z",
|
|
36
|
+
fill: "#DFE1E6",
|
|
37
|
+
stroke: "#C1C7D0"
|
|
38
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
clipRule: "evenodd",
|
|
41
|
+
d: "M18 22H44V31C44 31.5523 43.5523 32 43 32H18V22Z",
|
|
42
|
+
fill: "white",
|
|
43
|
+
stroke: "#C1C7D0"
|
|
44
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
45
|
+
fillRule: "evenodd",
|
|
46
|
+
clipRule: "evenodd",
|
|
47
|
+
d: "M7 12H19V22H7V12Z",
|
|
48
|
+
fill: "white",
|
|
49
|
+
stroke: "#C1C7D0"
|
|
50
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
51
|
+
fillRule: "evenodd",
|
|
52
|
+
clipRule: "evenodd",
|
|
53
|
+
d: "M7 9C7 8.44772 7.44772 8 8 8H19V12H7V9Z",
|
|
54
|
+
fill: "#DFE1E6",
|
|
55
|
+
stroke: "#C1C7D0"
|
|
56
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
clipRule: "evenodd",
|
|
59
|
+
d: "M7 22H19V32H8C7.44772 32 7 31.5523 7 31V22Z",
|
|
60
|
+
fill: "white",
|
|
61
|
+
stroke: "#C1C7D0"
|
|
62
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
63
|
+
x: "10",
|
|
64
|
+
y: "14",
|
|
65
|
+
width: "6",
|
|
66
|
+
height: "6",
|
|
67
|
+
rx: "1",
|
|
68
|
+
fill: "#FF5230"
|
|
69
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
70
|
+
fillRule: "evenodd",
|
|
71
|
+
clipRule: "evenodd",
|
|
72
|
+
d: "M13 18C13.5523 18 14 17.5523 14 17C14 16.4477 13.5523 16 13 16C12.4477 16 12 16.4477 12 17C12 17.5523 12.4477 18 13 18Z",
|
|
73
|
+
fill: "white"
|
|
74
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
75
|
+
x: "10",
|
|
76
|
+
y: "24",
|
|
77
|
+
width: "6",
|
|
78
|
+
height: "6",
|
|
79
|
+
rx: "1",
|
|
80
|
+
fill: "#36B37E"
|
|
81
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
82
|
+
fillRule: "evenodd",
|
|
83
|
+
clipRule: "evenodd",
|
|
84
|
+
d: "M12.2 25.7002C12.0895 25.7002 12 25.7897 12 25.9002V28.2174C12 28.3955 12.2154 28.4848 12.3414 28.3588L13 27.7002L13.6586 28.3588C13.7846 28.4848 14 28.3955 14 28.2174V25.9002C14 25.7897 13.9105 25.7002 13.8 25.7002H12.2Z",
|
|
85
|
+
fill: "white"
|
|
86
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
87
|
+
x: "22",
|
|
88
|
+
y: "16",
|
|
89
|
+
width: "19",
|
|
90
|
+
height: "2",
|
|
91
|
+
rx: "1",
|
|
92
|
+
fill: "#C1C7D0"
|
|
93
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
94
|
+
x: "22",
|
|
95
|
+
y: "26",
|
|
96
|
+
width: "19",
|
|
97
|
+
height: "2",
|
|
98
|
+
rx: "1",
|
|
99
|
+
fill: "#C1C7D0"
|
|
100
|
+
})), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
101
|
+
id: "clip0_503_53432"
|
|
102
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
103
|
+
width: "40",
|
|
104
|
+
height: "40",
|
|
105
|
+
rx: "3",
|
|
106
|
+
fill: "white"
|
|
107
|
+
}))));
|
|
108
|
+
}
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "IconCustomPanel", {
|
|
|
11
11
|
return _customPanel.default;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
exports.IconExpand = exports.IconEmoji = exports.IconDivider = exports.IconDecision = exports.IconDate = void 0;
|
|
14
|
+
exports.IconExpand = exports.IconEmoji = exports.IconDivider = exports.IconDecision = exports.IconDate = exports.IconDatasourceJiraIssue = void 0;
|
|
15
15
|
Object.defineProperty(exports, "IconFallback", {
|
|
16
16
|
enumerable: true,
|
|
17
17
|
get: function get() {
|
|
@@ -369,4 +369,17 @@ var IconExpand = (0, _reactLoadable.default)({
|
|
|
369
369
|
return null;
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
|
-
exports.IconExpand = IconExpand;
|
|
372
|
+
exports.IconExpand = IconExpand;
|
|
373
|
+
var IconDatasourceJiraIssue = (0, _reactLoadable.default)({
|
|
374
|
+
loader: function loader() {
|
|
375
|
+
return Promise.resolve().then(function () {
|
|
376
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-jira-issue" */'./datasource-jira-issue'));
|
|
377
|
+
}).then(function (module) {
|
|
378
|
+
return module.default;
|
|
379
|
+
});
|
|
380
|
+
},
|
|
381
|
+
loading: function loading() {
|
|
382
|
+
return null;
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
exports.IconDatasourceJiraIssue = IconDatasourceJiraIssue;
|
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "IconCustomPanel", {
|
|
|
21
21
|
return _assets.IconCustomPanel;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "IconDatasourceJiraIssue", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _assets.IconDatasourceJiraIssue;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "IconDate", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function get() {
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "74.
|
|
27
|
+
var packageVersion = "74.21.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.canRenderDatasource = void 0;
|
|
7
7
|
var _linkDatasource = require("@atlaskit/link-datasource");
|
|
8
8
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
|
-
var getDatasourceType = function getDatasourceType(
|
|
10
|
-
switch (
|
|
9
|
+
var getDatasourceType = function getDatasourceType(datasourceId) {
|
|
10
|
+
switch (datasourceId) {
|
|
11
11
|
case _linkDatasource.JIRA_LIST_OF_LINKS_DATASOURCE_ID:
|
|
12
12
|
return 'jira';
|
|
13
13
|
default:
|
|
14
14
|
return undefined;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
var canRenderDatasource = function canRenderDatasource(
|
|
17
|
+
var canRenderDatasource = function canRenderDatasource(datasourceId) {
|
|
18
18
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
19
|
-
var datasourceType = getDatasourceType(
|
|
19
|
+
var datasourceType = getDatasourceType(datasourceId);
|
|
20
20
|
switch (datasourceType) {
|
|
21
21
|
case 'jira':
|
|
22
22
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.datasource-jira_issues')) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "74.
|
|
3
|
+
const packageVersion = "74.21.0";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export default function IconDatasourceJiraIssue() {
|
|
5
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
6
|
+
width: "40",
|
|
7
|
+
height: "40",
|
|
8
|
+
viewBox: "0 0 40 40",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
12
|
+
clipPath: "url(#clip0_503_53432)"
|
|
13
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
14
|
+
width: "40",
|
|
15
|
+
height: "40",
|
|
16
|
+
rx: "3",
|
|
17
|
+
fill: "white"
|
|
18
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
fillRule: "evenodd",
|
|
20
|
+
clipRule: "evenodd",
|
|
21
|
+
d: "M18 12H44V22H18V12Z",
|
|
22
|
+
fill: "white",
|
|
23
|
+
stroke: "#C1C7D0"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
|
+
d: "M18 8H43C43.5523 8 44 8.44772 44 9V12H18V8Z",
|
|
28
|
+
fill: "#DFE1E6",
|
|
29
|
+
stroke: "#C1C7D0"
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
clipRule: "evenodd",
|
|
33
|
+
d: "M18 22H44V31C44 31.5523 43.5523 32 43 32H18V22Z",
|
|
34
|
+
fill: "white",
|
|
35
|
+
stroke: "#C1C7D0"
|
|
36
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
clipRule: "evenodd",
|
|
39
|
+
d: "M7 12H19V22H7V12Z",
|
|
40
|
+
fill: "white",
|
|
41
|
+
stroke: "#C1C7D0"
|
|
42
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
43
|
+
fillRule: "evenodd",
|
|
44
|
+
clipRule: "evenodd",
|
|
45
|
+
d: "M7 9C7 8.44772 7.44772 8 8 8H19V12H7V9Z",
|
|
46
|
+
fill: "#DFE1E6",
|
|
47
|
+
stroke: "#C1C7D0"
|
|
48
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
49
|
+
fillRule: "evenodd",
|
|
50
|
+
clipRule: "evenodd",
|
|
51
|
+
d: "M7 22H19V32H8C7.44772 32 7 31.5523 7 31V22Z",
|
|
52
|
+
fill: "white",
|
|
53
|
+
stroke: "#C1C7D0"
|
|
54
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
55
|
+
x: "10",
|
|
56
|
+
y: "14",
|
|
57
|
+
width: "6",
|
|
58
|
+
height: "6",
|
|
59
|
+
rx: "1",
|
|
60
|
+
fill: "#FF5230"
|
|
61
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
62
|
+
fillRule: "evenodd",
|
|
63
|
+
clipRule: "evenodd",
|
|
64
|
+
d: "M13 18C13.5523 18 14 17.5523 14 17C14 16.4477 13.5523 16 13 16C12.4477 16 12 16.4477 12 17C12 17.5523 12.4477 18 13 18Z",
|
|
65
|
+
fill: "white"
|
|
66
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
67
|
+
x: "10",
|
|
68
|
+
y: "24",
|
|
69
|
+
width: "6",
|
|
70
|
+
height: "6",
|
|
71
|
+
rx: "1",
|
|
72
|
+
fill: "#36B37E"
|
|
73
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
clipRule: "evenodd",
|
|
76
|
+
d: "M12.2 25.7002C12.0895 25.7002 12 25.7897 12 25.9002V28.2174C12 28.3955 12.2154 28.4848 12.3414 28.3588L13 27.7002L13.6586 28.3588C13.7846 28.4848 14 28.3955 14 28.2174V25.9002C14 25.7897 13.9105 25.7002 13.8 25.7002H12.2Z",
|
|
77
|
+
fill: "white"
|
|
78
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
79
|
+
x: "22",
|
|
80
|
+
y: "16",
|
|
81
|
+
width: "19",
|
|
82
|
+
height: "2",
|
|
83
|
+
rx: "1",
|
|
84
|
+
fill: "#C1C7D0"
|
|
85
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
86
|
+
x: "22",
|
|
87
|
+
y: "26",
|
|
88
|
+
width: "19",
|
|
89
|
+
height: "2",
|
|
90
|
+
rx: "1",
|
|
91
|
+
fill: "#C1C7D0"
|
|
92
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
93
|
+
id: "clip0_503_53432"
|
|
94
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
95
|
+
width: "40",
|
|
96
|
+
height: "40",
|
|
97
|
+
rx: "3",
|
|
98
|
+
fill: "white"
|
|
99
|
+
}))));
|
|
100
|
+
}
|
|
@@ -112,4 +112,8 @@ export const IconFeedback = Loadable({
|
|
|
112
112
|
export const IconExpand = Loadable({
|
|
113
113
|
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-expand" */'./expand').then(module => module.default),
|
|
114
114
|
loading: () => null
|
|
115
|
+
});
|
|
116
|
+
export const IconDatasourceJiraIssue = Loadable({
|
|
117
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-jira-issue" */'./datasource-jira-issue').then(module => module.default),
|
|
118
|
+
loading: () => null
|
|
115
119
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback } from './assets';
|
|
1
|
+
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue } from './assets';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
8
8
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
9
9
|
import Layer from '../Layer';
|
|
10
10
|
const packageName = "@atlaskit/editor-common";
|
|
11
|
-
const packageVersion = "74.
|
|
11
|
+
const packageVersion = "74.21.0";
|
|
12
12
|
const halfFocusRing = 1;
|
|
13
13
|
const dropOffset = '0, 8';
|
|
14
14
|
class DropList extends Component {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { JIRA_LIST_OF_LINKS_DATASOURCE_ID } from '@atlaskit/link-datasource';
|
|
2
2
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
const getDatasourceType =
|
|
4
|
-
switch (
|
|
3
|
+
const getDatasourceType = datasourceId => {
|
|
4
|
+
switch (datasourceId) {
|
|
5
5
|
case JIRA_LIST_OF_LINKS_DATASOURCE_ID:
|
|
6
6
|
return 'jira';
|
|
7
7
|
default:
|
|
8
8
|
return undefined;
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
export const canRenderDatasource = (
|
|
12
|
-
const datasourceType = getDatasourceType(
|
|
11
|
+
export const canRenderDatasource = (datasourceId, defaultValue = true) => {
|
|
12
|
+
const datasourceType = getDatasourceType(datasourceId);
|
|
13
13
|
switch (datasourceType) {
|
|
14
14
|
case 'jira':
|
|
15
15
|
if (getBooleanFF('platform.linking-platform.datasource-jira_issues')) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "74.
|
|
9
|
+
var packageVersion = "74.21.0";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export default function IconDatasourceJiraIssue() {
|
|
5
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
6
|
+
width: "40",
|
|
7
|
+
height: "40",
|
|
8
|
+
viewBox: "0 0 40 40",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
12
|
+
clipPath: "url(#clip0_503_53432)"
|
|
13
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
14
|
+
width: "40",
|
|
15
|
+
height: "40",
|
|
16
|
+
rx: "3",
|
|
17
|
+
fill: "white"
|
|
18
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
fillRule: "evenodd",
|
|
20
|
+
clipRule: "evenodd",
|
|
21
|
+
d: "M18 12H44V22H18V12Z",
|
|
22
|
+
fill: "white",
|
|
23
|
+
stroke: "#C1C7D0"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
|
+
d: "M18 8H43C43.5523 8 44 8.44772 44 9V12H18V8Z",
|
|
28
|
+
fill: "#DFE1E6",
|
|
29
|
+
stroke: "#C1C7D0"
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
clipRule: "evenodd",
|
|
33
|
+
d: "M18 22H44V31C44 31.5523 43.5523 32 43 32H18V22Z",
|
|
34
|
+
fill: "white",
|
|
35
|
+
stroke: "#C1C7D0"
|
|
36
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
clipRule: "evenodd",
|
|
39
|
+
d: "M7 12H19V22H7V12Z",
|
|
40
|
+
fill: "white",
|
|
41
|
+
stroke: "#C1C7D0"
|
|
42
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
43
|
+
fillRule: "evenodd",
|
|
44
|
+
clipRule: "evenodd",
|
|
45
|
+
d: "M7 9C7 8.44772 7.44772 8 8 8H19V12H7V9Z",
|
|
46
|
+
fill: "#DFE1E6",
|
|
47
|
+
stroke: "#C1C7D0"
|
|
48
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
49
|
+
fillRule: "evenodd",
|
|
50
|
+
clipRule: "evenodd",
|
|
51
|
+
d: "M7 22H19V32H8C7.44772 32 7 31.5523 7 31V22Z",
|
|
52
|
+
fill: "white",
|
|
53
|
+
stroke: "#C1C7D0"
|
|
54
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
55
|
+
x: "10",
|
|
56
|
+
y: "14",
|
|
57
|
+
width: "6",
|
|
58
|
+
height: "6",
|
|
59
|
+
rx: "1",
|
|
60
|
+
fill: "#FF5230"
|
|
61
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
62
|
+
fillRule: "evenodd",
|
|
63
|
+
clipRule: "evenodd",
|
|
64
|
+
d: "M13 18C13.5523 18 14 17.5523 14 17C14 16.4477 13.5523 16 13 16C12.4477 16 12 16.4477 12 17C12 17.5523 12.4477 18 13 18Z",
|
|
65
|
+
fill: "white"
|
|
66
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
67
|
+
x: "10",
|
|
68
|
+
y: "24",
|
|
69
|
+
width: "6",
|
|
70
|
+
height: "6",
|
|
71
|
+
rx: "1",
|
|
72
|
+
fill: "#36B37E"
|
|
73
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
clipRule: "evenodd",
|
|
76
|
+
d: "M12.2 25.7002C12.0895 25.7002 12 25.7897 12 25.9002V28.2174C12 28.3955 12.2154 28.4848 12.3414 28.3588L13 27.7002L13.6586 28.3588C13.7846 28.4848 14 28.3955 14 28.2174V25.9002C14 25.7897 13.9105 25.7002 13.8 25.7002H12.2Z",
|
|
77
|
+
fill: "white"
|
|
78
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
79
|
+
x: "22",
|
|
80
|
+
y: "16",
|
|
81
|
+
width: "19",
|
|
82
|
+
height: "2",
|
|
83
|
+
rx: "1",
|
|
84
|
+
fill: "#C1C7D0"
|
|
85
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
86
|
+
x: "22",
|
|
87
|
+
y: "26",
|
|
88
|
+
width: "19",
|
|
89
|
+
height: "2",
|
|
90
|
+
rx: "1",
|
|
91
|
+
fill: "#C1C7D0"
|
|
92
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
93
|
+
id: "clip0_503_53432"
|
|
94
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
95
|
+
width: "40",
|
|
96
|
+
height: "40",
|
|
97
|
+
rx: "3",
|
|
98
|
+
fill: "white"
|
|
99
|
+
}))));
|
|
100
|
+
}
|
|
@@ -245,4 +245,14 @@ export var IconExpand = Loadable({
|
|
|
245
245
|
loading: function loading() {
|
|
246
246
|
return null;
|
|
247
247
|
}
|
|
248
|
+
});
|
|
249
|
+
export var IconDatasourceJiraIssue = Loadable({
|
|
250
|
+
loader: function loader() {
|
|
251
|
+
return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-jira-issue" */'./datasource-jira-issue').then(function (module) {
|
|
252
|
+
return module.default;
|
|
253
|
+
});
|
|
254
|
+
},
|
|
255
|
+
loading: function loading() {
|
|
256
|
+
return null;
|
|
257
|
+
}
|
|
248
258
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback } from './assets';
|
|
1
|
+
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue } from './assets';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
18
18
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
19
19
|
import Layer from '../Layer';
|
|
20
20
|
var packageName = "@atlaskit/editor-common";
|
|
21
|
-
var packageVersion = "74.
|
|
21
|
+
var packageVersion = "74.21.0";
|
|
22
22
|
var halfFocusRing = 1;
|
|
23
23
|
var dropOffset = '0, 8';
|
|
24
24
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { JIRA_LIST_OF_LINKS_DATASOURCE_ID } from '@atlaskit/link-datasource';
|
|
2
2
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
var getDatasourceType = function getDatasourceType(
|
|
4
|
-
switch (
|
|
3
|
+
var getDatasourceType = function getDatasourceType(datasourceId) {
|
|
4
|
+
switch (datasourceId) {
|
|
5
5
|
case JIRA_LIST_OF_LINKS_DATASOURCE_ID:
|
|
6
6
|
return 'jira';
|
|
7
7
|
default:
|
|
8
8
|
return undefined;
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
export var canRenderDatasource = function canRenderDatasource(
|
|
11
|
+
export var canRenderDatasource = function canRenderDatasource(datasourceId) {
|
|
12
12
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
13
|
-
var datasourceType = getDatasourceType(
|
|
13
|
+
var datasourceType = getDatasourceType(datasourceId);
|
|
14
14
|
switch (datasourceType) {
|
|
15
15
|
case 'jira':
|
|
16
16
|
if (getBooleanFF('platform.linking-platform.datasource-jira_issues')) {
|
package/dist/esm/version.json
CHANGED
|
@@ -4,7 +4,7 @@ import type { TypeAheadItem } from '../types/type-ahead';
|
|
|
4
4
|
export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
|
|
5
5
|
selectInlineNode?: boolean;
|
|
6
6
|
}) => Transaction;
|
|
7
|
-
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText';
|
|
7
|
+
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource';
|
|
8
8
|
export type QuickInsertItem = TypeAheadItem & {
|
|
9
9
|
/** other names used to find the item */
|
|
10
10
|
keywords?: Array<string>;
|
|
@@ -28,3 +28,4 @@ type HeadingProps = IconProps & {
|
|
|
28
28
|
export declare const IconHeading: ({ level, ...props }: HeadingProps) => JSX.Element;
|
|
29
29
|
export declare const IconFeedback: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
30
30
|
export declare const IconExpand: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
31
|
+
export declare const IconDatasourceJiraIssue: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, } from './assets';
|
|
1
|
+
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, } from './assets';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DatasourceModalType = 'jira';
|
|
@@ -37,5 +37,6 @@ export type { GridType } from './grid';
|
|
|
37
37
|
export type { LinkInputType, LinkPickerOptions, LinkingOptions, HyperlinkPluginOptions, } from './hyperlink';
|
|
38
38
|
export type { SnapPointsProps } from './resizable-media-single';
|
|
39
39
|
export type { BreakoutMode } from './breakout';
|
|
40
|
+
export type { DatasourceModalType } from './datasource';
|
|
40
41
|
export type { ImageUploadPluginReferenceEventBase, ImageUploadPluginReferenceEventDragEvent, ImageUploadPluginReferenceEventClipboardEvent, ImageUploadPluginReferenceEvent, } from './image-upload-reference-event';
|
|
41
42
|
export type { HeadingLevels, NormalTextLevel, HeadingLevelsAndNormalText, } from './block-type';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const canRenderDatasource: (datasource: DatasourceAttributeProperties, defaultValue?: boolean) => boolean;
|
|
1
|
+
export declare const canRenderDatasource: (datasourceId: string, defaultValue?: boolean) => boolean;
|
|
@@ -4,7 +4,7 @@ import type { TypeAheadItem } from '../types/type-ahead';
|
|
|
4
4
|
export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
|
|
5
5
|
selectInlineNode?: boolean;
|
|
6
6
|
}) => Transaction;
|
|
7
|
-
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText';
|
|
7
|
+
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource';
|
|
8
8
|
export type QuickInsertItem = TypeAheadItem & {
|
|
9
9
|
/** other names used to find the item */
|
|
10
10
|
keywords?: Array<string>;
|
|
@@ -28,3 +28,4 @@ type HeadingProps = IconProps & {
|
|
|
28
28
|
export declare const IconHeading: ({ level, ...props }: HeadingProps) => JSX.Element;
|
|
29
29
|
export declare const IconFeedback: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
30
30
|
export declare const IconExpand: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
31
|
+
export declare const IconDatasourceJiraIssue: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, } from './assets';
|
|
1
|
+
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, } from './assets';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DatasourceModalType = 'jira';
|
|
@@ -37,5 +37,6 @@ export type { GridType } from './grid';
|
|
|
37
37
|
export type { LinkInputType, LinkPickerOptions, LinkingOptions, HyperlinkPluginOptions, } from './hyperlink';
|
|
38
38
|
export type { SnapPointsProps } from './resizable-media-single';
|
|
39
39
|
export type { BreakoutMode } from './breakout';
|
|
40
|
+
export type { DatasourceModalType } from './datasource';
|
|
40
41
|
export type { ImageUploadPluginReferenceEventBase, ImageUploadPluginReferenceEventDragEvent, ImageUploadPluginReferenceEventClipboardEvent, ImageUploadPluginReferenceEvent, } from './image-upload-reference-event';
|
|
41
42
|
export type { HeadingLevels, NormalTextLevel, HeadingLevelsAndNormalText, } from './block-type';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const canRenderDatasource: (datasource: DatasourceAttributeProperties, defaultValue?: boolean) => boolean;
|
|
1
|
+
export declare const canRenderDatasource: (datasourceId: string, defaultValue?: boolean) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "74.
|
|
3
|
+
"version": "74.21.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/spinner": "^15.5.0",
|
|
106
106
|
"@atlaskit/task-decision": "^17.7.0",
|
|
107
107
|
"@atlaskit/theme": "^12.5.0",
|
|
108
|
-
"@atlaskit/tokens": "^1.
|
|
108
|
+
"@atlaskit/tokens": "^1.12.0",
|
|
109
109
|
"@atlaskit/tooltip": "^17.8.0",
|
|
110
110
|
"@atlaskit/ufo": "^0.2.0",
|
|
111
111
|
"@atlaskit/width-detector": "^4.1.0",
|