@atlaskit/editor-common 116.30.0 → 116.30.2

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,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.30.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d111e53fecca1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d111e53fecca1) -
8
+ disallow media badge external for BBC
9
+ - Updated dependencies
10
+
11
+ ## 116.30.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`c1e8426f607ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1e8426f607ad) -
16
+ [EDITOR-8060] Behind the `platform_editor_sync_block_activation` experiment, the synced block
17
+ floating toolbar copy button is now the primary action: it shows a visible "Copy to sync" label
18
+ and is moved to the first position, ahead of the informational synced-location dropdown. Existing
19
+ behaviour is unchanged for users outside the experiment.
20
+ - Updated dependencies
21
+
3
22
  ## 116.30.0
4
23
 
5
24
  ### Minor Changes
@@ -40,7 +40,7 @@ var isUnbadgedUrl = exports.isUnbadgedUrl = function isUnbadgedUrl(url) {
40
40
  if (protocol === 'data:') {
41
41
  return pathname === null || pathname === void 0 ? void 0 : pathname.startsWith('image/');
42
42
  }
43
- if ((0, _expValEquals.expValEquals)('platform_editor_media_external_badge_bbc_fix', 'isEnable', true)) {
43
+ if ((0, _expValEquals.expValEquals)('platform_editor_media_external_badge_bbc_fix', 'isEnabled', true)) {
44
44
  return Boolean(hostname && NO_EXTERNAL_BADGE_HOSTS_NEW.some(function (host) {
45
45
  return hostname === host || hostname.endsWith(".".concat(host));
46
46
  }));
@@ -16,6 +16,11 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntl.defineMessage
16
16
  defaultMessage: 'Copy synced block',
17
17
  description: 'Tooltip for the button to copy synced block element '
18
18
  },
19
+ copyToSyncLabel: {
20
+ id: 'fabric.editor.copyToSyncLabel',
21
+ defaultMessage: 'Copy to sync',
22
+ description: 'Button label for the primary action that copies a synced block reference to your clipboard so it can be reused (synced) somewhere else'
23
+ },
19
24
  editSourceLabel: {
20
25
  id: 'fabric.editor.editSourceLabel',
21
26
  defaultMessage: 'Edit source',
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.29.0";
31
+ var packageVersion = "116.30.1";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // 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 = "116.29.0";
27
+ var packageVersion = "116.30.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -34,7 +34,7 @@ export const isUnbadgedUrl = url => {
34
34
  if (protocol === 'data:') {
35
35
  return pathname === null || pathname === void 0 ? void 0 : pathname.startsWith('image/');
36
36
  }
37
- if (expValEquals('platform_editor_media_external_badge_bbc_fix', 'isEnable', true)) {
37
+ if (expValEquals('platform_editor_media_external_badge_bbc_fix', 'isEnabled', true)) {
38
38
  return Boolean(hostname && NO_EXTERNAL_BADGE_HOSTS_NEW.some(host => hostname === host || hostname.endsWith(`.${host}`)));
39
39
  }
40
40
  return Boolean(hostname && NO_EXTERNAL_BADGE_HOSTS.some(host => hostname === host || hostname.endsWith(`.${host}`)));
@@ -10,6 +10,11 @@ export const syncBlockMessages = defineMessages({
10
10
  defaultMessage: 'Copy synced block',
11
11
  description: 'Tooltip for the button to copy synced block element '
12
12
  },
13
+ copyToSyncLabel: {
14
+ id: 'fabric.editor.copyToSyncLabel',
15
+ defaultMessage: 'Copy to sync',
16
+ description: 'Button label for the primary action that copies a synced block reference to your clipboard so it can be reused (synced) somewhere else'
17
+ },
13
18
  editSourceLabel: {
14
19
  id: 'fabric.editor.editSourceLabel',
15
20
  defaultMessage: 'Edit source',
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.29.0";
17
+ const packageVersion = "116.30.1";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // 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 = "116.29.0";
17
+ const packageVersion = "116.30.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -32,7 +32,7 @@ export var isUnbadgedUrl = function isUnbadgedUrl(url) {
32
32
  if (protocol === 'data:') {
33
33
  return pathname === null || pathname === void 0 ? void 0 : pathname.startsWith('image/');
34
34
  }
35
- if (expValEquals('platform_editor_media_external_badge_bbc_fix', 'isEnable', true)) {
35
+ if (expValEquals('platform_editor_media_external_badge_bbc_fix', 'isEnabled', true)) {
36
36
  return Boolean(hostname && NO_EXTERNAL_BADGE_HOSTS_NEW.some(function (host) {
37
37
  return hostname === host || hostname.endsWith(".".concat(host));
38
38
  }));
@@ -10,6 +10,11 @@ export var syncBlockMessages = defineMessages({
10
10
  defaultMessage: 'Copy synced block',
11
11
  description: 'Tooltip for the button to copy synced block element '
12
12
  },
13
+ copyToSyncLabel: {
14
+ id: 'fabric.editor.copyToSyncLabel',
15
+ defaultMessage: 'Copy to sync',
16
+ description: 'Button label for the primary action that copies a synced block reference to your clipboard so it can be reused (synced) somewhere else'
17
+ },
13
18
  editSourceLabel: {
14
19
  id: 'fabric.editor.editSourceLabel',
15
20
  defaultMessage: 'Edit source',
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.29.0";
23
+ var packageVersion = "116.30.1";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // 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 = "116.29.0";
24
+ var packageVersion = "116.30.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -54,6 +54,11 @@ export declare const syncBlockMessages: {
54
54
  description: string;
55
55
  id: string;
56
56
  };
57
+ copyToSyncLabel: {
58
+ defaultMessage: string;
59
+ description: string;
60
+ id: string;
61
+ };
57
62
  createSyncBlockLabel: {
58
63
  defaultMessage: string;
59
64
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.30.0",
3
+ "version": "116.30.2",
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/"
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/task-decision": "^21.4.0",
81
81
  "@atlaskit/teams-app-config": "^2.1.0",
82
82
  "@atlaskit/textfield": "^9.1.0",
83
- "@atlaskit/tmp-editor-statsig": "^124.9.0",
83
+ "@atlaskit/tmp-editor-statsig": "^125.0.0",
84
84
  "@atlaskit/tokens": "^15.8.0",
85
85
  "@atlaskit/tooltip": "^23.1.0",
86
86
  "@atlaskit/width-detector": "^6.2.0",