@atlaskit/editor-common 100.4.1 → 100.4.3
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 +17 -0
- package/dist/cjs/analytics/types/toolbar-button.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Separator.js +12 -7
- package/dist/es2019/analytics/types/toolbar-button.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Separator.js +8 -3
- package/dist/esm/analytics/types/toolbar-button.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Separator.js +12 -7
- package/dist/types/analytics/types/toolbar-button.d.ts +1 -0
- package/dist/types/types/floating-toolbar.d.ts +1 -0
- package/dist/types/ui/FloatingToolbar/Separator.d.ts +3 -1
- package/dist/types-ts4.5/analytics/types/toolbar-button.d.ts +1 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/Separator.d.ts +3 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 100.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#121092](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/121092)
|
|
8
|
+
[`8cd08b738070d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8cd08b738070d) -
|
|
9
|
+
[ux] Implemented full height separator as per design for media and card
|
|
10
|
+
- [#120931](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120931)
|
|
11
|
+
[`624b97c021fea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/624b97c021fea) -
|
|
12
|
+
[ux] ED-26676 revert to existing primary toolbar components
|
|
13
|
+
|
|
14
|
+
## 100.4.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 100.4.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -17,6 +17,7 @@ var TOOLBAR_ACTION_SUBJECT_ID = exports.TOOLBAR_ACTION_SUBJECT_ID = /*#__PURE__*
|
|
|
17
17
|
TOOLBAR_ACTION_SUBJECT_ID["BACKGROUND_COLOR"] = "backgroundColor";
|
|
18
18
|
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_STRONG"] = "strong";
|
|
19
19
|
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_ITALIC"] = "italic";
|
|
20
|
+
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_UNDERLINE"] = "underline";
|
|
20
21
|
TOOLBAR_ACTION_SUBJECT_ID["UNDO"] = "undo";
|
|
21
22
|
TOOLBAR_ACTION_SUBJECT_ID["REDO"] = "redo";
|
|
22
23
|
TOOLBAR_ACTION_SUBJECT_ID["INDENT"] = "indent";
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
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 && {}.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; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "100.4.
|
|
20
|
+
var packageVersion = "100.4.3";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "100.4.
|
|
26
|
+
var packageVersion = "100.4.3";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -18,11 +18,16 @@ var separator = (0, _react.css)({
|
|
|
18
18
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
19
19
|
alignSelf: 'center'
|
|
20
20
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
var separatorFullHeight = (0, _react.css)({
|
|
22
|
+
height: '40px'
|
|
23
|
+
});
|
|
24
|
+
var _default = exports.default = function _default(_ref) {
|
|
25
|
+
var fullHeight = _ref.fullHeight;
|
|
26
|
+
return (
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
28
|
+
(0, _react.jsx)("div", {
|
|
29
|
+
css: [separator, fullHeight && separatorFullHeight],
|
|
30
|
+
className: "separator"
|
|
31
|
+
})
|
|
32
|
+
);
|
|
28
33
|
};
|
|
@@ -11,6 +11,7 @@ export let TOOLBAR_ACTION_SUBJECT_ID = /*#__PURE__*/function (TOOLBAR_ACTION_SUB
|
|
|
11
11
|
TOOLBAR_ACTION_SUBJECT_ID["BACKGROUND_COLOR"] = "backgroundColor";
|
|
12
12
|
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_STRONG"] = "strong";
|
|
13
13
|
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_ITALIC"] = "italic";
|
|
14
|
+
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_UNDERLINE"] = "underline";
|
|
14
15
|
TOOLBAR_ACTION_SUBJECT_ID["UNDO"] = "undo";
|
|
15
16
|
TOOLBAR_ACTION_SUBJECT_ID["REDO"] = "redo";
|
|
16
17
|
TOOLBAR_ACTION_SUBJECT_ID["INDENT"] = "indent";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "100.4.
|
|
4
|
+
const packageVersion = "100.4.3";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "100.4.
|
|
16
|
+
const packageVersion = "100.4.3";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -11,9 +11,14 @@ const separator = css({
|
|
|
11
11
|
margin: `0 ${"var(--ds-space-050, 4px)"}`,
|
|
12
12
|
alignSelf: 'center'
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
const separatorFullHeight = css({
|
|
15
|
+
height: '40px'
|
|
16
|
+
});
|
|
17
|
+
export default (({
|
|
18
|
+
fullHeight
|
|
19
|
+
}) =>
|
|
15
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
-
|
|
17
|
-
css: separator,
|
|
21
|
+
jsx("div", {
|
|
22
|
+
css: [separator, fullHeight && separatorFullHeight],
|
|
18
23
|
className: "separator"
|
|
19
24
|
}));
|
|
@@ -11,6 +11,7 @@ export var TOOLBAR_ACTION_SUBJECT_ID = /*#__PURE__*/function (TOOLBAR_ACTION_SUB
|
|
|
11
11
|
TOOLBAR_ACTION_SUBJECT_ID["BACKGROUND_COLOR"] = "backgroundColor";
|
|
12
12
|
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_STRONG"] = "strong";
|
|
13
13
|
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_ITALIC"] = "italic";
|
|
14
|
+
TOOLBAR_ACTION_SUBJECT_ID["TEXT_FORMATTING_UNDERLINE"] = "underline";
|
|
14
15
|
TOOLBAR_ACTION_SUBJECT_ID["UNDO"] = "undo";
|
|
15
16
|
TOOLBAR_ACTION_SUBJECT_ID["REDO"] = "redo";
|
|
16
17
|
TOOLBAR_ACTION_SUBJECT_ID["INDENT"] = "indent";
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "100.4.
|
|
10
|
+
var packageVersion = "100.4.3";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "100.4.
|
|
23
|
+
var packageVersion = "100.4.3";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -11,11 +11,16 @@ var separator = css({
|
|
|
11
11
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
12
12
|
alignSelf: 'center'
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
var separatorFullHeight = css({
|
|
15
|
+
height: '40px'
|
|
16
|
+
});
|
|
17
|
+
export default (function (_ref) {
|
|
18
|
+
var fullHeight = _ref.fullHeight;
|
|
19
|
+
return (
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
21
|
+
jsx("div", {
|
|
22
|
+
css: [separator, fullHeight && separatorFullHeight],
|
|
23
|
+
className: "separator"
|
|
24
|
+
})
|
|
25
|
+
);
|
|
21
26
|
});
|
|
@@ -13,6 +13,7 @@ export declare enum TOOLBAR_ACTION_SUBJECT_ID {
|
|
|
13
13
|
BACKGROUND_COLOR = "backgroundColor",
|
|
14
14
|
TEXT_FORMATTING_STRONG = "strong",
|
|
15
15
|
TEXT_FORMATTING_ITALIC = "italic",
|
|
16
|
+
TEXT_FORMATTING_UNDERLINE = "underline",
|
|
16
17
|
UNDO = "undo",
|
|
17
18
|
REDO = "redo",
|
|
18
19
|
INDENT = "indent",
|
|
@@ -237,6 +237,7 @@ export type FloatingToolbarSelect<T extends Object> = FloatingToolbarEmojiPicker
|
|
|
237
237
|
export type FloatingToolbarSeparator = {
|
|
238
238
|
type: 'separator';
|
|
239
239
|
hidden?: boolean;
|
|
240
|
+
fullHeight?: boolean;
|
|
240
241
|
supportsViewMode?: boolean;
|
|
241
242
|
};
|
|
242
243
|
export type FloatingToolbarDropdown<T extends Object> = {
|
|
@@ -13,6 +13,7 @@ export declare enum TOOLBAR_ACTION_SUBJECT_ID {
|
|
|
13
13
|
BACKGROUND_COLOR = "backgroundColor",
|
|
14
14
|
TEXT_FORMATTING_STRONG = "strong",
|
|
15
15
|
TEXT_FORMATTING_ITALIC = "italic",
|
|
16
|
+
TEXT_FORMATTING_UNDERLINE = "underline",
|
|
16
17
|
UNDO = "undo",
|
|
17
18
|
REDO = "redo",
|
|
18
19
|
INDENT = "indent",
|
|
@@ -237,6 +237,7 @@ export type FloatingToolbarSelect<T extends Object> = FloatingToolbarEmojiPicker
|
|
|
237
237
|
export type FloatingToolbarSeparator = {
|
|
238
238
|
type: 'separator';
|
|
239
239
|
hidden?: boolean;
|
|
240
|
+
fullHeight?: boolean;
|
|
240
241
|
supportsViewMode?: boolean;
|
|
241
242
|
};
|
|
242
243
|
export type FloatingToolbarDropdown<T extends Object> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "100.4.
|
|
3
|
+
"version": "100.4.3",
|
|
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/"
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
145
145
|
"@atlaskit/media-picker": "^68.0.0",
|
|
146
146
|
"@atlaskit/media-ui": "^28.0.0",
|
|
147
|
-
"@atlaskit/media-viewer": "
|
|
147
|
+
"@atlaskit/media-viewer": "52.0.0",
|
|
148
148
|
"@atlaskit/mention": "^24.0.0",
|
|
149
149
|
"@atlaskit/menu": "^3.1.0",
|
|
150
150
|
"@atlaskit/onboarding": "^13.0.0",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"@atlaskit/task-decision": "^19.0.0",
|
|
160
160
|
"@atlaskit/textfield": "^8.0.0",
|
|
161
161
|
"@atlaskit/tmp-editor-statsig": "^3.3.0",
|
|
162
|
-
"@atlaskit/tokens": "^4.
|
|
162
|
+
"@atlaskit/tokens": "^4.3.0",
|
|
163
163
|
"@atlaskit/tooltip": "^20.0.0",
|
|
164
164
|
"@atlaskit/width-detector": "^5.0.0",
|
|
165
165
|
"@babel/runtime": "^7.0.0",
|