@atlaskit/editor-common 88.6.0 → 88.6.2
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 +18 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/analytics/fire-analytics-event.js +2 -2
- package/dist/cjs/element-browser/components/CategoryList.js +2 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/cjs/element-browser/components/ElementSearch.js +2 -2
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +4 -3
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -2
- package/dist/cjs/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.js +6 -6
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/panel.js +2 -2
- package/dist/cjs/ui/DropList/index.js +7 -5
- package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +2 -2
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +4 -3
- package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
- package/dist/es2019/analytics/fire-analytics-event.js +1 -1
- package/dist/es2019/element-browser/components/CategoryList.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +2 -1
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +1 -1
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +1 -1
- package/dist/es2019/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.js +2 -2
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/panel.js +2 -2
- package/dist/es2019/ui/DropList/index.js +4 -2
- package/dist/es2019/ui/WithCreateAnalyticsEvent/index.js +1 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +2 -1
- package/dist/es2019/ui-menu/ToolbarButton/index.js +1 -1
- package/dist/esm/analytics/fire-analytics-event.js +1 -1
- package/dist/esm/element-browser/components/CategoryList.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +1 -1
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +2 -1
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +1 -1
- package/dist/esm/link/ConfigureLinkOverlay/index.js +1 -1
- package/dist/esm/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.js +2 -2
- package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/panel.js +2 -2
- package/dist/esm/ui/DropList/index.js +4 -2
- package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +2 -1
- package/dist/esm/ui-menu/ToolbarButton/index.js +1 -1
- package/dist/types/analytics/fire-analytics-event.d.ts +1 -1
- package/dist/types/analytics/types/events.d.ts +1 -1
- package/dist/types/element-browser/components/ElementSearch.d.ts +1 -1
- package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +1 -1
- package/dist/types/link/ConfigureLinkOverlay/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/fire-analytics-event.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +1 -1
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +1 -1
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +1 -1
- package/package.json +3 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 88.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#136143](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136143)
|
|
8
|
+
[`851c2575d214e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/851c2575d214e) -
|
|
9
|
+
Use optimised entry-points for analytics packages to reduce bundle size.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 88.6.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#136078](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136078)
|
|
17
|
+
[`09414d7233497`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/09414d7233497) -
|
|
18
|
+
ED-24507 Switch nested dnd FG to experiment and include padding changes"
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 88.6.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -134,6 +134,9 @@
|
|
|
134
134
|
{
|
|
135
135
|
"path": "../../../design-system/theme/afm-post-office/tsconfig.json"
|
|
136
136
|
},
|
|
137
|
+
{
|
|
138
|
+
"path": "../../tmp-editor-statsig/afm-post-office/tsconfig.json"
|
|
139
|
+
},
|
|
137
140
|
{
|
|
138
141
|
"path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
|
|
139
142
|
},
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.fireAnalyticsEvent = exports.editorAnalyticsChannel = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _types = require("@atlaskit/analytics-listeners/types");
|
|
8
8
|
var _analyticsQueue = require("./analytics-queue");
|
|
9
|
-
var editorAnalyticsChannel = exports.editorAnalyticsChannel =
|
|
9
|
+
var editorAnalyticsChannel = exports.editorAnalyticsChannel = _types.FabricChannel.editor;
|
|
10
10
|
var fireAnalyticsEvent = exports.fireAnalyticsEvent = function fireAnalyticsEvent(createAnalyticsEvent) {
|
|
11
11
|
return function (_ref) {
|
|
12
12
|
var payload = _ref.payload,
|
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var
|
|
14
|
+
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
15
15
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
var _analytics = require("../../analytics");
|
|
@@ -191,7 +191,7 @@ var buttonWrapper = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
191
191
|
marginBottom: 0
|
|
192
192
|
}
|
|
193
193
|
}));
|
|
194
|
-
var MemoizedCategoryListWithAnalytics = /*#__PURE__*/(0, _react.memo)((0,
|
|
194
|
+
var MemoizedCategoryListWithAnalytics = /*#__PURE__*/(0, _react.memo)((0, _withAnalyticsContext.default)({
|
|
195
195
|
component: 'CategoryList'
|
|
196
196
|
})(CategoryList));
|
|
197
197
|
var _default = exports.default = MemoizedCategoryListWithAnalytics;
|
|
@@ -15,7 +15,7 @@ var _react2 = require("@emotion/react");
|
|
|
15
15
|
var _reactVirtualized = require("react-virtualized");
|
|
16
16
|
var _AutoSizer = require("react-virtualized/dist/commonjs/AutoSizer");
|
|
17
17
|
var _CellMeasurer = require("react-virtualized/dist/commonjs/CellMeasurer");
|
|
18
|
-
var
|
|
18
|
+
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
19
19
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
20
20
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
21
21
|
var _menu = require("@atlaskit/menu");
|
|
@@ -413,7 +413,7 @@ var itemIconStyle = (0, _react2.css)({
|
|
|
413
413
|
objectFit: 'cover'
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
|
-
var MemoizedElementListWithAnalytics = /*#__PURE__*/(0, _react.memo)((0,
|
|
416
|
+
var MemoizedElementListWithAnalytics = /*#__PURE__*/(0, _react.memo)((0, _withAnalyticsContext.default)({
|
|
417
417
|
component: 'ElementList'
|
|
418
418
|
})(ElementList));
|
|
419
419
|
var _default = exports.default = MemoizedElementListWithAnalytics;
|
|
@@ -10,7 +10,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
|
-
var
|
|
13
|
+
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
14
14
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
15
15
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
16
16
|
var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/search"));
|
|
@@ -181,7 +181,7 @@ var elementAfterInput = (0, _react2.css)({
|
|
|
181
181
|
height: _constants.SEARCH_ITEM_HEIGHT_WIDTH,
|
|
182
182
|
textAlign: 'center'
|
|
183
183
|
});
|
|
184
|
-
var MemoizedElementSearchWithAnalytics = /*#__PURE__*/(0, _react.memo)((0,
|
|
184
|
+
var MemoizedElementSearchWithAnalytics = /*#__PURE__*/(0, _react.memo)((0, _withAnalyticsContext.default)({
|
|
185
185
|
component: 'Searchbar'
|
|
186
186
|
})((0, _reactIntlNext.injectIntl)(ElementSearch)));
|
|
187
187
|
var _default = exports.default = MemoizedElementSearchWithAnalytics;
|
|
@@ -11,7 +11,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
|
-
var
|
|
14
|
+
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
15
|
+
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
15
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _analytics = require("../../analytics");
|
|
17
18
|
var _constants = require("../constants");
|
|
@@ -413,7 +414,7 @@ function DesktopBrowser(_ref2) {
|
|
|
413
414
|
setFocusedCategoryIndex: showCategories ? setFocusedCategoryIndex : undefined
|
|
414
415
|
})));
|
|
415
416
|
}
|
|
416
|
-
var MemoizedElementBrowser = /*#__PURE__*/(0, _react.memo)((0,
|
|
417
|
+
var MemoizedElementBrowser = /*#__PURE__*/(0, _react.memo)((0, _withAnalyticsContext.default)({
|
|
417
418
|
source: 'ElementBrowser'
|
|
418
|
-
})((0,
|
|
419
|
+
})((0, _withAnalyticsEvents.default)()(StatelessElementBrowser)));
|
|
419
420
|
var _default = exports.default = MemoizedElementBrowser;
|
|
@@ -11,7 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
|
-
var
|
|
14
|
+
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
15
15
|
var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
16
16
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
17
17
|
var _preferences = _interopRequireDefault(require("@atlaskit/icon/glyph/preferences"));
|
|
@@ -107,6 +107,6 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
107
107
|
testId: "".concat(testId, "-dropdown-item-configure")
|
|
108
108
|
}, configureLinkLabel)));
|
|
109
109
|
};
|
|
110
|
-
var _default = exports.default = (0,
|
|
110
|
+
var _default = exports.default = (0, _withAnalyticsContext.default)({
|
|
111
111
|
source: SMALL_LINK_TOOLBAR_ANALYTICS_SOURCE
|
|
112
112
|
})(Dropdown);
|
|
@@ -9,7 +9,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var
|
|
12
|
+
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
14
|
var _preferences = _interopRequireDefault(require("@atlaskit/icon/glyph/preferences"));
|
|
15
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -36,7 +36,7 @@ var buttonWrapperStyles = (0, _react2.css)({
|
|
|
36
36
|
borderRadius: "var(--ds-border-radius, 3px)"
|
|
37
37
|
});
|
|
38
38
|
var showDropdownThresholdPx = 50;
|
|
39
|
-
var OverlayButton = exports.OverlayButton = (0,
|
|
39
|
+
var OverlayButton = exports.OverlayButton = (0, _withAnalyticsContext.default)()(function (_ref) {
|
|
40
40
|
var _docNode$nodeSize;
|
|
41
41
|
var editorView = _ref.editorView,
|
|
42
42
|
_ref$testId = _ref.testId,
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useLinkOverlayAnalyticsEvents = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _types = require("@atlaskit/analytics-listeners/types");
|
|
9
|
+
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
10
10
|
var _analytics = require("../../analytics");
|
|
11
11
|
var useLinkOverlayAnalyticsEvents = exports.useLinkOverlayAnalyticsEvents = function useLinkOverlayAnalyticsEvents() {
|
|
12
|
-
var _useAnalyticsEvents = (0,
|
|
12
|
+
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
13
13
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
14
14
|
return (0, _react.useMemo)(function () {
|
|
15
15
|
return {
|
|
@@ -30,7 +30,7 @@ var useLinkOverlayAnalyticsEvents = exports.useLinkOverlayAnalyticsEvents = func
|
|
|
30
30
|
attributes: {
|
|
31
31
|
action: linkAction
|
|
32
32
|
}
|
|
33
|
-
}).fire(
|
|
33
|
+
}).fire(_types.FabricChannel.media);
|
|
34
34
|
},
|
|
35
35
|
/**
|
|
36
36
|
* When a user clicks on the dropdown for a short link, or when a user clicks on the configure button for a wide link.
|
|
@@ -40,7 +40,7 @@ var useLinkOverlayAnalyticsEvents = exports.useLinkOverlayAnalyticsEvents = func
|
|
|
40
40
|
action: _analytics.ACTION.CLICKED,
|
|
41
41
|
actionSubject: _analytics.ACTION_SUBJECT.LINK,
|
|
42
42
|
eventType: _analytics.EVENT_TYPE.UI
|
|
43
|
-
}).fire(
|
|
43
|
+
}).fire(_types.FabricChannel.media);
|
|
44
44
|
},
|
|
45
45
|
fireToolbarViewEvent: function fireToolbarViewEvent() {
|
|
46
46
|
createAnalyticsEvent({
|
|
@@ -51,7 +51,7 @@ var useLinkOverlayAnalyticsEvents = exports.useLinkOverlayAnalyticsEvents = func
|
|
|
51
51
|
attributes: {
|
|
52
52
|
linkType: 'smallLink'
|
|
53
53
|
}
|
|
54
|
-
}).fire(
|
|
54
|
+
}).fire(_types.FabricChannel.media);
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
}, [createAnalyticsEvent]);
|
|
@@ -9,7 +9,7 @@ exports.EditorLinkPicker = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _AnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/AnalyticsContext"));
|
|
13
13
|
var _lazy = require("@atlaskit/link-picker/lazy");
|
|
14
14
|
var _utils = require("../../../utils");
|
|
15
15
|
var _useEscapeClickaway = require("./useEscapeClickaway");
|
|
@@ -77,7 +77,7 @@ var EditorLinkPicker = exports.EditorLinkPicker = function EditorLinkPicker(_ref
|
|
|
77
77
|
}, [invokeMethod, analyticsEditorAppearance]);
|
|
78
78
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
79
79
|
ref: ref
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
80
|
+
}, /*#__PURE__*/_react.default.createElement(_AnalyticsContext.default, {
|
|
81
81
|
data: analyticsData
|
|
82
82
|
}, /*#__PURE__*/_react.default.createElement(_lazy.LazyLinkPicker, (0, _extends2.default)({}, restProps, {
|
|
83
83
|
onCancel: onEscape
|
|
@@ -23,7 +23,7 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
|
23
23
|
var _reactDom = require("react-dom");
|
|
24
24
|
var _reactIntlNext = require("react-intl-next");
|
|
25
25
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
26
|
-
var
|
|
26
|
+
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
27
27
|
var _ = _interopRequireDefault(require("@atlaskit/icon-object/glyph/page/16"));
|
|
28
28
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
|
|
29
29
|
var _primitives = require("@atlaskit/primitives");
|
|
@@ -959,4 +959,4 @@ function limit(items) {
|
|
|
959
959
|
return items.slice(0, RECENT_SEARCH_LIST_SIZE);
|
|
960
960
|
}
|
|
961
961
|
var HyperlinkLinkAddToolbarWithIntl = exports.HyperlinkLinkAddToolbarWithIntl = (0, _reactIntlNext.injectIntl)(HyperlinkLinkAddToolbar);
|
|
962
|
-
var _default = exports.default = (0,
|
|
962
|
+
var _default = exports.default = (0, _withAnalyticsEvents.default)()(HyperlinkLinkAddToolbarWithIntl);
|
|
@@ -11,7 +11,7 @@ var _react = require("react");
|
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
|
-
var
|
|
14
|
+
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
15
15
|
var _mediaCard = require("@atlaskit/media-card");
|
|
16
16
|
var _mediaClient = require("@atlaskit/media-client");
|
|
17
17
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
@@ -64,7 +64,7 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
|
|
|
64
64
|
locale: 'en'
|
|
65
65
|
}),
|
|
66
66
|
formatMessage = _ref2.formatMessage;
|
|
67
|
-
var _useAnalyticsEvents = (0,
|
|
67
|
+
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
68
68
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
69
69
|
var fireFailedOperationalEvent = function fireFailedOperationalEvent() {
|
|
70
70
|
var error = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new _mediaCard.MediaCardError('missing-error-data');
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "88.6.
|
|
20
|
+
var packageVersion = "88.6.2";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -16,8 +16,8 @@ var _editorPalette = require("@atlaskit/editor-palette");
|
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
17
|
var _consts = require("@atlaskit/editor-shared-styles/consts");
|
|
18
18
|
var _emoji = require("@atlaskit/emoji");
|
|
19
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
20
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
21
|
var _templateObject;
|
|
22
22
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
23
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -172,7 +172,7 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
|
|
|
172
172
|
|
|
173
173
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Safe to autofix with a tiny tweak to `mainDynamicStyles` being an object, but holding off…
|
|
174
174
|
var panelSharedStylesWithoutPrefix = exports.panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
|
|
175
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", _editorSharedStyles.blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", _editorSharedStyles.akEditorTableCellMinWidth, mainDynamicStyles(_adfSchema.PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", (0,
|
|
175
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", _editorSharedStyles.blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", _editorSharedStyles.akEditorTableCellMinWidth, mainDynamicStyles(_adfSchema.PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", (0, _experiments.editorExperiment)('nested-dnd', true) ? "var(--ds-space-150, 12px)" : "var(--ds-space-100, 8px)", iconDynamicStyles(_adfSchema.PanelType.INFO), _emoji.emojiSprite, panelEmojiSpriteVerticalAlignment, _emoji.emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", _adfSchema.PanelType.NOTE, mainDynamicStyles(_adfSchema.PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.NOTE), _adfSchema.PanelType.TIP, mainDynamicStyles(_adfSchema.PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.TIP), _adfSchema.PanelType.WARNING, mainDynamicStyles(_adfSchema.PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.WARNING), _adfSchema.PanelType.ERROR, mainDynamicStyles(_adfSchema.PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.ERROR), _adfSchema.PanelType.SUCCESS, mainDynamicStyles(_adfSchema.PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.SUCCESS));
|
|
176
176
|
};
|
|
177
177
|
var panelSharedStyles = exports.panelSharedStyles = function panelSharedStyles() {
|
|
178
178
|
return (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(PanelSharedCssClassName.prefix), panelSharedStylesWithoutPrefix()));
|
|
@@ -14,7 +14,9 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = require("react");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
|
-
var
|
|
17
|
+
var _createAndFireEvents = _interopRequireDefault(require("@atlaskit/analytics-next/createAndFireEvents"));
|
|
18
|
+
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
19
|
+
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
18
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
21
|
var _Layer = _interopRequireDefault(require("../Layer"));
|
|
20
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -23,7 +25,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
25
|
* @jsx jsx
|
|
24
26
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
27
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "88.6.
|
|
28
|
+
var packageVersion = "88.6.2";
|
|
27
29
|
var halfFocusRing = 1;
|
|
28
30
|
var dropOffset = '0, 8';
|
|
29
31
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -170,12 +172,12 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
170
172
|
}]);
|
|
171
173
|
return DropList;
|
|
172
174
|
}(_react.Component);
|
|
173
|
-
var createAndFireEventOnAtlaskit = (0,
|
|
174
|
-
var _default = exports.default = (0,
|
|
175
|
+
var createAndFireEventOnAtlaskit = (0, _createAndFireEvents.default)('atlaskit');
|
|
176
|
+
var _default = exports.default = (0, _withAnalyticsContext.default)({
|
|
175
177
|
componentName: 'droplist',
|
|
176
178
|
packageName: packageName,
|
|
177
179
|
packageVersion: packageVersion
|
|
178
|
-
})((0,
|
|
180
|
+
})((0, _withAnalyticsEvents.default)({
|
|
179
181
|
onOpenChange: createAndFireEventOnAtlaskit({
|
|
180
182
|
action: 'toggled',
|
|
181
183
|
actionSubject: 'droplist',
|
|
@@ -11,10 +11,10 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
11
11
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
|
-
var
|
|
14
|
+
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
15
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
16
16
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
|
-
var WithCreateAnalyticsEvent = exports.WithCreateAnalyticsEvent = (0,
|
|
17
|
+
var WithCreateAnalyticsEvent = exports.WithCreateAnalyticsEvent = (0, _withAnalyticsEvents.default)()( /*#__PURE__*/function (_React$Component) {
|
|
18
18
|
(0, _inherits2.default)(WithCreateAnalyticsEvent, _React$Component);
|
|
19
19
|
var _super = _createSuper(WithCreateAnalyticsEvent);
|
|
20
20
|
function WithCreateAnalyticsEvent() {
|
|
@@ -8,7 +8,8 @@ exports.default = void 0;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
|
-
var
|
|
11
|
+
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
12
|
+
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
12
13
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
13
14
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
14
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -236,6 +237,6 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
236
237
|
"data-selected-color": props.currentColor
|
|
237
238
|
})), renderPopup());
|
|
238
239
|
};
|
|
239
|
-
var _default = exports.default = (0,
|
|
240
|
+
var _default = exports.default = (0, _withAnalyticsContext.default)({
|
|
240
241
|
source: 'ConfigPanel'
|
|
241
|
-
})((0,
|
|
242
|
+
})((0, _withAnalyticsEvents.default)()(ColorPickerButton));
|
|
@@ -9,7 +9,7 @@ exports.default = exports.TOOLBAR_BUTTON = void 0;
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var
|
|
12
|
+
var _types = require("@atlaskit/analytics-listeners/types");
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
14
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
15
15
|
var _analytics = require("../../analytics");
|
|
@@ -68,7 +68,7 @@ var ToolbarButton = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
68
68
|
actionSubjectId: buttonId,
|
|
69
69
|
eventType: _analytics.EVENT_TYPE.UI
|
|
70
70
|
});
|
|
71
|
-
}).fire(
|
|
71
|
+
}).fire(_types.FabricChannel.editor);
|
|
72
72
|
}
|
|
73
73
|
if (onClick) {
|
|
74
74
|
onClick(event);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
1
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import { AnalyticsQueue } from './analytics-queue';
|
|
3
3
|
export const editorAnalyticsChannel = FabricChannel.editor;
|
|
4
4
|
export const fireAnalyticsEvent = createAnalyticsEvent => ({
|
|
@@ -7,7 +7,7 @@ import React, { Fragment, memo, useCallback } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import
|
|
10
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
11
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
12
12
|
import { B400, B50, N800 } from '@atlaskit/theme/colors';
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { Grid } from 'react-virtualized';
|
|
11
11
|
import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
|
|
12
12
|
import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
13
|
-
import
|
|
13
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
14
14
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
16
16
|
import { ButtonItem } from '@atlaskit/menu';
|
|
@@ -7,7 +7,7 @@ import React, { memo, useLayoutEffect, useRef, useState } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
|
-
import
|
|
10
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
11
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
13
13
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
@@ -8,7 +8,8 @@ import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
|
-
import
|
|
11
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
12
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
14
15
|
import { DEVICE_BREAKPOINT_NUMBERS, ELEMENT_BROWSER_ID, GRID_SIZE, INLINE_SIDEBAR_HEIGHT, SIDEBAR_HEADING_WRAPPER_HEIGHT, SIDEBAR_WIDTH } from '../constants';
|
|
@@ -8,7 +8,7 @@ import { useCallback } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
|
-
import
|
|
11
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
12
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
13
13
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
14
14
|
import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
|
|
@@ -7,7 +7,7 @@ import { useCallback, useLayoutEffect, useState } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
|
-
import
|
|
10
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
11
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
|
|
13
13
|
import { N0 } from '@atlaskit/theme/colors';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
3
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
3
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
|
|
5
5
|
export const useLinkOverlayAnalyticsEvents = () => {
|
|
6
6
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
4
4
|
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
5
5
|
import { getAnalyticsEditorAppearance } from '../../../utils';
|
|
6
6
|
import { useEscapeClickaway } from './useEscapeClickaway';
|
|
@@ -12,7 +12,7 @@ import debounce from 'lodash/debounce';
|
|
|
12
12
|
import { flushSync } from 'react-dom';
|
|
13
13
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
14
14
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
15
|
-
import
|
|
15
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
16
16
|
import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
|
|
17
17
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
18
18
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
@@ -8,7 +8,7 @@ import { Fragment, useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import ReactDOM from 'react-dom';
|
|
10
10
|
import { createIntl, injectIntl } from 'react-intl-next';
|
|
11
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
11
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
12
12
|
import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardError } from '@atlaskit/media-card';
|
|
13
13
|
import { FileFetcherError } from '@atlaskit/media-client';
|
|
14
14
|
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
@@ -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 = "88.6.
|
|
4
|
+
const packageVersion = "88.6.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -6,8 +6,8 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
|
6
6
|
import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
7
7
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
8
8
|
import { emojiImage, emojiSprite } from '@atlaskit/emoji';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { B100, B400, B50, B75, G200, G400, G50, G75, N0, N20, N60, P100, P400, P50, P75, R100, R400, R50, R75, T100, T50, T75, Y200, Y400, Y50, Y75 } from '@atlaskit/theme/colors';
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
11
|
const lightPanelColors = {
|
|
12
12
|
info: B50,
|
|
13
13
|
note: P50,
|
|
@@ -173,7 +173,7 @@ export const panelSharedStylesWithoutPrefix = () => css`
|
|
|
173
173
|
height: ${"var(--ds-space-300, 24px)"};
|
|
174
174
|
width: ${"var(--ds-space-300, 24px)"};
|
|
175
175
|
box-sizing: content-box;
|
|
176
|
-
padding-right: ${
|
|
176
|
+
padding-right: ${editorExperiment('nested-dnd', true) ? "var(--ds-space-150, 12px)" : "var(--ds-space-100, 8px)"};
|
|
177
177
|
text-align: center;
|
|
178
178
|
user-select: none;
|
|
179
179
|
-moz-user-select: none;
|
|
@@ -8,11 +8,13 @@ import { Component } from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import
|
|
11
|
+
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
12
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
13
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
12
14
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
13
15
|
import Layer from '../Layer';
|
|
14
16
|
const packageName = "@atlaskit/editor-common";
|
|
15
|
-
const packageVersion = "88.6.
|
|
17
|
+
const packageVersion = "88.6.2";
|
|
16
18
|
const halfFocusRing = 1;
|
|
17
19
|
const dropOffset = '0, 8';
|
|
18
20
|
class DropList extends Component {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
3
3
|
export const WithCreateAnalyticsEvent = withAnalyticsEvents()(class WithCreateAnalyticsEvent extends React.Component {
|
|
4
4
|
render() {
|
|
5
5
|
const {
|
|
@@ -6,7 +6,8 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import
|
|
9
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
10
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
10
11
|
import Button from '@atlaskit/button/standard-button';
|
|
11
12
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
12
13
|
import { N0, N30A, N60A } from '@atlaskit/theme/colors';
|
|
@@ -8,7 +8,7 @@ import React, { useCallback } from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
11
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
14
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
1
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import { AnalyticsQueue } from './analytics-queue';
|
|
3
3
|
export var editorAnalyticsChannel = FabricChannel.editor;
|
|
4
4
|
export var fireAnalyticsEvent = function fireAnalyticsEvent(createAnalyticsEvent) {
|
|
@@ -13,7 +13,7 @@ import React, { Fragment, memo, useCallback } from 'react';
|
|
|
13
13
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
|
-
import
|
|
16
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
17
17
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
18
18
|
import { B400, B50, N800 } from '@atlaskit/theme/colors';
|
|
19
19
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
@@ -13,7 +13,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
13
13
|
import { Grid } from 'react-virtualized';
|
|
14
14
|
import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
|
|
15
15
|
import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
16
|
-
import
|
|
16
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
17
17
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
18
18
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
19
19
|
import { ButtonItem } from '@atlaskit/menu';
|
|
@@ -8,7 +8,7 @@ import React, { memo, useLayoutEffect, useRef, useState } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
|
-
import
|
|
11
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
12
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
13
13
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
14
14
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
@@ -9,7 +9,8 @@ import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
|
-
import
|
|
12
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
13
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
13
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
15
16
|
import { DEVICE_BREAKPOINT_NUMBERS, ELEMENT_BROWSER_ID, GRID_SIZE, INLINE_SIDEBAR_HEIGHT, SIDEBAR_HEADING_WRAPPER_HEIGHT, SIDEBAR_WIDTH } from '../constants';
|
|
@@ -10,7 +10,7 @@ import { useCallback } from 'react';
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
12
|
import { useIntl } from 'react-intl-next';
|
|
13
|
-
import
|
|
13
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
14
14
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
15
15
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
16
16
|
import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
|
|
@@ -8,7 +8,7 @@ import { useCallback, useLayoutEffect, useState } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
|
-
import
|
|
11
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
12
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
|
|
14
14
|
import { N0 } from '@atlaskit/theme/colors';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
3
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
3
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
|
|
5
5
|
export var useLinkOverlayAnalyticsEvents = function useLinkOverlayAnalyticsEvents() {
|
|
6
6
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["view", "onCancel", "invokeMethod", "editorAppearance", "onClose", "onEscapeCallback", "onClickAwayCallback"];
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
5
|
-
import
|
|
5
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
6
6
|
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
7
7
|
import { getAnalyticsEditorAppearance } from '../../../utils';
|
|
8
8
|
import { useEscapeClickaway } from './useEscapeClickaway';
|
|
@@ -24,7 +24,7 @@ import debounce from 'lodash/debounce';
|
|
|
24
24
|
import { flushSync } from 'react-dom';
|
|
25
25
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
26
26
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
27
|
-
import
|
|
27
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
28
28
|
import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
|
|
29
29
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
30
30
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
@@ -12,7 +12,7 @@ import { Fragment, useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
13
|
import ReactDOM from 'react-dom';
|
|
14
14
|
import { createIntl, injectIntl } from 'react-intl-next';
|
|
15
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
15
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
16
16
|
import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardError } from '@atlaskit/media-card';
|
|
17
17
|
import { FileFetcherError } from '@atlaskit/media-client';
|
|
18
18
|
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
@@ -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 = "88.6.
|
|
10
|
+
var packageVersion = "88.6.2";
|
|
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
|
|
@@ -10,8 +10,8 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
|
10
10
|
import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
12
12
|
import { emojiImage, emojiSprite } from '@atlaskit/emoji';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { B100, B400, B50, B75, G200, G400, G50, G75, N0, N20, N60, P100, P400, P50, P75, R100, R400, R50, R75, T100, T50, T75, Y200, Y400, Y50, Y75 } from '@atlaskit/theme/colors';
|
|
14
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
15
|
var lightPanelColors = {
|
|
16
16
|
info: B50,
|
|
17
17
|
note: P50,
|
|
@@ -163,7 +163,7 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
|
|
|
163
163
|
|
|
164
164
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Safe to autofix with a tiny tweak to `mainDynamicStyles` being an object, but holding off…
|
|
165
165
|
export var panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
|
|
166
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)",
|
|
166
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", editorExperiment('nested-dnd', true) ? "var(--ds-space-150, 12px)" : "var(--ds-space-100, 8px)", iconDynamicStyles(PanelType.INFO), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS));
|
|
167
167
|
};
|
|
168
168
|
export var panelSharedStyles = function panelSharedStyles() {
|
|
169
169
|
return css(_defineProperty({}, ".".concat(PanelSharedCssClassName.prefix), panelSharedStylesWithoutPrefix()));
|
|
@@ -16,11 +16,13 @@ import { Component } from 'react';
|
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
import { css, jsx } from '@emotion/react';
|
|
19
|
-
import
|
|
19
|
+
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
20
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
21
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
20
22
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
21
23
|
import Layer from '../Layer';
|
|
22
24
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "88.6.
|
|
25
|
+
var packageVersion = "88.6.2";
|
|
24
26
|
var halfFocusRing = 1;
|
|
25
27
|
var dropOffset = '0, 8';
|
|
26
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -6,7 +6,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import
|
|
9
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
10
10
|
export var WithCreateAnalyticsEvent = withAnalyticsEvents()( /*#__PURE__*/function (_React$Component) {
|
|
11
11
|
_inherits(WithCreateAnalyticsEvent, _React$Component);
|
|
12
12
|
var _super = _createSuper(WithCreateAnalyticsEvent);
|
|
@@ -7,7 +7,8 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import
|
|
10
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
11
12
|
import Button from '@atlaskit/button/standard-button';
|
|
12
13
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
13
14
|
import { N0, N30A, N60A } from '@atlaskit/theme/colors';
|
|
@@ -11,7 +11,7 @@ import React, { useCallback } from 'react';
|
|
|
11
11
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
14
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
16
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
17
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
1
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import type { FireAnalyticsEvent } from './types';
|
|
3
3
|
export declare const editorAnalyticsChannel = FabricChannel.editor;
|
|
4
4
|
export declare const fireAnalyticsEvent: FireAnalyticsEvent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
3
|
import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
@@ -18,5 +18,5 @@ interface Props {
|
|
|
18
18
|
}
|
|
19
19
|
declare const MemoizedElementSearchWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
|
|
20
20
|
forwardedRef?: React.Ref<any> | undefined;
|
|
21
|
-
} & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>>;
|
|
21
|
+
} & import("@atlaskit/analytics-next/withAnalyticsContext").WithContextProps & React.RefAttributes<any>>>;
|
|
22
22
|
export default MemoizedElementSearchWithAnalytics;
|
|
@@ -15,5 +15,5 @@ export type DropdownProps = {
|
|
|
15
15
|
editorView: EditorView;
|
|
16
16
|
testId: string;
|
|
17
17
|
};
|
|
18
|
-
declare const _default: import("react").ForwardRefExoticComponent<DropdownProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
18
|
+
declare const _default: import("react").ForwardRefExoticComponent<DropdownProps & import("@atlaskit/analytics-next/withAnalyticsContext").WithContextProps & import("react").RefAttributes<any>>;
|
|
19
19
|
export default _default;
|
|
@@ -18,4 +18,4 @@ export interface OverlayButtonProps {
|
|
|
18
18
|
*/
|
|
19
19
|
onOpenLinkClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
20
20
|
}
|
|
21
|
-
export declare const OverlayButton: import("react").ForwardRefExoticComponent<OverlayButtonProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
21
|
+
export declare const OverlayButton: import("react").ForwardRefExoticComponent<OverlayButtonProps & import("@atlaskit/analytics-next/withAnalyticsContext").WithContextProps & import("react").RefAttributes<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
1
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import type { FireAnalyticsEvent } from './types';
|
|
3
3
|
export declare const editorAnalyticsChannel = FabricChannel.editor;
|
|
4
4
|
export declare const fireAnalyticsEvent: FireAnalyticsEvent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
3
|
import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
@@ -18,5 +18,5 @@ interface Props {
|
|
|
18
18
|
}
|
|
19
19
|
declare const MemoizedElementSearchWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
|
|
20
20
|
forwardedRef?: React.Ref<any> | undefined;
|
|
21
|
-
} & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>>;
|
|
21
|
+
} & import("@atlaskit/analytics-next/withAnalyticsContext").WithContextProps & React.RefAttributes<any>>>;
|
|
22
22
|
export default MemoizedElementSearchWithAnalytics;
|
|
@@ -15,5 +15,5 @@ export type DropdownProps = {
|
|
|
15
15
|
editorView: EditorView;
|
|
16
16
|
testId: string;
|
|
17
17
|
};
|
|
18
|
-
declare const _default: import("react").ForwardRefExoticComponent<DropdownProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
18
|
+
declare const _default: import("react").ForwardRefExoticComponent<DropdownProps & import("@atlaskit/analytics-next/withAnalyticsContext").WithContextProps & import("react").RefAttributes<any>>;
|
|
19
19
|
export default _default;
|
|
@@ -18,4 +18,4 @@ export interface OverlayButtonProps {
|
|
|
18
18
|
*/
|
|
19
19
|
onOpenLinkClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
20
20
|
}
|
|
21
|
-
export declare const OverlayButton: import("react").ForwardRefExoticComponent<OverlayButtonProps & import("@atlaskit/analytics-next").WithContextProps & import("react").RefAttributes<any>>;
|
|
21
|
+
export declare const OverlayButton: import("react").ForwardRefExoticComponent<OverlayButtonProps & import("@atlaskit/analytics-next/withAnalyticsContext").WithContextProps & import("react").RefAttributes<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "88.6.
|
|
3
|
+
"version": "88.6.2",
|
|
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/"
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"@atlaskit/menu": "^2.12.0",
|
|
132
132
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
133
133
|
"@atlaskit/primitives": "^12.1.0",
|
|
134
|
-
"@atlaskit/profilecard": "^19.
|
|
134
|
+
"@atlaskit/profilecard": "^19.25.0",
|
|
135
135
|
"@atlaskit/section-message": "^6.6.0",
|
|
136
136
|
"@atlaskit/smart-card": "^27.19.0",
|
|
137
137
|
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
"@atlaskit/task-decision": "^17.10.0",
|
|
140
140
|
"@atlaskit/textfield": "^6.5.0",
|
|
141
141
|
"@atlaskit/theme": "^13.0.0",
|
|
142
|
+
"@atlaskit/tmp-editor-statsig": "*",
|
|
142
143
|
"@atlaskit/tokens": "^1.59.0",
|
|
143
144
|
"@atlaskit/tooltip": "^18.7.0",
|
|
144
145
|
"@atlaskit/ufo": "^0.3.0",
|
|
@@ -265,9 +266,6 @@
|
|
|
265
266
|
"platform-fix-table-ssr-resizing": {
|
|
266
267
|
"type": "boolean"
|
|
267
268
|
},
|
|
268
|
-
"platform_editor_element_padding_changes_gate": {
|
|
269
|
-
"type": "boolean"
|
|
270
|
-
},
|
|
271
269
|
"use-effect-in-use-previous-props": {
|
|
272
270
|
"type": "boolean"
|
|
273
271
|
},
|