@atlaskit/editor-common 78.26.4 → 78.27.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.27.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#89386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89386) [`91d0fdc31828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/91d0fdc31828) - Updates card plugin to leverage hyperlink plugins addToolbarItems action in order to inject link preferences button into the hyperlink floating toolbar. Also adds support to configure the link via card plugin options (smart links). Requires platform feature flag `platform.editor.card.inject-settings-button`.
8
+
9
+ Example usage:
10
+
11
+ ```tsx
12
+ <Editor
13
+ linking={{ smartLinks: { userPreferencesLink: 'https://example.com' } }}
14
+ {...restProps}
15
+ />
16
+ ```
17
+
18
+ ## 78.26.5
19
+
20
+ ### Patch Changes
21
+
22
+ - [#90526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90526) [`4a69141dc364`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4a69141dc364) - Add new toolbar tooltip copy for Loom
23
+
3
24
  ## 78.26.4
4
25
 
5
26
  ### Patch Changes
@@ -201,6 +201,11 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
201
201
  defaultMessage: 'Record video',
202
202
  description: 'Record video using Loom'
203
203
  },
204
+ addLoomVideo: {
205
+ id: 'fabric.editor.addLoomVideo',
206
+ defaultMessage: 'Add Loom Video',
207
+ description: 'Record a new Loom video'
208
+ },
204
209
  recordVideoDescription: {
205
210
  id: 'fabric.editor.recordVideo.description',
206
211
  defaultMessage: 'Record video using Loom',
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  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; }
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 = "78.26.4";
19
+ var packageVersion = "78.27.0";
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
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
22
22
  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); }; }
23
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
24
24
  var packageName = "@atlaskit/editor-common";
25
- var packageVersion = "78.26.4";
25
+ var packageVersion = "78.27.0";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -195,6 +195,11 @@ export const toolbarInsertBlockMessages = defineMessages({
195
195
  defaultMessage: 'Record video',
196
196
  description: 'Record video using Loom'
197
197
  },
198
+ addLoomVideo: {
199
+ id: 'fabric.editor.addLoomVideo',
200
+ defaultMessage: 'Add Loom Video',
201
+ description: 'Record a new Loom video'
202
+ },
198
203
  recordVideoDescription: {
199
204
  id: 'fabric.editor.recordVideo.description',
200
205
  defaultMessage: 'Record video using Loom',
@@ -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 = "78.26.4";
3
+ const packageVersion = "78.27.0";
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
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "78.26.4";
10
+ const packageVersion = "78.27.0";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -195,6 +195,11 @@ export var toolbarInsertBlockMessages = defineMessages({
195
195
  defaultMessage: 'Record video',
196
196
  description: 'Record video using Loom'
197
197
  },
198
+ addLoomVideo: {
199
+ id: 'fabric.editor.addLoomVideo',
200
+ defaultMessage: 'Add Loom Video',
201
+ description: 'Record a new Loom video'
202
+ },
198
203
  recordVideoDescription: {
199
204
  id: 'fabric.editor.recordVideo.description',
200
205
  defaultMessage: 'Record video using Loom',
@@ -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 = "78.26.4";
9
+ var packageVersion = "78.27.0";
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
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "78.26.4";
20
+ var packageVersion = "78.27.0";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -18,4 +18,8 @@ export interface CardOptions {
18
18
  allowAlignment?: boolean;
19
19
  allowWrapping?: boolean;
20
20
  showUpgradeDiscoverability?: boolean;
21
+ /**
22
+ * Customises the outbound link to configure user preferences
23
+ */
24
+ userPreferencesLink?: string;
21
25
  }
@@ -194,6 +194,11 @@ export declare const toolbarInsertBlockMessages: {
194
194
  defaultMessage: string;
195
195
  description: string;
196
196
  };
197
+ addLoomVideo: {
198
+ id: string;
199
+ defaultMessage: string;
200
+ description: string;
201
+ };
197
202
  recordVideoDescription: {
198
203
  id: string;
199
204
  defaultMessage: string;
@@ -18,4 +18,8 @@ export interface CardOptions {
18
18
  allowAlignment?: boolean;
19
19
  allowWrapping?: boolean;
20
20
  showUpgradeDiscoverability?: boolean;
21
+ /**
22
+ * Customises the outbound link to configure user preferences
23
+ */
24
+ userPreferencesLink?: string;
21
25
  }
@@ -194,6 +194,11 @@ export declare const toolbarInsertBlockMessages: {
194
194
  defaultMessage: string;
195
195
  description: string;
196
196
  };
197
+ addLoomVideo: {
198
+ id: string;
199
+ defaultMessage: string;
200
+ description: string;
201
+ };
197
202
  recordVideoDescription: {
198
203
  id: string;
199
204
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.26.4",
3
+ "version": "78.27.0",
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/"
@@ -129,7 +129,7 @@
129
129
  "@atlaskit/primitives": "^5.5.0",
130
130
  "@atlaskit/profilecard": "^19.11.0",
131
131
  "@atlaskit/section-message": "^6.4.0",
132
- "@atlaskit/smart-card": "^26.54.0",
132
+ "@atlaskit/smart-card": "^26.55.0",
133
133
  "@atlaskit/smart-user-picker": "^6.9.0",
134
134
  "@atlaskit/spinner": "^16.0.0",
135
135
  "@atlaskit/task-decision": "^17.9.0",