@atlaskit/editor-common 80.5.2 → 81.0.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 (237) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/afm-cc/tsconfig.json +0 -3
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/ui/DropList/index.js +1 -1
  5. package/dist/es2019/monitoring/error.js +1 -1
  6. package/dist/es2019/ui/DropList/index.js +1 -1
  7. package/dist/esm/monitoring/error.js +1 -1
  8. package/dist/esm/ui/DropList/index.js +1 -1
  9. package/dist/types/analytics/types/avatar.d.ts +2 -2
  10. package/dist/types/analytics/types/config-panel-events.d.ts +2 -2
  11. package/dist/types/analytics/types/date-events.d.ts +2 -2
  12. package/dist/types/analytics/types/dispatch-analytics-event.d.ts +1 -1
  13. package/dist/types/analytics/types/experimental-events.d.ts +2 -2
  14. package/dist/types/card/link-toolbar-button-group-options.d.ts +1 -1
  15. package/dist/types/extensions/extension-fields-helpers.d.ts +2 -2
  16. package/dist/types/extensions/types/extension-manifest-common.d.ts +1 -1
  17. package/dist/types/extensions/types/extension-provider.d.ts +2 -2
  18. package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +2 -2
  19. package/dist/types/link/LinkSearch/index.d.ts +2 -2
  20. package/dist/types/link/LinkSearch/transformTimeStamp.d.ts +1 -1
  21. package/dist/types/link/LinkSearch/types.d.ts +3 -3
  22. package/dist/types/link/LinkSearch/withActivityProvider.d.ts +2 -2
  23. package/dist/types/link/types.d.ts +2 -2
  24. package/dist/types/provider-factory/context.d.ts +1 -1
  25. package/dist/types/provider-factory/profile-card-provider.d.ts +1 -1
  26. package/dist/types/provider-factory/provider-factory.d.ts +1 -1
  27. package/dist/types/provider-factory/with-providers.d.ts +3 -3
  28. package/dist/types/transforms/layout.d.ts +1 -1
  29. package/dist/types/types/copy-button.d.ts +1 -1
  30. package/dist/types/types/resizable-media-single.d.ts +1 -1
  31. package/dist/types/types/type-ahead.d.ts +1 -1
  32. package/dist/types/ufo/experience-store.d.ts +1 -1
  33. package/dist/types/ui/EventHandlers/index.d.ts +1 -1
  34. package/dist/types/ui/Layer/index.d.ts +2 -2
  35. package/dist/types/ui/Mention/index.d.ts +2 -2
  36. package/dist/types/ui/Mention/types.d.ts +1 -1
  37. package/dist/types/ui/ResizerLegacy/styled.d.ts +1 -1
  38. package/dist/types/ui/ResizerLegacy/types.d.ts +3 -3
  39. package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
  40. package/dist/types/ui/unsupported-content-helper.d.ts +2 -2
  41. package/dist/types/ui-color/ColorPalette/Palettes/borderColorPalette.d.ts +1 -1
  42. package/dist/types/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +1 -1
  43. package/dist/types/ui-color/ColorPalette/Palettes/getColorMessage.d.ts +1 -1
  44. package/dist/types/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -1
  45. package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +1 -1
  46. package/dist/types/ui-menu/ToolbarButton/styles.d.ts +1 -1
  47. package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
  48. package/dist/types/utils/analytics.d.ts +1 -1
  49. package/dist/types/utils/commands.d.ts +3 -3
  50. package/dist/types/utils/compareNodes.d.ts +2 -2
  51. package/dist/types/utils/get-performance-options.d.ts +1 -1
  52. package/dist/types/utils/imageLoader.d.ts +1 -1
  53. package/dist/types/utils/macro.d.ts +1 -1
  54. package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +1 -1
  55. package/dist/types/utils/plugin-state-factory.d.ts +2 -2
  56. package/dist/types/utils/slice.d.ts +1 -1
  57. package/dist/types-ts4.5/analytics/types/avatar.d.ts +2 -2
  58. package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +2 -2
  59. package/dist/types-ts4.5/analytics/types/date-events.d.ts +2 -2
  60. package/dist/types-ts4.5/analytics/types/dispatch-analytics-event.d.ts +1 -1
  61. package/dist/types-ts4.5/analytics/types/experimental-events.d.ts +2 -2
  62. package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +1 -1
  63. package/dist/types-ts4.5/extensions/extension-fields-helpers.d.ts +2 -2
  64. package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +1 -1
  65. package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +2 -2
  66. package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +2 -2
  67. package/dist/types-ts4.5/link/LinkSearch/index.d.ts +2 -2
  68. package/dist/types-ts4.5/link/LinkSearch/transformTimeStamp.d.ts +1 -1
  69. package/dist/types-ts4.5/link/LinkSearch/types.d.ts +3 -3
  70. package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +2 -2
  71. package/dist/types-ts4.5/link/types.d.ts +2 -2
  72. package/dist/types-ts4.5/provider-factory/context.d.ts +1 -1
  73. package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +1 -1
  74. package/dist/types-ts4.5/provider-factory/provider-factory.d.ts +1 -1
  75. package/dist/types-ts4.5/provider-factory/with-providers.d.ts +3 -3
  76. package/dist/types-ts4.5/transforms/layout.d.ts +1 -1
  77. package/dist/types-ts4.5/types/copy-button.d.ts +1 -1
  78. package/dist/types-ts4.5/types/resizable-media-single.d.ts +1 -1
  79. package/dist/types-ts4.5/types/type-ahead.d.ts +1 -1
  80. package/dist/types-ts4.5/ufo/experience-store.d.ts +1 -1
  81. package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +1 -1
  82. package/dist/types-ts4.5/ui/Layer/index.d.ts +2 -2
  83. package/dist/types-ts4.5/ui/Mention/index.d.ts +2 -2
  84. package/dist/types-ts4.5/ui/Mention/types.d.ts +1 -1
  85. package/dist/types-ts4.5/ui/ResizerLegacy/styled.d.ts +1 -1
  86. package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +3 -3
  87. package/dist/types-ts4.5/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
  88. package/dist/types-ts4.5/ui/unsupported-content-helper.d.ts +2 -2
  89. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/borderColorPalette.d.ts +1 -1
  90. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +1 -1
  91. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/getColorMessage.d.ts +1 -1
  92. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -1
  93. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +1 -1
  94. package/dist/types-ts4.5/ui-menu/ToolbarButton/styles.d.ts +1 -1
  95. package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +1 -1
  96. package/dist/types-ts4.5/utils/analytics.d.ts +1 -1
  97. package/dist/types-ts4.5/utils/commands.d.ts +3 -3
  98. package/dist/types-ts4.5/utils/compareNodes.d.ts +2 -2
  99. package/dist/types-ts4.5/utils/get-performance-options.d.ts +1 -1
  100. package/dist/types-ts4.5/utils/imageLoader.d.ts +1 -1
  101. package/dist/types-ts4.5/utils/macro.d.ts +1 -1
  102. package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +1 -1
  103. package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +2 -2
  104. package/dist/types-ts4.5/utils/slice.d.ts +1 -1
  105. package/package.json +3 -5
  106. package/tsconfig.json +0 -1
  107. package/dist/cjs/__tests_external__/cases/fundamentals/collection.js +0 -15
  108. package/dist/cjs/__tests_external__/cases/fundamentals/test-cases/editor-is-present.js +0 -20
  109. package/dist/cjs/__tests_external__/cases/fundamentals/test-cases/editor-typing.js +0 -28
  110. package/dist/cjs/__tests_external__/cases/smart-links/index.js +0 -33
  111. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/delete.js +0 -35
  112. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/edit.js +0 -65
  113. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/index.js +0 -16
  114. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/insert.js +0 -34
  115. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/delete.js +0 -35
  116. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/edit.js +0 -65
  117. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/index.js +0 -16
  118. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/insert.js +0 -34
  119. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/delete.js +0 -34
  120. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/edit.js +0 -63
  121. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/index.js +0 -17
  122. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/insert.js +0 -33
  123. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/unlink.js +0 -36
  124. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/types.js +0 -5
  125. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/url/index.js +0 -14
  126. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/url/insert.js +0 -31
  127. package/dist/cjs/__tests_external__/cases/types.js +0 -5
  128. package/dist/cjs/__tests_external__/index.js +0 -44
  129. package/dist/cjs/__tests_external__/page-objects/Editor.js +0 -47
  130. package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +0 -208
  131. package/dist/cjs/__tests_external__/page-objects/Renderer.js +0 -35
  132. package/dist/cjs/in-product.js +0 -42
  133. package/dist/es2019/__tests_external__/cases/fundamentals/collection.js +0 -7
  134. package/dist/es2019/__tests_external__/cases/fundamentals/test-cases/editor-is-present.js +0 -12
  135. package/dist/es2019/__tests_external__/cases/fundamentals/test-cases/editor-typing.js +0 -22
  136. package/dist/es2019/__tests_external__/cases/smart-links/index.js +0 -4
  137. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/block/delete.js +0 -28
  138. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/block/edit.js +0 -57
  139. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/block/index.js +0 -8
  140. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/block/insert.js +0 -27
  141. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/embed/delete.js +0 -28
  142. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/embed/edit.js +0 -57
  143. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/embed/index.js +0 -8
  144. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/embed/insert.js +0 -27
  145. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/inline/delete.js +0 -27
  146. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/inline/edit.js +0 -55
  147. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/inline/index.js +0 -9
  148. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/inline/insert.js +0 -26
  149. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/inline/unlink.js +0 -29
  150. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/types.js +0 -1
  151. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/url/index.js +0 -6
  152. package/dist/es2019/__tests_external__/cases/smart-links/test-cases/url/insert.js +0 -24
  153. package/dist/es2019/__tests_external__/cases/types.js +0 -1
  154. package/dist/es2019/__tests_external__/index.js +0 -3
  155. package/dist/es2019/__tests_external__/page-objects/Editor.js +0 -19
  156. package/dist/es2019/__tests_external__/page-objects/EditorSmartLink.js +0 -143
  157. package/dist/es2019/__tests_external__/page-objects/Renderer.js +0 -9
  158. package/dist/es2019/in-product.js +0 -1
  159. package/dist/esm/__tests_external__/cases/fundamentals/collection.js +0 -9
  160. package/dist/esm/__tests_external__/cases/fundamentals/test-cases/editor-is-present.js +0 -14
  161. package/dist/esm/__tests_external__/cases/fundamentals/test-cases/editor-typing.js +0 -22
  162. package/dist/esm/__tests_external__/cases/smart-links/index.js +0 -4
  163. package/dist/esm/__tests_external__/cases/smart-links/test-cases/block/delete.js +0 -29
  164. package/dist/esm/__tests_external__/cases/smart-links/test-cases/block/edit.js +0 -59
  165. package/dist/esm/__tests_external__/cases/smart-links/test-cases/block/index.js +0 -10
  166. package/dist/esm/__tests_external__/cases/smart-links/test-cases/block/insert.js +0 -28
  167. package/dist/esm/__tests_external__/cases/smart-links/test-cases/embed/delete.js +0 -29
  168. package/dist/esm/__tests_external__/cases/smart-links/test-cases/embed/edit.js +0 -59
  169. package/dist/esm/__tests_external__/cases/smart-links/test-cases/embed/index.js +0 -10
  170. package/dist/esm/__tests_external__/cases/smart-links/test-cases/embed/insert.js +0 -28
  171. package/dist/esm/__tests_external__/cases/smart-links/test-cases/inline/delete.js +0 -28
  172. package/dist/esm/__tests_external__/cases/smart-links/test-cases/inline/edit.js +0 -57
  173. package/dist/esm/__tests_external__/cases/smart-links/test-cases/inline/index.js +0 -11
  174. package/dist/esm/__tests_external__/cases/smart-links/test-cases/inline/insert.js +0 -27
  175. package/dist/esm/__tests_external__/cases/smart-links/test-cases/inline/unlink.js +0 -30
  176. package/dist/esm/__tests_external__/cases/smart-links/test-cases/types.js +0 -1
  177. package/dist/esm/__tests_external__/cases/smart-links/test-cases/url/index.js +0 -8
  178. package/dist/esm/__tests_external__/cases/smart-links/test-cases/url/insert.js +0 -25
  179. package/dist/esm/__tests_external__/cases/types.js +0 -1
  180. package/dist/esm/__tests_external__/index.js +0 -3
  181. package/dist/esm/__tests_external__/page-objects/Editor.js +0 -40
  182. package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +0 -201
  183. package/dist/esm/__tests_external__/page-objects/Renderer.js +0 -28
  184. package/dist/esm/in-product.js +0 -1
  185. package/dist/types/__tests_external__/cases/fundamentals/collection.d.ts +0 -3
  186. package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +0 -3
  187. package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +0 -3
  188. package/dist/types/__tests_external__/cases/smart-links/index.d.ts +0 -4
  189. package/dist/types/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +0 -3
  190. package/dist/types/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +0 -4
  191. package/dist/types/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +0 -3
  192. package/dist/types/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +0 -3
  193. package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +0 -3
  194. package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +0 -4
  195. package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +0 -3
  196. package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +0 -3
  197. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +0 -3
  198. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +0 -4
  199. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +0 -3
  200. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +0 -3
  201. package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +0 -3
  202. package/dist/types/__tests_external__/cases/smart-links/test-cases/types.d.ts +0 -4
  203. package/dist/types/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +0 -3
  204. package/dist/types/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +0 -3
  205. package/dist/types/__tests_external__/cases/types.d.ts +0 -7
  206. package/dist/types/__tests_external__/index.d.ts +0 -3
  207. package/dist/types/__tests_external__/page-objects/Editor.d.ts +0 -11
  208. package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +0 -43
  209. package/dist/types/__tests_external__/page-objects/Renderer.d.ts +0 -8
  210. package/dist/types/in-product.d.ts +0 -1
  211. package/dist/types-ts4.5/__tests_external__/cases/fundamentals/collection.d.ts +0 -3
  212. package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +0 -3
  213. package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +0 -3
  214. package/dist/types-ts4.5/__tests_external__/cases/smart-links/index.d.ts +0 -4
  215. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +0 -3
  216. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +0 -4
  217. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +0 -3
  218. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +0 -3
  219. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +0 -3
  220. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +0 -4
  221. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +0 -3
  222. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +0 -3
  223. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +0 -3
  224. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +0 -4
  225. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +0 -3
  226. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +0 -3
  227. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +0 -3
  228. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/types.d.ts +0 -4
  229. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +0 -3
  230. package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +0 -3
  231. package/dist/types-ts4.5/__tests_external__/cases/types.d.ts +0 -7
  232. package/dist/types-ts4.5/__tests_external__/index.d.ts +0 -3
  233. package/dist/types-ts4.5/__tests_external__/page-objects/Editor.d.ts +0 -9
  234. package/dist/types-ts4.5/__tests_external__/page-objects/EditorSmartLink.d.ts +0 -41
  235. package/dist/types-ts4.5/__tests_external__/page-objects/Renderer.d.ts +0 -6
  236. package/dist/types-ts4.5/in-product.d.ts +0 -1
  237. package/in-product/package.json +0 -15
@@ -1,11 +0,0 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- import { InProductTestPageObject } from '@atlaskit/in-product-testing';
5
- import type { EditorTestCaseOpts } from '../cases/types';
6
- import { RendererPageObject } from './Renderer';
7
- export declare class EditorPageObject extends InProductTestPageObject {
8
- getEditorArea(): Cypress.Chainable<JQuery<HTMLElement>>;
9
- getTitleArea(): Cypress.Chainable<JQuery<HTMLElement>>;
10
- publish(opts: EditorTestCaseOpts['ui']): RendererPageObject;
11
- }
@@ -1,43 +0,0 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- import type { CypressType } from '@atlaskit/in-product-testing';
5
- import { InProductTestPageObject } from '@atlaskit/in-product-testing';
6
- import type { CardAppearance } from '@atlaskit/smart-card';
7
- import type { EditorPageObject } from './Editor';
8
- export declare class EditorSmartLinkPageObject extends InProductTestPageObject {
9
- protected cy: CypressType;
10
- private editor;
11
- constructor(cy: CypressType, editor: EditorPageObject);
12
- testIds: {
13
- viewSwitcher: string;
14
- displayUrlOption: string;
15
- displayInlineOption: string;
16
- displayCardOption: string;
17
- displayEmbedOption: string;
18
- linkUrl: string;
19
- linkLabel: string;
20
- };
21
- ariaLabels: {
22
- editLink: string;
23
- deleteLink: string;
24
- unlinkLink: string;
25
- };
26
- private getViewSwitcher;
27
- openViewSwitcher(): Cypress.Chainable<JQuery<HTMLElement>>;
28
- private getViewSwitcherOption;
29
- selectViewSwitcherOption(type?: CardAppearance | 'url'): Cypress.Chainable<JQuery<HTMLElement>>;
30
- insertSmartLinkByTyping(url: string): Cypress.Chainable<JQuery<HTMLElement>>;
31
- switchAfterInsert(type?: CardAppearance | 'url'): void;
32
- private getSmartLink;
33
- getEditLinkButton(): Cypress.Chainable<JQuery<HTMLElement>>;
34
- openEditLinkMenu(): Cypress.Chainable<JQuery<HTMLElement>>;
35
- changeLinkLabel(title: string, type?: CardAppearance | 'url'): void;
36
- changeLinkUrl(url: string, type?: CardAppearance | 'url'): void;
37
- private typeIntoLabelField;
38
- private typeIntoUrlField;
39
- deleteSmartLink(type?: CardAppearance | 'url'): void;
40
- private clickDeleteIcon;
41
- unlink(type?: CardAppearance | 'url'): void;
42
- private clickUnlinkIcon;
43
- }
@@ -1,8 +0,0 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- import { InProductTestPageObject } from '@atlaskit/in-product-testing';
5
- export declare class RendererPageObject extends InProductTestPageObject {
6
- getContent(): Cypress.Chainable<JQuery<HTMLElement>>;
7
- expectContentReady(): Cypress.Chainable<JQuery<HTMLElement>>;
8
- }
@@ -1 +0,0 @@
1
- export { fundamentalsTestCollection, blueLinksTestCollection, inlineSmartLinksTestCollection, blockSmartLinksTestCollection, embedSmartLinksTestCollection, EditorPageObject, } from './__tests_external__';
@@ -1,3 +0,0 @@
1
- import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import type { EditorTestCaseOpts } from '../types';
3
- export declare const fundamentalsTestCollection: (opts: EditorTestCaseOpts) => InProductTestCollection;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { EditorTestCaseOpts } from '../../types';
3
- export declare const editorIsPresentTestCase: (testOptions?: EditorTestCaseOpts) => InProductTestCase;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { EditorTestCaseOpts } from '../../types';
3
- export declare const editorTypingTestCase: (opts?: EditorTestCaseOpts) => InProductTestCase;
@@ -1,4 +0,0 @@
1
- export { inlineSmartLinksTestCollection } from './test-cases/inline';
2
- export { blockSmartLinksTestCollection } from './test-cases/block';
3
- export { embedSmartLinksTestCollection } from './test-cases/embed';
4
- export { blueLinksTestCollection } from './test-cases/url';
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const deleteBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const editBlockSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
- export declare const editBlockSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +0,0 @@
1
- import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const blockSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const switchToBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const deleteEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const editEmbedSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
- export declare const editEmbedSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +0,0 @@
1
- import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const embedSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const switchToEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const deleteInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const editInlineSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
4
- export declare const editInlineSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +0,0 @@
1
- import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const inlineSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const insertInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const unlinkInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,4 +0,0 @@
1
- import type { EditorTestCaseOpts } from '../../types';
2
- export interface SmartLinkTestCaseOpts extends EditorTestCaseOpts {
3
- url: string;
4
- }
@@ -1,3 +0,0 @@
1
- import { InProductTestCollection } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const blueLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
@@ -1,3 +0,0 @@
1
- import { InProductTestCase } from '@atlaskit/in-product-testing';
2
- import type { SmartLinkTestCaseOpts } from '../types';
3
- export declare const switchToUrlTestCase: ({ ui, url }: SmartLinkTestCaseOpts) => InProductTestCase;
@@ -1,7 +0,0 @@
1
- import type { InProductCommonTestCaseOpts } from '@atlaskit/in-product-testing';
2
- export interface EditorTestCaseOpts extends InProductCommonTestCaseOpts {
3
- ui?: {
4
- publishButton?: string;
5
- };
6
- runOnly?: string[];
7
- }
@@ -1,3 +0,0 @@
1
- export { EditorPageObject } from './page-objects/Editor';
2
- export { fundamentalsTestCollection } from './cases/fundamentals/collection';
3
- export { inlineSmartLinksTestCollection, blockSmartLinksTestCollection, embedSmartLinksTestCollection, blueLinksTestCollection, } from './cases/smart-links';
@@ -1,9 +0,0 @@
1
- /// <reference types="cypress" />
2
- import { InProductTestPageObject } from '@atlaskit/in-product-testing';
3
- import type { EditorTestCaseOpts } from '../cases/types';
4
- import { RendererPageObject } from './Renderer';
5
- export declare class EditorPageObject extends InProductTestPageObject {
6
- getEditorArea(): Cypress.Chainable<JQuery<HTMLElement>>;
7
- getTitleArea(): Cypress.Chainable<JQuery<HTMLElement>>;
8
- publish(opts: EditorTestCaseOpts['ui']): RendererPageObject;
9
- }
@@ -1,41 +0,0 @@
1
- /// <reference types="cypress" />
2
- import type { CypressType } from '@atlaskit/in-product-testing';
3
- import { InProductTestPageObject } from '@atlaskit/in-product-testing';
4
- import type { CardAppearance } from '@atlaskit/smart-card';
5
- import type { EditorPageObject } from './Editor';
6
- export declare class EditorSmartLinkPageObject extends InProductTestPageObject {
7
- protected cy: CypressType;
8
- private editor;
9
- constructor(cy: CypressType, editor: EditorPageObject);
10
- testIds: {
11
- viewSwitcher: string;
12
- displayUrlOption: string;
13
- displayInlineOption: string;
14
- displayCardOption: string;
15
- displayEmbedOption: string;
16
- linkUrl: string;
17
- linkLabel: string;
18
- };
19
- ariaLabels: {
20
- editLink: string;
21
- deleteLink: string;
22
- unlinkLink: string;
23
- };
24
- private getViewSwitcher;
25
- openViewSwitcher(): Cypress.Chainable<JQuery<HTMLElement>>;
26
- private getViewSwitcherOption;
27
- selectViewSwitcherOption(type?: CardAppearance | 'url'): Cypress.Chainable<JQuery<HTMLElement>>;
28
- insertSmartLinkByTyping(url: string): Cypress.Chainable<JQuery<HTMLElement>>;
29
- switchAfterInsert(type?: CardAppearance | 'url'): void;
30
- private getSmartLink;
31
- getEditLinkButton(): Cypress.Chainable<JQuery<HTMLElement>>;
32
- openEditLinkMenu(): Cypress.Chainable<JQuery<HTMLElement>>;
33
- changeLinkLabel(title: string, type?: CardAppearance | 'url'): void;
34
- changeLinkUrl(url: string, type?: CardAppearance | 'url'): void;
35
- private typeIntoLabelField;
36
- private typeIntoUrlField;
37
- deleteSmartLink(type?: CardAppearance | 'url'): void;
38
- private clickDeleteIcon;
39
- unlink(type?: CardAppearance | 'url'): void;
40
- private clickUnlinkIcon;
41
- }
@@ -1,6 +0,0 @@
1
- /// <reference types="cypress" />
2
- import { InProductTestPageObject } from '@atlaskit/in-product-testing';
3
- export declare class RendererPageObject extends InProductTestPageObject {
4
- getContent(): Cypress.Chainable<JQuery<HTMLElement>>;
5
- expectContentReady(): Cypress.Chainable<JQuery<HTMLElement>>;
6
- }
@@ -1 +0,0 @@
1
- export { fundamentalsTestCollection, blueLinksTestCollection, inlineSmartLinksTestCollection, blockSmartLinksTestCollection, embedSmartLinksTestCollection, EditorPageObject, } from './__tests_external__';
@@ -1,15 +0,0 @@
1
- {
2
- "name": "@atlaskit/editor-common/in-product",
3
- "main": "../dist/cjs/in-product.js",
4
- "module": "../dist/esm/in-product.js",
5
- "module:es2019": "../dist/es2019/in-product.js",
6
- "sideEffects": false,
7
- "types": "../dist/types/in-product.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.4": {
10
- "*": [
11
- "../dist/types-ts4.5/in-product.d.ts"
12
- ]
13
- }
14
- }
15
- }