@atlaskit/editor-core 228.1.12 → 228.1.14

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 (38) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/create-editor/ReactEditorView.js +1 -1
  3. package/dist/cjs/presets/default.js +2 -5
  4. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +15 -42
  5. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -2
  6. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -2
  7. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -3
  8. package/dist/cjs/ui/EditorContentContainer/styles/layout.js +6 -27
  9. package/dist/cjs/ui/quick-insert/ExtensionQuickInsertIcon.js +0 -15
  10. package/dist/cjs/ui/quick-insert/ExtensionQuickInsertMenuItem.js +0 -1
  11. package/dist/cjs/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +48 -10
  12. package/dist/cjs/version-wrapper.js +1 -1
  13. package/dist/es2019/create-editor/ReactEditorView.js +1 -1
  14. package/dist/es2019/presets/default.js +2 -3
  15. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +16 -43
  16. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -2
  17. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -2
  18. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -4
  19. package/dist/es2019/ui/EditorContentContainer/styles/layout.js +5 -26
  20. package/dist/es2019/ui/quick-insert/ExtensionQuickInsertIcon.js +0 -15
  21. package/dist/es2019/ui/quick-insert/ExtensionQuickInsertMenuItem.js +0 -1
  22. package/dist/es2019/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +48 -10
  23. package/dist/es2019/version-wrapper.js +1 -1
  24. package/dist/esm/create-editor/ReactEditorView.js +1 -1
  25. package/dist/esm/presets/default.js +2 -5
  26. package/dist/esm/ui/Appearance/FullPage/FullPage.js +15 -42
  27. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -2
  28. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -2
  29. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -4
  30. package/dist/esm/ui/EditorContentContainer/styles/layout.js +5 -26
  31. package/dist/esm/ui/quick-insert/ExtensionQuickInsertIcon.js +0 -15
  32. package/dist/esm/ui/quick-insert/ExtensionQuickInsertMenuItem.js +0 -1
  33. package/dist/esm/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +48 -10
  34. package/dist/esm/version-wrapper.js +1 -1
  35. package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +0 -7
  36. package/dist/types/ui/quick-insert/ExtensionQuickInsertIcon.d.ts +1 -2
  37. package/dist/types/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.d.ts +1 -1
  38. package/package.json +9 -13
@@ -542,6 +542,11 @@ export var layoutBaseStyles = css({
542
542
  boxSizing: 'border-box',
543
543
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
544
544
  '> div': {
545
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
546
+ '.pm-table-container': {
547
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
548
+ width: '100% !important'
549
+ },
545
550
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
546
551
  '> .embedCardView-content-wrap:first-of-type .rich-media-item': {
547
552
  marginTop: 0
@@ -611,32 +616,6 @@ export var layoutBaseStyles = css({
611
616
  }
612
617
  }
613
618
  });
614
- // on exp 'platform_editor_table_excerpts_fix' cleanup, merge this style to the one above
615
- /**
616
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
617
- * If you need to make changes here, also update the corresponding style in
618
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
619
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
620
- */
621
- export var layoutBaseStylesWithTableExcerptsFix = css({
622
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
623
- '.ProseMirror': {
624
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
625
- '[data-layout-section]': {
626
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
627
- '[data-layout-column]': {
628
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
629
- '> div': {
630
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
631
- '.pm-table-container': {
632
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
633
- width: '100% !important'
634
- }
635
- }
636
- }
637
- }
638
- }
639
- });
640
619
 
641
620
  /**
642
621
  * Base styles overrides for layout columns when advanced layouts experiment is on
@@ -8,10 +8,6 @@ import CarouselIcon from '@atlaskit/icon-lab/core/carousel';
8
8
  import TableOfContentIcon from '@atlaskit/icon-lab/core/table-of-content';
9
9
  import TemplateIcon from '@atlaskit/icon-lab/core/template';
10
10
  var lazyExtensionIconCache = new WeakMap();
11
- var brandedSlashCommandIconUrls = {
12
- amplitude: 'https://dam-cdn.atl.orangelogic.com/AssetLink/730r6bie0211kg6obni4343y4g1wv6n5.svg',
13
- figma: 'https://dam-cdn.atl.orangelogic.com/AssetLink/68t3023r7347271te7qw370k2pk37rgb.svg'
14
- };
15
11
  var whiteboardQuickInsertItemKeys = new Set(['whiteboard-extension:create-whiteboard', 'whiteboard-extension:create-diagram', 'whiteboard-extension:create-flowchart', 'whiteboard-extension:create-brainstorming', 'whiteboard-extension:create-retrospective', 'whiteboard-extension:create-roadmap']);
16
12
  var quickInsertItemIcons = {
17
13
  'toc:toc': TableOfContentIcon,
@@ -85,9 +81,7 @@ var createLazyExtensionIcon = function createLazyExtensionIcon(getIcon) {
85
81
  export var ExtensionQuickInsertIcon = function ExtensionQuickInsertIcon(_ref2) {
86
82
  var getIcon = _ref2.getIcon,
87
83
  itemKey = _ref2.itemKey,
88
- itemTitle = _ref2.itemTitle,
89
84
  label = _ref2.label;
90
- var brandedIconUrl = brandedSlashCommandIconUrls[itemTitle.toLowerCase()];
91
85
  var Icon = React.useMemo(function () {
92
86
  var quickInsertItemIcon = quickInsertItemIcons[itemKey];
93
87
  if (quickInsertItemIcon) {
@@ -98,15 +92,6 @@ export var ExtensionQuickInsertIcon = function ExtensionQuickInsertIcon(_ref2) {
98
92
  }
99
93
  return getIcon ? createLazyExtensionIcon(getIcon) : AppsIcon;
100
94
  }, [getIcon, itemKey]);
101
- if (brandedIconUrl) {
102
- return /*#__PURE__*/React.createElement("img", {
103
- alt: "",
104
- "aria-hidden": "true",
105
- height: 24,
106
- src: brandedIconUrl,
107
- width: 24
108
- });
109
- }
110
95
  return /*#__PURE__*/React.createElement(Icon, {
111
96
  label: label
112
97
  });
@@ -34,7 +34,6 @@ export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(
34
34
  iconBefore: /*#__PURE__*/React.createElement(ExtensionQuickInsertIcon, {
35
35
  getIcon: item.icon,
36
36
  itemKey: item.key,
37
- itemTitle: item.title,
38
37
  label: ""
39
38
  }),
40
39
  isDisabled: isOffline,
@@ -1,25 +1,63 @@
1
- var previewImageUrlsByTitle = {
2
- amplitude: {
1
+ var googleDrivePreviewImageUrls = {
2
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y01wj4t58w86byx86l6k81a22axud131.png',
3
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/wi413m0837rjykg23r6y0256b7377185.png'
4
+ };
5
+ var previewImageUrlsByKey = {
6
+ 'third-party-quick-insert-embeds:third-party-embed-amplitude': {
3
7
  dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
4
8
  light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2r34o120k40e0us4w66oqpud63o4lef4.png'
5
9
  },
6
- dropbox: {
10
+ 'dropbox:item': {
7
11
  dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/83f1773ur08qm4t3bqaabpwb173313tg.png',
8
12
  light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37v2dk5n1ltwc82j1w76dv1tyr8puwq0.png'
9
13
  },
10
- figma: {
14
+ 'third-party-quick-insert-embeds:third-party-embed-figma': {
11
15
  dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/svedc2lju60bgq3r43kfmi7213wj46as.png',
12
16
  light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u80s30071b4c10vdjr5rw0uje8cu2pk7.png'
13
17
  },
14
- 'google drive': {
15
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y01wj4t58w86byx86l6k81a22axud131.png',
16
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/wi413m0837rjykg23r6y0256b7377185.png'
17
- },
18
- iframe: {
18
+ 'third-party-quick-insert-embeds:third-party-embed-google-drive': googleDrivePreviewImageUrls,
19
+ 'google-drive:item': googleDrivePreviewImageUrls,
20
+ 'iframe:iframe': {
19
21
  dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/77p6d5rb343gue8580bacbl0xf82u5jv.png',
20
22
  light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/72a0j8eddxg82rnp8j48bipi8sq8g0ke.png'
23
+ },
24
+ 'anchor:anchor': {
25
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5f440bb8m37yig3u77s6c8200re8mto0.png',
26
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y42w6i56fk22vb3g5120d43qfwte8a78.png'
27
+ },
28
+ 'cards:quick-insert': {
29
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/20cikbp248b6uuagmv870057c46b546m.png',
30
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1jdjwc5fe5q64gf4f6i6i66tp361fv86.png'
31
+ },
32
+ 'carousel:quick-insert': {
33
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/20g273op21fx0t521ap2xg3b36125vpa.png',
34
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/d5t273i2jkax3c2223172a15kpqxww35.png'
35
+ },
36
+ 'com.atlassian.linking-platform.create:linking-platform-create-confluence-page': {
37
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3n23b6b5h222r3v068bt32dvx54l5f21.png',
38
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/bo85x7j087bjb2q45rb14nx2yf18k6l7.png'
39
+ },
40
+ 'com.atlassian.linking-platform.create:linking-platform-create-jira-issue': {
41
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/r8200b630kethcrda0fbs4nt7j180715.png',
42
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0n02x8u7ip23y371rkval1ggq5qk738i.png'
43
+ },
44
+ 'native-tabs:native-tabs': {
45
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/hvdl25h7i4xrv1gfxc8yo04nkfk63acq.png',
46
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/n857jlk2ahk2ymsh6derrt3sy75l026j.png'
47
+ },
48
+ 'smart-button:quick-insert': {
49
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/101m1324u46r06ksvg8ak64s2u0vm7l7.png',
50
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3cqw35441m20336hn04h731532i1x2pe.png'
51
+ },
52
+ 'spotlight:quick-insert': {
53
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/x2qdma2vfrd7h55vp5i4x66fr42b877w.png',
54
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ngi4osf40j5e37flt8e1pqw345pc346v.png'
55
+ },
56
+ 'toc:toc': {
57
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7jj541q4pq1joqf0ar53j42kr6371t1t.png',
58
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v8eyy0fvu61fb8a4b4teea4pjs7g2842.png'
21
59
  }
22
60
  };
23
61
  export var getExtensionQuickInsertPreviewImageUrls = function getExtensionQuickInsertPreviewImageUrls(item) {
24
- return previewImageUrlsByTitle[item.title.toLowerCase()];
62
+ return previewImageUrlsByKey[item.key];
25
63
  };
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "228.1.11";
3
+ export var version = "228.1.13";
@@ -140,13 +140,6 @@ export declare const layoutResponsiveStylesForView: SerializedStyles;
140
140
  * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
141
141
  */
142
142
  export declare const layoutBaseStyles: SerializedStyles;
143
- /**
144
- * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
145
- * If you need to make changes here, also update the corresponding style in
146
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
147
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
148
- */
149
- export declare const layoutBaseStylesWithTableExcerptsFix: SerializedStyles;
150
143
  /**
151
144
  * Base styles overrides for layout columns when advanced layouts experiment is on
152
145
  */
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { MenuItem } from '@atlaskit/editor-common/extensions';
3
- export declare const ExtensionQuickInsertIcon: ({ getIcon, itemKey, itemTitle, label, }: {
3
+ export declare const ExtensionQuickInsertIcon: ({ getIcon, itemKey, label, }: {
4
4
  getIcon?: MenuItem['icon'];
5
5
  itemKey: string;
6
- itemTitle: string;
7
6
  label: string;
8
7
  }) => React.JSX.Element;
@@ -3,5 +3,5 @@ type PreviewImageUrls = {
3
3
  dark: string;
4
4
  light: string;
5
5
  };
6
- export declare const getExtensionQuickInsertPreviewImageUrls: (item: Pick<MenuItem, 'title'>) => PreviewImageUrls | undefined;
6
+ export declare const getExtensionQuickInsertPreviewImageUrls: (item: Pick<MenuItem, 'key'>) => PreviewImageUrls | undefined;
7
7
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "228.1.12",
3
+ "version": "228.1.14",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,6 +27,9 @@
27
27
  "team": "Editor: Lego",
28
28
  "singleton": true,
29
29
  "website": {
30
+ "tags": [
31
+ "platform-labs"
32
+ ],
30
33
  "name": "Editor Core"
31
34
  },
32
35
  "integrationTests": {
@@ -49,7 +52,7 @@
49
52
  "@atlaskit/editor-json-transformer": "^9.8.0",
50
53
  "@atlaskit/editor-plugin-block-menu": "^17.0.0",
51
54
  "@atlaskit/editor-plugin-connectivity": "^18.0.0",
52
- "@atlaskit/editor-plugin-quick-insert": "^18.0.0",
55
+ "@atlaskit/editor-plugin-quick-insert": "^18.1.0",
53
56
  "@atlaskit/editor-plugin-selection-extension": "^21.0.0",
54
57
  "@atlaskit/editor-plugin-user-preferences": "^16.0.0",
55
58
  "@atlaskit/editor-plugins": "^16.1.0",
@@ -74,8 +77,8 @@
74
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
75
78
  "@atlaskit/react-ufo": "^7.11.0",
76
79
  "@atlaskit/task-decision": "^21.10.0",
77
- "@atlaskit/tmp-editor-statsig": "^198.0.0",
78
- "@atlaskit/tokens": "^17.0.0",
80
+ "@atlaskit/tmp-editor-statsig": "^199.0.0",
81
+ "@atlaskit/tokens": "^18.0.0",
79
82
  "@atlaskit/tooltip": "^24.3.0",
80
83
  "@atlaskit/width-detector": "^7.2.0",
81
84
  "@babel/runtime": "^7.0.0",
@@ -92,7 +95,7 @@
92
95
  "uuid": "^11.1.1"
93
96
  },
94
97
  "peerDependencies": {
95
- "@atlaskit/editor-common": "^122.10.0",
98
+ "@atlaskit/editor-common": "^122.11.0",
96
99
  "@atlaskit/link-provider": "^5.7.0",
97
100
  "@atlaskit/media-core": "^38.2.0",
98
101
  "react": "^18.2.0 || ^19.2.0",
@@ -150,7 +153,7 @@
150
153
  "@atlaskit/media-test-helpers": "^42.4.0",
151
154
  "@atlaskit/media-ui": "^30.16.0",
152
155
  "@atlaskit/modal-dialog": "^16.6.0",
153
- "@atlaskit/navigation-system": "^10.16.0",
156
+ "@atlaskit/navigation-system": "^10.17.0",
154
157
  "@atlaskit/popper": "^9.4.0",
155
158
  "@atlaskit/portal": "^7.0.0",
156
159
  "@atlaskit/profilecard": "^26.24.0",
@@ -215,10 +218,6 @@
215
218
  "type": "boolean",
216
219
  "referenceOnly": true
217
220
  },
218
- "platform_editor_use_preferences_plugin": {
219
- "type": "boolean",
220
- "referenceOnly": true
221
- },
222
221
  "platform_editor_media_block_default": {
223
222
  "type": "boolean",
224
223
  "referenceOnly": true
@@ -288,9 +287,6 @@
288
287
  },
289
288
  "platform_editor_lovability_resize_exts_gracefully": {
290
289
  "type": "boolean"
291
- },
292
- "fix_editor_blur_issue": {
293
- "type": "boolean"
294
290
  }
295
291
  }
296
292
  }