@atlaskit/editor-common 93.5.2 → 93.6.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 (99) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/card/LinkToolbarButtonGroup.js +8 -4
  3. package/dist/cjs/card/link-toolbar-button-group-options.js +16 -5
  4. package/dist/cjs/card/ui/assets/card.js +2 -0
  5. package/dist/cjs/card/ui/assets/embed.js +2 -0
  6. package/dist/cjs/card/ui/assets/inline.js +2 -0
  7. package/dist/cjs/card/ui/assets/url.js +2 -0
  8. package/dist/cjs/media-single/CommentBadge.js +6 -2
  9. package/dist/cjs/media-single/CommentBadgeNext.js +6 -2
  10. package/dist/cjs/messages/insert-block.js +20 -0
  11. package/dist/cjs/monitoring/error.js +1 -1
  12. package/dist/cjs/provider-factory/provider-factory.js +1 -0
  13. package/dist/cjs/provider-factory/with-providers.js +29 -8
  14. package/dist/cjs/quick-insert/assets/five-column-layout.js +173 -0
  15. package/dist/cjs/quick-insert/assets/four-column-layout.js +158 -0
  16. package/dist/cjs/quick-insert/assets/index.js +61 -1
  17. package/dist/cjs/quick-insert/assets/one-column-layout.js +109 -0
  18. package/dist/cjs/quick-insert/assets/three-column-layout.js +150 -0
  19. package/dist/cjs/quick-insert/assets/two-column-layout.js +128 -0
  20. package/dist/cjs/quick-insert/index.js +30 -0
  21. package/dist/cjs/ui/DropList/index.js +1 -1
  22. package/dist/cjs/ui-menu/ColorPickerButton/index.js +1 -0
  23. package/dist/es2019/card/LinkToolbarButtonGroup.js +24 -18
  24. package/dist/es2019/card/link-toolbar-button-group-options.js +15 -5
  25. package/dist/es2019/card/ui/assets/card.js +1 -0
  26. package/dist/es2019/card/ui/assets/embed.js +1 -0
  27. package/dist/es2019/card/ui/assets/inline.js +1 -0
  28. package/dist/es2019/card/ui/assets/url.js +1 -0
  29. package/dist/es2019/media-single/CommentBadge.js +6 -2
  30. package/dist/es2019/media-single/CommentBadgeNext.js +6 -2
  31. package/dist/es2019/messages/insert-block.js +20 -0
  32. package/dist/es2019/monitoring/error.js +1 -1
  33. package/dist/es2019/provider-factory/provider-factory.js +1 -0
  34. package/dist/es2019/provider-factory/with-providers.js +28 -8
  35. package/dist/es2019/quick-insert/assets/five-column-layout.js +167 -0
  36. package/dist/es2019/quick-insert/assets/four-column-layout.js +152 -0
  37. package/dist/es2019/quick-insert/assets/index.js +20 -0
  38. package/dist/es2019/quick-insert/assets/one-column-layout.js +103 -0
  39. package/dist/es2019/quick-insert/assets/three-column-layout.js +144 -0
  40. package/dist/es2019/quick-insert/assets/two-column-layout.js +122 -0
  41. package/dist/es2019/quick-insert/index.js +1 -1
  42. package/dist/es2019/ui/DropList/index.js +1 -1
  43. package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -0
  44. package/dist/esm/card/LinkToolbarButtonGroup.js +8 -4
  45. package/dist/esm/card/link-toolbar-button-group-options.js +15 -5
  46. package/dist/esm/card/ui/assets/card.js +1 -0
  47. package/dist/esm/card/ui/assets/embed.js +1 -0
  48. package/dist/esm/card/ui/assets/inline.js +1 -0
  49. package/dist/esm/card/ui/assets/url.js +1 -0
  50. package/dist/esm/media-single/CommentBadge.js +6 -2
  51. package/dist/esm/media-single/CommentBadgeNext.js +6 -2
  52. package/dist/esm/messages/insert-block.js +20 -0
  53. package/dist/esm/monitoring/error.js +1 -1
  54. package/dist/esm/provider-factory/provider-factory.js +1 -0
  55. package/dist/esm/provider-factory/with-providers.js +29 -7
  56. package/dist/esm/quick-insert/assets/five-column-layout.js +166 -0
  57. package/dist/esm/quick-insert/assets/four-column-layout.js +151 -0
  58. package/dist/esm/quick-insert/assets/index.js +50 -0
  59. package/dist/esm/quick-insert/assets/one-column-layout.js +102 -0
  60. package/dist/esm/quick-insert/assets/three-column-layout.js +143 -0
  61. package/dist/esm/quick-insert/assets/two-column-layout.js +121 -0
  62. package/dist/esm/quick-insert/index.js +1 -1
  63. package/dist/esm/ui/DropList/index.js +1 -1
  64. package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -0
  65. package/dist/types/card/LinkToolbarButtonGroup.d.ts +3 -2
  66. package/dist/types/card/cardOptions.d.ts +74 -0
  67. package/dist/types/card/ui/assets/card.d.ts +2 -2
  68. package/dist/types/card/ui/assets/embed.d.ts +2 -2
  69. package/dist/types/card/ui/assets/inline.d.ts +2 -2
  70. package/dist/types/card/ui/assets/url.d.ts +2 -2
  71. package/dist/types/messages/insert-block.d.ts +20 -0
  72. package/dist/types/provider-factory/provider-factory.d.ts +1 -1
  73. package/dist/types/provider-factory/quick-insert-provider.d.ts +1 -1
  74. package/dist/types/provider-factory/with-providers.d.ts +6 -3
  75. package/dist/types/quick-insert/assets/five-column-layout.d.ts +2 -0
  76. package/dist/types/quick-insert/assets/four-column-layout.d.ts +2 -0
  77. package/dist/types/quick-insert/assets/index.d.ts +5 -0
  78. package/dist/types/quick-insert/assets/one-column-layout.d.ts +2 -0
  79. package/dist/types/quick-insert/assets/three-column-layout.d.ts +2 -0
  80. package/dist/types/quick-insert/assets/two-column-layout.d.ts +2 -0
  81. package/dist/types/quick-insert/index.d.ts +1 -1
  82. package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +3 -2
  83. package/dist/types-ts4.5/card/cardOptions.d.ts +74 -0
  84. package/dist/types-ts4.5/card/ui/assets/card.d.ts +2 -2
  85. package/dist/types-ts4.5/card/ui/assets/embed.d.ts +2 -2
  86. package/dist/types-ts4.5/card/ui/assets/inline.d.ts +2 -2
  87. package/dist/types-ts4.5/card/ui/assets/url.d.ts +2 -2
  88. package/dist/types-ts4.5/messages/insert-block.d.ts +20 -0
  89. package/dist/types-ts4.5/provider-factory/provider-factory.d.ts +1 -1
  90. package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +1 -1
  91. package/dist/types-ts4.5/provider-factory/with-providers.d.ts +6 -3
  92. package/dist/types-ts4.5/quick-insert/assets/five-column-layout.d.ts +2 -0
  93. package/dist/types-ts4.5/quick-insert/assets/four-column-layout.d.ts +2 -0
  94. package/dist/types-ts4.5/quick-insert/assets/index.d.ts +5 -0
  95. package/dist/types-ts4.5/quick-insert/assets/one-column-layout.d.ts +2 -0
  96. package/dist/types-ts4.5/quick-insert/assets/three-column-layout.d.ts +2 -0
  97. package/dist/types-ts4.5/quick-insert/assets/two-column-layout.d.ts +2 -0
  98. package/dist/types-ts4.5/quick-insert/index.d.ts +1 -1
  99. package/package.json +5 -5
@@ -0,0 +1,144 @@
1
+ import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
3
+ export default function ThreeColumnLayoutIcon() {
4
+ const {
5
+ iconThemed
6
+ } = useIconThemed();
7
+ return /*#__PURE__*/React.createElement("svg", {
8
+ focusable: "false",
9
+ "aria-hidden": true,
10
+ width: "40",
11
+ height: "40",
12
+ viewBox: "0 0 40 40",
13
+ fill: "none",
14
+ xmlns: "http://www.w3.org/2000/svg"
15
+ }, /*#__PURE__*/React.createElement("rect", {
16
+ width: "40",
17
+ height: "40",
18
+ fill: iconThemed({
19
+ light: '#FFF',
20
+ dark: '#161A1D'
21
+ })
22
+ }), /*#__PURE__*/React.createElement("g", {
23
+ clipPath: "url(#clip0_5808_6858)"
24
+ }, /*#__PURE__*/React.createElement("rect", {
25
+ width: "40",
26
+ height: "40",
27
+ rx: "3",
28
+ fill: iconThemed({
29
+ light: '#FFF',
30
+ dark: '#161A1D'
31
+ })
32
+ }), /*#__PURE__*/React.createElement("rect", {
33
+ width: "40",
34
+ height: "40",
35
+ rx: "3",
36
+ fill: iconThemed({
37
+ light: '#FFF',
38
+ dark: '#161A1D'
39
+ })
40
+ }), /*#__PURE__*/React.createElement("rect", {
41
+ x: "0.5",
42
+ y: "0.5",
43
+ width: "39",
44
+ height: "39",
45
+ rx: "2.5",
46
+ stroke: "var(--ds-border, #091E42)",
47
+ strokeOpacity: "0.14"
48
+ })), /*#__PURE__*/React.createElement("rect", {
49
+ x: "6",
50
+ y: "6",
51
+ width: "28",
52
+ height: "1",
53
+ rx: "0.5",
54
+ fill: iconThemed({
55
+ light: '#A5ADBA',
56
+ dark: '#738496'
57
+ })
58
+ }), /*#__PURE__*/React.createElement("rect", {
59
+ x: "6",
60
+ y: "10",
61
+ width: "28",
62
+ height: "1",
63
+ rx: "0.5",
64
+ fill: iconThemed({
65
+ light: '#FFF',
66
+ dark: '#161A1D'
67
+ })
68
+ }), /*#__PURE__*/React.createElement("rect", {
69
+ x: "6",
70
+ y: "29",
71
+ width: "28",
72
+ height: "1",
73
+ rx: "0.5",
74
+ fill: iconThemed({
75
+ light: '#A5ADBA',
76
+ dark: '#738496'
77
+ })
78
+ }), /*#__PURE__*/React.createElement("rect", {
79
+ x: "6",
80
+ y: "33",
81
+ width: "16",
82
+ height: "1",
83
+ rx: "0.5",
84
+ fill: iconThemed({
85
+ light: '#A5ADBA',
86
+ dark: '#738496'
87
+ })
88
+ }), /*#__PURE__*/React.createElement("rect", {
89
+ x: "6.25",
90
+ y: "14.25",
91
+ width: "7.5",
92
+ height: "11.5",
93
+ rx: "0.75",
94
+ fill: iconThemed({
95
+ light: '#DEEBFF',
96
+ dark: '#09326C'
97
+ }),
98
+ stroke: iconThemed({
99
+ light: '#4C9AFF',
100
+ dark: '#0C66E4'
101
+ }),
102
+ strokeWidth: "0.5"
103
+ }), /*#__PURE__*/React.createElement("rect", {
104
+ x: "16.25",
105
+ y: "14.25",
106
+ width: "7.5",
107
+ height: "11.5",
108
+ rx: "0.75",
109
+ fill: iconThemed({
110
+ light: '#DEEBFF',
111
+ dark: '#09326C'
112
+ }),
113
+ stroke: iconThemed({
114
+ light: '#4C9AFF',
115
+ dark: '#0C66E4'
116
+ }),
117
+ strokeWidth: "0.5"
118
+ }), /*#__PURE__*/React.createElement("rect", {
119
+ x: "26.25",
120
+ y: "14.25",
121
+ width: "7.5",
122
+ height: "11.5",
123
+ rx: "0.75",
124
+ fill: iconThemed({
125
+ light: '#DEEBFF',
126
+ dark: '#09326C'
127
+ }),
128
+ stroke: iconThemed({
129
+ light: '#4C9AFF',
130
+ dark: '#0C66E4'
131
+ }),
132
+ strokeWidth: "0.5"
133
+ }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
134
+ id: "clip0_5808_6858"
135
+ }, /*#__PURE__*/React.createElement("rect", {
136
+ width: "40",
137
+ height: "40",
138
+ rx: "3",
139
+ fill: iconThemed({
140
+ light: '#FFF',
141
+ dark: '#161A1D'
142
+ })
143
+ }))));
144
+ }
@@ -0,0 +1,122 @@
1
+ import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
3
+ export default function TwoColumnLayoutIcon() {
4
+ const {
5
+ iconThemed
6
+ } = useIconThemed();
7
+ return /*#__PURE__*/React.createElement("svg", {
8
+ focusable: "false",
9
+ "aria-hidden": true,
10
+ width: "40",
11
+ height: "40",
12
+ viewBox: "0 0 40 40",
13
+ fill: "none",
14
+ xmlns: "http://www.w3.org/2000/svg"
15
+ }, /*#__PURE__*/React.createElement("g", {
16
+ clipPath: "url(#clip0_5808_8970)"
17
+ }, /*#__PURE__*/React.createElement("rect", {
18
+ width: "40",
19
+ height: "40",
20
+ rx: "3",
21
+ fill: iconThemed({
22
+ light: '#FFF',
23
+ dark: '#161A1D'
24
+ })
25
+ }), /*#__PURE__*/React.createElement("rect", {
26
+ width: "40",
27
+ height: "40",
28
+ rx: "3",
29
+ fill: iconThemed({
30
+ light: '#FFF',
31
+ dark: '#161A1D'
32
+ })
33
+ }), /*#__PURE__*/React.createElement("rect", {
34
+ x: "0.5",
35
+ y: "0.5",
36
+ width: "39",
37
+ height: "39",
38
+ rx: "2.5",
39
+ stroke: "var(--ds-border, #091E42)",
40
+ strokeOpacity: "0.14"
41
+ })), /*#__PURE__*/React.createElement("rect", {
42
+ x: "6",
43
+ y: "6",
44
+ width: "28",
45
+ height: "1",
46
+ rx: "0.5",
47
+ fill: iconThemed({
48
+ light: '#a5adba',
49
+ dark: '#8696A7'
50
+ })
51
+ }), /*#__PURE__*/React.createElement("rect", {
52
+ x: "6",
53
+ y: "10",
54
+ width: "28",
55
+ height: "1",
56
+ rx: "0.5",
57
+ fill: iconThemed({
58
+ light: '#a5adba',
59
+ dark: '#8696A7'
60
+ })
61
+ }), /*#__PURE__*/React.createElement("rect", {
62
+ x: "6",
63
+ y: "29",
64
+ width: "28",
65
+ height: "1",
66
+ rx: "0.5",
67
+ fill: iconThemed({
68
+ light: '#a5adba',
69
+ dark: '#8696A7'
70
+ })
71
+ }), /*#__PURE__*/React.createElement("rect", {
72
+ x: "6",
73
+ y: "33",
74
+ width: "16",
75
+ height: "1",
76
+ rx: "0.5",
77
+ fill: iconThemed({
78
+ light: '#a5adba',
79
+ dark: '#8696A7'
80
+ })
81
+ }), /*#__PURE__*/React.createElement("rect", {
82
+ x: "6.25",
83
+ y: "14.25",
84
+ width: "12.5",
85
+ height: "11.5",
86
+ rx: "0.75",
87
+ fill: iconThemed({
88
+ light: '#DEEBFF',
89
+ dark: '#09326C'
90
+ }),
91
+ stroke: iconThemed({
92
+ light: '#4C9AFF',
93
+ dark: '#0C66E4'
94
+ }),
95
+ strokeWidth: "0.5"
96
+ }), /*#__PURE__*/React.createElement("rect", {
97
+ x: "21.25",
98
+ y: "14.25",
99
+ width: "12.5",
100
+ height: "11.5",
101
+ rx: "0.75",
102
+ fill: iconThemed({
103
+ light: '#DEEBFF',
104
+ dark: '#09326C'
105
+ }),
106
+ stroke: iconThemed({
107
+ light: '#4C9AFF',
108
+ dark: '#0C66E4'
109
+ }),
110
+ strokeWidth: "0.5"
111
+ }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
112
+ id: "clip0_5808_8970"
113
+ }, /*#__PURE__*/React.createElement("rect", {
114
+ width: "40",
115
+ height: "40",
116
+ rx: "3",
117
+ fill: iconThemed({
118
+ light: '#FFF',
119
+ dark: '#161A1D'
120
+ })
121
+ }))));
122
+ }
@@ -1,3 +1,3 @@
1
- export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconDatasourceConfluenceSearch, IconLoom } from './assets';
1
+ export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconDatasourceConfluenceSearch, IconLoom, IconOneColumnLayout, IconTwoColumnLayout, IconThreeColumnLayout, IconFourColumnLayout, IconFiveColumnLayout } from './assets';
2
2
  export { memoProcessQuickInsertItems, find } from './utils';
3
3
  export { messages } from './messages';
@@ -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 = "93.5.2";
16
+ const packageVersion = "93.6.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -211,6 +211,7 @@ const ColorPickerButton = props => {
211
211
  }
212
212
  }
213
213
  // TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
214
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
214
215
  ,
215
216
  css: buttonStyle,
216
217
  iconAfter: jsx(Box, {
@@ -45,7 +45,9 @@ export var LinkToolbarButtonGroup = function LinkToolbarButtonGroup(_ref2) {
45
45
  testId = _ref3.testId,
46
46
  tooltipContent = _ref3.tooltipContent,
47
47
  title = _ref3.title,
48
- Icon = _ref3.icon;
48
+ icon = _ref3.icon,
49
+ iconFallback = _ref3.iconFallback;
50
+ var ButtonIcon = icon;
49
51
  return jsx(DisallowedWrapper, {
50
52
  css: disabled ? disallowedWrapperStyle : defaultWrapperStyle,
51
53
  key: testId,
@@ -53,9 +55,11 @@ export var LinkToolbarButtonGroup = function LinkToolbarButtonGroup(_ref2) {
53
55
  }, jsx(Button, {
54
56
  css: disabled ? buttonStyleNoneEvent : buttonStyle,
55
57
  title: title,
56
- icon: jsx(Icon, {
57
- size: "medium",
58
- label: title
58
+ icon: jsx(ButtonIcon, {
59
+ label: title,
60
+ spacing: "spacious",
61
+ LEGACY_size: "medium",
62
+ LEGACY_fallbackIcon: iconFallback
59
63
  }),
60
64
  selected: selected,
61
65
  onClick: onClick,
@@ -1,3 +1,7 @@
1
+ import MinusIcon from '@atlaskit/icon/core/minus';
2
+ import SmartLinkCardIcon from '@atlaskit/icon/core/smart-link-card';
3
+ import SmartLinkEmbedIcon from '@atlaskit/icon/core/smart-link-embed';
4
+ import SmartLinkInlineIcon from '@atlaskit/icon/core/smart-link-inline';
1
5
  import { cardMessages as messages } from '../messages';
2
6
  import { IconCard } from './ui/assets/card';
3
7
  import { IconEmbed } from './ui/assets/embed';
@@ -6,19 +10,23 @@ import { IconUrl } from './ui/assets/url';
6
10
  var appearancePropsMap = {
7
11
  url: {
8
12
  title: messages.urlTitle,
9
- icon: IconUrl
13
+ icon: MinusIcon,
14
+ iconFallback: IconUrl
10
15
  },
11
16
  inline: {
12
17
  title: messages.inlineTitle,
13
- icon: IconInline
18
+ icon: SmartLinkInlineIcon,
19
+ iconFallback: IconInline
14
20
  },
15
21
  block: {
16
22
  title: messages.blockTitle,
17
- icon: IconCard
23
+ icon: SmartLinkCardIcon,
24
+ iconFallback: IconCard
18
25
  },
19
26
  embed: {
20
27
  title: messages.embedTitle,
21
- icon: IconEmbed
28
+ icon: SmartLinkEmbedIcon,
29
+ iconFallback: IconEmbed
22
30
  }
23
31
  };
24
32
  export var getButtonGroupOption = function getButtonGroupOption(intl, dispatchCommand, _ref) {
@@ -30,10 +38,12 @@ export var getButtonGroupOption = function getButtonGroupOption(intl, dispatchCo
30
38
  tooltip = _ref.tooltip;
31
39
  var _appearancePropsMap = appearancePropsMap[appearance !== null && appearance !== void 0 ? appearance : 'url'],
32
40
  title = _appearancePropsMap.title,
33
- icon = _appearancePropsMap.icon;
41
+ icon = _appearancePropsMap.icon,
42
+ iconFallback = _appearancePropsMap.iconFallback;
34
43
  return {
35
44
  title: intl.formatMessage(title),
36
45
  icon: icon,
46
+ iconFallback: iconFallback,
37
47
  onClick: function onClick() {
38
48
  return dispatchCommand(_onClick);
39
49
  },
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /* eslint-disable @atlaskit/design-system/no-custom-icons */
2
3
  import React from 'react';
3
4
  import Icon from '@atlaskit/icon';
4
5
  var IconCardGlyph = function IconCardGlyph(props) {
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /* eslint-disable @atlaskit/design-system/no-custom-icons */
2
3
  import React from 'react';
3
4
  import Icon from '@atlaskit/icon';
4
5
  var IconEmbedGlyph = function IconEmbedGlyph(props) {
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /* eslint-disable @atlaskit/design-system/no-custom-icons */
2
3
  import React from 'react';
3
4
  import Icon from '@atlaskit/icon';
4
5
  var IconInlineGlyph = function IconInlineGlyph(props) {
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /* eslint-disable @atlaskit/design-system/no-custom-icons */
2
3
  import React from 'react';
3
4
  import Icon from '@atlaskit/icon';
4
5
  var IconUrlGlyph = function IconUrlGlyph(props) {
@@ -10,7 +10,8 @@ import { css, jsx } from '@emotion/react';
10
10
  import debounce from 'lodash/debounce';
11
11
  import CustomThemeButton from '@atlaskit/button/custom-theme-button';
12
12
  import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
13
- import CommentIcon from '@atlaskit/icon/glyph/comment';
13
+ import CommentIcon from '@atlaskit/icon/core/comment';
14
+ import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
14
15
  import Tooltip from '@atlaskit/tooltip';
15
16
  import { commentMessages as messages } from '../media';
16
17
  var commentBadgeWrapper = css({
@@ -107,7 +108,10 @@ export var CommentBadge = /*#__PURE__*/forwardRef(function (_ref, ref) {
107
108
  onMouseLeave: onMouseLeave,
108
109
  iconAfter: jsx(CommentIcon, {
109
110
  label: title,
110
- size: badgeSize
111
+ spacing: "spacious",
112
+ color: "currentColor",
113
+ LEGACY_size: badgeSize,
114
+ LEGACY_fallbackIcon: LegacyCommentIcon
111
115
  })
112
116
  })));
113
117
  });
@@ -1,6 +1,7 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { useIntl } from 'react-intl-next';
3
- import CommentIcon from '@atlaskit/icon/glyph/comment';
3
+ import CommentIcon from '@atlaskit/icon/core/comment';
4
+ import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
4
5
  import { Pressable, xcss } from '@atlaskit/primitives';
5
6
  import Tooltip from '@atlaskit/tooltip';
6
7
  import { commentMessages as messages } from '../media';
@@ -46,6 +47,9 @@ export var CommentBadgeNext = function CommentBadgeNext(_ref) {
46
47
  backgroundColor: colourToken
47
48
  }, /*#__PURE__*/React.createElement(CommentIcon, {
48
49
  label: title,
49
- size: badgeSize
50
+ spacing: "spacious",
51
+ color: "currentColor",
52
+ LEGACY_size: badgeSize,
53
+ LEGACY_fallbackIcon: LegacyCommentIcon
50
54
  })));
51
55
  };
@@ -165,6 +165,26 @@ export var toolbarInsertBlockMessages = defineMessages({
165
165
  defaultMessage: 'Layouts',
166
166
  description: 'Create a multi column section or layout'
167
167
  },
168
+ twoColumns: {
169
+ id: 'fabric.editor.twoColumns',
170
+ defaultMessage: '2 columns layout',
171
+ description: 'Create a section or layout with two columns'
172
+ },
173
+ threeColumns: {
174
+ id: 'fabric.editor.threeColumns',
175
+ defaultMessage: '3 columns layout',
176
+ description: 'Create a section or layout with three columns'
177
+ },
178
+ fourColumns: {
179
+ id: 'fabric.editor.fourColumns',
180
+ defaultMessage: '4 columns layout',
181
+ description: 'Create a section or layout with four columns'
182
+ },
183
+ fiveColumns: {
184
+ id: 'fabric.editor.fiveColumns',
185
+ defaultMessage: '5 columns layout',
186
+ description: 'Create a section or layout with five columns'
187
+ },
168
188
  columnsDescription: {
169
189
  id: 'fabric.editor.columns.description',
170
190
  defaultMessage: 'Structure your page using sections',
@@ -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 = "93.5.2";
10
+ var packageVersion = "93.6.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -51,6 +51,7 @@ var ProviderFactory = /*#__PURE__*/function () {
51
51
  if (provider) {
52
52
  handler(name, provider);
53
53
  }
54
+ return provider;
54
55
  }
55
56
  }, {
56
57
  key: "unsubscribe",
@@ -9,7 +9,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
9
9
  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; }
10
10
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
11
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
+ /* eslint-disable @repo/internal/react/no-class-components */
12
13
  import { PureComponent } from 'react';
14
+ import { fg } from '@atlaskit/platform-feature-flags';
13
15
  export var WithProviders = /*#__PURE__*/function (_PureComponent) {
14
16
  _inherits(WithProviders, _PureComponent);
15
17
  var _super = _createSuper(WithProviders);
@@ -17,6 +19,13 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
17
19
  var _this;
18
20
  _classCallCheck(this, WithProviders);
19
21
  _this = _super.call(this, props);
22
+ _defineProperty(_assertThisInitialized(_this), "mounted", false);
23
+ _defineProperty(_assertThisInitialized(_this), "handleProviderIfMounted", function (name, provider) {
24
+ if (!_this.mounted) {
25
+ return;
26
+ }
27
+ _this.handleProvider(name, provider);
28
+ });
20
29
  _defineProperty(_assertThisInitialized(_this), "handleProvider", function (name, provider) {
21
30
  _this.setState(function (_ref) {
22
31
  var providers = _ref.providers;
@@ -25,9 +34,15 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
25
34
  };
26
35
  });
27
36
  });
37
+ _this.mounted = false;
28
38
  var _providers = {};
29
39
  _this.props.providers.forEach(function (name) {
30
- _providers[name] = undefined;
40
+ if (fg('platform_editor_react18_phase2')) {
41
+ var providerPromise = props.providerFactory.subscribe(name, _this.handleProviderIfMounted);
42
+ _providers[name] = providerPromise;
43
+ } else {
44
+ _providers[name] = undefined;
45
+ }
31
46
  });
32
47
  _this.state = {
33
48
  providers: _providers
@@ -35,15 +50,22 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
35
50
  return _this;
36
51
  }
37
52
  _createClass(WithProviders, [{
53
+ key: "componentDidMount",
54
+ value: function componentDidMount() {
55
+ this.mounted = true;
56
+ }
57
+ }, {
38
58
  key: "UNSAFE_componentWillMount",
39
59
  value: function UNSAFE_componentWillMount() {
40
60
  var _this2 = this;
41
- var _this$props = this.props,
42
- providers = _this$props.providers,
43
- providerFactory = _this$props.providerFactory;
44
- providers.forEach(function (name) {
45
- providerFactory.subscribe(name, _this2.handleProvider);
46
- });
61
+ if (!fg('platform_editor_react18_phase2')) {
62
+ var _this$props = this.props,
63
+ providers = _this$props.providers,
64
+ providerFactory = _this$props.providerFactory;
65
+ providers.forEach(function (name) {
66
+ providerFactory.subscribe(name, _this2.handleProvider);
67
+ });
68
+ }
47
69
  }
48
70
  }, {
49
71
  key: "componentWillUnmount",