@atlaskit/editor-plugin-quick-insert 1.1.6 → 1.1.8
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 1.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#114683](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114683)
|
|
8
|
+
[`ff0815316ab38`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ff0815316ab38) -
|
|
9
|
+
Removes usage of custom theme button in places where its API is not being used and the default
|
|
10
|
+
button is able to be used instead. This should give a slight performance (runtime) improvement.
|
|
11
|
+
|
|
12
|
+
## 1.1.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.1.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
|
-
var
|
|
13
|
+
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
14
14
|
var _elementBrowser = require("@atlaskit/editor-common/element-browser");
|
|
15
15
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
16
16
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/question-circle"));
|
|
@@ -21,6 +21,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
/** @jsx jsx */
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
|
|
24
26
|
var MODAL_WRAPPER_PADDING = exports.MODAL_WRAPPER_PADDING = 16;
|
|
25
27
|
var actionsStyles = (0, _react2.css)({
|
|
26
28
|
display: 'inline-flex',
|
|
@@ -127,20 +129,20 @@ var Footer = function Footer(_ref) {
|
|
|
127
129
|
css: actionsStyles
|
|
128
130
|
}, (0, _react2.jsx)("div", {
|
|
129
131
|
css: actionItemStyles
|
|
130
|
-
}, (0, _react2.jsx)(
|
|
132
|
+
}, (0, _react2.jsx)(_button.default, {
|
|
131
133
|
appearance: "primary",
|
|
132
134
|
onClick: onInsert,
|
|
133
135
|
testId: "ModalElementBrowser__insert-button"
|
|
134
136
|
}, "Insert")), (0, _react2.jsx)("div", {
|
|
135
137
|
css: actionItemStyles
|
|
136
|
-
}, (0, _react2.jsx)(
|
|
138
|
+
}, (0, _react2.jsx)(_button.default, {
|
|
137
139
|
appearance: "subtle",
|
|
138
140
|
onClick: onClose,
|
|
139
141
|
testId: "ModalElementBrowser__close-button"
|
|
140
142
|
}, "Close"))));
|
|
141
143
|
};
|
|
142
144
|
var HelpLink = function HelpLink(url, helpText) {
|
|
143
|
-
return (0, _react2.jsx)(
|
|
145
|
+
return (0, _react2.jsx)(_button.default, {
|
|
144
146
|
iconBefore: (0, _react2.jsx)(_questionCircle.default, {
|
|
145
147
|
label: "",
|
|
146
148
|
size: "medium"
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { injectIntl } from 'react-intl-next';
|
|
5
|
-
import Button from '@atlaskit/button
|
|
7
|
+
import Button from '@atlaskit/button';
|
|
6
8
|
import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
|
|
7
9
|
import { messages } from '@atlaskit/editor-common/quick-insert';
|
|
8
10
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { useCallback, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import Button from '@atlaskit/button
|
|
8
|
+
import Button from '@atlaskit/button';
|
|
7
9
|
import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
|
|
8
10
|
import { messages } from '@atlaskit/editor-common/quick-insert';
|
|
9
11
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
package/package.json
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
+
"version": "1.1.8",
|
|
4
|
+
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"inPublicMirror": false,
|
|
14
|
+
"releaseModel": "continuous",
|
|
15
|
+
"runReact18": false
|
|
16
|
+
},
|
|
17
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
|
+
"main": "dist/cjs/index.js",
|
|
19
|
+
"module": "dist/esm/index.js",
|
|
20
|
+
"module:es2019": "dist/es2019/index.js",
|
|
21
|
+
"types": "dist/types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
">=4.5 <4.9": {
|
|
24
|
+
"*": [
|
|
25
|
+
"dist/types-ts4.5/*",
|
|
26
|
+
"dist/types-ts4.5/index.d.ts"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"atlaskit:src": "src/index.ts",
|
|
32
|
+
"af:exports": {
|
|
33
|
+
".": "./src/index.ts"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@atlaskit/button": "^18.0.0",
|
|
37
|
+
"@atlaskit/editor-common": "^82.14.0",
|
|
38
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.3.0",
|
|
39
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
40
|
+
"@atlaskit/icon": "^22.4.0",
|
|
41
|
+
"@atlaskit/modal-dialog": "^12.14.0",
|
|
42
|
+
"@atlaskit/theme": "^12.11.0",
|
|
43
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
44
|
+
"@babel/runtime": "^7.0.0",
|
|
45
|
+
"@emotion/react": "^11.7.1"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"react": "^16.8.0",
|
|
49
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@af/visual-regression": "*",
|
|
53
|
+
"@atlaskit/ssr": "*",
|
|
54
|
+
"@atlaskit/visual-regression": "*",
|
|
55
|
+
"@testing-library/react": "^12.1.5",
|
|
56
|
+
"react-dom": "^16.8.0",
|
|
57
|
+
"typescript": "~5.4.2",
|
|
58
|
+
"wait-for-expect": "^1.2.0"
|
|
59
|
+
},
|
|
60
|
+
"techstack": {
|
|
61
|
+
"@atlassian/frontend": {
|
|
62
|
+
"import-structure": [
|
|
63
|
+
"atlassian-conventions"
|
|
64
|
+
],
|
|
65
|
+
"circular-dependencies": [
|
|
66
|
+
"file-and-folder-level"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"@repo/internal": {
|
|
70
|
+
"dom-events": "use-bind-event-listener",
|
|
71
|
+
"analytics": [
|
|
72
|
+
"analytics-next"
|
|
73
|
+
],
|
|
74
|
+
"design-tokens": [
|
|
75
|
+
"color"
|
|
76
|
+
],
|
|
77
|
+
"theming": [
|
|
78
|
+
"react-context"
|
|
79
|
+
],
|
|
80
|
+
"ui-components": [
|
|
81
|
+
"lite-mode"
|
|
82
|
+
],
|
|
83
|
+
"deprecation": "no-deprecated-imports",
|
|
84
|
+
"styling": [
|
|
85
|
+
"emotion",
|
|
86
|
+
"emotion"
|
|
87
|
+
],
|
|
88
|
+
"imports": [
|
|
89
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|