@atlaskit/editor-plugin-card 0.1.1 → 0.2.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 +16 -0
- package/dist/cjs/plugin.js +5 -3
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/pm-plugins/util/resolve.js +4 -1
- package/dist/cjs/toolbar.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugin.js +5 -3
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/util/resolve.js +4 -1
- package/dist/es2019/toolbar.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugin.js +5 -3
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/util/resolve.js +4 -1
- package/dist/esm/toolbar.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6bacee18c2d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6bacee18c2d) - [ux] Add new allowDatasource prop for enabling datasource in editor and add inlineCard fallback render for blockCard with datasource
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 0.1.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
|
|
18
|
+
|
|
3
19
|
## 0.1.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -53,12 +53,13 @@ var cardPlugin = function cardPlugin(options, api) {
|
|
|
53
53
|
return nodes;
|
|
54
54
|
},
|
|
55
55
|
pmPlugins: function pmPlugins() {
|
|
56
|
-
var _options$allowBlockCa, _options$allowResizin, _options$useAlternati, _options$allowWrappin, _options$allowAlignme;
|
|
56
|
+
var _options$allowBlockCa, _options$allowResizin, _options$useAlternati, _options$allowWrappin, _options$allowAlignme, _options$allowDatasou;
|
|
57
57
|
var allowBlockCards = (_options$allowBlockCa = options.allowBlockCards) !== null && _options$allowBlockCa !== void 0 ? _options$allowBlockCa : true;
|
|
58
58
|
var allowResizing = (_options$allowResizin = options.allowResizing) !== null && _options$allowResizin !== void 0 ? _options$allowResizin : true;
|
|
59
59
|
var useAlternativePreloader = (_options$useAlternati = options.useAlternativePreloader) !== null && _options$useAlternati !== void 0 ? _options$useAlternati : true;
|
|
60
60
|
var allowWrapping = (_options$allowWrappin = options.allowWrapping) !== null && _options$allowWrappin !== void 0 ? _options$allowWrappin : true;
|
|
61
61
|
var allowAlignment = (_options$allowAlignme = options.allowAlignment) !== null && _options$allowAlignme !== void 0 ? _options$allowAlignme : true;
|
|
62
|
+
var allowDatasource = (_options$allowDatasou = options.allowDatasource) !== null && _options$allowDatasou !== void 0 ? _options$allowDatasou : false;
|
|
62
63
|
var plugins = [{
|
|
63
64
|
name: 'card',
|
|
64
65
|
plugin: (0, _main.createPlugin)(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -66,7 +67,8 @@ var cardPlugin = function cardPlugin(options, api) {
|
|
|
66
67
|
allowResizing: allowResizing,
|
|
67
68
|
useAlternativePreloader: useAlternativePreloader,
|
|
68
69
|
allowWrapping: allowWrapping,
|
|
69
|
-
allowAlignment: allowAlignment
|
|
70
|
+
allowAlignment: allowAlignment,
|
|
71
|
+
allowDatasource: allowDatasource
|
|
70
72
|
}), api)
|
|
71
73
|
}, {
|
|
72
74
|
name: 'cardHyperlink',
|
|
@@ -114,7 +116,7 @@ var cardPlugin = function cardPlugin(options, api) {
|
|
|
114
116
|
floatingToolbar: (0, _toolbar.floatingToolbar)(options, featureFlags, options.platform, options.linkPicker, api),
|
|
115
117
|
quickInsert: function quickInsert(_ref3) {
|
|
116
118
|
var formatMessage = _ref3.formatMessage;
|
|
117
|
-
if ((0, _utils.canRenderDatasource)(_linkDatasource.JIRA_LIST_OF_LINKS_DATASOURCE_ID)) {
|
|
119
|
+
if (options.allowDatasource && (0, _utils.canRenderDatasource)(_linkDatasource.JIRA_LIST_OF_LINKS_DATASOURCE_ID)) {
|
|
118
120
|
return [{
|
|
119
121
|
id: 'datasource',
|
|
120
122
|
title: formatMessage(_messages.messages.datasourceJiraIssue),
|
|
@@ -172,7 +172,7 @@ var createPlugin = function createPlugin(options, pluginInjectionApi) {
|
|
|
172
172
|
var isDatasource = !!(node !== null && node !== void 0 && (_node$attrs3 = node.attrs) !== null && _node$attrs3 !== void 0 && _node$attrs3.datasource);
|
|
173
173
|
if (isDatasource) {
|
|
174
174
|
var _node$attrs4, _node$attrs4$datasour;
|
|
175
|
-
if (platform !== 'mobile' && (0, _utils.canRenderDatasource)(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : (_node$attrs4$datasour = _node$attrs4.datasource) === null || _node$attrs4$datasour === void 0 ? void 0 : _node$attrs4$datasour.id)) {
|
|
175
|
+
if (options.allowDatasource && platform !== 'mobile' && (0, _utils.canRenderDatasource)(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : (_node$attrs4$datasour = _node$attrs4.datasource) === null || _node$attrs4$datasour === void 0 ? void 0 : _node$attrs4$datasour.id)) {
|
|
176
176
|
return new _datasource.Datasource({
|
|
177
177
|
node: node,
|
|
178
178
|
view: view,
|
|
@@ -23,11 +23,14 @@ var resolveWithProvider = function resolveWithProvider(view, provider, request,
|
|
|
23
23
|
};
|
|
24
24
|
exports.resolveWithProvider = resolveWithProvider;
|
|
25
25
|
var updateCardType = function updateCardType(resolvedCard, options) {
|
|
26
|
-
|
|
26
|
+
var isDatasource = resolvedCard.type === 'blockCard' && 'datasource' in resolvedCard.attrs;
|
|
27
|
+
if ((resolvedCard === null || resolvedCard === void 0 ? void 0 : resolvedCard.type) === 'blockCard' && !options.allowBlockCards || (resolvedCard === null || resolvedCard === void 0 ? void 0 : resolvedCard.type) === 'embedCard' && !options.allowEmbeds || isDatasource && !options.allowDatasource) {
|
|
27
28
|
// clean out the 'layout' attr from an embedCard type that should be transformed into the inlineCard type.
|
|
28
29
|
if (resolvedCard.type === 'embedCard') {
|
|
29
30
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
31
|
delete resolvedCard.attrs.layout;
|
|
32
|
+
} else if (isDatasource) {
|
|
33
|
+
delete resolvedCard.attrs.datasource;
|
|
31
34
|
}
|
|
32
35
|
resolvedCard.type = 'inlineCard';
|
|
33
36
|
}
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -197,7 +197,7 @@ var generateToolbarItems = function generateToolbarItems(state, featureFlags, in
|
|
|
197
197
|
var isDatasource = currentAppearance === 'block' && (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.datasource);
|
|
198
198
|
var shouldRenderDatasourceToolbar = isDatasource &&
|
|
199
199
|
// not showing toolbar in mobile for now since not sure what our plans are for it
|
|
200
|
-
platform !== 'mobile' && (0, _utils.canRenderDatasource)(node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : (_node$attrs2$datasour = _node$attrs2.datasource) === null || _node$attrs2$datasour === void 0 ? void 0 : _node$attrs2$datasour.id);
|
|
200
|
+
platform !== 'mobile' && cardOptions.allowDatasource && (0, _utils.canRenderDatasource)(node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : (_node$attrs2$datasour = _node$attrs2.datasource) === null || _node$attrs2$datasour === void 0 ? void 0 : _node$attrs2$datasour.id);
|
|
201
201
|
|
|
202
202
|
/* mobile builds toolbar natively using toolbarItems */
|
|
203
203
|
if (pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar && platform !== 'mobile') {
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/plugin.js
CHANGED
|
@@ -43,12 +43,13 @@ export const cardPlugin = (options, api) => {
|
|
|
43
43
|
return nodes;
|
|
44
44
|
},
|
|
45
45
|
pmPlugins() {
|
|
46
|
-
var _options$allowBlockCa, _options$allowResizin, _options$useAlternati, _options$allowWrappin, _options$allowAlignme;
|
|
46
|
+
var _options$allowBlockCa, _options$allowResizin, _options$useAlternati, _options$allowWrappin, _options$allowAlignme, _options$allowDatasou;
|
|
47
47
|
const allowBlockCards = (_options$allowBlockCa = options.allowBlockCards) !== null && _options$allowBlockCa !== void 0 ? _options$allowBlockCa : true;
|
|
48
48
|
const allowResizing = (_options$allowResizin = options.allowResizing) !== null && _options$allowResizin !== void 0 ? _options$allowResizin : true;
|
|
49
49
|
const useAlternativePreloader = (_options$useAlternati = options.useAlternativePreloader) !== null && _options$useAlternati !== void 0 ? _options$useAlternati : true;
|
|
50
50
|
const allowWrapping = (_options$allowWrappin = options.allowWrapping) !== null && _options$allowWrappin !== void 0 ? _options$allowWrappin : true;
|
|
51
51
|
const allowAlignment = (_options$allowAlignme = options.allowAlignment) !== null && _options$allowAlignme !== void 0 ? _options$allowAlignme : true;
|
|
52
|
+
const allowDatasource = (_options$allowDatasou = options.allowDatasource) !== null && _options$allowDatasou !== void 0 ? _options$allowDatasou : false;
|
|
52
53
|
const plugins = [{
|
|
53
54
|
name: 'card',
|
|
54
55
|
plugin: createPlugin({
|
|
@@ -57,7 +58,8 @@ export const cardPlugin = (options, api) => {
|
|
|
57
58
|
allowResizing,
|
|
58
59
|
useAlternativePreloader,
|
|
59
60
|
allowWrapping,
|
|
60
|
-
allowAlignment
|
|
61
|
+
allowAlignment,
|
|
62
|
+
allowDatasource
|
|
61
63
|
}, api)
|
|
62
64
|
}, {
|
|
63
65
|
name: 'cardHyperlink',
|
|
@@ -108,7 +110,7 @@ export const cardPlugin = (options, api) => {
|
|
|
108
110
|
quickInsert: ({
|
|
109
111
|
formatMessage
|
|
110
112
|
}) => {
|
|
111
|
-
if (canRenderDatasource(JIRA_LIST_OF_LINKS_DATASOURCE_ID)) {
|
|
113
|
+
if (options.allowDatasource && canRenderDatasource(JIRA_LIST_OF_LINKS_DATASOURCE_ID)) {
|
|
112
114
|
return [{
|
|
113
115
|
id: 'datasource',
|
|
114
116
|
title: formatMessage(messages.datasourceJiraIssue),
|
|
@@ -168,7 +168,7 @@ export const createPlugin = (options, pluginInjectionApi) => pmPluginFactoryPara
|
|
|
168
168
|
const isDatasource = !!(node !== null && node !== void 0 && (_node$attrs3 = node.attrs) !== null && _node$attrs3 !== void 0 && _node$attrs3.datasource);
|
|
169
169
|
if (isDatasource) {
|
|
170
170
|
var _node$attrs4, _node$attrs4$datasour;
|
|
171
|
-
if (platform !== 'mobile' && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : (_node$attrs4$datasour = _node$attrs4.datasource) === null || _node$attrs4$datasour === void 0 ? void 0 : _node$attrs4$datasour.id)) {
|
|
171
|
+
if (options.allowDatasource && platform !== 'mobile' && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : (_node$attrs4$datasour = _node$attrs4.datasource) === null || _node$attrs4$datasour === void 0 ? void 0 : _node$attrs4$datasour.id)) {
|
|
172
172
|
return new Datasource({
|
|
173
173
|
node,
|
|
174
174
|
view,
|
|
@@ -17,11 +17,14 @@ export const resolveWithProvider = (view, provider, request, options, editorAnal
|
|
|
17
17
|
return handleResolve;
|
|
18
18
|
};
|
|
19
19
|
const updateCardType = (resolvedCard, options) => {
|
|
20
|
-
|
|
20
|
+
const isDatasource = resolvedCard.type === 'blockCard' && 'datasource' in resolvedCard.attrs;
|
|
21
|
+
if ((resolvedCard === null || resolvedCard === void 0 ? void 0 : resolvedCard.type) === 'blockCard' && !options.allowBlockCards || (resolvedCard === null || resolvedCard === void 0 ? void 0 : resolvedCard.type) === 'embedCard' && !options.allowEmbeds || isDatasource && !options.allowDatasource) {
|
|
21
22
|
// clean out the 'layout' attr from an embedCard type that should be transformed into the inlineCard type.
|
|
22
23
|
if (resolvedCard.type === 'embedCard') {
|
|
23
24
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
25
|
delete resolvedCard.attrs.layout;
|
|
26
|
+
} else if (isDatasource) {
|
|
27
|
+
delete resolvedCard.attrs.datasource;
|
|
25
28
|
}
|
|
26
29
|
resolvedCard.type = 'inlineCard';
|
|
27
30
|
}
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -189,7 +189,7 @@ const generateToolbarItems = (state, featureFlags, intl, providerFactory, cardOp
|
|
|
189
189
|
const isDatasource = currentAppearance === 'block' && (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.datasource);
|
|
190
190
|
const shouldRenderDatasourceToolbar = isDatasource &&
|
|
191
191
|
// not showing toolbar in mobile for now since not sure what our plans are for it
|
|
192
|
-
platform !== 'mobile' && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : (_node$attrs2$datasour = _node$attrs2.datasource) === null || _node$attrs2$datasour === void 0 ? void 0 : _node$attrs2$datasour.id);
|
|
192
|
+
platform !== 'mobile' && cardOptions.allowDatasource && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : (_node$attrs2$datasour = _node$attrs2.datasource) === null || _node$attrs2$datasour === void 0 ? void 0 : _node$attrs2$datasour.id);
|
|
193
193
|
|
|
194
194
|
/* mobile builds toolbar natively using toolbarItems */
|
|
195
195
|
if (pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar && platform !== 'mobile') {
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/plugin.js
CHANGED
|
@@ -46,12 +46,13 @@ export var cardPlugin = function cardPlugin(options, api) {
|
|
|
46
46
|
return nodes;
|
|
47
47
|
},
|
|
48
48
|
pmPlugins: function pmPlugins() {
|
|
49
|
-
var _options$allowBlockCa, _options$allowResizin, _options$useAlternati, _options$allowWrappin, _options$allowAlignme;
|
|
49
|
+
var _options$allowBlockCa, _options$allowResizin, _options$useAlternati, _options$allowWrappin, _options$allowAlignme, _options$allowDatasou;
|
|
50
50
|
var allowBlockCards = (_options$allowBlockCa = options.allowBlockCards) !== null && _options$allowBlockCa !== void 0 ? _options$allowBlockCa : true;
|
|
51
51
|
var allowResizing = (_options$allowResizin = options.allowResizing) !== null && _options$allowResizin !== void 0 ? _options$allowResizin : true;
|
|
52
52
|
var useAlternativePreloader = (_options$useAlternati = options.useAlternativePreloader) !== null && _options$useAlternati !== void 0 ? _options$useAlternati : true;
|
|
53
53
|
var allowWrapping = (_options$allowWrappin = options.allowWrapping) !== null && _options$allowWrappin !== void 0 ? _options$allowWrappin : true;
|
|
54
54
|
var allowAlignment = (_options$allowAlignme = options.allowAlignment) !== null && _options$allowAlignme !== void 0 ? _options$allowAlignme : true;
|
|
55
|
+
var allowDatasource = (_options$allowDatasou = options.allowDatasource) !== null && _options$allowDatasou !== void 0 ? _options$allowDatasou : false;
|
|
55
56
|
var plugins = [{
|
|
56
57
|
name: 'card',
|
|
57
58
|
plugin: createPlugin(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -59,7 +60,8 @@ export var cardPlugin = function cardPlugin(options, api) {
|
|
|
59
60
|
allowResizing: allowResizing,
|
|
60
61
|
useAlternativePreloader: useAlternativePreloader,
|
|
61
62
|
allowWrapping: allowWrapping,
|
|
62
|
-
allowAlignment: allowAlignment
|
|
63
|
+
allowAlignment: allowAlignment,
|
|
64
|
+
allowDatasource: allowDatasource
|
|
63
65
|
}), api)
|
|
64
66
|
}, {
|
|
65
67
|
name: 'cardHyperlink',
|
|
@@ -107,7 +109,7 @@ export var cardPlugin = function cardPlugin(options, api) {
|
|
|
107
109
|
floatingToolbar: floatingToolbar(options, featureFlags, options.platform, options.linkPicker, api),
|
|
108
110
|
quickInsert: function quickInsert(_ref3) {
|
|
109
111
|
var formatMessage = _ref3.formatMessage;
|
|
110
|
-
if (canRenderDatasource(JIRA_LIST_OF_LINKS_DATASOURCE_ID)) {
|
|
112
|
+
if (options.allowDatasource && canRenderDatasource(JIRA_LIST_OF_LINKS_DATASOURCE_ID)) {
|
|
111
113
|
return [{
|
|
112
114
|
id: 'datasource',
|
|
113
115
|
title: formatMessage(messages.datasourceJiraIssue),
|
|
@@ -160,7 +160,7 @@ export var createPlugin = function createPlugin(options, pluginInjectionApi) {
|
|
|
160
160
|
var isDatasource = !!(node !== null && node !== void 0 && (_node$attrs3 = node.attrs) !== null && _node$attrs3 !== void 0 && _node$attrs3.datasource);
|
|
161
161
|
if (isDatasource) {
|
|
162
162
|
var _node$attrs4, _node$attrs4$datasour;
|
|
163
|
-
if (platform !== 'mobile' && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : (_node$attrs4$datasour = _node$attrs4.datasource) === null || _node$attrs4$datasour === void 0 ? void 0 : _node$attrs4$datasour.id)) {
|
|
163
|
+
if (options.allowDatasource && platform !== 'mobile' && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : (_node$attrs4$datasour = _node$attrs4.datasource) === null || _node$attrs4$datasour === void 0 ? void 0 : _node$attrs4$datasour.id)) {
|
|
164
164
|
return new Datasource({
|
|
165
165
|
node: node,
|
|
166
166
|
view: view,
|
|
@@ -17,11 +17,14 @@ export var resolveWithProvider = function resolveWithProvider(view, provider, re
|
|
|
17
17
|
return handleResolve;
|
|
18
18
|
};
|
|
19
19
|
var updateCardType = function updateCardType(resolvedCard, options) {
|
|
20
|
-
|
|
20
|
+
var isDatasource = resolvedCard.type === 'blockCard' && 'datasource' in resolvedCard.attrs;
|
|
21
|
+
if ((resolvedCard === null || resolvedCard === void 0 ? void 0 : resolvedCard.type) === 'blockCard' && !options.allowBlockCards || (resolvedCard === null || resolvedCard === void 0 ? void 0 : resolvedCard.type) === 'embedCard' && !options.allowEmbeds || isDatasource && !options.allowDatasource) {
|
|
21
22
|
// clean out the 'layout' attr from an embedCard type that should be transformed into the inlineCard type.
|
|
22
23
|
if (resolvedCard.type === 'embedCard') {
|
|
23
24
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
25
|
delete resolvedCard.attrs.layout;
|
|
26
|
+
} else if (isDatasource) {
|
|
27
|
+
delete resolvedCard.attrs.datasource;
|
|
25
28
|
}
|
|
26
29
|
resolvedCard.type = 'inlineCard';
|
|
27
30
|
}
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -183,7 +183,7 @@ var generateToolbarItems = function generateToolbarItems(state, featureFlags, in
|
|
|
183
183
|
var isDatasource = currentAppearance === 'block' && (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.datasource);
|
|
184
184
|
var shouldRenderDatasourceToolbar = isDatasource &&
|
|
185
185
|
// not showing toolbar in mobile for now since not sure what our plans are for it
|
|
186
|
-
platform !== 'mobile' && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : (_node$attrs2$datasour = _node$attrs2.datasource) === null || _node$attrs2$datasour === void 0 ? void 0 : _node$attrs2$datasour.id);
|
|
186
|
+
platform !== 'mobile' && cardOptions.allowDatasource && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : (_node$attrs2$datasour = _node$attrs2.datasource) === null || _node$attrs2$datasour === void 0 ? void 0 : _node$attrs2$datasour.id);
|
|
187
187
|
|
|
188
188
|
/* mobile builds toolbar natively using toolbarItems */
|
|
189
189
|
if (pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar && platform !== 'mobile') {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^26.1.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
36
|
-
"@atlaskit/editor-common": "^74.
|
|
36
|
+
"@atlaskit/editor-common": "^74.25.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^0.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^0.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
@@ -42,12 +42,13 @@
|
|
|
42
42
|
"@atlaskit/editor-plugin-hyperlink": "^0.2.0",
|
|
43
43
|
"@atlaskit/editor-plugin-width": "^0.1.0",
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
45
|
+
"@atlaskit/enforce-peer-dependencies": "^1.0.1",
|
|
45
46
|
"@atlaskit/icon": "^21.12.0",
|
|
46
47
|
"@atlaskit/link-analytics": "^8.2.0",
|
|
47
48
|
"@atlaskit/link-datasource": "^0.28.0",
|
|
48
49
|
"@atlaskit/smart-card": "^26.9.0",
|
|
49
50
|
"@atlaskit/theme": "^12.5.0",
|
|
50
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/tokens": "^1.13.0",
|
|
51
52
|
"@babel/runtime": "^7.0.0",
|
|
52
53
|
"@emotion/react": "^11.7.1",
|
|
53
54
|
"lodash": "^4.17.21",
|
|
@@ -122,5 +123,8 @@
|
|
|
122
123
|
"platform.linking-platform.datasource-jira_issues": {
|
|
123
124
|
"type": "boolean"
|
|
124
125
|
}
|
|
126
|
+
},
|
|
127
|
+
"scripts": {
|
|
128
|
+
"postinstall": "npx enforce-peer-dependencies --internal-packages"
|
|
125
129
|
}
|
|
126
130
|
}
|