@atlaskit/editor-common 102.3.1 → 102.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 102.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#125254](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/125254)
8
+ [`0ec8788238d6c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ec8788238d6c) -
9
+ Fixing forge FG in editor, inline extensions for autoconvert
10
+ - Updated dependencies
11
+
12
+ ## 102.3.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [#122826](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122826)
17
+ [`3408f60558726`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3408f60558726) -
18
+ [ux] Fixes issue where macro interaction is showing up in live view after editor API update
19
+ - Updated dependencies
20
+
3
21
  ## 102.3.1
4
22
 
5
23
  ### Patch Changes
@@ -33,6 +33,16 @@ var aiMessages = exports.aiMessages = (0, _reactIntlNext.defineMessages)({
33
33
  defaultMessage: 'Tell Atlassian Intelligence to improve the writing of your selection',
34
34
  description: 'Tooltip text for an option to use Atlassian Intellgience to improve the writing of content currently selected by the user'
35
35
  },
36
+ askAIToolbarIconTitle: {
37
+ id: 'fabric.editor.ai.toolbar.askAI.title',
38
+ defaultMessage: 'Ask AI',
39
+ description: 'Title for an option to use Atlassian Intellgience'
40
+ },
41
+ askAIToolbarIconTooltip: {
42
+ id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
43
+ defaultMessage: 'Open Atlassian Intelligence',
44
+ description: 'Tooltip text for an option to use Atlassian Intellgience'
45
+ },
36
46
  tryAIToolbarIconTitle: {
37
47
  id: 'fabric.editor.ai.toolbar.tryAI.title',
38
48
  defaultMessage: 'Try AI',
@@ -49,8 +49,9 @@ var Extension = exports.Extension = /*#__PURE__*/function (_Component) {
49
49
  // @ts-ignore
50
50
  var currentState = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e = pluginInjectionApi.editorViewMode) === null || _pluginInjectionApi$e === void 0 || (_pluginInjectionApi$e = _pluginInjectionApi$e.sharedState) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.currentState();
51
51
  var _ref2 = currentState || {},
52
- contentMode = _ref2.contentMode;
53
- var isLivePageViewMode = contentMode === 'live-view';
52
+ contentMode = _ref2.contentMode,
53
+ mode = _ref2.mode;
54
+ var isLivePageViewMode = contentMode === 'live-view' || mode === 'view';
54
55
  return /*#__PURE__*/_react.default.createElement(_ExtensionComponent.ExtensionComponent, {
55
56
  editorView: editorView,
56
57
  node: node,
@@ -257,7 +257,7 @@ var getContextualToolbarItemsFromModule = exports.getContextualToolbarItemsFromM
257
257
  return [];
258
258
  }).flatMap(function (toolbarItems) {
259
259
  return toolbarItems.map(function (toolbarItem) {
260
- if ((0, _platformFeatureFlags.fg)('forge_macro_autoconvert')) {
260
+ if ((0, _platformFeatureFlags.fg)('forge-ui-macro-autoconvert')) {
261
261
  if (isToolbarButton(toolbarItem)) {
262
262
  return toolbarItemToButtonConfig(toolbarItem, extension.key);
263
263
  }
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "102.3.1";
20
+ var packageVersion = "102.3.3";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // Ignored via go/ees007
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "102.3.1";
26
+ var packageVersion = "102.3.3";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -27,6 +27,16 @@ export const aiMessages = defineMessages({
27
27
  defaultMessage: 'Tell Atlassian Intelligence to improve the writing of your selection',
28
28
  description: 'Tooltip text for an option to use Atlassian Intellgience to improve the writing of content currently selected by the user'
29
29
  },
30
+ askAIToolbarIconTitle: {
31
+ id: 'fabric.editor.ai.toolbar.askAI.title',
32
+ defaultMessage: 'Ask AI',
33
+ description: 'Title for an option to use Atlassian Intellgience'
34
+ },
35
+ askAIToolbarIconTooltip: {
36
+ id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
37
+ defaultMessage: 'Open Atlassian Intelligence',
38
+ description: 'Tooltip text for an option to use Atlassian Intellgience'
39
+ },
30
40
  tryAIToolbarIconTitle: {
31
41
  id: 'fabric.editor.ai.toolbar.tryAI.title',
32
42
  defaultMessage: 'Try AI',
@@ -32,9 +32,10 @@ export class Extension extends Component {
32
32
  // @ts-ignore
33
33
  const currentState = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$e = pluginInjectionApi.editorViewMode) === null || _pluginInjectionApi$e === void 0 ? void 0 : (_pluginInjectionApi$e2 = _pluginInjectionApi$e.sharedState) === null || _pluginInjectionApi$e2 === void 0 ? void 0 : _pluginInjectionApi$e2.currentState();
34
34
  const {
35
- contentMode
35
+ contentMode,
36
+ mode
36
37
  } = currentState || {};
37
- const isLivePageViewMode = contentMode === 'live-view';
38
+ const isLivePageViewMode = contentMode === 'live-view' || mode === 'view';
38
39
  return /*#__PURE__*/React.createElement(ExtensionComponent, {
39
40
  editorView: editorView,
40
41
  node: node,
@@ -159,7 +159,7 @@ export const getContextualToolbarItemsFromModule = (extensions, node, api) => {
159
159
  }
160
160
  return [];
161
161
  }).flatMap(toolbarItems => toolbarItems.map(toolbarItem => {
162
- if (fg('forge_macro_autoconvert')) {
162
+ if (fg('forge-ui-macro-autoconvert')) {
163
163
  if (isToolbarButton(toolbarItem)) {
164
164
  return toolbarItemToButtonConfig(toolbarItem, extension.key);
165
165
  }
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "102.3.1";
4
+ const packageVersion = "102.3.3";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "102.3.1";
16
+ const packageVersion = "102.3.3";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -27,6 +27,16 @@ export var aiMessages = defineMessages({
27
27
  defaultMessage: 'Tell Atlassian Intelligence to improve the writing of your selection',
28
28
  description: 'Tooltip text for an option to use Atlassian Intellgience to improve the writing of content currently selected by the user'
29
29
  },
30
+ askAIToolbarIconTitle: {
31
+ id: 'fabric.editor.ai.toolbar.askAI.title',
32
+ defaultMessage: 'Ask AI',
33
+ description: 'Title for an option to use Atlassian Intellgience'
34
+ },
35
+ askAIToolbarIconTooltip: {
36
+ id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
37
+ defaultMessage: 'Open Atlassian Intelligence',
38
+ description: 'Tooltip text for an option to use Atlassian Intellgience'
39
+ },
30
40
  tryAIToolbarIconTitle: {
31
41
  id: 'fabric.editor.ai.toolbar.tryAI.title',
32
42
  defaultMessage: 'Try AI',
@@ -39,8 +39,9 @@ export var Extension = /*#__PURE__*/function (_Component) {
39
39
  // @ts-ignore
40
40
  var currentState = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e = pluginInjectionApi.editorViewMode) === null || _pluginInjectionApi$e === void 0 || (_pluginInjectionApi$e = _pluginInjectionApi$e.sharedState) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.currentState();
41
41
  var _ref2 = currentState || {},
42
- contentMode = _ref2.contentMode;
43
- var isLivePageViewMode = contentMode === 'live-view';
42
+ contentMode = _ref2.contentMode,
43
+ mode = _ref2.mode;
44
+ var isLivePageViewMode = contentMode === 'live-view' || mode === 'view';
44
45
  return /*#__PURE__*/React.createElement(ExtensionComponent, {
45
46
  editorView: editorView,
46
47
  node: node,
@@ -247,7 +247,7 @@ export var getContextualToolbarItemsFromModule = function getContextualToolbarIt
247
247
  return [];
248
248
  }).flatMap(function (toolbarItems) {
249
249
  return toolbarItems.map(function (toolbarItem) {
250
- if (fg('forge_macro_autoconvert')) {
250
+ if (fg('forge-ui-macro-autoconvert')) {
251
251
  if (isToolbarButton(toolbarItem)) {
252
252
  return toolbarItemToButtonConfig(toolbarItem, extension.key);
253
253
  }
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "102.3.1";
10
+ var packageVersion = "102.3.3";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "102.3.1";
23
+ var packageVersion = "102.3.3";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -24,6 +24,16 @@ export declare const aiMessages: {
24
24
  defaultMessage: string;
25
25
  description: string;
26
26
  };
27
+ askAIToolbarIconTitle: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ askAIToolbarIconTooltip: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
27
37
  tryAIToolbarIconTitle: {
28
38
  id: string;
29
39
  defaultMessage: string;
@@ -24,6 +24,16 @@ export declare const aiMessages: {
24
24
  defaultMessage: string;
25
25
  description: string;
26
26
  };
27
+ askAIToolbarIconTitle: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ askAIToolbarIconTooltip: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
27
37
  tryAIToolbarIconTitle: {
28
38
  id: string;
29
39
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "102.3.1",
3
+ "version": "102.3.3",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -328,7 +328,7 @@
328
328
  "platform_editor_elements_dnd_multi_select_patch_1": {
329
329
  "type": "boolean"
330
330
  },
331
- "forge_macro_autoconvert": {
331
+ "forge-ui-macro-autoconvert": {
332
332
  "type": "boolean"
333
333
  }
334
334
  }