@atlaskit/editor-common 114.32.2 → 114.32.4

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,25 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.32.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cec76b6d3aeaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cec76b6d3aeaa) -
8
+ Cleanup feature gate `platform_synced_block_patch_11`. Jira work-item issue-type icons,
9
+ product-specific copy, and Relay environment initialisation are now permanently enabled.
10
+ - Updated dependencies
11
+
12
+ ## 114.32.3
13
+
14
+ ### Patch Changes
15
+
16
+ - [`81682ab6c4a7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/81682ab6c4a7f) -
17
+ EDITOR-7104: Update editor block menu copy behind feature gates.
18
+ - Update synced block quick insert and toolbar copy to "Sync block" behind
19
+ `platform_synced_block_patch_12`
20
+ - Update block menu "Turn into" copy to "Change format" behind
21
+ `platform_editor_block_menu_v2_patch_2`
22
+
3
23
  ## 114.32.2
4
24
 
5
25
  ### Patch Changes
@@ -61,6 +61,11 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
61
61
  defaultMessage: 'Turn into',
62
62
  description: 'Turn the selected block into another type'
63
63
  },
64
+ changeFormat: {
65
+ id: 'fabric.editor.block.menu.change.format',
66
+ defaultMessage: 'Change format',
67
+ description: 'Change the selected block to another format'
68
+ },
64
69
  syncBlock: {
65
70
  id: 'fabric.editor.block.menu.sync.block',
66
71
  defaultMessage: 'Sync block',
@@ -161,6 +161,11 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
161
161
  defaultMessage: 'Create synced block',
162
162
  description: 'Inserts a synced block that auto-updates content across Atlassian apps'
163
163
  },
164
+ syncBlock: {
165
+ id: 'fabric.editor.syncBlock',
166
+ defaultMessage: 'Sync block',
167
+ description: 'Short label for inserting a synced block'
168
+ },
164
169
  syncedBlockDescription: {
165
170
  id: 'fabric.editor.syncedBlock.description',
166
171
  defaultMessage: 'Sync content across multiple locations',
@@ -146,6 +146,11 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntl.defineMessage
146
146
  defaultMessage: 'Create synced block',
147
147
  description: 'Label for button which creates a new synced block'
148
148
  },
149
+ syncBlockLabel: {
150
+ id: 'fabric.editor.syncBlockLabel',
151
+ defaultMessage: 'Sync block',
152
+ description: 'Short label for button which creates a new synced block'
153
+ },
149
154
  newLozenge: {
150
155
  id: 'fabric.editor.syncBlock.toolbar.newLozenge',
151
156
  defaultMessage: 'New',
@@ -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 _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); 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 = "114.32.1";
22
+ var packageVersion = "114.32.3";
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 = "114.32.1";
27
+ var packageVersion = "114.32.3";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -55,6 +55,11 @@ export const messages = defineMessages({
55
55
  defaultMessage: 'Turn into',
56
56
  description: 'Turn the selected block into another type'
57
57
  },
58
+ changeFormat: {
59
+ id: 'fabric.editor.block.menu.change.format',
60
+ defaultMessage: 'Change format',
61
+ description: 'Change the selected block to another format'
62
+ },
58
63
  syncBlock: {
59
64
  id: 'fabric.editor.block.menu.sync.block',
60
65
  defaultMessage: 'Sync block',
@@ -155,6 +155,11 @@ export const messages = defineMessages({
155
155
  defaultMessage: 'Create synced block',
156
156
  description: 'Inserts a synced block that auto-updates content across Atlassian apps'
157
157
  },
158
+ syncBlock: {
159
+ id: 'fabric.editor.syncBlock',
160
+ defaultMessage: 'Sync block',
161
+ description: 'Short label for inserting a synced block'
162
+ },
158
163
  syncedBlockDescription: {
159
164
  id: 'fabric.editor.syncedBlock.description',
160
165
  defaultMessage: 'Sync content across multiple locations',
@@ -140,6 +140,11 @@ export const syncBlockMessages = defineMessages({
140
140
  defaultMessage: 'Create synced block',
141
141
  description: 'Label for button which creates a new synced block'
142
142
  },
143
+ syncBlockLabel: {
144
+ id: 'fabric.editor.syncBlockLabel',
145
+ defaultMessage: 'Sync block',
146
+ description: 'Short label for button which creates a new synced block'
147
+ },
143
148
  newLozenge: {
144
149
  id: 'fabric.editor.syncBlock.toolbar.newLozenge',
145
150
  defaultMessage: 'New',
@@ -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 = "114.32.1";
7
+ const packageVersion = "114.32.3";
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 = "114.32.1";
17
+ const packageVersion = "114.32.3";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -55,6 +55,11 @@ export var messages = defineMessages({
55
55
  defaultMessage: 'Turn into',
56
56
  description: 'Turn the selected block into another type'
57
57
  },
58
+ changeFormat: {
59
+ id: 'fabric.editor.block.menu.change.format',
60
+ defaultMessage: 'Change format',
61
+ description: 'Change the selected block to another format'
62
+ },
58
63
  syncBlock: {
59
64
  id: 'fabric.editor.block.menu.sync.block',
60
65
  defaultMessage: 'Sync block',
@@ -155,6 +155,11 @@ export var messages = defineMessages({
155
155
  defaultMessage: 'Create synced block',
156
156
  description: 'Inserts a synced block that auto-updates content across Atlassian apps'
157
157
  },
158
+ syncBlock: {
159
+ id: 'fabric.editor.syncBlock',
160
+ defaultMessage: 'Sync block',
161
+ description: 'Short label for inserting a synced block'
162
+ },
158
163
  syncedBlockDescription: {
159
164
  id: 'fabric.editor.syncedBlock.description',
160
165
  defaultMessage: 'Sync content across multiple locations',
@@ -140,6 +140,11 @@ export var syncBlockMessages = defineMessages({
140
140
  defaultMessage: 'Create synced block',
141
141
  description: 'Label for button which creates a new synced block'
142
142
  },
143
+ syncBlockLabel: {
144
+ id: 'fabric.editor.syncBlockLabel',
145
+ defaultMessage: 'Sync block',
146
+ description: 'Short label for button which creates a new synced block'
147
+ },
143
148
  newLozenge: {
144
149
  id: 'fabric.editor.syncBlock.toolbar.newLozenge',
145
150
  defaultMessage: 'New',
@@ -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 = "114.32.1";
13
+ var packageVersion = "114.32.3";
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 = "114.32.1";
24
+ var packageVersion = "114.32.3";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -146,6 +146,8 @@ type FailedToInsertMediaPayload = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION
146
146
  type InsertReferenceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.SYNCED_BLOCK, {
147
147
  blockInstanceId: string;
148
148
  resourceId: string;
149
+ sourceProduct?: string;
150
+ isPaste: boolean;
149
151
  }, undefined>;
150
152
  export type InsertSourceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.BODIED_SYNCED_BLOCK, {
151
153
  resourceId: string;
@@ -16,8 +16,7 @@ type SyncedBlockSuccessAttributes = {
16
16
  resourceId: string;
17
17
  /**
18
18
  * The product the source block lives in, derived from `resourceId`.
19
- * Optional during the rollout of `platform_synced_block_patch_11`; once the gate is
20
- * fully on this can be marked required.
19
+ * Always optional because batch / subscription init paths fire without a `resourceId`.
21
20
  */
22
21
  sourceProduct?: string;
23
22
  };
@@ -104,6 +104,11 @@ export declare const messages: {
104
104
  description: string;
105
105
  id: string;
106
106
  };
107
+ changeFormat: {
108
+ defaultMessage: string;
109
+ description: string;
110
+ id: string;
111
+ };
107
112
  wrapIcon: {
108
113
  defaultMessage: string;
109
114
  description: string;
@@ -159,6 +159,11 @@ export declare const messages: {
159
159
  description: string;
160
160
  id: string;
161
161
  };
162
+ syncBlock: {
163
+ defaultMessage: string;
164
+ description: string;
165
+ id: string;
166
+ };
162
167
  syncedBlockDescription: {
163
168
  defaultMessage: string;
164
169
  description: string;
@@ -59,6 +59,11 @@ export declare const syncBlockMessages: {
59
59
  description: string;
60
60
  id: string;
61
61
  };
62
+ syncBlockLabel: {
63
+ defaultMessage: string;
64
+ description: string;
65
+ id: string;
66
+ };
62
67
  defaultSyncBlockTooltip: {
63
68
  defaultMessage: string;
64
69
  description: string;
@@ -146,6 +146,8 @@ type FailedToInsertMediaPayload = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION
146
146
  type InsertReferenceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.SYNCED_BLOCK, {
147
147
  blockInstanceId: string;
148
148
  resourceId: string;
149
+ sourceProduct?: string;
150
+ isPaste: boolean;
149
151
  }, undefined>;
150
152
  export type InsertSourceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.BODIED_SYNCED_BLOCK, {
151
153
  resourceId: string;
@@ -16,8 +16,7 @@ type SyncedBlockSuccessAttributes = {
16
16
  resourceId: string;
17
17
  /**
18
18
  * The product the source block lives in, derived from `resourceId`.
19
- * Optional during the rollout of `platform_synced_block_patch_11`; once the gate is
20
- * fully on this can be marked required.
19
+ * Always optional because batch / subscription init paths fire without a `resourceId`.
21
20
  */
22
21
  sourceProduct?: string;
23
22
  };
@@ -104,6 +104,11 @@ export declare const messages: {
104
104
  description: string;
105
105
  id: string;
106
106
  };
107
+ changeFormat: {
108
+ defaultMessage: string;
109
+ description: string;
110
+ id: string;
111
+ };
107
112
  wrapIcon: {
108
113
  defaultMessage: string;
109
114
  description: string;
@@ -159,6 +159,11 @@ export declare const messages: {
159
159
  description: string;
160
160
  id: string;
161
161
  };
162
+ syncBlock: {
163
+ defaultMessage: string;
164
+ description: string;
165
+ id: string;
166
+ };
162
167
  syncedBlockDescription: {
163
168
  defaultMessage: string;
164
169
  description: string;
@@ -59,6 +59,11 @@ export declare const syncBlockMessages: {
59
59
  description: string;
60
60
  id: string;
61
61
  };
62
+ syncBlockLabel: {
63
+ defaultMessage: string;
64
+ description: string;
65
+ id: string;
66
+ };
62
67
  defaultSyncBlockTooltip: {
63
68
  defaultMessage: string;
64
69
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.32.2",
3
+ "version": "114.32.4",
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/"
@@ -57,8 +57,8 @@
57
57
  "@atlaskit/editor-tables": "^2.10.0",
58
58
  "@atlaskit/editor-toolbar": "^1.5.0",
59
59
  "@atlaskit/editor-toolbar-model": "^0.5.0",
60
- "@atlaskit/emoji": "^70.7.0",
61
- "@atlaskit/icon": "^34.5.0",
60
+ "@atlaskit/emoji": "^70.8.0",
61
+ "@atlaskit/icon": "^34.6.0",
62
62
  "@atlaskit/link": "^3.4.0",
63
63
  "@atlaskit/link-datasource": "^5.2.0",
64
64
  "@atlaskit/link-picker": "^5.1.0",
@@ -67,7 +67,7 @@
67
67
  "@atlaskit/media-client-react": "^5.1.0",
68
68
  "@atlaskit/media-common": "^13.3.0",
69
69
  "@atlaskit/media-file-preview": "^0.17.0",
70
- "@atlaskit/media-picker": "^71.2.0",
70
+ "@atlaskit/media-picker": "^71.3.0",
71
71
  "@atlaskit/media-ui": "^29.2.0",
72
72
  "@atlaskit/media-viewer": "^53.2.0",
73
73
  "@atlaskit/mention": "^25.1.0",
@@ -77,9 +77,9 @@
77
77
  "@atlaskit/platform-feature-flags": "^1.1.0",
78
78
  "@atlaskit/platform-feature-flags-react": "^0.5.0",
79
79
  "@atlaskit/primitives": "^19.0.0",
80
- "@atlaskit/profilecard": "^25.6.0",
80
+ "@atlaskit/profilecard": "^25.7.0",
81
81
  "@atlaskit/prosemirror-history": "^0.2.0",
82
- "@atlaskit/react-ufo": "^5.20.0",
82
+ "@atlaskit/react-ufo": "^5.21.0",
83
83
  "@atlaskit/section-message": "^8.12.0",
84
84
  "@atlaskit/smart-card": "^44.11.0",
85
85
  "@atlaskit/smart-user-picker": "^10.0.0",