@atlaskit/editor-common 115.0.1 → 115.0.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,21 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 115.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`883d14f6d3052`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/883d14f6d3052) -
8
+ [EDITOR-7439] [M0] Update `upload` tab copy
9
+ - Updated dependencies
10
+
11
+ ## 115.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`4b34930cbb801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4b34930cbb801) -
16
+ [EDITOR-6813] analytics implemented for remix from insertion
17
+ - Updated dependencies
18
+
3
19
  ## 115.0.1
4
20
 
5
21
  ### Patch Changes
@@ -275,6 +275,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
275
275
  INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
276
276
  INPUT_METHOD["LAYOUT_COLUMN_MENU"] = "layoutColumnMenu";
277
277
  INPUT_METHOD["REMIX"] = "remix";
278
+ INPUT_METHOD["REMIX_FROM_MEDIA_INSERTS"] = "remixFromMediaInserts";
278
279
  return INPUT_METHOD;
279
280
  }({});
280
281
  var INSERT_MEDIA_VIA = exports.INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
@@ -80,5 +80,15 @@ var mediaInsertMessages = exports.mediaInsertMessages = (0, _reactIntl.defineMes
80
80
  id: 'fabric.editor.media.insert.invalidUrlErrorMessage',
81
81
  defaultMessage: 'Invalid link',
82
82
  description: 'Error message displayed when a user tries to insert media from an invalid URL'
83
+ },
84
+ uploadTabTitle: {
85
+ id: 'fabric.editor.media.insert.uploadTabTitle',
86
+ defaultMessage: 'Upload',
87
+ description: 'Title of the navigation tab that allows users to upload local media files'
88
+ },
89
+ chooseFile: {
90
+ id: 'fabric.editor.media.insert.chooseFile',
91
+ defaultMessage: 'Choose a file',
92
+ description: 'Text on a button that opens a file picker dialog to choose a local media file'
83
93
  }
84
94
  });
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "115.0.0";
22
+ var packageVersion = "115.0.2";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "115.0.0";
27
+ var packageVersion = "115.0.2";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -269,6 +269,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
269
269
  INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
270
270
  INPUT_METHOD["LAYOUT_COLUMN_MENU"] = "layoutColumnMenu";
271
271
  INPUT_METHOD["REMIX"] = "remix";
272
+ INPUT_METHOD["REMIX_FROM_MEDIA_INSERTS"] = "remixFromMediaInserts";
272
273
  return INPUT_METHOD;
273
274
  }({});
274
275
  export let INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
@@ -74,5 +74,15 @@ export const mediaInsertMessages = defineMessages({
74
74
  id: 'fabric.editor.media.insert.invalidUrlErrorMessage',
75
75
  defaultMessage: 'Invalid link',
76
76
  description: 'Error message displayed when a user tries to insert media from an invalid URL'
77
+ },
78
+ uploadTabTitle: {
79
+ id: 'fabric.editor.media.insert.uploadTabTitle',
80
+ defaultMessage: 'Upload',
81
+ description: 'Title of the navigation tab that allows users to upload local media files'
82
+ },
83
+ chooseFile: {
84
+ id: 'fabric.editor.media.insert.chooseFile',
85
+ defaultMessage: 'Choose a file',
86
+ description: 'Text on a button that opens a file picker dialog to choose a local media file'
77
87
  }
78
88
  });
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "115.0.0";
7
+ const packageVersion = "115.0.2";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "115.0.0";
17
+ const packageVersion = "115.0.2";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -269,6 +269,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
269
269
  INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
270
270
  INPUT_METHOD["LAYOUT_COLUMN_MENU"] = "layoutColumnMenu";
271
271
  INPUT_METHOD["REMIX"] = "remix";
272
+ INPUT_METHOD["REMIX_FROM_MEDIA_INSERTS"] = "remixFromMediaInserts";
272
273
  return INPUT_METHOD;
273
274
  }({});
274
275
  export var INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
@@ -74,5 +74,15 @@ export var mediaInsertMessages = defineMessages({
74
74
  id: 'fabric.editor.media.insert.invalidUrlErrorMessage',
75
75
  defaultMessage: 'Invalid link',
76
76
  description: 'Error message displayed when a user tries to insert media from an invalid URL'
77
+ },
78
+ uploadTabTitle: {
79
+ id: 'fabric.editor.media.insert.uploadTabTitle',
80
+ defaultMessage: 'Upload',
81
+ description: 'Title of the navigation tab that allows users to upload local media files'
82
+ },
83
+ chooseFile: {
84
+ id: 'fabric.editor.media.insert.chooseFile',
85
+ defaultMessage: 'Choose a file',
86
+ description: 'Text on a button that opens a file picker dialog to choose a local media file'
77
87
  }
78
88
  });
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "115.0.0";
13
+ var packageVersion = "115.0.2";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "115.0.0";
24
+ var packageVersion = "115.0.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -265,7 +265,8 @@ export declare enum INPUT_METHOD {
265
265
  SMART_LINK = "smartLink",
266
266
  ELEMENT_BROWSER = "elementBrowser",
267
267
  LAYOUT_COLUMN_MENU = "layoutColumnMenu",
268
- REMIX = "remix"
268
+ REMIX = "remix",
269
+ REMIX_FROM_MEDIA_INSERTS = "remixFromMediaInserts"
269
270
  }
270
271
  export declare enum INSERT_MEDIA_VIA {
271
272
  LOCAL_UPLOAD = "localUpload",
@@ -69,7 +69,7 @@ type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
69
69
  type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
70
70
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER;
71
71
  }, undefined>;
72
- export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER | INPUT_METHOD.MEDIA_PICKER | INPUT_METHOD.REMIX;
72
+ export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER | INPUT_METHOD.MEDIA_PICKER | INPUT_METHOD.REMIX | INPUT_METHOD.REMIX_FROM_MEDIA_INSERTS;
73
73
  export type InsertMediaVia = INSERT_MEDIA_VIA.EXTERNAL_UPLOAD | INSERT_MEDIA_VIA.EXTERNAL_URL | INSERT_MEDIA_VIA.LOCAL_UPLOAD;
74
74
  type InsertMediaSingleAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
75
75
  fileExtension?: string;
@@ -4,6 +4,11 @@ export declare const mediaInsertMessages: {
4
4
  description: string;
5
5
  id: string;
6
6
  };
7
+ chooseFile: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
7
12
  fileTabTitle: {
8
13
  defaultMessage: string;
9
14
  description: string;
@@ -74,4 +79,9 @@ export declare const mediaInsertMessages: {
74
79
  description: string;
75
80
  id: string;
76
81
  };
82
+ uploadTabTitle: {
83
+ defaultMessage: string;
84
+ description: string;
85
+ id: string;
86
+ };
77
87
  };
@@ -265,7 +265,8 @@ export declare enum INPUT_METHOD {
265
265
  SMART_LINK = "smartLink",
266
266
  ELEMENT_BROWSER = "elementBrowser",
267
267
  LAYOUT_COLUMN_MENU = "layoutColumnMenu",
268
- REMIX = "remix"
268
+ REMIX = "remix",
269
+ REMIX_FROM_MEDIA_INSERTS = "remixFromMediaInserts"
269
270
  }
270
271
  export declare enum INSERT_MEDIA_VIA {
271
272
  LOCAL_UPLOAD = "localUpload",
@@ -69,7 +69,7 @@ type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
69
69
  type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
70
70
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER;
71
71
  }, undefined>;
72
- export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER | INPUT_METHOD.MEDIA_PICKER | INPUT_METHOD.REMIX;
72
+ export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER | INPUT_METHOD.MEDIA_PICKER | INPUT_METHOD.REMIX | INPUT_METHOD.REMIX_FROM_MEDIA_INSERTS;
73
73
  export type InsertMediaVia = INSERT_MEDIA_VIA.EXTERNAL_UPLOAD | INSERT_MEDIA_VIA.EXTERNAL_URL | INSERT_MEDIA_VIA.LOCAL_UPLOAD;
74
74
  type InsertMediaSingleAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
75
75
  fileExtension?: string;
@@ -4,6 +4,11 @@ export declare const mediaInsertMessages: {
4
4
  description: string;
5
5
  id: string;
6
6
  };
7
+ chooseFile: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
7
12
  fileTabTitle: {
8
13
  defaultMessage: string;
9
14
  description: string;
@@ -74,4 +79,9 @@ export declare const mediaInsertMessages: {
74
79
  description: string;
75
80
  id: string;
76
81
  };
82
+ uploadTabTitle: {
83
+ defaultMessage: string;
84
+ description: string;
85
+ id: string;
86
+ };
77
87
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "115.0.1",
3
+ "version": "115.0.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/"
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/afm-i18n-platform-editor-editor-common": "2.18.0",
43
43
  "@atlaskit/analytics-listeners": "^10.1.0",
44
44
  "@atlaskit/analytics-namespaced-context": "^7.3.0",
45
- "@atlaskit/analytics-next": "^11.2.0",
45
+ "@atlaskit/analytics-next": "^11.3.0",
46
46
  "@atlaskit/atlassian-context": "^0.9.0",
47
47
  "@atlaskit/browser-apis": "^0.0.2",
48
48
  "@atlaskit/button": "^23.11.0",
@@ -87,7 +87,7 @@
87
87
  "@atlaskit/task-decision": "^20.1.0",
88
88
  "@atlaskit/teams-app-config": "^1.12.0",
89
89
  "@atlaskit/textfield": "^8.3.0",
90
- "@atlaskit/tmp-editor-statsig": "^88.2.0",
90
+ "@atlaskit/tmp-editor-statsig": "^88.4.0",
91
91
  "@atlaskit/tokens": "^13.1.0",
92
92
  "@atlaskit/tooltip": "^22.6.0",
93
93
  "@atlaskit/width-detector": "^5.1.0",