@atlaskit/editor-common 87.3.2 → 87.3.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 87.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#126568](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126568)
8
+ [`ce40c0ff7852f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce40c0ff7852f) -
9
+ Add menu item and typeahead for Upload image from URL
10
+
3
11
  ## 87.3.2
4
12
 
5
13
  ### Patch Changes
@@ -36,6 +36,16 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
36
36
  defaultMessage: 'Add image, video, or file',
37
37
  description: 'Insert one or more files, videos or images'
38
38
  },
39
+ insertMediaFromUrl: {
40
+ id: 'fabric.editor.insertMediaFromUrl',
41
+ defaultMessage: 'Image from link',
42
+ description: 'Upload image from URL'
43
+ },
44
+ insertMediaFromUrlDescription: {
45
+ id: 'fabric.editor.insertMediaFromUrlDescription',
46
+ defaultMessage: 'Add an image or video from a link',
47
+ description: 'Upload a image to your page from external URL'
48
+ },
39
49
  mediaFilesDescription: {
40
50
  id: 'fabric.editor.mediaFiles.description',
41
51
  defaultMessage: 'Add images and other files to your page',
@@ -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 && 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; }
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 = "87.3.2";
20
+ var packageVersion = "87.3.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 = "87.3.2";
26
+ var packageVersion = "87.3.3";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -30,6 +30,16 @@ export const toolbarInsertBlockMessages = defineMessages({
30
30
  defaultMessage: 'Add image, video, or file',
31
31
  description: 'Insert one or more files, videos or images'
32
32
  },
33
+ insertMediaFromUrl: {
34
+ id: 'fabric.editor.insertMediaFromUrl',
35
+ defaultMessage: 'Image from link',
36
+ description: 'Upload image from URL'
37
+ },
38
+ insertMediaFromUrlDescription: {
39
+ id: 'fabric.editor.insertMediaFromUrlDescription',
40
+ defaultMessage: 'Add an image or video from a link',
41
+ description: 'Upload a image to your page from external URL'
42
+ },
33
43
  mediaFilesDescription: {
34
44
  id: 'fabric.editor.mediaFiles.description',
35
45
  defaultMessage: 'Add images and other files to your page',
@@ -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 = "87.3.2";
4
+ const packageVersion = "87.3.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
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "87.3.2";
15
+ const packageVersion = "87.3.3";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -30,6 +30,16 @@ export var toolbarInsertBlockMessages = defineMessages({
30
30
  defaultMessage: 'Add image, video, or file',
31
31
  description: 'Insert one or more files, videos or images'
32
32
  },
33
+ insertMediaFromUrl: {
34
+ id: 'fabric.editor.insertMediaFromUrl',
35
+ defaultMessage: 'Image from link',
36
+ description: 'Upload image from URL'
37
+ },
38
+ insertMediaFromUrlDescription: {
39
+ id: 'fabric.editor.insertMediaFromUrlDescription',
40
+ defaultMessage: 'Add an image or video from a link',
41
+ description: 'Upload a image to your page from external URL'
42
+ },
33
43
  mediaFilesDescription: {
34
44
  id: 'fabric.editor.mediaFiles.description',
35
45
  defaultMessage: 'Add images and other files to your page',
@@ -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 = "87.3.2";
10
+ var packageVersion = "87.3.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 { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "87.3.2";
23
+ var packageVersion = "87.3.3";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -29,6 +29,16 @@ export declare const toolbarInsertBlockMessages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ insertMediaFromUrl: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ insertMediaFromUrlDescription: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
32
42
  mediaFilesDescription: {
33
43
  id: string;
34
44
  defaultMessage: string;
@@ -5,7 +5,7 @@ import type { TypeAheadItem } from '../types/type-ahead';
5
5
  export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
6
6
  selectInlineNode?: boolean;
7
7
  }) => Transaction;
8
- export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
8
+ export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'media-insert' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
9
9
  export type QuickInsertItem = TypeAheadItem & {
10
10
  /** other names used to find the item */
11
11
  keywords?: Array<string>;
@@ -29,6 +29,16 @@ export declare const toolbarInsertBlockMessages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ insertMediaFromUrl: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ insertMediaFromUrlDescription: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
32
42
  mediaFilesDescription: {
33
43
  id: string;
34
44
  defaultMessage: string;
@@ -5,7 +5,7 @@ import type { TypeAheadItem } from '../types/type-ahead';
5
5
  export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
6
6
  selectInlineNode?: boolean;
7
7
  }) => Transaction;
8
- export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
8
+ export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'media-insert' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
9
9
  export type QuickInsertItem = TypeAheadItem & {
10
10
  /** other names used to find the item */
11
11
  keywords?: Array<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "87.3.2",
3
+ "version": "87.3.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/"
@@ -116,7 +116,7 @@
116
116
  "@atlaskit/editor-shared-styles": "^2.13.0",
117
117
  "@atlaskit/editor-tables": "^2.8.0",
118
118
  "@atlaskit/emoji": "^67.7.0",
119
- "@atlaskit/icon": "^22.9.0",
119
+ "@atlaskit/icon": "^22.10.0",
120
120
  "@atlaskit/icon-object": "^6.4.0",
121
121
  "@atlaskit/link-datasource": "^2.9.0",
122
122
  "@atlaskit/link-picker": "^1.41.0",