@atlaskit/editor-plugin-card 1.11.4 → 1.12.1
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
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 1.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#99590](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99590)
|
|
8
|
+
[`b0670c3f10e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b0670c3f10e6) -
|
|
9
|
+
Remove the displayedColumnCount key-value pair from attributes object entirely if it doesn't
|
|
10
|
+
exist for analytics
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.12.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
18
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
19
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 1.11.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -15,13 +15,15 @@ var _common = require("./common");
|
|
|
15
15
|
var _excluded = ["node", "nodeContext"],
|
|
16
16
|
_excluded2 = ["node", "nodeContext"],
|
|
17
17
|
_excluded3 = ["node", "nodeContext"];
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
20
|
function getDatasourceDisplay(datasourceAttrs) {
|
|
19
21
|
var _datasourceAttrs$data;
|
|
20
22
|
return (_datasourceAttrs$data = datasourceAttrs.datasource.views[0]) === null || _datasourceAttrs$data === void 0 ? void 0 : _datasourceAttrs$data.type;
|
|
21
23
|
}
|
|
22
24
|
function getDisplayedColumnCount(datasourceAttrs) {
|
|
23
25
|
var _datasourceAttrs$data2, _datasourceAttrs$data3;
|
|
24
|
-
return (_datasourceAttrs$data2 = (_datasourceAttrs$data3 = datasourceAttrs.datasource.views[0]) === null || _datasourceAttrs$data3 === void 0 || (_datasourceAttrs$data3 = _datasourceAttrs$data3.properties) === null || _datasourceAttrs$data3 === void 0 || (_datasourceAttrs$data3 = _datasourceAttrs$data3.columns) === null || _datasourceAttrs$data3 === void 0 ? void 0 : _datasourceAttrs$data3.length) !== null && _datasourceAttrs$data2 !== void 0 ? _datasourceAttrs$data2 :
|
|
26
|
+
return (_datasourceAttrs$data2 = (_datasourceAttrs$data3 = datasourceAttrs.datasource.views[0]) === null || _datasourceAttrs$data3 === void 0 || (_datasourceAttrs$data3 = _datasourceAttrs$data3.properties) === null || _datasourceAttrs$data3 === void 0 || (_datasourceAttrs$data3 = _datasourceAttrs$data3.columns) === null || _datasourceAttrs$data3 === void 0 ? void 0 : _datasourceAttrs$data3.length) !== null && _datasourceAttrs$data2 !== void 0 ? _datasourceAttrs$data2 : undefined;
|
|
25
27
|
}
|
|
26
28
|
function getSearchMethod(creationMethod, metadata) {
|
|
27
29
|
if (creationMethod === 'editor_paste' || creationMethod === 'editor_type') {
|
|
@@ -94,14 +96,16 @@ var DatasourceEventsBinding = exports.DatasourceEventsBinding = function Datasou
|
|
|
94
96
|
datasourceId: datasourceId,
|
|
95
97
|
parameters: parameters,
|
|
96
98
|
url: url
|
|
97
|
-
}, null, {
|
|
99
|
+
}, null, _objectSpread(_objectSpread({
|
|
98
100
|
actions: actions,
|
|
99
101
|
creationMethod: inputMethod,
|
|
100
|
-
display: display
|
|
101
|
-
|
|
102
|
+
display: display
|
|
103
|
+
}, typeof displayedColumnCount === 'number' ? {
|
|
104
|
+
displayedColumnCount: displayedColumnCount
|
|
105
|
+
} : {}), {}, {
|
|
102
106
|
nodeContext: nodeContext,
|
|
103
107
|
searchMethod: searchMethod
|
|
104
|
-
});
|
|
108
|
+
}));
|
|
105
109
|
}), (0, _defineProperty2.default)(_ref5, _types.EVENT.UPDATED, function (_ref3) {
|
|
106
110
|
var node = _ref3.node,
|
|
107
111
|
nodeContext = _ref3.nodeContext,
|
|
@@ -9,7 +9,7 @@ function getDatasourceDisplay(datasourceAttrs) {
|
|
|
9
9
|
}
|
|
10
10
|
function getDisplayedColumnCount(datasourceAttrs) {
|
|
11
11
|
var _datasourceAttrs$data2, _datasourceAttrs$data3, _datasourceAttrs$data4, _datasourceAttrs$data5;
|
|
12
|
-
return (_datasourceAttrs$data2 = (_datasourceAttrs$data3 = datasourceAttrs.datasource.views[0]) === null || _datasourceAttrs$data3 === void 0 ? void 0 : (_datasourceAttrs$data4 = _datasourceAttrs$data3.properties) === null || _datasourceAttrs$data4 === void 0 ? void 0 : (_datasourceAttrs$data5 = _datasourceAttrs$data4.columns) === null || _datasourceAttrs$data5 === void 0 ? void 0 : _datasourceAttrs$data5.length) !== null && _datasourceAttrs$data2 !== void 0 ? _datasourceAttrs$data2 :
|
|
12
|
+
return (_datasourceAttrs$data2 = (_datasourceAttrs$data3 = datasourceAttrs.datasource.views[0]) === null || _datasourceAttrs$data3 === void 0 ? void 0 : (_datasourceAttrs$data4 = _datasourceAttrs$data3.properties) === null || _datasourceAttrs$data4 === void 0 ? void 0 : (_datasourceAttrs$data5 = _datasourceAttrs$data4.columns) === null || _datasourceAttrs$data5 === void 0 ? void 0 : _datasourceAttrs$data5.length) !== null && _datasourceAttrs$data2 !== void 0 ? _datasourceAttrs$data2 : undefined;
|
|
13
13
|
}
|
|
14
14
|
function getSearchMethod(creationMethod, metadata) {
|
|
15
15
|
if (creationMethod === 'editor_paste' || creationMethod === 'editor_type') {
|
|
@@ -96,8 +96,10 @@ export const DatasourceEventsBinding = ({
|
|
|
96
96
|
actions,
|
|
97
97
|
creationMethod: inputMethod,
|
|
98
98
|
display,
|
|
99
|
-
displayedColumnCount
|
|
100
|
-
|
|
99
|
+
...(typeof displayedColumnCount === 'number' ? {
|
|
100
|
+
displayedColumnCount
|
|
101
|
+
} : {}),
|
|
102
|
+
nodeContext,
|
|
101
103
|
searchMethod
|
|
102
104
|
});
|
|
103
105
|
},
|
|
@@ -125,7 +127,7 @@ export const DatasourceEventsBinding = ({
|
|
|
125
127
|
actions,
|
|
126
128
|
display,
|
|
127
129
|
displayedColumnCount,
|
|
128
|
-
nodeContext
|
|
130
|
+
nodeContext,
|
|
129
131
|
searchMethod,
|
|
130
132
|
updateMethod: inputMethod
|
|
131
133
|
});
|
|
@@ -153,7 +155,7 @@ export const DatasourceEventsBinding = ({
|
|
|
153
155
|
deleteMethod: inputMethod,
|
|
154
156
|
display,
|
|
155
157
|
displayedColumnCount,
|
|
156
|
-
nodeContext
|
|
158
|
+
nodeContext,
|
|
157
159
|
searchMethod
|
|
158
160
|
});
|
|
159
161
|
}
|
|
@@ -3,6 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["node", "nodeContext"],
|
|
4
4
|
_excluded2 = ["node", "nodeContext"],
|
|
5
5
|
_excluded3 = ["node", "nodeContext"];
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
8
|
import { useEffect, useMemo } from 'react';
|
|
7
9
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
10
|
import { useDatasourceLifecycleAnalytics } from '@atlaskit/link-analytics';
|
|
@@ -14,7 +16,7 @@ function getDatasourceDisplay(datasourceAttrs) {
|
|
|
14
16
|
}
|
|
15
17
|
function getDisplayedColumnCount(datasourceAttrs) {
|
|
16
18
|
var _datasourceAttrs$data2, _datasourceAttrs$data3;
|
|
17
|
-
return (_datasourceAttrs$data2 = (_datasourceAttrs$data3 = datasourceAttrs.datasource.views[0]) === null || _datasourceAttrs$data3 === void 0 || (_datasourceAttrs$data3 = _datasourceAttrs$data3.properties) === null || _datasourceAttrs$data3 === void 0 || (_datasourceAttrs$data3 = _datasourceAttrs$data3.columns) === null || _datasourceAttrs$data3 === void 0 ? void 0 : _datasourceAttrs$data3.length) !== null && _datasourceAttrs$data2 !== void 0 ? _datasourceAttrs$data2 :
|
|
19
|
+
return (_datasourceAttrs$data2 = (_datasourceAttrs$data3 = datasourceAttrs.datasource.views[0]) === null || _datasourceAttrs$data3 === void 0 || (_datasourceAttrs$data3 = _datasourceAttrs$data3.properties) === null || _datasourceAttrs$data3 === void 0 || (_datasourceAttrs$data3 = _datasourceAttrs$data3.columns) === null || _datasourceAttrs$data3 === void 0 ? void 0 : _datasourceAttrs$data3.length) !== null && _datasourceAttrs$data2 !== void 0 ? _datasourceAttrs$data2 : undefined;
|
|
18
20
|
}
|
|
19
21
|
function getSearchMethod(creationMethod, metadata) {
|
|
20
22
|
if (creationMethod === 'editor_paste' || creationMethod === 'editor_type') {
|
|
@@ -87,14 +89,16 @@ export var DatasourceEventsBinding = function DatasourceEventsBinding(_ref) {
|
|
|
87
89
|
datasourceId: datasourceId,
|
|
88
90
|
parameters: parameters,
|
|
89
91
|
url: url
|
|
90
|
-
}, null, {
|
|
92
|
+
}, null, _objectSpread(_objectSpread({
|
|
91
93
|
actions: actions,
|
|
92
94
|
creationMethod: inputMethod,
|
|
93
|
-
display: display
|
|
94
|
-
|
|
95
|
+
display: display
|
|
96
|
+
}, typeof displayedColumnCount === 'number' ? {
|
|
97
|
+
displayedColumnCount: displayedColumnCount
|
|
98
|
+
} : {}), {}, {
|
|
95
99
|
nodeContext: nodeContext,
|
|
96
100
|
searchMethod: searchMethod
|
|
97
|
-
});
|
|
101
|
+
}));
|
|
98
102
|
}), _defineProperty(_ref5, EVENT.UPDATED, function (_ref3) {
|
|
99
103
|
var node = _ref3.node,
|
|
100
104
|
nodeContext = _ref3.nodeContext,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,30 +32,30 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^36.
|
|
35
|
+
"@atlaskit/adf-schema": "^36.3.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
37
|
-
"@atlaskit/custom-steps": "^0.
|
|
38
|
-
"@atlaskit/editor-common": "^80.
|
|
39
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
37
|
+
"@atlaskit/custom-steps": "^0.2.0",
|
|
38
|
+
"@atlaskit/editor-common": "^80.1.0",
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-floating-toolbar": "^1.4.0",
|
|
44
44
|
"@atlaskit/editor-plugin-grid": "^1.1.0",
|
|
45
|
-
"@atlaskit/editor-plugin-hyperlink": "^1.
|
|
45
|
+
"@atlaskit/editor-plugin-hyperlink": "^1.7.0",
|
|
46
46
|
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
48
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
48
|
+
"@atlaskit/editor-shared-styles": "^2.11.0",
|
|
49
49
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
50
|
-
"@atlaskit/icon": "^22.
|
|
50
|
+
"@atlaskit/icon": "^22.2.0",
|
|
51
51
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
52
52
|
"@atlaskit/link-client-extension": "^1.8.0",
|
|
53
|
-
"@atlaskit/link-datasource": "^2.
|
|
53
|
+
"@atlaskit/link-datasource": "^2.2.0",
|
|
54
54
|
"@atlaskit/linking-common": "^5.6.0",
|
|
55
55
|
"@atlaskit/linking-types": "^8.8.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
57
57
|
"@atlaskit/primitives": "^6.1.0",
|
|
58
|
-
"@atlaskit/smart-card": "^26.
|
|
58
|
+
"@atlaskit/smart-card": "^26.68.0",
|
|
59
59
|
"@atlaskit/theme": "^12.8.0",
|
|
60
60
|
"@atlaskit/tokens": "^1.48.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|