@atlaskit/editor-common 78.6.0 → 78.7.0

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 (94) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  3. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +26 -7
  4. package/dist/cjs/extensibility/Extension.js +4 -2
  5. package/dist/cjs/extensibility/ExtensionComponent.js +8 -4
  6. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +6 -4
  7. package/dist/cjs/extensibility/extensionNodeView.js +5 -3
  8. package/dist/cjs/monitoring/error.js +1 -1
  9. package/dist/cjs/preset/plugin-injection-api.js +1 -1
  10. package/dist/cjs/quick-insert/messages.js +5 -0
  11. package/dist/cjs/ui/DropList/index.js +1 -1
  12. package/dist/cjs/utils/index.js +6 -0
  13. package/dist/es2019/__tests_external__/page-objects/EditorSmartLink.js +0 -1
  14. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +25 -24
  15. package/dist/es2019/extensibility/Extension.js +4 -2
  16. package/dist/es2019/extensibility/ExtensionComponent.js +9 -6
  17. package/dist/es2019/extensibility/MultiBodiedExtension/index.js +7 -11
  18. package/dist/es2019/extensibility/extensionNodeView.js +5 -3
  19. package/dist/es2019/monitoring/error.js +1 -1
  20. package/dist/es2019/preset/plugin-injection-api.js +1 -1
  21. package/dist/es2019/quick-insert/messages.js +5 -0
  22. package/dist/es2019/ui/DropList/index.js +1 -1
  23. package/dist/es2019/utils/index.js +1 -1
  24. package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +0 -1
  25. package/dist/esm/element-browser/components/ElementList/EmptyState.js +25 -7
  26. package/dist/esm/extensibility/Extension.js +4 -2
  27. package/dist/esm/extensibility/ExtensionComponent.js +9 -6
  28. package/dist/esm/extensibility/MultiBodiedExtension/index.js +6 -4
  29. package/dist/esm/extensibility/extensionNodeView.js +5 -3
  30. package/dist/esm/monitoring/error.js +1 -1
  31. package/dist/esm/preset/plugin-injection-api.js +1 -1
  32. package/dist/esm/quick-insert/messages.js +5 -0
  33. package/dist/esm/ui/DropList/index.js +1 -1
  34. package/dist/esm/utils/index.js +1 -1
  35. package/dist/types/__tests_external__/cases/fundamentals/collection.d.ts +1 -1
  36. package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
  37. package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
  38. package/dist/types/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +1 -1
  39. package/dist/types/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +1 -1
  40. package/dist/types/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +1 -1
  41. package/dist/types/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +1 -1
  42. package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +1 -1
  43. package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +1 -1
  44. package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +1 -1
  45. package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +1 -1
  46. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +1 -1
  47. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +1 -1
  48. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +1 -1
  49. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +1 -1
  50. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +1 -1
  51. package/dist/types/__tests_external__/cases/smart-links/test-cases/types.d.ts +1 -1
  52. package/dist/types/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +1 -1
  53. package/dist/types/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +1 -1
  54. package/dist/types/__tests_external__/page-objects/Editor.d.ts +1 -1
  55. package/dist/types/extensibility/Extension/Extension/index.d.ts +1 -0
  56. package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +1 -0
  57. package/dist/types/extensibility/Extension.d.ts +1 -0
  58. package/dist/types/extensibility/ExtensionComponent.d.ts +1 -0
  59. package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +1 -0
  60. package/dist/types/extensibility/extensionNodeView.d.ts +2 -1
  61. package/dist/types/preset/plugin-injection-api.d.ts +1 -1
  62. package/dist/types/quick-insert/messages.d.ts +5 -0
  63. package/dist/types/utils/index.d.ts +1 -1
  64. package/dist/types-ts4.5/__tests_external__/cases/fundamentals/collection.d.ts +1 -1
  65. package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
  66. package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
  67. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +1 -1
  68. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +1 -1
  69. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +1 -1
  70. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +1 -1
  71. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +1 -1
  72. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +1 -1
  73. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +1 -1
  74. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +1 -1
  75. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +1 -1
  76. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +1 -1
  77. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +1 -1
  78. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +1 -1
  79. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +1 -1
  80. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/types.d.ts +1 -1
  81. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +1 -1
  82. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +1 -1
  83. package/dist/types-ts4.5/__tests_external__/page-objects/Editor.d.ts +1 -1
  84. package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +1 -0
  85. package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +1 -0
  86. package/dist/types-ts4.5/extensibility/Extension.d.ts +1 -0
  87. package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +1 -0
  88. package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +1 -0
  89. package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +2 -1
  90. package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +1 -1
  91. package/dist/types-ts4.5/quick-insert/messages.d.ts +5 -0
  92. package/dist/types-ts4.5/utils/index.d.ts +1 -1
  93. package/package.json +4 -4
  94. package/tsconfig.json +1 -1
@@ -9,8 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
11
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
- import React from 'react';
13
- import { Component } from 'react';
12
+ import React, { Component } from 'react';
14
13
  import memoizeOne from 'memoize-one';
15
14
  import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '../extensions';
16
15
  import { getExtensionRenderer } from '../utils';
@@ -184,7 +183,8 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
184
183
  editorAppearance = _this$props2.editorAppearance,
185
184
  pluginInjectionApi = _this$props2.pluginInjectionApi,
186
185
  getPos = _this$props2.getPos,
187
- eventDispatcher = _this$props2.eventDispatcher;
186
+ eventDispatcher = _this$props2.eventDispatcher,
187
+ showMacroInteractionDesignUpdates = _this$props2.showMacroInteractionDesignUpdates;
188
188
  if (node.type.name === 'multiBodiedExtension') {
189
189
  return /*#__PURE__*/React.createElement(MultiBodiedExtension, {
190
190
  node: node,
@@ -194,7 +194,8 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
194
194
  tryExtensionHandler: this.tryExtensionHandler.bind(this),
195
195
  eventDispatcher: eventDispatcher,
196
196
  pluginInjectionApi: pluginInjectionApi,
197
- editorAppearance: editorAppearance
197
+ editorAppearance: editorAppearance,
198
+ showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
198
199
  });
199
200
  }
200
201
  var extensionHandlerResult = this.tryExtensionHandler(undefined);
@@ -210,11 +211,13 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
210
211
  view: editorView,
211
212
  editorAppearance: editorAppearance,
212
213
  hideFrame: (_this$state$_privateP = this.state._privateProps) === null || _this$state$_privateP === void 0 ? void 0 : _this$state$_privateP.__hideFrame,
213
- pluginInjectionApi: pluginInjectionApi
214
+ pluginInjectionApi: pluginInjectionApi,
215
+ showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
214
216
  }, extensionHandlerResult);
215
217
  case 'inlineExtension':
216
218
  return /*#__PURE__*/React.createElement(InlineExtension, {
217
- node: node
219
+ node: node,
220
+ showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
218
221
  }, extensionHandlerResult);
219
222
  default:
220
223
  return null;
@@ -1,9 +1,8 @@
1
1
  import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
4
  import _extends from "@babel/runtime/helpers/extends";
4
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
5
5
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
6
- var _templateObject, _templateObject2;
7
6
  var _excluded = ["url"];
8
7
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
9
8
  /** @jsx jsx */
@@ -26,7 +25,10 @@ var getWrapperTitleContent = function getWrapperTitleContent(imageData, title) {
26
25
  return jsx("div", {
27
26
  className: "extension-title"
28
27
  }, jsx("img", _extends({
29
- css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-height: 24px;\n max-width: 24px;\n "]))),
28
+ css: css({
29
+ maxHeight: '24px',
30
+ maxWidth: '24px'
31
+ }),
30
32
  src: url
31
33
  }, rest, {
32
34
  alt: title
@@ -81,7 +83,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
81
83
  var articleRef = React.useCallback(function (node) {
82
84
  return handleContentDOMRef(node);
83
85
  }, [handleContentDOMRef]);
84
- var containerCssExtended = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n .multiBodiedExtension-content-dom-wrapper\n > [data-extension-frame='true']:nth-of-type(", ") {\n ", "\n }\n "])), sharedMultiBodiedExtensionStyles.mbeExtensionContainer, activeChildIndex + 1, sharedMultiBodiedExtensionStyles.extensionFrameContent);
86
+ var containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, _defineProperty({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), sharedMultiBodiedExtensionStyles.extensionFrameContent));
85
87
  var shouldBreakout =
86
88
  // Extension should breakout when the layout is set to 'full-width' or 'wide'.
87
89
  ['full-width', 'wide'].includes(node.attrs.layout) &&
@@ -64,20 +64,22 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
64
64
  handleContentDOMRef: forwardRef,
65
65
  extensionHandlers: props.extensionHandlers,
66
66
  editorAppearance: (_props$extensionNodeV = props.extensionNodeViewOptions) === null || _props$extensionNodeV === void 0 ? void 0 : _props$extensionNodeV.appearance,
67
- pluginInjectionApi: props.pluginInjectionApi
67
+ pluginInjectionApi: props.pluginInjectionApi,
68
+ showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
68
69
  }));
69
70
  }
70
71
  }]);
71
72
  return ExtensionNode;
72
73
  }(ReactNodeView);
73
- export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi) {
74
+ export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, showMacroInteractionDesignUpdates) {
74
75
  return function (node, view, getPos) {
75
76
  var hasIntlContext = true;
76
77
  return new ExtensionNode(node, view, getPos, portalProviderAPI, eventDispatcher, {
77
78
  providerFactory: providerFactory,
78
79
  extensionHandlers: extensionHandlers,
79
80
  extensionNodeViewOptions: extensionNodeViewOptions,
80
- pluginInjectionApi: pluginInjectionApi
81
+ pluginInjectionApi: pluginInjectionApi,
82
+ showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
81
83
  }, undefined, undefined, undefined, hasIntlContext).init();
82
84
  };
83
85
  }
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "78.6.0";
9
+ var packageVersion = "78.7.0";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -255,7 +255,7 @@ export var EditorPluginInjectionAPI = /*#__PURE__*/function () {
255
255
  // For some reason in some tests we have duplicates that are missed.
256
256
  // To follow-up in ED-19611
257
257
  if (plugin.name === 'core' && _this2.plugins.has(plugin.name)) {
258
- throw new Error("Plugin ".concat(plugin.name, " has already been initialised in the Editor API! \n There cannot be duplicate plugins or you will have unexpected behaviour"));
258
+ throw new Error("Plugin ".concat(plugin.name, " has already been initialised in the Editor API!\n There cannot be duplicate plugins or you will have unexpected behaviour"));
259
259
  }
260
260
  _this2.plugins.set(plugin.name, plugin);
261
261
  });
@@ -59,5 +59,10 @@ export var messages = defineMessages({
59
59
  id: 'fabric.editor.elementbrowser.categorylist.category-development',
60
60
  defaultMessage: 'Development',
61
61
  description: 'development'
62
+ },
63
+ AI: {
64
+ id: 'fabric.editor.elementbrowser.categorylist.category-ai',
65
+ defaultMessage: 'Atlassian Intelligence',
66
+ description: 'AI'
62
67
  }
63
68
  });
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "78.6.0";
20
+ var packageVersion = "78.7.0";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -31,7 +31,7 @@ export { shouldForceTracking } from './should-force-tracking';
31
31
  export { getModeFromTheme } from './getModeFromTheme';
32
32
  export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered } from './get-performance-options';
33
33
  export { sniffUserBrowserExtensions } from './browser-extensions';
34
- export { RenderCountProfiler } from './profiler/render-count';
34
+ export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
35
35
  export { validateADFEntity, validationErrorHandler } from './validate-using-spec';
36
36
  export { getShallowPropsDifference, getPropsDifference } from './compare-props';
37
37
  export { useComponentRenderTracking } from './performance/hooks/use-component-render-tracking';
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { EditorTestCaseOpts } from '../types';
2
+ import type { EditorTestCaseOpts } from '../types';
3
3
  export declare const fundamentalsTestCollection: (opts: EditorTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { EditorTestCaseOpts } from '../../types';
2
+ import type { EditorTestCaseOpts } from '../../types';
3
3
  export declare const editorIsPresentTestCase: (testOptions?: EditorTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { EditorTestCaseOpts } from '../../types';
2
+ import type { EditorTestCaseOpts } from '../../types';
3
3
  export declare const editorTypingTestCase: (opts?: EditorTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const deleteBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +1,4 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const editBlockSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
4
  export declare const editBlockSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const blockSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const switchToBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const deleteEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +1,4 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const editEmbedSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
4
  export declare const editEmbedSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const embedSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const switchToEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const deleteInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +1,4 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const editInlineSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
4
  export declare const editInlineSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const inlineSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const insertInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const unlinkInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +1,4 @@
1
- import { EditorTestCaseOpts } from '../../types';
1
+ import type { EditorTestCaseOpts } from '../../types';
2
2
  export interface SmartLinkTestCaseOpts extends EditorTestCaseOpts {
3
3
  url: string;
4
4
  }
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const blueLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const switchToUrlTestCase: ({ ui, url }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -2,7 +2,7 @@
2
2
  /// <reference types="cypress" />
3
3
  /// <reference types="cypress" />
4
4
  import { InProductTestPageObject } from '@atlaskit/in-product-testing';
5
- import { EditorTestCaseOpts } from '../cases/types';
5
+ import type { EditorTestCaseOpts } from '../cases/types';
6
6
  import { RendererPageObject } from './Renderer';
7
7
  export declare class EditorPageObject extends InProductTestPageObject {
8
8
  getEditorArea(): Cypress.Chainable<JQuery<HTMLElement>>;
@@ -16,6 +16,7 @@ export interface Props {
16
16
  hideFrame?: boolean;
17
17
  editorAppearance?: EditorAppearance;
18
18
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
19
+ showMacroInteractionDesignUpdates?: boolean;
19
20
  }
20
21
  /**
21
22
  * End workaround
@@ -6,6 +6,7 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
6
  export interface Props {
7
7
  node: PmNode;
8
8
  children?: React.ReactNode;
9
+ showMacroInteractionDesignUpdates?: boolean;
9
10
  }
10
11
  export default class InlineExtension extends Component<Props, any> {
11
12
  render(): jsx.JSX.Element;
@@ -18,6 +18,7 @@ export interface Props {
18
18
  editorAppearance?: EditorAppearance;
19
19
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
20
20
  eventDispatcher?: EventDispatcher;
21
+ showMacroInteractionDesignUpdates?: boolean;
21
22
  }
22
23
  export declare class Extension extends Component<Props, any> {
23
24
  static displayName: string;
@@ -18,6 +18,7 @@ export interface Props {
18
18
  editorAppearance?: EditorAppearance;
19
19
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
20
20
  eventDispatcher?: EventDispatcher;
21
+ showMacroInteractionDesignUpdates?: boolean;
21
22
  }
22
23
  export interface State {
23
24
  extensionProvider?: ExtensionProvider;
@@ -18,6 +18,7 @@ type Props = {
18
18
  eventDispatcher?: EventDispatcher;
19
19
  pluginInjectionApi?: ExtensionsPluginInjectionAPI;
20
20
  editorAppearance?: EditorAppearance;
21
+ showMacroInteractionDesignUpdates?: boolean;
21
22
  };
22
23
  declare const MultiBodiedExtension: (props: Props & OverflowShadowProps) => jsx.JSX.Element;
23
24
  /**
@@ -25,7 +25,8 @@ export declare class ExtensionNode extends ReactNodeView {
25
25
  extensionHandlers: ExtensionHandlers;
26
26
  extensionNodeViewOptions?: ExtensionNodeViewOptions;
27
27
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
28
+ showMacroInteractionDesignUpdates: boolean;
28
29
  }, forwardRef: ForwardRef): JSX.Element;
29
30
  }
30
- export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
31
+ export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI, showMacroInteractionDesignUpdates?: boolean): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
31
32
  export {};
@@ -8,7 +8,7 @@ type SharedStateAPIProps = {
8
8
  interface PluginInjectionAPIProps extends SharedStateAPIProps {
9
9
  getEditorView: () => EditorView | undefined;
10
10
  }
11
- type EditorStateDiff = {
11
+ export type EditorStateDiff = {
12
12
  readonly newEditorState: EditorState;
13
13
  readonly oldEditorState: EditorState | undefined;
14
14
  };
@@ -59,4 +59,9 @@ export declare const messages: {
59
59
  defaultMessage: string;
60
60
  description: string;
61
61
  };
62
+ AI: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
62
67
  };
@@ -41,7 +41,7 @@ export { getModeFromTheme } from './getModeFromTheme';
41
41
  export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, } from './get-performance-options';
42
42
  export type { UserBrowserExtensionResults } from './browser-extensions';
43
43
  export { sniffUserBrowserExtensions } from './browser-extensions';
44
- export { RenderCountProfiler } from './profiler/render-count';
44
+ export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
45
45
  export { validateADFEntity, validationErrorHandler, } from './validate-using-spec';
46
46
  export { getShallowPropsDifference, getPropsDifference } from './compare-props';
47
47
  export type { ShallowPropsDifference, PropsDifference } from './compare-props';
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { EditorTestCaseOpts } from '../types';
2
+ import type { EditorTestCaseOpts } from '../types';
3
3
  export declare const fundamentalsTestCollection: (opts: EditorTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { EditorTestCaseOpts } from '../../types';
2
+ import type { EditorTestCaseOpts } from '../../types';
3
3
  export declare const editorIsPresentTestCase: (testOptions?: EditorTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { EditorTestCaseOpts } from '../../types';
2
+ import type { EditorTestCaseOpts } from '../../types';
3
3
  export declare const editorTypingTestCase: (opts?: EditorTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const deleteBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +1,4 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const editBlockSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
4
  export declare const editBlockSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const blockSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const switchToBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const deleteEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +1,4 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const editEmbedSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
4
  export declare const editEmbedSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const embedSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const switchToEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const deleteInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +1,4 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const editInlineSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
4
  export declare const editInlineSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const inlineSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const insertInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const unlinkInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +1,4 @@
1
- import { EditorTestCaseOpts } from '../../types';
1
+ import type { EditorTestCaseOpts } from '../../types';
2
2
  export interface SmartLinkTestCaseOpts extends EditorTestCaseOpts {
3
3
  url: string;
4
4
  }
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const blueLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +1,3 @@
1
1
  import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import { SmartLinkTestCaseOpts } from '../types';
2
+ import type { SmartLinkTestCaseOpts } from '../types';
3
3
  export declare const switchToUrlTestCase: ({ ui, url }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="cypress" />
2
2
  import { InProductTestPageObject } from '@atlaskit/in-product-testing';
3
- import { EditorTestCaseOpts } from '../cases/types';
3
+ import type { EditorTestCaseOpts } from '../cases/types';
4
4
  import { RendererPageObject } from './Renderer';
5
5
  export declare class EditorPageObject extends InProductTestPageObject {
6
6
  getEditorArea(): Cypress.Chainable<JQuery<HTMLElement>>;
@@ -16,6 +16,7 @@ export interface Props {
16
16
  hideFrame?: boolean;
17
17
  editorAppearance?: EditorAppearance;
18
18
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
19
+ showMacroInteractionDesignUpdates?: boolean;
19
20
  }
20
21
  /**
21
22
  * End workaround
@@ -6,6 +6,7 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
6
  export interface Props {
7
7
  node: PmNode;
8
8
  children?: React.ReactNode;
9
+ showMacroInteractionDesignUpdates?: boolean;
9
10
  }
10
11
  export default class InlineExtension extends Component<Props, any> {
11
12
  render(): jsx.JSX.Element;
@@ -18,6 +18,7 @@ export interface Props {
18
18
  editorAppearance?: EditorAppearance;
19
19
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
20
20
  eventDispatcher?: EventDispatcher;
21
+ showMacroInteractionDesignUpdates?: boolean;
21
22
  }
22
23
  export declare class Extension extends Component<Props, any> {
23
24
  static displayName: string;
@@ -18,6 +18,7 @@ export interface Props {
18
18
  editorAppearance?: EditorAppearance;
19
19
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
20
20
  eventDispatcher?: EventDispatcher;
21
+ showMacroInteractionDesignUpdates?: boolean;
21
22
  }
22
23
  export interface State {
23
24
  extensionProvider?: ExtensionProvider;
@@ -18,6 +18,7 @@ type Props = {
18
18
  eventDispatcher?: EventDispatcher;
19
19
  pluginInjectionApi?: ExtensionsPluginInjectionAPI;
20
20
  editorAppearance?: EditorAppearance;
21
+ showMacroInteractionDesignUpdates?: boolean;
21
22
  };
22
23
  declare const MultiBodiedExtension: (props: Props & OverflowShadowProps) => jsx.JSX.Element;
23
24
  /**
@@ -25,7 +25,8 @@ export declare class ExtensionNode extends ReactNodeView {
25
25
  extensionHandlers: ExtensionHandlers;
26
26
  extensionNodeViewOptions?: ExtensionNodeViewOptions;
27
27
  pluginInjectionApi: ExtensionsPluginInjectionAPI;
28
+ showMacroInteractionDesignUpdates: boolean;
28
29
  }, forwardRef: ForwardRef): JSX.Element;
29
30
  }
30
- export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
31
+ export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: ExtensionsPluginInjectionAPI, showMacroInteractionDesignUpdates?: boolean): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
31
32
  export {};
@@ -8,7 +8,7 @@ type SharedStateAPIProps = {
8
8
  interface PluginInjectionAPIProps extends SharedStateAPIProps {
9
9
  getEditorView: () => EditorView | undefined;
10
10
  }
11
- type EditorStateDiff = {
11
+ export type EditorStateDiff = {
12
12
  readonly newEditorState: EditorState;
13
13
  readonly oldEditorState: EditorState | undefined;
14
14
  };
@@ -59,4 +59,9 @@ export declare const messages: {
59
59
  defaultMessage: string;
60
60
  description: string;
61
61
  };
62
+ AI: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
62
67
  };