@atlaskit/editor-common 76.26.11 → 76.26.13
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/analytics/types/enums.js +1 -0
- package/dist/cjs/media-inline/styles.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/media-inline/styles.js +6 -6
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/media-inline/styles.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/api.d.ts +13 -0
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/api.d.ts +13 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.26.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#60660](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60660) [`102ad9375609`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/102ad9375609) - Fixed an issue where link creationMethod attribute was set as unknown when inserting via datasource config modal.
|
|
8
|
+
|
|
9
|
+
## 76.26.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#60827](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60827) [`5a8360781c14`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5a8360781c14) - ED-21527 fix inline image height inside an action item
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 76.26.11
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -163,6 +163,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
163
163
|
INPUT_METHOD["SHORTCUT"] = "shortcut";
|
|
164
164
|
INPUT_METHOD["TOOLBAR"] = "toolbar";
|
|
165
165
|
INPUT_METHOD["TYPEAHEAD"] = "typeAhead";
|
|
166
|
+
INPUT_METHOD["DATASOURCE"] = "datasource_config";
|
|
166
167
|
return INPUT_METHOD;
|
|
167
168
|
}({});
|
|
168
169
|
var TRIGGER_METHOD = exports.TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
|
|
@@ -14,4 +14,4 @@ var INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY = exports.INLINE_IMAGE_ASPECT_RATIO_CS
|
|
|
14
14
|
var inlineImageHeight = function inlineImageHeight(height) {
|
|
15
15
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n > .", ",\n > .mediaInlineView-content-wrap\n > .", " {\n height: ", "px;\n }\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, height);
|
|
16
16
|
};
|
|
17
|
-
var mediaInlineImageStyles = exports.mediaInlineImageStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
17
|
+
var mediaInlineImageStyles = exports.mediaInlineImageStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n // default inline image height is 24px, this includes\n // p, h3, and action items\n .", " {\n height: ", "px;\n }\n\n h1 {\n ", "\n }\n\n h2 {\n ", "\n }\n\n h4 {\n ", "\n }\n\n h5,\n h6 {\n ", "\n }\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, _typography.headingSizes.h600.lineHeight, inlineImageHeight(_typography.headingSizes.h800.lineHeight), inlineImageHeight(_typography.headingSizes.h700.lineHeight), inlineImageHeight(_typography.headingSizes.h500.lineHeight), inlineImageHeight(_typography.headingSizes.h400.lineHeight));
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
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; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "76.26.
|
|
19
|
+
var packageVersion = "76.26.13";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "76.26.
|
|
27
|
+
var packageVersion = "76.26.13";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -157,6 +157,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
157
157
|
INPUT_METHOD["SHORTCUT"] = "shortcut";
|
|
158
158
|
INPUT_METHOD["TOOLBAR"] = "toolbar";
|
|
159
159
|
INPUT_METHOD["TYPEAHEAD"] = "typeAhead";
|
|
160
|
+
INPUT_METHOD["DATASOURCE"] = "datasource_config";
|
|
160
161
|
return INPUT_METHOD;
|
|
161
162
|
}({});
|
|
162
163
|
export let TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
|
|
@@ -10,6 +10,12 @@ const inlineImageHeight = height => css`
|
|
|
10
10
|
}
|
|
11
11
|
`;
|
|
12
12
|
export const mediaInlineImageStyles = css`
|
|
13
|
+
// default inline image height is 24px, this includes
|
|
14
|
+
// p, h3, and action items
|
|
15
|
+
.${INLINE_IMAGE_WRAPPER_CLASS_NAME} {
|
|
16
|
+
height: ${headingSizes.h600.lineHeight}px;
|
|
17
|
+
}
|
|
18
|
+
|
|
13
19
|
h1 {
|
|
14
20
|
${inlineImageHeight(headingSizes.h800.lineHeight)}
|
|
15
21
|
}
|
|
@@ -18,12 +24,6 @@ export const mediaInlineImageStyles = css`
|
|
|
18
24
|
${inlineImageHeight(headingSizes.h700.lineHeight)}
|
|
19
25
|
}
|
|
20
26
|
|
|
21
|
-
// 24px
|
|
22
|
-
p,
|
|
23
|
-
h3 {
|
|
24
|
-
${inlineImageHeight(headingSizes.h600.lineHeight)}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
27
|
h4 {
|
|
28
28
|
${inlineImageHeight(headingSizes.h500.lineHeight)}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "76.26.
|
|
3
|
+
const packageVersion = "76.26.13";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.26.
|
|
12
|
+
const packageVersion = "76.26.13";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -157,6 +157,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
157
157
|
INPUT_METHOD["SHORTCUT"] = "shortcut";
|
|
158
158
|
INPUT_METHOD["TOOLBAR"] = "toolbar";
|
|
159
159
|
INPUT_METHOD["TYPEAHEAD"] = "typeAhead";
|
|
160
|
+
INPUT_METHOD["DATASOURCE"] = "datasource_config";
|
|
160
161
|
return INPUT_METHOD;
|
|
161
162
|
}({});
|
|
162
163
|
export var TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
|
|
@@ -7,4 +7,4 @@ export var INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY = '--editor-media-inline-image-
|
|
|
7
7
|
var inlineImageHeight = function inlineImageHeight(height) {
|
|
8
8
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n > .", ",\n > .mediaInlineView-content-wrap\n > .", " {\n height: ", "px;\n }\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, height);
|
|
9
9
|
};
|
|
10
|
-
export var mediaInlineImageStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
10
|
+
export var mediaInlineImageStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n // default inline image height is 24px, this includes\n // p, h3, and action items\n .", " {\n height: ", "px;\n }\n\n h1 {\n ", "\n }\n\n h2 {\n ", "\n }\n\n h4 {\n ", "\n }\n\n h5,\n h6 {\n ", "\n }\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, headingSizes.h600.lineHeight, inlineImageHeight(headingSizes.h800.lineHeight), inlineImageHeight(headingSizes.h700.lineHeight), inlineImageHeight(headingSizes.h500.lineHeight), inlineImageHeight(headingSizes.h400.lineHeight));
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "76.26.
|
|
9
|
+
var packageVersion = "76.26.13";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.26.
|
|
22
|
+
var packageVersion = "76.26.13";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { AnalyticsEventPayload } from './types';
|
|
3
3
|
export type EditorAnalyticsAPI = {
|
|
4
|
+
/**
|
|
5
|
+
* attachAnalyticsEvent is used to attach an analytics payloads to a transaction
|
|
6
|
+
*
|
|
7
|
+
* @param {AnalyticsEventPayload} payload - analytics payload
|
|
8
|
+
* @param {string} [channel="editor"] - optional channel identifier
|
|
9
|
+
* @param {Transaction} tr - a transaction
|
|
10
|
+
* @return {boolean} true if submitted successful, false if not submitted
|
|
11
|
+
*/
|
|
4
12
|
attachAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string) => (tr: Transaction) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* fireAnalyticsEvent is used to fire an analytics payloads directly
|
|
15
|
+
*
|
|
16
|
+
* @param {AnalyticsEventPayload} payload - analytics payload
|
|
17
|
+
*/
|
|
5
18
|
fireAnalyticsEvent: (payload: AnalyticsEventPayload) => void | undefined;
|
|
6
19
|
};
|
|
@@ -162,7 +162,8 @@ export declare enum INPUT_METHOD {
|
|
|
162
162
|
QUICK_INSERT = "quickInsert",
|
|
163
163
|
SHORTCUT = "shortcut",
|
|
164
164
|
TOOLBAR = "toolbar",
|
|
165
|
-
TYPEAHEAD = "typeAhead"
|
|
165
|
+
TYPEAHEAD = "typeAhead",
|
|
166
|
+
DATASOURCE = "datasource_config"
|
|
166
167
|
}
|
|
167
168
|
export declare enum TRIGGER_METHOD {
|
|
168
169
|
BUTTON = "button",
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { AnalyticsEventPayload } from './types';
|
|
3
3
|
export type EditorAnalyticsAPI = {
|
|
4
|
+
/**
|
|
5
|
+
* attachAnalyticsEvent is used to attach an analytics payloads to a transaction
|
|
6
|
+
*
|
|
7
|
+
* @param {AnalyticsEventPayload} payload - analytics payload
|
|
8
|
+
* @param {string} [channel="editor"] - optional channel identifier
|
|
9
|
+
* @param {Transaction} tr - a transaction
|
|
10
|
+
* @return {boolean} true if submitted successful, false if not submitted
|
|
11
|
+
*/
|
|
4
12
|
attachAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string) => (tr: Transaction) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* fireAnalyticsEvent is used to fire an analytics payloads directly
|
|
15
|
+
*
|
|
16
|
+
* @param {AnalyticsEventPayload} payload - analytics payload
|
|
17
|
+
*/
|
|
5
18
|
fireAnalyticsEvent: (payload: AnalyticsEventPayload) => void | undefined;
|
|
6
19
|
};
|
|
@@ -162,7 +162,8 @@ export declare enum INPUT_METHOD {
|
|
|
162
162
|
QUICK_INSERT = "quickInsert",
|
|
163
163
|
SHORTCUT = "shortcut",
|
|
164
164
|
TOOLBAR = "toolbar",
|
|
165
|
-
TYPEAHEAD = "typeAhead"
|
|
165
|
+
TYPEAHEAD = "typeAhead",
|
|
166
|
+
DATASOURCE = "datasource_config"
|
|
166
167
|
}
|
|
167
168
|
export declare enum TRIGGER_METHOD {
|
|
168
169
|
BUTTON = "button",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.26.
|
|
3
|
+
"version": "76.26.13",
|
|
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/"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"@atlaskit/link-datasource": "^1.19.0",
|
|
111
111
|
"@atlaskit/link-picker": "^1.30.0",
|
|
112
112
|
"@atlaskit/media-card": "^77.6.0",
|
|
113
|
-
"@atlaskit/media-client": "^26.
|
|
113
|
+
"@atlaskit/media-client": "^26.1.0",
|
|
114
114
|
"@atlaskit/media-picker": "^66.2.0",
|
|
115
115
|
"@atlaskit/mention": "^22.1.0",
|
|
116
116
|
"@atlaskit/menu": "^2.1.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@atlaskit/task-decision": "^17.9.0",
|
|
123
123
|
"@atlaskit/textfield": "^6.0.0",
|
|
124
124
|
"@atlaskit/theme": "^12.6.0",
|
|
125
|
-
"@atlaskit/tokens": "^1.
|
|
125
|
+
"@atlaskit/tokens": "^1.30.0",
|
|
126
126
|
"@atlaskit/tooltip": "^18.0.0",
|
|
127
127
|
"@atlaskit/ufo": "^0.2.0",
|
|
128
128
|
"@atlaskit/width-detector": "^4.1.0",
|