@atlaskit/editor-common 110.41.4 → 110.41.5

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,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.41.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8696c9d95fe26`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8696c9d95fe26) -
8
+ [ux] EDITOR-3382 Block menu copy link for multi select
9
+ - [`433b512284284`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/433b512284284) -
10
+ [EDITOR-2558] Update bodiedSyncBlock deletion failure flow
11
+ - [`6a05a8776852e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6a05a8776852e) -
12
+ Call stopEvent() on textarea as well
13
+ - Updated dependencies
14
+
3
15
  ## 110.41.4
4
16
 
5
17
  ### Patch Changes
@@ -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
  }, {
@@ -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',
@@ -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.4";
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 = "0.0.0-development";
27
+ var packageVersion = "110.41.4";
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() {
@@ -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',
@@ -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.4";
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 = "0.0.0-development";
17
+ const packageVersion = "110.41.4";
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
  }, {
@@ -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',
@@ -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.4";
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 = "0.0.0-development";
24
+ var packageVersion = "110.41.4";
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;
@@ -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;
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.5",
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",
@@ -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
  }