@atlaskit/editor-common 110.18.6 → 110.18.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.18.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8b3772cdf2d64`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8b3772cdf2d64) -
8
+ [ux] Updates the width of editor's link picker to be narrower.
9
+ - Updated dependencies
10
+
11
+ ## 110.18.7
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 110.18.6
4
18
 
5
19
  ### Patch Changes
@@ -883,6 +883,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
883
883
  // as the Aria design pattern for combobox does not work in this case
884
884
  // for details: https://a11y-internal.atlassian.net/browse/AK-740
885
885
  var screenReaderText = browser.safari && this.getScreenReaderText();
886
+ var containerWidth = (0, _platformFeatureFlags.fg)('platform_editor_link_picker_width_fix') ? _ToolbarComponents.narrowContainerWidth : !!activityProvider && _ToolbarComponents.containerWithProvider;
886
887
  return (0, _react2.jsx)("div", {
887
888
  "aria-label": "Hyperlink Edit"
888
889
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -891,7 +892,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
891
892
  "data-testid": "hyperlink-add-toolbar"
892
893
  }, (0, _react2.jsx)("div", {
893
894
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
894
- css: [_ToolbarComponents.container, !!activityProvider && _ToolbarComponents.containerWithProvider, containerPadding],
895
+ css: [_ToolbarComponents.container, containerWidth, containerPadding],
895
896
  ref: this.wrapperRef
896
897
  }, (0, _react2.jsx)("label", {
897
898
  htmlFor: linkSearchInputId,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.inputWrapper = exports.containerWithProvider = exports.container = void 0;
6
+ exports.narrowContainerWidth = exports.inputWrapper = exports.containerWithProvider = exports.container = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _ui = require("../../ui");
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -33,4 +33,10 @@ var container = exports.container = (0, _react.css)({
33
33
  var containerWithProvider = exports.containerWithProvider = (0, _react.css)({
34
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
35
35
  width: "".concat(_ui.RECENT_SEARCH_WIDTH_IN_PX, "px")
36
+ });
37
+
38
+ // Link picker in Jira will be 324px = 292 + 2*8 + 2*8 (8px are side paddings on the parents)
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
40
+ var narrowContainerWidth = exports.narrowContainerWidth = (0, _react.css)({
41
+ width: '292px'
36
42
  });
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.18.5";
19
+ var packageVersion = "110.18.7";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "110.18.5";
27
+ var packageVersion = "110.18.7";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -25,7 +25,7 @@ import { Announcer, PanelTextInput } from '../../../ui';
25
25
  import { normalizeUrl } from '../../../utils';
26
26
  import { browser as browserLegacy, getBrowserInfo } from '../../../utils/browser';
27
27
  import LinkSearchList, { LinkSearchListNext } from '../../LinkSearch/LinkSearchList';
28
- import { container, containerWithProvider, inputWrapper } from '../../LinkSearch/ToolbarComponents';
28
+ import { container, containerWithProvider, narrowContainerWidth, inputWrapper } from '../../LinkSearch/ToolbarComponents';
29
29
  import { transformTimeStamp } from '../../LinkSearch/transformTimeStamp';
30
30
  import { filterUniqueItems, mapContentTypeToIcon, sha1, wordCount } from './utils';
31
31
 
@@ -735,6 +735,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
735
735
  // as the Aria design pattern for combobox does not work in this case
736
736
  // for details: https://a11y-internal.atlassian.net/browse/AK-740
737
737
  const screenReaderText = browser.safari && this.getScreenReaderText();
738
+ const containerWidth = fg('platform_editor_link_picker_width_fix') ? narrowContainerWidth : !!activityProvider && containerWithProvider;
738
739
  return jsx("div", {
739
740
  "aria-label": "Hyperlink Edit"
740
741
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -743,7 +744,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
743
744
  "data-testid": "hyperlink-add-toolbar"
744
745
  }, jsx("div", {
745
746
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
746
- css: [container, !!activityProvider && containerWithProvider, containerPadding],
747
+ css: [container, containerWidth, containerPadding],
747
748
  ref: this.wrapperRef
748
749
  }, jsx("label", {
749
750
  htmlFor: linkSearchInputId,
@@ -27,4 +27,10 @@ export const container = css({
27
27
  export const containerWithProvider = css({
28
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
29
  width: `${RECENT_SEARCH_WIDTH_IN_PX}px`
30
+ });
31
+
32
+ // Link picker in Jira will be 324px = 292 + 2*8 + 2*8 (8px are side paddings on the parents)
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
34
+ export const narrowContainerWidth = css({
35
+ width: '292px'
30
36
  });
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "110.18.5";
4
+ const packageVersion = "110.18.7";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "110.18.5";
17
+ const packageVersion = "110.18.7";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -36,7 +36,7 @@ import { Announcer, PanelTextInput } from '../../../ui';
36
36
  import { normalizeUrl } from '../../../utils';
37
37
  import { browser as browserLegacy, getBrowserInfo } from '../../../utils/browser';
38
38
  import LinkSearchList, { LinkSearchListNext } from '../../LinkSearch/LinkSearchList';
39
- import { container, containerWithProvider, inputWrapper } from '../../LinkSearch/ToolbarComponents';
39
+ import { container, containerWithProvider, narrowContainerWidth, inputWrapper } from '../../LinkSearch/ToolbarComponents';
40
40
  import { transformTimeStamp } from '../../LinkSearch/transformTimeStamp';
41
41
  import { filterUniqueItems, mapContentTypeToIcon, sha1, wordCount } from './utils';
42
42
 
@@ -879,6 +879,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
879
879
  // as the Aria design pattern for combobox does not work in this case
880
880
  // for details: https://a11y-internal.atlassian.net/browse/AK-740
881
881
  var screenReaderText = browser.safari && this.getScreenReaderText();
882
+ var containerWidth = fg('platform_editor_link_picker_width_fix') ? narrowContainerWidth : !!activityProvider && containerWithProvider;
882
883
  return jsx("div", {
883
884
  "aria-label": "Hyperlink Edit"
884
885
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -887,7 +888,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
887
888
  "data-testid": "hyperlink-add-toolbar"
888
889
  }, jsx("div", {
889
890
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
890
- css: [container, !!activityProvider && containerWithProvider, containerPadding],
891
+ css: [container, containerWidth, containerPadding],
891
892
  ref: this.wrapperRef
892
893
  }, jsx("label", {
893
894
  htmlFor: linkSearchInputId,
@@ -27,4 +27,10 @@ export var container = css({
27
27
  export var containerWithProvider = css({
28
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
29
  width: "".concat(RECENT_SEARCH_WIDTH_IN_PX, "px")
30
+ });
31
+
32
+ // Link picker in Jira will be 324px = 292 + 2*8 + 2*8 (8px are side paddings on the parents)
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
34
+ export var narrowContainerWidth = css({
35
+ width: '292px'
30
36
  });
@@ -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 = "110.18.5";
10
+ var packageVersion = "110.18.7";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "110.18.5";
24
+ var packageVersion = "110.18.7";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -2,3 +2,4 @@ import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const inputWrapper: SerializedStyles;
3
3
  export declare const container: SerializedStyles;
4
4
  export declare const containerWithProvider: SerializedStyles;
5
+ export declare const narrowContainerWidth: SerializedStyles;
@@ -2,3 +2,4 @@ import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const inputWrapper: SerializedStyles;
3
3
  export declare const container: SerializedStyles;
4
4
  export declare const containerWithProvider: SerializedStyles;
5
+ export declare const narrowContainerWidth: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.18.6",
3
+ "version": "110.18.8",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/analytics-next": "^11.1.0",
39
39
  "@atlaskit/atlassian-context": "^0.6.0",
40
40
  "@atlaskit/button": "^23.5.0",
41
- "@atlaskit/code": "^17.2.0",
41
+ "@atlaskit/code": "^17.3.0",
42
42
  "@atlaskit/codemod-utils": "^4.2.0",
43
43
  "@atlaskit/css": "^0.15.0",
44
44
  "@atlaskit/custom-steps": "^0.16.0",
@@ -68,9 +68,9 @@
68
68
  "@atlaskit/menu": "^8.4.0",
69
69
  "@atlaskit/onboarding": "^14.4.0",
70
70
  "@atlaskit/platform-feature-flags": "^1.1.0",
71
- "@atlaskit/platform-feature-flags-react": "^0.3.0",
71
+ "@atlaskit/platform-feature-flags-react": "^0.4.0",
72
72
  "@atlaskit/popper": "^7.1.0",
73
- "@atlaskit/primitives": "^16.0.0",
73
+ "@atlaskit/primitives": "^16.1.0",
74
74
  "@atlaskit/profilecard": "^24.20.0",
75
75
  "@atlaskit/prosemirror-history": "^0.2.0",
76
76
  "@atlaskit/react-ufo": "^4.12.0",
@@ -82,7 +82,7 @@
82
82
  "@atlaskit/task-decision": "^19.2.0",
83
83
  "@atlaskit/textfield": "^8.0.0",
84
84
  "@atlaskit/theme": "^21.0.0",
85
- "@atlaskit/tmp-editor-statsig": "^13.19.0",
85
+ "@atlaskit/tmp-editor-statsig": "^13.20.0",
86
86
  "@atlaskit/tokens": "^7.0.0",
87
87
  "@atlaskit/tooltip": "^20.6.0",
88
88
  "@atlaskit/ufo": "^0.4.0",
@@ -237,6 +237,9 @@
237
237
  "platform_editor_a11y_insert_link_item_focus": {
238
238
  "type": "boolean"
239
239
  },
240
+ "platform_editor_link_picker_width_fix": {
241
+ "type": "boolean"
242
+ },
240
243
  "platform_editor_toolbar_aifc_patch_7": {
241
244
  "type": "boolean"
242
245
  },
@@ -1,195 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.townsquare.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../townsquare/tsDist/@atlaskit__editor-common/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../activity-provider/afm-townsquare/tsconfig.json"
28
- },
29
- {
30
- "path": "../../adf-utils/afm-townsquare/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../analytics/analytics-listeners/afm-townsquare/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../analytics/analytics-namespaced-context/afm-townsquare/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../analytics/analytics-next/afm-townsquare/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../uip/atlassian-context/afm-townsquare/tsconfig.json"
43
- },
44
- {
45
- "path": "../../../design-system/button/afm-townsquare/tsconfig.json"
46
- },
47
- {
48
- "path": "../../../design-system/code/afm-townsquare/tsconfig.json"
49
- },
50
- {
51
- "path": "../../../monorepo-tooling/codemod-utils/afm-townsquare/tsconfig.json"
52
- },
53
- {
54
- "path": "../../../design-system/css/afm-townsquare/tsconfig.json"
55
- },
56
- {
57
- "path": "../../custom-steps/afm-townsquare/tsconfig.json"
58
- },
59
- {
60
- "path": "../../../design-system/dropdown-menu/afm-townsquare/tsconfig.json"
61
- },
62
- {
63
- "path": "../../editor-json-transformer/afm-townsquare/tsconfig.json"
64
- },
65
- {
66
- "path": "../../editor-palette/afm-townsquare/tsconfig.json"
67
- },
68
- {
69
- "path": "../../editor-shared-styles/afm-townsquare/tsconfig.json"
70
- },
71
- {
72
- "path": "../../editor-tables/afm-townsquare/tsconfig.json"
73
- },
74
- {
75
- "path": "../../editor-toolbar/afm-townsquare/tsconfig.json"
76
- },
77
- {
78
- "path": "../../editor-toolbar-model/afm-townsquare/tsconfig.json"
79
- },
80
- {
81
- "path": "../../../elements/emoji/afm-townsquare/tsconfig.json"
82
- },
83
- {
84
- "path": "../../../design-system/icon/afm-townsquare/tsconfig.json"
85
- },
86
- {
87
- "path": "../../../design-system/icon-object/afm-townsquare/tsconfig.json"
88
- },
89
- {
90
- "path": "../../../design-system/link/afm-townsquare/tsconfig.json"
91
- },
92
- {
93
- "path": "../../../linking-platform/link-datasource/afm-townsquare/tsconfig.json"
94
- },
95
- {
96
- "path": "../../../linking-platform/link-picker/afm-townsquare/tsconfig.json"
97
- },
98
- {
99
- "path": "../../../media/media-card/afm-townsquare/tsconfig.json"
100
- },
101
- {
102
- "path": "../../../media/media-client/afm-townsquare/tsconfig.json"
103
- },
104
- {
105
- "path": "../../../media/media-client-react/afm-townsquare/tsconfig.json"
106
- },
107
- {
108
- "path": "../../../media/media-common/afm-townsquare/tsconfig.json"
109
- },
110
- {
111
- "path": "../../../media/media-file-preview/afm-townsquare/tsconfig.json"
112
- },
113
- {
114
- "path": "../../../media/media-picker/afm-townsquare/tsconfig.json"
115
- },
116
- {
117
- "path": "../../../media/media-ui/afm-townsquare/tsconfig.json"
118
- },
119
- {
120
- "path": "../../../media/media-viewer/afm-townsquare/tsconfig.json"
121
- },
122
- {
123
- "path": "../../../elements/mention/afm-townsquare/tsconfig.json"
124
- },
125
- {
126
- "path": "../../../design-system/menu/afm-townsquare/tsconfig.json"
127
- },
128
- {
129
- "path": "../../../design-system/onboarding/afm-townsquare/tsconfig.json"
130
- },
131
- {
132
- "path": "../../../platform/feature-flags/afm-townsquare/tsconfig.json"
133
- },
134
- {
135
- "path": "../../../platform/feature-flags-react/afm-townsquare/tsconfig.json"
136
- },
137
- {
138
- "path": "../../../design-system/popper/afm-townsquare/tsconfig.json"
139
- },
140
- {
141
- "path": "../../../design-system/primitives/afm-townsquare/tsconfig.json"
142
- },
143
- {
144
- "path": "../../../people-and-teams/profilecard/afm-townsquare/tsconfig.json"
145
- },
146
- {
147
- "path": "../../prosemirror-history/afm-townsquare/tsconfig.json"
148
- },
149
- {
150
- "path": "../../../react-ufo/atlaskit/afm-townsquare/tsconfig.json"
151
- },
152
- {
153
- "path": "../../../design-system/section-message/afm-townsquare/tsconfig.json"
154
- },
155
- {
156
- "path": "../../../linking-platform/smart-card/afm-townsquare/tsconfig.json"
157
- },
158
- {
159
- "path": "../../../smart-experiences/smart-user-picker/afm-townsquare/tsconfig.json"
160
- },
161
- {
162
- "path": "../../../design-system/spinner/afm-townsquare/tsconfig.json"
163
- },
164
- {
165
- "path": "../../../elements/status/afm-townsquare/tsconfig.json"
166
- },
167
- {
168
- "path": "../../../elements/task-decision/afm-townsquare/tsconfig.json"
169
- },
170
- {
171
- "path": "../../../design-system/textfield/afm-townsquare/tsconfig.json"
172
- },
173
- {
174
- "path": "../../../design-system/theme/afm-townsquare/tsconfig.json"
175
- },
176
- {
177
- "path": "../../tmp-editor-statsig/afm-townsquare/tsconfig.json"
178
- },
179
- {
180
- "path": "../../../design-system/tokens/afm-townsquare/tsconfig.json"
181
- },
182
- {
183
- "path": "../../../design-system/tooltip/afm-townsquare/tsconfig.json"
184
- },
185
- {
186
- "path": "../../../data/ufo-external/afm-townsquare/tsconfig.json"
187
- },
188
- {
189
- "path": "../../../design-system/width-detector/afm-townsquare/tsconfig.json"
190
- },
191
- {
192
- "path": "../../../media/media-core/afm-townsquare/tsconfig.json"
193
- }
194
- ]
195
- }