@atlaskit/editor-plugin-quick-insert 0.2.10 → 0.2.12
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 +13 -0
- package/dist/cjs/ui/ModalElementBrowser/ModalElementBrowser.js +2 -2
- package/dist/cjs/ui/ModalElementBrowser/categories.js +13 -70
- package/dist/es2019/ui/ModalElementBrowser/ModalElementBrowser.js +1 -1
- package/dist/es2019/ui/ModalElementBrowser/categories.js +2 -59
- package/dist/esm/ui/ModalElementBrowser/ModalElementBrowser.js +1 -1
- package/dist/esm/ui/ModalElementBrowser/categories.js +2 -59
- package/package.json +4 -4
- package/dist/cjs/ui/ModalElementBrowser/messages.js +0 -14
- package/dist/es2019/ui/ModalElementBrowser/messages.js +0 -8
- package/dist/esm/ui/ModalElementBrowser/messages.js +0 -8
- package/dist/types/ui/ModalElementBrowser/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/ModalElementBrowser/messages.d.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 0.2.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136) [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) - Move all plugin translations to editor-common
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 0.2.11
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 0.2.10
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -12,11 +12,11 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
14
14
|
var _elementBrowser = require("@atlaskit/editor-common/element-browser");
|
|
15
|
+
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
15
16
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/question-circle"));
|
|
16
17
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
17
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
19
|
var _categories = require("./categories");
|
|
19
|
-
var _messages = require("./messages");
|
|
20
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
21
|
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; }
|
|
22
22
|
/** @jsx jsx */
|
|
@@ -66,7 +66,7 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
|
|
|
66
66
|
onInsert: function onInsert() {
|
|
67
67
|
return onInsertItem(selectedItem);
|
|
68
68
|
},
|
|
69
|
-
beforeElement: helpUrl ? HelpLink(helpUrl, intl.formatMessage(
|
|
69
|
+
beforeElement: helpUrl ? HelpLink(helpUrl, intl.formatMessage(_quickInsert.messages.help)) : undefined
|
|
70
70
|
});
|
|
71
71
|
}, [onInsertItem, selectedItem, helpUrl, intl]);
|
|
72
72
|
|
|
@@ -4,97 +4,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getCategories = getCategories;
|
|
7
|
-
var
|
|
7
|
+
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
8
8
|
function getCategories(intl) {
|
|
9
9
|
return [{
|
|
10
|
-
title: intl.formatMessage(messages.all),
|
|
10
|
+
title: intl.formatMessage(_quickInsert.messages.all),
|
|
11
11
|
name: 'all'
|
|
12
12
|
}, {
|
|
13
|
-
title: intl.formatMessage(messages.formatting),
|
|
13
|
+
title: intl.formatMessage(_quickInsert.messages.formatting),
|
|
14
14
|
name: 'formatting'
|
|
15
15
|
}, {
|
|
16
|
-
title: intl.formatMessage(messages['confluence-content']),
|
|
16
|
+
title: intl.formatMessage(_quickInsert.messages['confluence-content']),
|
|
17
17
|
name: 'confluence-content'
|
|
18
18
|
}, {
|
|
19
|
-
title: intl.formatMessage(messages.media),
|
|
19
|
+
title: intl.formatMessage(_quickInsert.messages.media),
|
|
20
20
|
name: 'media'
|
|
21
21
|
}, {
|
|
22
|
-
title: intl.formatMessage(messages.visuals),
|
|
22
|
+
title: intl.formatMessage(_quickInsert.messages.visuals),
|
|
23
23
|
name: 'visuals'
|
|
24
24
|
}, {
|
|
25
|
-
title: intl.formatMessage(messages.navigation),
|
|
25
|
+
title: intl.formatMessage(_quickInsert.messages.navigation),
|
|
26
26
|
name: 'navigation'
|
|
27
27
|
}, {
|
|
28
|
-
title: intl.formatMessage(messages['external-content']),
|
|
28
|
+
title: intl.formatMessage(_quickInsert.messages['external-content']),
|
|
29
29
|
name: 'external-content'
|
|
30
30
|
}, {
|
|
31
|
-
title: intl.formatMessage(messages.communication),
|
|
31
|
+
title: intl.formatMessage(_quickInsert.messages.communication),
|
|
32
32
|
name: 'communication'
|
|
33
33
|
}, {
|
|
34
|
-
title: intl.formatMessage(messages.reporting),
|
|
34
|
+
title: intl.formatMessage(_quickInsert.messages.reporting),
|
|
35
35
|
name: 'reporting'
|
|
36
36
|
}, {
|
|
37
|
-
title: intl.formatMessage(messages.admin),
|
|
37
|
+
title: intl.formatMessage(_quickInsert.messages.admin),
|
|
38
38
|
name: 'admin'
|
|
39
39
|
}, {
|
|
40
|
-
title: intl.formatMessage(messages.development),
|
|
40
|
+
title: intl.formatMessage(_quickInsert.messages.development),
|
|
41
41
|
name: 'development'
|
|
42
42
|
}];
|
|
43
|
-
}
|
|
44
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
45
|
-
all: {
|
|
46
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-all',
|
|
47
|
-
defaultMessage: 'All',
|
|
48
|
-
description: 'all'
|
|
49
|
-
},
|
|
50
|
-
formatting: {
|
|
51
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-formatting',
|
|
52
|
-
defaultMessage: 'Formatting',
|
|
53
|
-
description: 'formatting'
|
|
54
|
-
},
|
|
55
|
-
'confluence-content': {
|
|
56
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-confluence-content',
|
|
57
|
-
defaultMessage: 'Confluence content',
|
|
58
|
-
description: 'confluence-content'
|
|
59
|
-
},
|
|
60
|
-
media: {
|
|
61
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-media',
|
|
62
|
-
defaultMessage: 'Media',
|
|
63
|
-
description: 'media'
|
|
64
|
-
},
|
|
65
|
-
visuals: {
|
|
66
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-visuals',
|
|
67
|
-
defaultMessage: 'Visuals & images',
|
|
68
|
-
description: 'visuals'
|
|
69
|
-
},
|
|
70
|
-
navigation: {
|
|
71
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-navigation',
|
|
72
|
-
defaultMessage: 'Navigation',
|
|
73
|
-
description: 'navigation'
|
|
74
|
-
},
|
|
75
|
-
'external-content': {
|
|
76
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-external-content',
|
|
77
|
-
defaultMessage: 'External content',
|
|
78
|
-
description: 'external-content'
|
|
79
|
-
},
|
|
80
|
-
communication: {
|
|
81
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-communication',
|
|
82
|
-
defaultMessage: 'Communication',
|
|
83
|
-
description: 'communication'
|
|
84
|
-
},
|
|
85
|
-
reporting: {
|
|
86
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-reporting',
|
|
87
|
-
defaultMessage: 'Reporting',
|
|
88
|
-
description: 'reporting'
|
|
89
|
-
},
|
|
90
|
-
admin: {
|
|
91
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-admin',
|
|
92
|
-
defaultMessage: 'Administration',
|
|
93
|
-
description: 'admin'
|
|
94
|
-
},
|
|
95
|
-
development: {
|
|
96
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-development',
|
|
97
|
-
defaultMessage: 'Development',
|
|
98
|
-
description: 'development'
|
|
99
|
-
}
|
|
100
|
-
});
|
|
43
|
+
}
|
|
@@ -4,11 +4,11 @@ import { css, jsx } from '@emotion/react';
|
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
6
|
import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
|
|
7
|
+
import { messages } from '@atlaskit/editor-common/quick-insert';
|
|
7
8
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
8
9
|
import Modal, { ModalTransition, useModal } from '@atlaskit/modal-dialog';
|
|
9
10
|
import { N0 } from '@atlaskit/theme/colors';
|
|
10
11
|
import { getCategories } from './categories';
|
|
11
|
-
import { messages } from './messages';
|
|
12
12
|
export const MODAL_WRAPPER_PADDING = 16;
|
|
13
13
|
const actionsStyles = css({
|
|
14
14
|
display: 'inline-flex',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { messages } from '@atlaskit/editor-common/quick-insert';
|
|
2
2
|
export function getCategories(intl) {
|
|
3
3
|
return [{
|
|
4
4
|
title: intl.formatMessage(messages.all),
|
|
@@ -34,61 +34,4 @@ export function getCategories(intl) {
|
|
|
34
34
|
title: intl.formatMessage(messages.development),
|
|
35
35
|
name: 'development'
|
|
36
36
|
}];
|
|
37
|
-
}
|
|
38
|
-
const messages = defineMessages({
|
|
39
|
-
all: {
|
|
40
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-all',
|
|
41
|
-
defaultMessage: 'All',
|
|
42
|
-
description: 'all'
|
|
43
|
-
},
|
|
44
|
-
formatting: {
|
|
45
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-formatting',
|
|
46
|
-
defaultMessage: 'Formatting',
|
|
47
|
-
description: 'formatting'
|
|
48
|
-
},
|
|
49
|
-
'confluence-content': {
|
|
50
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-confluence-content',
|
|
51
|
-
defaultMessage: 'Confluence content',
|
|
52
|
-
description: 'confluence-content'
|
|
53
|
-
},
|
|
54
|
-
media: {
|
|
55
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-media',
|
|
56
|
-
defaultMessage: 'Media',
|
|
57
|
-
description: 'media'
|
|
58
|
-
},
|
|
59
|
-
visuals: {
|
|
60
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-visuals',
|
|
61
|
-
defaultMessage: 'Visuals & images',
|
|
62
|
-
description: 'visuals'
|
|
63
|
-
},
|
|
64
|
-
navigation: {
|
|
65
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-navigation',
|
|
66
|
-
defaultMessage: 'Navigation',
|
|
67
|
-
description: 'navigation'
|
|
68
|
-
},
|
|
69
|
-
'external-content': {
|
|
70
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-external-content',
|
|
71
|
-
defaultMessage: 'External content',
|
|
72
|
-
description: 'external-content'
|
|
73
|
-
},
|
|
74
|
-
communication: {
|
|
75
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-communication',
|
|
76
|
-
defaultMessage: 'Communication',
|
|
77
|
-
description: 'communication'
|
|
78
|
-
},
|
|
79
|
-
reporting: {
|
|
80
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-reporting',
|
|
81
|
-
defaultMessage: 'Reporting',
|
|
82
|
-
description: 'reporting'
|
|
83
|
-
},
|
|
84
|
-
admin: {
|
|
85
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-admin',
|
|
86
|
-
defaultMessage: 'Administration',
|
|
87
|
-
description: 'admin'
|
|
88
|
-
},
|
|
89
|
-
development: {
|
|
90
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-development',
|
|
91
|
-
defaultMessage: 'Development',
|
|
92
|
-
description: 'development'
|
|
93
|
-
}
|
|
94
|
-
});
|
|
37
|
+
}
|
|
@@ -5,11 +5,11 @@ import { css, jsx } from '@emotion/react';
|
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
|
|
8
|
+
import { messages } from '@atlaskit/editor-common/quick-insert';
|
|
8
9
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
9
10
|
import Modal, { ModalTransition, useModal } from '@atlaskit/modal-dialog';
|
|
10
11
|
import { N0 } from '@atlaskit/theme/colors';
|
|
11
12
|
import { getCategories } from './categories';
|
|
12
|
-
import { messages } from './messages';
|
|
13
13
|
export var MODAL_WRAPPER_PADDING = 16;
|
|
14
14
|
var actionsStyles = css({
|
|
15
15
|
display: 'inline-flex',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { messages } from '@atlaskit/editor-common/quick-insert';
|
|
2
2
|
export function getCategories(intl) {
|
|
3
3
|
return [{
|
|
4
4
|
title: intl.formatMessage(messages.all),
|
|
@@ -34,61 +34,4 @@ export function getCategories(intl) {
|
|
|
34
34
|
title: intl.formatMessage(messages.development),
|
|
35
35
|
name: 'development'
|
|
36
36
|
}];
|
|
37
|
-
}
|
|
38
|
-
var messages = defineMessages({
|
|
39
|
-
all: {
|
|
40
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-all',
|
|
41
|
-
defaultMessage: 'All',
|
|
42
|
-
description: 'all'
|
|
43
|
-
},
|
|
44
|
-
formatting: {
|
|
45
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-formatting',
|
|
46
|
-
defaultMessage: 'Formatting',
|
|
47
|
-
description: 'formatting'
|
|
48
|
-
},
|
|
49
|
-
'confluence-content': {
|
|
50
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-confluence-content',
|
|
51
|
-
defaultMessage: 'Confluence content',
|
|
52
|
-
description: 'confluence-content'
|
|
53
|
-
},
|
|
54
|
-
media: {
|
|
55
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-media',
|
|
56
|
-
defaultMessage: 'Media',
|
|
57
|
-
description: 'media'
|
|
58
|
-
},
|
|
59
|
-
visuals: {
|
|
60
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-visuals',
|
|
61
|
-
defaultMessage: 'Visuals & images',
|
|
62
|
-
description: 'visuals'
|
|
63
|
-
},
|
|
64
|
-
navigation: {
|
|
65
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-navigation',
|
|
66
|
-
defaultMessage: 'Navigation',
|
|
67
|
-
description: 'navigation'
|
|
68
|
-
},
|
|
69
|
-
'external-content': {
|
|
70
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-external-content',
|
|
71
|
-
defaultMessage: 'External content',
|
|
72
|
-
description: 'external-content'
|
|
73
|
-
},
|
|
74
|
-
communication: {
|
|
75
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-communication',
|
|
76
|
-
defaultMessage: 'Communication',
|
|
77
|
-
description: 'communication'
|
|
78
|
-
},
|
|
79
|
-
reporting: {
|
|
80
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-reporting',
|
|
81
|
-
defaultMessage: 'Reporting',
|
|
82
|
-
description: 'reporting'
|
|
83
|
-
},
|
|
84
|
-
admin: {
|
|
85
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-admin',
|
|
86
|
-
defaultMessage: 'Administration',
|
|
87
|
-
description: 'admin'
|
|
88
|
-
},
|
|
89
|
-
development: {
|
|
90
|
-
id: 'fabric.editor.elementbrowser.categorylist.category-development',
|
|
91
|
-
defaultMessage: 'Development',
|
|
92
|
-
description: 'development'
|
|
93
|
-
}
|
|
94
|
-
});
|
|
37
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/button": "^17.
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/button": "^17.3.0",
|
|
37
|
+
"@atlaskit/editor-common": "^77.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-type-ahead": "^0.9.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
40
40
|
"@atlaskit/icon": "^22.0.0",
|
|
41
41
|
"@atlaskit/modal-dialog": "^12.10.0",
|
|
42
42
|
"@atlaskit/theme": "^12.6.0",
|
|
43
|
-
"@atlaskit/tokens": "^1.
|
|
43
|
+
"@atlaskit/tokens": "^1.35.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1"
|
|
46
46
|
},
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.messages = void 0;
|
|
7
|
-
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
-
help: {
|
|
10
|
-
id: 'fabric.editor.elementBrowser.help',
|
|
11
|
-
defaultMessage: 'Help',
|
|
12
|
-
description: 'Element browser help button label'
|
|
13
|
-
}
|
|
14
|
-
});
|