@atlaskit/editor-common 110.41.4 → 110.41.6

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/dist/cjs/block-menu/block-link.js +13 -1
  3. package/dist/cjs/block-menu/index.js +6 -0
  4. package/dist/cjs/extensibility/extensionNodeView.js +3 -0
  5. package/dist/cjs/messages/syncBlock.js +24 -9
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/styles/shared/sync-block.js +2 -1
  8. package/dist/cjs/transforms/sync-block.js +4 -14
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/es2019/block-menu/block-link.js +11 -0
  11. package/dist/es2019/block-menu/index.js +1 -1
  12. package/dist/es2019/extensibility/extensionNodeView.js +3 -0
  13. package/dist/es2019/messages/syncBlock.js +24 -9
  14. package/dist/es2019/monitoring/error.js +1 -1
  15. package/dist/es2019/styles/shared/sync-block.js +2 -1
  16. package/dist/es2019/transforms/sync-block.js +4 -14
  17. package/dist/es2019/ui/DropList/index.js +1 -1
  18. package/dist/esm/block-menu/block-link.js +12 -0
  19. package/dist/esm/block-menu/index.js +1 -1
  20. package/dist/esm/extensibility/extensionNodeView.js +3 -0
  21. package/dist/esm/messages/syncBlock.js +24 -9
  22. package/dist/esm/monitoring/error.js +1 -1
  23. package/dist/esm/styles/shared/sync-block.js +2 -1
  24. package/dist/esm/transforms/sync-block.js +4 -14
  25. package/dist/esm/ui/DropList/index.js +1 -1
  26. package/dist/types/block-menu/block-link.d.ts +8 -0
  27. package/dist/types/block-menu/index.d.ts +1 -1
  28. package/dist/types/messages/syncBlock.d.ts +18 -3
  29. package/dist/types/styles/shared/sync-block.d.ts +1 -0
  30. package/dist/types-ts4.5/block-menu/block-link.d.ts +8 -0
  31. package/dist/types-ts4.5/block-menu/index.d.ts +1 -1
  32. package/dist/types-ts4.5/messages/syncBlock.d.ts +18 -3
  33. package/dist/types-ts4.5/styles/shared/sync-block.d.ts +1 -0
  34. package/package.json +8 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.41.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`dcc6a3e73f414`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dcc6a3e73f414) -
8
+ [ux] EDITOR-3304 add offline error state for sync blocks and update other error UI to match new
9
+ designs
10
+
11
+ ## 110.41.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [`8696c9d95fe26`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8696c9d95fe26) -
16
+ [ux] EDITOR-3382 Block menu copy link for multi select
17
+ - [`433b512284284`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/433b512284284) -
18
+ [EDITOR-2558] Update bodiedSyncBlock deletion failure flow
19
+ - [`6a05a8776852e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6a05a8776852e) -
20
+ Call stopEvent() on textarea as well
21
+ - Updated dependencies
22
+
3
23
  ## 110.41.4
4
24
 
5
25
  ### Patch Changes
@@ -1970,8 +1990,6 @@
1970
1990
 
1971
1991
  ### Patch Changes
1972
1992
 
1973
- - [`9383d1ef58fe1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9383d1ef58fe1) -
1974
- Cleanup feature gate cc_mention_ssr_placeholder
1975
1993
  - Updated dependencies
1976
1994
 
1977
1995
  ## 107.32.0
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isBlockLinkHash = exports.extractBlockIdFromLinkHash = exports.DEFAULT_BLOCK_LINK_HASH_PREFIX = void 0;
6
+ exports.isBlockLinkHash = exports.extractBlockIdFromLinkHash = exports.createBlockLinkHashValue = exports.DEFAULT_BLOCK_LINK_HASH_PREFIX = void 0;
7
7
  var DEFAULT_BLOCK_LINK_HASH_PREFIX = exports.DEFAULT_BLOCK_LINK_HASH_PREFIX = 'block-';
8
8
 
9
9
  /**
@@ -37,4 +37,16 @@ var extractBlockIdFromLinkHash = exports.extractBlockIdFromLinkHash = function e
37
37
  // Remove leading # if present, then remove the prefix
38
38
  var normalized = hash.startsWith('#') ? hash.slice(1) : hash;
39
39
  return normalized.slice(prefix.length);
40
+ };
41
+
42
+ /**
43
+ * Creates a block link hash from a given block ID.
44
+ *
45
+ * @param blockId The block ID to create the hash from (e.g., '123e4567-e89b-12d3-a456-426614174000')
46
+ * @param prefix The prefix to use (default is 'block-')
47
+ * @returns The constructed block link hash value (e.g., 'block-123e4567-e89b-12d3-a456-426614174000')
48
+ */
49
+ var createBlockLinkHashValue = exports.createBlockLinkHashValue = function createBlockLinkHashValue(blockId) {
50
+ var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_BLOCK_LINK_HASH_PREFIX;
51
+ return "".concat(prefix).concat(blockId);
40
52
  };
@@ -477,6 +477,12 @@ Object.defineProperty(exports, "TRANSFORM_SUGGESTED_MENU_SECTION_RANK", {
477
477
  return _rank.TRANSFORM_SUGGESTED_MENU_SECTION_RANK;
478
478
  }
479
479
  });
480
+ Object.defineProperty(exports, "createBlockLinkHashValue", {
481
+ enumerable: true,
482
+ get: function get() {
483
+ return _blockLink.createBlockLinkHashValue;
484
+ }
485
+ });
480
486
  Object.defineProperty(exports, "extractBlockIdFromLinkHash", {
481
487
  enumerable: true,
482
488
  get: function get() {
@@ -72,6 +72,9 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
72
72
  }, {
73
73
  key: "stopEvent",
74
74
  value: function stopEvent(event) {
75
+ if ((0, _platformFeatureFlags.fg)('forge-ui-extensionnodeview-stop-event-for-textarea')) {
76
+ return event.target instanceof HTMLInputElement || event.target instanceof HTMLTextAreaElement;
77
+ }
75
78
  return event.target instanceof HTMLInputElement;
76
79
  }
77
80
  }, {
@@ -43,12 +43,12 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
43
43
  },
44
44
  permissionDeniedHeading: {
45
45
  id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
46
- defaultMessage: "You don't have permission to view this synced block",
46
+ defaultMessage: "Request access to view synced block",
47
47
  description: 'Heading for error state where the user does not have permission to view the synced block'
48
48
  },
49
49
  permissionDeniedDescription: {
50
50
  id: 'fabric.editor.syncedBlockPermissionDeniedDescription',
51
- defaultMessage: "The source of this synced block is a content item you don't have access to.",
51
+ defaultMessage: "You don't have access to view the source content of this synced block.",
52
52
  description: 'Description for error state where the user does not have permission to view the synced block'
53
53
  },
54
54
  permissionDeniedAltText: {
@@ -101,6 +101,11 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
101
101
  defaultMessage: 'Delete',
102
102
  description: 'Text on button which confirms deleting the sync block when user was trying to delete source synced block'
103
103
  },
104
+ deleteRetryButton: {
105
+ id: 'fabric.editor.deleteConfirmationModalRetryButton',
106
+ defaultMessage: 'Try again',
107
+ description: 'Text on button which retries deleting the sync block when the previous deletion failed'
108
+ },
104
109
  deleteConfirmationModalDescription: {
105
110
  id: 'fabric.editor.deleteConfirmationModalDescriptionSingle',
106
111
  defaultMessage: 'Deleting this content will also remove {syncBlockCount, plural, one {a synced block. References to this block} other {# synced blocks. References to these blocks}} in other locations will show an error. Continue with deletion?',
@@ -126,6 +131,16 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
126
131
  defaultMessage: 'You appear to be offline. Please connect to the internet to delete synced content.',
127
132
  description: 'Description in flag which appears when a sync block cannot be deleted in offline mode'
128
133
  },
134
+ cannotDeleteTitle: {
135
+ id: 'fabric.editor.error.title.cannotDelete',
136
+ defaultMessage: "We couldn't delete the synced block",
137
+ description: 'Title in flag which appears when a sync block cannot be deleted'
138
+ },
139
+ cannotDeleteDescription: {
140
+ id: 'fabric.editor.error.description.cannotDelete',
141
+ defaultMessage: 'An error occurred while trying to delete this synced block. ',
142
+ description: 'Description in flag which appears when a sync block fails to be deleted'
143
+ },
129
144
  failToEditTitle: {
130
145
  id: 'fabric.editor.error.title.failToEdit',
131
146
  defaultMessage: 'Cannot edit synced content offline',
@@ -148,14 +163,9 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
148
163
  },
149
164
  generalErrorDescription: {
150
165
  id: 'fabric.editor.syncedBlockGeneralErrorDescription',
151
- defaultMessage: 'Something went wrong while loading this synced block.',
166
+ defaultMessage: "We're unable to display this content at the moment.",
152
167
  description: 'Description for general error state of the synced block'
153
168
  },
154
- notFoundDescription: {
155
- id: 'fabric.editor.syncedBlockNotFoundDescription',
156
- defaultMessage: 'We’re unable to load this synced block.',
157
- description: 'Description for error state where the synced block cannot be found or no longer exists'
158
- },
159
169
  notFoundAltText: {
160
170
  id: 'fabric.editor.syncedBlockNotFoundIconAltText',
161
171
  defaultMessage: 'Synced block not found.',
@@ -163,7 +173,12 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
163
173
  },
164
174
  retryButton: {
165
175
  id: 'fabric.editor.retrySyncedBlock',
166
- defaultMessage: 'Retry',
176
+ defaultMessage: 'Try again',
167
177
  description: 'Label for button which retries loading the synced block'
178
+ },
179
+ offlineError: {
180
+ id: 'fabric.editor.error.description.offline',
181
+ defaultMessage: "We're unable to display this content at the moment because you are offline.",
182
+ description: 'Error message which is shown over sync block when the editor is offline'
168
183
  }
169
184
  });
@@ -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 = "0.0.0-development";
22
+ var packageVersion = "110.41.5";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -8,7 +8,8 @@ var prefix = 'ak-editor-sync-block';
8
8
  var SyncBlockSharedCssClassName = exports.SyncBlockSharedCssClassName = {
9
9
  prefix: prefix,
10
10
  renderer: "".concat(prefix, "__renderer"),
11
- error: "".concat(prefix, "__error_state")
11
+ error: "".concat(prefix, "__error_state"),
12
+ loading: "".concat(prefix, "__loading_state")
12
13
  };
13
14
  var bodiedPrefix = 'ak-editor-bodied-sync-block';
14
15
  var BodiedSyncBlockSharedCssClassName = exports.BodiedSyncBlockSharedCssClassName = {
@@ -23,24 +23,14 @@ var transformSyncBlockNode = function transformSyncBlockNode(node, schema, isFro
23
23
  });
24
24
  return schema.nodes.syncBlock.create(newAttrs, null, (0, _toConsumableArray2.default)(node.marks));
25
25
  };
26
- var transformBodiedSyncBlockNode = function transformBodiedSyncBlockNode(node, schema, isFromEditor) {
26
+ var transformBodiedSyncBlockNode = function transformBodiedSyncBlockNode(node, isFromEditor) {
27
27
  // if copying from renderer, flatten out the content and remove the bodied sync block
28
28
  if (!isFromEditor) {
29
29
  return node.content;
30
30
  }
31
31
 
32
- // bodied sync blocks need a unique localId and convert to a reference sync block
33
- // when converting we want to be specific about attributes and marks we carry over
34
- var newAttrs = {
35
- resourceId: node.attrs.resourceId,
36
- localId: _adfSchema.uuid.generate()
37
- };
38
- var newMarks = schema.nodes.syncBlock.markSet ? node.marks.filter(function (mark) {
39
- var _schema$nodes$syncBlo;
40
- return (_schema$nodes$syncBlo = schema.nodes.syncBlock.markSet) === null || _schema$nodes$syncBlo === void 0 ? void 0 : _schema$nodes$syncBlo.includes(mark.type);
41
- }) : node.marks; // schema.nodes.syncBlock.markSet is null meaning all marks are allowed
42
-
43
- return schema.nodes.syncBlock.create(newAttrs, null, newMarks);
32
+ // this is not possible.
33
+ return node;
44
34
  };
45
35
 
46
36
  /**
@@ -53,7 +43,7 @@ var transformSyncBlock = exports.transformSyncBlock = function transformSyncBloc
53
43
  if (node.type === schema.nodes.syncBlock) {
54
44
  return transformSyncBlockNode(node, schema, isFromEditor);
55
45
  } else if (node.type === schema.nodes.bodiedSyncBlock) {
56
- return transformBodiedSyncBlockNode(node, schema, isFromEditor);
46
+ return transformBodiedSyncBlockNode(node, isFromEditor);
57
47
  }
58
48
  return node;
59
49
  });
@@ -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 = "0.0.0-development";
27
+ var packageVersion = "110.41.5";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -29,4 +29,15 @@ export const extractBlockIdFromLinkHash = (hash, prefix = DEFAULT_BLOCK_LINK_HAS
29
29
  // Remove leading # if present, then remove the prefix
30
30
  const normalized = hash.startsWith('#') ? hash.slice(1) : hash;
31
31
  return normalized.slice(prefix.length);
32
+ };
33
+
34
+ /**
35
+ * Creates a block link hash from a given block ID.
36
+ *
37
+ * @param blockId The block ID to create the hash from (e.g., '123e4567-e89b-12d3-a456-426614174000')
38
+ * @param prefix The prefix to use (default is 'block-')
39
+ * @returns The constructed block link hash value (e.g., 'block-123e4567-e89b-12d3-a456-426614174000')
40
+ */
41
+ export const createBlockLinkHashValue = (blockId, prefix = DEFAULT_BLOCK_LINK_HASH_PREFIX) => {
42
+ return `${prefix}${blockId}`;
32
43
  };
@@ -4,4 +4,4 @@ export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM
4
4
  export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_MENU_SECTION, MOVE_UP_DOWN_MENU_SECTION, COPY_BLOCK_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, NESTED_FORMAT_MENU_SECTION, FORMAT_MENU_ITEM, NESTED_FORMAT_MENU, PRIMARY_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM } from './key-deprecated';
5
5
  export { MAIN_BLOCK_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_MENU_ITEM_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_CLEAR_MENU_SECTION_RANK, BLOCK_ACTIONS_MENU_SECTION_RANK, POSITION_MENU_SECTION_RANK, DELETE_MENU_SECTION_RANK, TRANSFORM_SUGGESTED_MENU_SECTION_RANK } from './rank';
6
6
  export { FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, BLOCK_MENU_SECTION_RANK, PRIMARY_MENU_SECTION_RANK, COPY_MENU_SECTION_RANK, DELETE_SECTION_RANK, MOVE_BLOCK_SECTION_RANK, ADD_BLOCKS_MENU_SECTION_RANK } from './rank-deprecated';
7
- export { DEFAULT_BLOCK_LINK_HASH_PREFIX, isBlockLinkHash, extractBlockIdFromLinkHash } from './block-link';
7
+ export { createBlockLinkHashValue, DEFAULT_BLOCK_LINK_HASH_PREFIX, extractBlockIdFromLinkHash, isBlockLinkHash } from './block-link';
@@ -44,6 +44,9 @@ export class ExtensionNode extends ReactNodeView {
44
44
  * when the target of the event is an input element, so the extension can.
45
45
  */
46
46
  stopEvent(event) {
47
+ if (fg('forge-ui-extensionnodeview-stop-event-for-textarea')) {
48
+ return event.target instanceof HTMLInputElement || event.target instanceof HTMLTextAreaElement;
49
+ }
47
50
  return event.target instanceof HTMLInputElement;
48
51
  }
49
52
  getContentDOM() {
@@ -37,12 +37,12 @@ export const syncBlockMessages = defineMessages({
37
37
  },
38
38
  permissionDeniedHeading: {
39
39
  id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
40
- defaultMessage: "You don't have permission to view this synced block",
40
+ defaultMessage: "Request access to view synced block",
41
41
  description: 'Heading for error state where the user does not have permission to view the synced block'
42
42
  },
43
43
  permissionDeniedDescription: {
44
44
  id: 'fabric.editor.syncedBlockPermissionDeniedDescription',
45
- defaultMessage: "The source of this synced block is a content item you don't have access to.",
45
+ defaultMessage: "You don't have access to view the source content of this synced block.",
46
46
  description: 'Description for error state where the user does not have permission to view the synced block'
47
47
  },
48
48
  permissionDeniedAltText: {
@@ -95,6 +95,11 @@ export const syncBlockMessages = defineMessages({
95
95
  defaultMessage: 'Delete',
96
96
  description: 'Text on button which confirms deleting the sync block when user was trying to delete source synced block'
97
97
  },
98
+ deleteRetryButton: {
99
+ id: 'fabric.editor.deleteConfirmationModalRetryButton',
100
+ defaultMessage: 'Try again',
101
+ description: 'Text on button which retries deleting the sync block when the previous deletion failed'
102
+ },
98
103
  deleteConfirmationModalDescription: {
99
104
  id: 'fabric.editor.deleteConfirmationModalDescriptionSingle',
100
105
  defaultMessage: 'Deleting this content will also remove {syncBlockCount, plural, one {a synced block. References to this block} other {# synced blocks. References to these blocks}} in other locations will show an error. Continue with deletion?',
@@ -120,6 +125,16 @@ export const syncBlockMessages = defineMessages({
120
125
  defaultMessage: 'You appear to be offline. Please connect to the internet to delete synced content.',
121
126
  description: 'Description in flag which appears when a sync block cannot be deleted in offline mode'
122
127
  },
128
+ cannotDeleteTitle: {
129
+ id: 'fabric.editor.error.title.cannotDelete',
130
+ defaultMessage: "We couldn't delete the synced block",
131
+ description: 'Title in flag which appears when a sync block cannot be deleted'
132
+ },
133
+ cannotDeleteDescription: {
134
+ id: 'fabric.editor.error.description.cannotDelete',
135
+ defaultMessage: 'An error occurred while trying to delete this synced block. ',
136
+ description: 'Description in flag which appears when a sync block fails to be deleted'
137
+ },
123
138
  failToEditTitle: {
124
139
  id: 'fabric.editor.error.title.failToEdit',
125
140
  defaultMessage: 'Cannot edit synced content offline',
@@ -142,14 +157,9 @@ export const syncBlockMessages = defineMessages({
142
157
  },
143
158
  generalErrorDescription: {
144
159
  id: 'fabric.editor.syncedBlockGeneralErrorDescription',
145
- defaultMessage: 'Something went wrong while loading this synced block.',
160
+ defaultMessage: `We're unable to display this content at the moment.`,
146
161
  description: 'Description for general error state of the synced block'
147
162
  },
148
- notFoundDescription: {
149
- id: 'fabric.editor.syncedBlockNotFoundDescription',
150
- defaultMessage: 'We’re unable to load this synced block.',
151
- description: 'Description for error state where the synced block cannot be found or no longer exists'
152
- },
153
163
  notFoundAltText: {
154
164
  id: 'fabric.editor.syncedBlockNotFoundIconAltText',
155
165
  defaultMessage: 'Synced block not found.',
@@ -157,7 +167,12 @@ export const syncBlockMessages = defineMessages({
157
167
  },
158
168
  retryButton: {
159
169
  id: 'fabric.editor.retrySyncedBlock',
160
- defaultMessage: 'Retry',
170
+ defaultMessage: 'Try again',
161
171
  description: 'Label for button which retries loading the synced block'
172
+ },
173
+ offlineError: {
174
+ id: 'fabric.editor.error.description.offline',
175
+ defaultMessage: `We're unable to display this content at the moment because you are offline.`,
176
+ description: 'Error message which is shown over sync block when the editor is offline'
162
177
  }
163
178
  });
@@ -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 = "0.0.0-development";
7
+ const packageVersion = "110.41.5";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -2,7 +2,8 @@ const prefix = 'ak-editor-sync-block';
2
2
  export const SyncBlockSharedCssClassName = {
3
3
  prefix,
4
4
  renderer: `${prefix}__renderer`,
5
- error: `${prefix}__error_state`
5
+ error: `${prefix}__error_state`,
6
+ loading: `${prefix}__loading_state`
6
7
  };
7
8
  const bodiedPrefix = 'ak-editor-bodied-sync-block';
8
9
  export const BodiedSyncBlockSharedCssClassName = {
@@ -13,24 +13,14 @@ const transformSyncBlockNode = (node, schema, isFromEditor) => {
13
13
  };
14
14
  return schema.nodes.syncBlock.create(newAttrs, null, [...node.marks]);
15
15
  };
16
- const transformBodiedSyncBlockNode = (node, schema, isFromEditor) => {
16
+ const transformBodiedSyncBlockNode = (node, isFromEditor) => {
17
17
  // if copying from renderer, flatten out the content and remove the bodied sync block
18
18
  if (!isFromEditor) {
19
19
  return node.content;
20
20
  }
21
21
 
22
- // bodied sync blocks need a unique localId and convert to a reference sync block
23
- // when converting we want to be specific about attributes and marks we carry over
24
- const newAttrs = {
25
- resourceId: node.attrs.resourceId,
26
- localId: uuid.generate()
27
- };
28
- const newMarks = schema.nodes.syncBlock.markSet ? node.marks.filter(mark => {
29
- var _schema$nodes$syncBlo;
30
- return (_schema$nodes$syncBlo = schema.nodes.syncBlock.markSet) === null || _schema$nodes$syncBlo === void 0 ? void 0 : _schema$nodes$syncBlo.includes(mark.type);
31
- }) : node.marks; // schema.nodes.syncBlock.markSet is null meaning all marks are allowed
32
-
33
- return schema.nodes.syncBlock.create(newAttrs, null, newMarks);
22
+ // this is not possible.
23
+ return node;
34
24
  };
35
25
 
36
26
  /**
@@ -43,7 +33,7 @@ export const transformSyncBlock = (slice, schema, pasteSource) => {
43
33
  if (node.type === schema.nodes.syncBlock) {
44
34
  return transformSyncBlockNode(node, schema, isFromEditor);
45
35
  } else if (node.type === schema.nodes.bodiedSyncBlock) {
46
- return transformBodiedSyncBlockNode(node, schema, isFromEditor);
36
+ return transformBodiedSyncBlockNode(node, isFromEditor);
47
37
  }
48
38
  return node;
49
39
  });
@@ -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 = "0.0.0-development";
17
+ const packageVersion = "110.41.5";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -31,4 +31,16 @@ export var extractBlockIdFromLinkHash = function extractBlockIdFromLinkHash(hash
31
31
  // Remove leading # if present, then remove the prefix
32
32
  var normalized = hash.startsWith('#') ? hash.slice(1) : hash;
33
33
  return normalized.slice(prefix.length);
34
+ };
35
+
36
+ /**
37
+ * Creates a block link hash from a given block ID.
38
+ *
39
+ * @param blockId The block ID to create the hash from (e.g., '123e4567-e89b-12d3-a456-426614174000')
40
+ * @param prefix The prefix to use (default is 'block-')
41
+ * @returns The constructed block link hash value (e.g., 'block-123e4567-e89b-12d3-a456-426614174000')
42
+ */
43
+ export var createBlockLinkHashValue = function createBlockLinkHashValue(blockId) {
44
+ var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_BLOCK_LINK_HASH_PREFIX;
45
+ return "".concat(prefix).concat(blockId);
34
46
  };
@@ -4,4 +4,4 @@ export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM
4
4
  export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_MENU_SECTION, MOVE_UP_DOWN_MENU_SECTION, COPY_BLOCK_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, NESTED_FORMAT_MENU_SECTION, FORMAT_MENU_ITEM, NESTED_FORMAT_MENU, PRIMARY_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM } from './key-deprecated';
5
5
  export { MAIN_BLOCK_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_MENU_ITEM_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_CLEAR_MENU_SECTION_RANK, BLOCK_ACTIONS_MENU_SECTION_RANK, POSITION_MENU_SECTION_RANK, DELETE_MENU_SECTION_RANK, TRANSFORM_SUGGESTED_MENU_SECTION_RANK } from './rank';
6
6
  export { FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, BLOCK_MENU_SECTION_RANK, PRIMARY_MENU_SECTION_RANK, COPY_MENU_SECTION_RANK, DELETE_SECTION_RANK, MOVE_BLOCK_SECTION_RANK, ADD_BLOCKS_MENU_SECTION_RANK } from './rank-deprecated';
7
- export { DEFAULT_BLOCK_LINK_HASH_PREFIX, isBlockLinkHash, extractBlockIdFromLinkHash } from './block-link';
7
+ export { createBlockLinkHashValue, DEFAULT_BLOCK_LINK_HASH_PREFIX, extractBlockIdFromLinkHash, isBlockLinkHash } from './block-link';
@@ -64,6 +64,9 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
64
64
  }, {
65
65
  key: "stopEvent",
66
66
  value: function stopEvent(event) {
67
+ if (fg('forge-ui-extensionnodeview-stop-event-for-textarea')) {
68
+ return event.target instanceof HTMLInputElement || event.target instanceof HTMLTextAreaElement;
69
+ }
67
70
  return event.target instanceof HTMLInputElement;
68
71
  }
69
72
  }, {
@@ -37,12 +37,12 @@ export var syncBlockMessages = defineMessages({
37
37
  },
38
38
  permissionDeniedHeading: {
39
39
  id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
40
- defaultMessage: "You don't have permission to view this synced block",
40
+ defaultMessage: "Request access to view synced block",
41
41
  description: 'Heading for error state where the user does not have permission to view the synced block'
42
42
  },
43
43
  permissionDeniedDescription: {
44
44
  id: 'fabric.editor.syncedBlockPermissionDeniedDescription',
45
- defaultMessage: "The source of this synced block is a content item you don't have access to.",
45
+ defaultMessage: "You don't have access to view the source content of this synced block.",
46
46
  description: 'Description for error state where the user does not have permission to view the synced block'
47
47
  },
48
48
  permissionDeniedAltText: {
@@ -95,6 +95,11 @@ export var syncBlockMessages = defineMessages({
95
95
  defaultMessage: 'Delete',
96
96
  description: 'Text on button which confirms deleting the sync block when user was trying to delete source synced block'
97
97
  },
98
+ deleteRetryButton: {
99
+ id: 'fabric.editor.deleteConfirmationModalRetryButton',
100
+ defaultMessage: 'Try again',
101
+ description: 'Text on button which retries deleting the sync block when the previous deletion failed'
102
+ },
98
103
  deleteConfirmationModalDescription: {
99
104
  id: 'fabric.editor.deleteConfirmationModalDescriptionSingle',
100
105
  defaultMessage: 'Deleting this content will also remove {syncBlockCount, plural, one {a synced block. References to this block} other {# synced blocks. References to these blocks}} in other locations will show an error. Continue with deletion?',
@@ -120,6 +125,16 @@ export var syncBlockMessages = defineMessages({
120
125
  defaultMessage: 'You appear to be offline. Please connect to the internet to delete synced content.',
121
126
  description: 'Description in flag which appears when a sync block cannot be deleted in offline mode'
122
127
  },
128
+ cannotDeleteTitle: {
129
+ id: 'fabric.editor.error.title.cannotDelete',
130
+ defaultMessage: "We couldn't delete the synced block",
131
+ description: 'Title in flag which appears when a sync block cannot be deleted'
132
+ },
133
+ cannotDeleteDescription: {
134
+ id: 'fabric.editor.error.description.cannotDelete',
135
+ defaultMessage: 'An error occurred while trying to delete this synced block. ',
136
+ description: 'Description in flag which appears when a sync block fails to be deleted'
137
+ },
123
138
  failToEditTitle: {
124
139
  id: 'fabric.editor.error.title.failToEdit',
125
140
  defaultMessage: 'Cannot edit synced content offline',
@@ -142,14 +157,9 @@ export var syncBlockMessages = defineMessages({
142
157
  },
143
158
  generalErrorDescription: {
144
159
  id: 'fabric.editor.syncedBlockGeneralErrorDescription',
145
- defaultMessage: 'Something went wrong while loading this synced block.',
160
+ defaultMessage: "We're unable to display this content at the moment.",
146
161
  description: 'Description for general error state of the synced block'
147
162
  },
148
- notFoundDescription: {
149
- id: 'fabric.editor.syncedBlockNotFoundDescription',
150
- defaultMessage: 'We’re unable to load this synced block.',
151
- description: 'Description for error state where the synced block cannot be found or no longer exists'
152
- },
153
163
  notFoundAltText: {
154
164
  id: 'fabric.editor.syncedBlockNotFoundIconAltText',
155
165
  defaultMessage: 'Synced block not found.',
@@ -157,7 +167,12 @@ export var syncBlockMessages = defineMessages({
157
167
  },
158
168
  retryButton: {
159
169
  id: 'fabric.editor.retrySyncedBlock',
160
- defaultMessage: 'Retry',
170
+ defaultMessage: 'Try again',
161
171
  description: 'Label for button which retries loading the synced block'
172
+ },
173
+ offlineError: {
174
+ id: 'fabric.editor.error.description.offline',
175
+ defaultMessage: "We're unable to display this content at the moment because you are offline.",
176
+ description: 'Error message which is shown over sync block when the editor is offline'
162
177
  }
163
178
  });
@@ -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 = "0.0.0-development";
13
+ var packageVersion = "110.41.5";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -2,7 +2,8 @@ var prefix = 'ak-editor-sync-block';
2
2
  export var SyncBlockSharedCssClassName = {
3
3
  prefix: prefix,
4
4
  renderer: "".concat(prefix, "__renderer"),
5
- error: "".concat(prefix, "__error_state")
5
+ error: "".concat(prefix, "__error_state"),
6
+ loading: "".concat(prefix, "__loading_state")
6
7
  };
7
8
  var bodiedPrefix = 'ak-editor-bodied-sync-block';
8
9
  export var BodiedSyncBlockSharedCssClassName = {
@@ -16,24 +16,14 @@ var transformSyncBlockNode = function transformSyncBlockNode(node, schema, isFro
16
16
  });
17
17
  return schema.nodes.syncBlock.create(newAttrs, null, _toConsumableArray(node.marks));
18
18
  };
19
- var transformBodiedSyncBlockNode = function transformBodiedSyncBlockNode(node, schema, isFromEditor) {
19
+ var transformBodiedSyncBlockNode = function transformBodiedSyncBlockNode(node, isFromEditor) {
20
20
  // if copying from renderer, flatten out the content and remove the bodied sync block
21
21
  if (!isFromEditor) {
22
22
  return node.content;
23
23
  }
24
24
 
25
- // bodied sync blocks need a unique localId and convert to a reference sync block
26
- // when converting we want to be specific about attributes and marks we carry over
27
- var newAttrs = {
28
- resourceId: node.attrs.resourceId,
29
- localId: uuid.generate()
30
- };
31
- var newMarks = schema.nodes.syncBlock.markSet ? node.marks.filter(function (mark) {
32
- var _schema$nodes$syncBlo;
33
- return (_schema$nodes$syncBlo = schema.nodes.syncBlock.markSet) === null || _schema$nodes$syncBlo === void 0 ? void 0 : _schema$nodes$syncBlo.includes(mark.type);
34
- }) : node.marks; // schema.nodes.syncBlock.markSet is null meaning all marks are allowed
35
-
36
- return schema.nodes.syncBlock.create(newAttrs, null, newMarks);
25
+ // this is not possible.
26
+ return node;
37
27
  };
38
28
 
39
29
  /**
@@ -46,7 +36,7 @@ export var transformSyncBlock = function transformSyncBlock(slice, schema, paste
46
36
  if (node.type === schema.nodes.syncBlock) {
47
37
  return transformSyncBlockNode(node, schema, isFromEditor);
48
38
  } else if (node.type === schema.nodes.bodiedSyncBlock) {
49
- return transformBodiedSyncBlockNode(node, schema, isFromEditor);
39
+ return transformBodiedSyncBlockNode(node, isFromEditor);
50
40
  }
51
41
  return node;
52
42
  });
@@ -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 = "0.0.0-development";
24
+ var packageVersion = "110.41.5";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -15,3 +15,11 @@ export declare const isBlockLinkHash: (hash: string, prefix?: string) => boolean
15
15
  * @returns The extracted block ID if the hash is valid, null otherwise
16
16
  */
17
17
  export declare const extractBlockIdFromLinkHash: (hash: string, prefix?: string) => string | null;
18
+ /**
19
+ * Creates a block link hash from a given block ID.
20
+ *
21
+ * @param blockId The block ID to create the hash from (e.g., '123e4567-e89b-12d3-a456-426614174000')
22
+ * @param prefix The prefix to use (default is 'block-')
23
+ * @returns The constructed block link hash value (e.g., 'block-123e4567-e89b-12d3-a456-426614174000')
24
+ */
25
+ export declare const createBlockLinkHashValue: (blockId: string, prefix?: string) => string;
@@ -3,4 +3,4 @@ export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM
3
3
  export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_MENU_SECTION, MOVE_UP_DOWN_MENU_SECTION, COPY_BLOCK_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, NESTED_FORMAT_MENU_SECTION, FORMAT_MENU_ITEM, NESTED_FORMAT_MENU, PRIMARY_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM, } from './key-deprecated';
4
4
  export { MAIN_BLOCK_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_MENU_ITEM_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_CLEAR_MENU_SECTION_RANK, BLOCK_ACTIONS_MENU_SECTION_RANK, POSITION_MENU_SECTION_RANK, DELETE_MENU_SECTION_RANK, TRANSFORM_SUGGESTED_MENU_SECTION_RANK, } from './rank';
5
5
  export { FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, BLOCK_MENU_SECTION_RANK, PRIMARY_MENU_SECTION_RANK, COPY_MENU_SECTION_RANK, DELETE_SECTION_RANK, MOVE_BLOCK_SECTION_RANK, ADD_BLOCKS_MENU_SECTION_RANK, } from './rank-deprecated';
6
- export { DEFAULT_BLOCK_LINK_HASH_PREFIX, isBlockLinkHash, extractBlockIdFromLinkHash, } from './block-link';
6
+ export { createBlockLinkHashValue, DEFAULT_BLOCK_LINK_HASH_PREFIX, extractBlockIdFromLinkHash, isBlockLinkHash, } from './block-link';
@@ -94,6 +94,11 @@ export declare const syncBlockMessages: {
94
94
  defaultMessage: string;
95
95
  description: string;
96
96
  };
97
+ deleteRetryButton: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ description: string;
101
+ };
97
102
  deleteConfirmationModalDescription: {
98
103
  id: string;
99
104
  defaultMessage: string;
@@ -119,6 +124,16 @@ export declare const syncBlockMessages: {
119
124
  defaultMessage: string;
120
125
  description: string;
121
126
  };
127
+ cannotDeleteTitle: {
128
+ id: string;
129
+ defaultMessage: string;
130
+ description: string;
131
+ };
132
+ cannotDeleteDescription: {
133
+ id: string;
134
+ defaultMessage: string;
135
+ description: string;
136
+ };
122
137
  failToEditTitle: {
123
138
  id: string;
124
139
  defaultMessage: string;
@@ -144,17 +159,17 @@ export declare const syncBlockMessages: {
144
159
  defaultMessage: string;
145
160
  description: string;
146
161
  };
147
- notFoundDescription: {
162
+ notFoundAltText: {
148
163
  id: string;
149
164
  defaultMessage: string;
150
165
  description: string;
151
166
  };
152
- notFoundAltText: {
167
+ retryButton: {
153
168
  id: string;
154
169
  defaultMessage: string;
155
170
  description: string;
156
171
  };
157
- retryButton: {
172
+ offlineError: {
158
173
  id: string;
159
174
  defaultMessage: string;
160
175
  description: string;
@@ -2,6 +2,7 @@ export declare const SyncBlockSharedCssClassName: {
2
2
  prefix: string;
3
3
  renderer: string;
4
4
  error: string;
5
+ loading: string;
5
6
  };
6
7
  export declare const BodiedSyncBlockSharedCssClassName: {
7
8
  prefix: string;
@@ -15,3 +15,11 @@ export declare const isBlockLinkHash: (hash: string, prefix?: string) => boolean
15
15
  * @returns The extracted block ID if the hash is valid, null otherwise
16
16
  */
17
17
  export declare const extractBlockIdFromLinkHash: (hash: string, prefix?: string) => string | null;
18
+ /**
19
+ * Creates a block link hash from a given block ID.
20
+ *
21
+ * @param blockId The block ID to create the hash from (e.g., '123e4567-e89b-12d3-a456-426614174000')
22
+ * @param prefix The prefix to use (default is 'block-')
23
+ * @returns The constructed block link hash value (e.g., 'block-123e4567-e89b-12d3-a456-426614174000')
24
+ */
25
+ export declare const createBlockLinkHashValue: (blockId: string, prefix?: string) => string;
@@ -3,4 +3,4 @@ export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM
3
3
  export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_MENU_SECTION, MOVE_UP_DOWN_MENU_SECTION, COPY_BLOCK_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, NESTED_FORMAT_MENU_SECTION, FORMAT_MENU_ITEM, NESTED_FORMAT_MENU, PRIMARY_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM, } from './key-deprecated';
4
4
  export { MAIN_BLOCK_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_MENU_ITEM_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_CLEAR_MENU_SECTION_RANK, BLOCK_ACTIONS_MENU_SECTION_RANK, POSITION_MENU_SECTION_RANK, DELETE_MENU_SECTION_RANK, TRANSFORM_SUGGESTED_MENU_SECTION_RANK, } from './rank';
5
5
  export { FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, BLOCK_MENU_SECTION_RANK, PRIMARY_MENU_SECTION_RANK, COPY_MENU_SECTION_RANK, DELETE_SECTION_RANK, MOVE_BLOCK_SECTION_RANK, ADD_BLOCKS_MENU_SECTION_RANK, } from './rank-deprecated';
6
- export { DEFAULT_BLOCK_LINK_HASH_PREFIX, isBlockLinkHash, extractBlockIdFromLinkHash, } from './block-link';
6
+ export { createBlockLinkHashValue, DEFAULT_BLOCK_LINK_HASH_PREFIX, extractBlockIdFromLinkHash, isBlockLinkHash, } from './block-link';
@@ -94,6 +94,11 @@ export declare const syncBlockMessages: {
94
94
  defaultMessage: string;
95
95
  description: string;
96
96
  };
97
+ deleteRetryButton: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ description: string;
101
+ };
97
102
  deleteConfirmationModalDescription: {
98
103
  id: string;
99
104
  defaultMessage: string;
@@ -119,6 +124,16 @@ export declare const syncBlockMessages: {
119
124
  defaultMessage: string;
120
125
  description: string;
121
126
  };
127
+ cannotDeleteTitle: {
128
+ id: string;
129
+ defaultMessage: string;
130
+ description: string;
131
+ };
132
+ cannotDeleteDescription: {
133
+ id: string;
134
+ defaultMessage: string;
135
+ description: string;
136
+ };
122
137
  failToEditTitle: {
123
138
  id: string;
124
139
  defaultMessage: string;
@@ -144,17 +159,17 @@ export declare const syncBlockMessages: {
144
159
  defaultMessage: string;
145
160
  description: string;
146
161
  };
147
- notFoundDescription: {
162
+ notFoundAltText: {
148
163
  id: string;
149
164
  defaultMessage: string;
150
165
  description: string;
151
166
  };
152
- notFoundAltText: {
167
+ retryButton: {
153
168
  id: string;
154
169
  defaultMessage: string;
155
170
  description: string;
156
171
  };
157
- retryButton: {
172
+ offlineError: {
158
173
  id: string;
159
174
  defaultMessage: string;
160
175
  description: string;
@@ -2,6 +2,7 @@ export declare const SyncBlockSharedCssClassName: {
2
2
  prefix: string;
3
3
  renderer: string;
4
4
  error: string;
5
+ loading: string;
5
6
  };
6
7
  export declare const BodiedSyncBlockSharedCssClassName: {
7
8
  prefix: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.41.4",
3
+ "version": "110.41.6",
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/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
38
38
  "@atlaskit/analytics-next": "^11.1.0",
39
39
  "@atlaskit/atlassian-context": "^0.6.0",
40
- "@atlaskit/button": "^23.6.0",
40
+ "@atlaskit/button": "^23.7.0",
41
41
  "@atlaskit/codemod-utils": "^4.2.0",
42
42
  "@atlaskit/css": "^0.17.0",
43
43
  "@atlaskit/custom-steps": "^0.16.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/link-datasource": "^4.30.0",
57
57
  "@atlaskit/link-picker": "^4.1.0",
58
58
  "@atlaskit/media-card": "^79.9.0",
59
- "@atlaskit/media-client": "^35.6.0",
59
+ "@atlaskit/media-client": "^35.7.0",
60
60
  "@atlaskit/media-client-react": "^4.1.0",
61
61
  "@atlaskit/media-common": "^12.3.0",
62
62
  "@atlaskit/media-file-preview": "^0.15.0",
@@ -73,13 +73,13 @@
73
73
  "@atlaskit/profilecard": "^24.24.0",
74
74
  "@atlaskit/prosemirror-history": "^0.2.0",
75
75
  "@atlaskit/react-ufo": "^4.15.0",
76
- "@atlaskit/section-message": "^8.9.0",
76
+ "@atlaskit/section-message": "^8.10.0",
77
77
  "@atlaskit/smart-card": "^43.14.0",
78
78
  "@atlaskit/smart-user-picker": "^8.5.0",
79
79
  "@atlaskit/spinner": "^19.0.0",
80
80
  "@atlaskit/status": "^3.0.0",
81
81
  "@atlaskit/task-decision": "^19.2.0",
82
- "@atlaskit/textfield": "^8.1.0",
82
+ "@atlaskit/textfield": "^8.2.0",
83
83
  "@atlaskit/theme": "^21.0.0",
84
84
  "@atlaskit/tmp-editor-statsig": "^15.7.0",
85
85
  "@atlaskit/tokens": "^8.4.0",
@@ -270,6 +270,9 @@
270
270
  "rovo_chat_enable_skills_ui_m1": {
271
271
  "type": "boolean"
272
272
  },
273
+ "forge-ui-extensionnodeview-stop-event-for-textarea": {
274
+ "type": "boolean"
275
+ },
273
276
  "platform_editor_table_numbered_table_border": {
274
277
  "type": "boolean"
275
278
  }