@atlaskit/editor-common 106.3.2 → 106.4.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.
- package/CHANGELOG.md +23 -0
- package/afm-cc/tsconfig.json +1 -1
- package/dist/cjs/analytics/linking-utils.js +1 -2
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/analytics/types/ncs-session-step-events.js +5 -0
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +3 -1
- package/dist/cjs/messages/breakout.js +20 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ncs-step-metrics/index.js +14 -0
- package/dist/cjs/styles/index.js +6 -0
- package/dist/cjs/styles/shared/resizer.js +30 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/linking-utils.js +1 -2
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/analytics/types/ncs-session-step-events.js +1 -0
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +3 -1
- package/dist/es2019/messages/breakout.js +20 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ncs-step-metrics/index.js +9 -0
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/resizer.js +29 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/linking-utils.js +1 -2
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/analytics/types/ncs-session-step-events.js +1 -0
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +3 -1
- package/dist/esm/messages/breakout.js +20 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ncs-step-metrics/index.js +9 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/resizer.js +29 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -0
- package/dist/types/analytics/types/element-events.d.ts +7 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/analytics/types/ncs-session-step-events.d.ts +11 -0
- package/dist/types/messages/breakout.d.ts +20 -0
- package/dist/types/ncs-step-metrics/index.d.ts +5 -0
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/resizer.d.ts +1 -0
- package/dist/types-ts4.5/analytics/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/element-events.d.ts +7 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/ncs-session-step-events.d.ts +11 -0
- package/dist/types-ts4.5/messages/breakout.d.ts +20 -0
- package/dist/types-ts4.5/ncs-step-metrics/index.d.ts +5 -0
- package/dist/types-ts4.5/styles/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
- package/ncs-step-metrics/package.json +17 -0
- package/package.json +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 106.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#164171](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/164171)
|
|
8
|
+
[`6e761beb64a85`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e761beb64a85) -
|
|
9
|
+
ED-28155 add dnd performance tracker
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#166490](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/166490)
|
|
14
|
+
[`9f140155c14be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f140155c14be) -
|
|
15
|
+
[ux] Shows tooltip on the resize handle when it is hovered.
|
|
16
|
+
|
|
17
|
+
## 106.3.3
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#165113](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165113)
|
|
22
|
+
[`867bcb05452bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/867bcb05452bf) -
|
|
23
|
+
Cleaned up platform_editor_controls_patch_analytics and platform_editor_controls_patch_analytics_2
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 106.3.2
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.unlinkPayload = exports.buildVisitedNonHyperLinkPayload = exports.buildVisitedLinkPayload = exports.buildOpenedSettingsPayload = exports.buildEditLinkPayload = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
var _enums = require("./types/enums");
|
|
9
8
|
var buildEditLinkPayload = exports.buildEditLinkPayload = function buildEditLinkPayload(type) {
|
|
10
9
|
return {
|
|
@@ -58,7 +57,7 @@ var buildVisitedNonHyperLinkPayload = exports.buildVisitedNonHyperLinkPayload =
|
|
|
58
57
|
actionSubject: _enums.ACTION_SUBJECT.SMART_LINK,
|
|
59
58
|
actionSubjectId: type,
|
|
60
59
|
attributes: {
|
|
61
|
-
inputMethod:
|
|
60
|
+
inputMethod: inputMethod
|
|
62
61
|
},
|
|
63
62
|
eventType: _enums.EVENT_TYPE.TRACK
|
|
64
63
|
};
|
|
@@ -159,6 +159,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
159
159
|
ACTION["SELECT_ALL_ESCAPED"] = "selectAllEscaped";
|
|
160
160
|
ACTION["SORT_COLUMN"] = "sortedColumn";
|
|
161
161
|
ACTION["SORT_COLUMN_NOT_ALLOWED"] = "sortColumnNotAllowed";
|
|
162
|
+
ACTION["NCS_SESSION_STEP_METRICS"] = "ncsSessionStepMetrics";
|
|
162
163
|
ACTION["STEPS_TRACKED"] = "stepsTracked";
|
|
163
164
|
ACTION["STEPS_FILTERED"] = "stepsFiltered";
|
|
164
165
|
ACTION["CREATE_NOT_ALLOWED"] = "createNotAllowed";
|
|
@@ -16,6 +16,7 @@ var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
|
16
16
|
var _customizePreferences = _interopRequireDefault(require("@atlaskit/icon/core/migration/customize--preferences"));
|
|
17
17
|
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
18
18
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
20
|
var _messages = require("../../messages");
|
|
20
21
|
var _StyledButton = require("./StyledButton");
|
|
21
22
|
var _useLinkOverlayAnalyticsEvents = require("./useLinkOverlayAnalyticsEvents");
|
|
@@ -91,7 +92,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
91
92
|
}));
|
|
92
93
|
},
|
|
93
94
|
testId: "".concat(testId, "-dropdown"),
|
|
94
|
-
onOpenChange: onOpenChange
|
|
95
|
+
onOpenChange: onOpenChange,
|
|
96
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('should-render-to-parent-should-be-true-editor')
|
|
95
97
|
}, (0, _react2.jsx)(_dropdownMenu.DropdownItemGroup, null, (0, _react2.jsx)(_dropdownMenu.DropdownItem, {
|
|
96
98
|
elemBefore: (0, _react2.jsx)(_linkExternalShortcut.default, {
|
|
97
99
|
label: goToLinkLabel,
|
|
@@ -20,5 +20,25 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
20
20
|
id: 'fabric.editor.resizeHandle',
|
|
21
21
|
defaultMessage: 'Resize handle',
|
|
22
22
|
description: 'Resize handle'
|
|
23
|
+
},
|
|
24
|
+
resizeExpand: {
|
|
25
|
+
id: 'fabric.editor.breakout.resizeExpand',
|
|
26
|
+
defaultMessage: 'Resize expand',
|
|
27
|
+
description: 'Tooltip displayed on custom expand width resize handle'
|
|
28
|
+
},
|
|
29
|
+
resizeCodeBlock: {
|
|
30
|
+
id: 'fabric.editor.breakout.resizeCodeBlock',
|
|
31
|
+
defaultMessage: 'Resize code snippet',
|
|
32
|
+
description: 'Tooltip displayed on custom code block width resize handle'
|
|
33
|
+
},
|
|
34
|
+
resizeLayout: {
|
|
35
|
+
id: 'fabric.editor.breakout.resizeLayout',
|
|
36
|
+
defaultMessage: 'Resize layout',
|
|
37
|
+
description: 'Tooltip displayed on custom layout width resize handle'
|
|
38
|
+
},
|
|
39
|
+
resizeElement: {
|
|
40
|
+
id: 'fabric.editor.breakout.resizeElement',
|
|
41
|
+
defaultMessage: 'Resize element',
|
|
42
|
+
description: 'Tooltip displayed on custom element (node) width resize handle'
|
|
23
43
|
}
|
|
24
44
|
});
|
|
@@ -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 = "106.
|
|
19
|
+
var packageVersion = "106.4.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NCS_STORAGE = void 0;
|
|
7
|
+
// Disable no-re-export rule for entry point files
|
|
8
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
9
|
+
var NCS_STORAGE = exports.NCS_STORAGE = /*#__PURE__*/function (NCS_STORAGE) {
|
|
10
|
+
NCS_STORAGE["NCS_STORAGE_CLIENT_KEY"] = "ncs-session-step-metrics-storage";
|
|
11
|
+
NCS_STORAGE["NCS_SESSION_STEP_METRICS"] = "ncsSessionStepMetrics";
|
|
12
|
+
NCS_STORAGE["NCS_ACTIVE_SESSIONS"] = "ncsActiveSessions";
|
|
13
|
+
return NCS_STORAGE;
|
|
14
|
+
}({});
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -327,6 +327,12 @@ Object.defineProperty(exports, "pragmaticResizerStyles", {
|
|
|
327
327
|
return _resizer.pragmaticResizerStyles;
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
|
+
Object.defineProperty(exports, "pragmaticResizerStylesForTooltip", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function get() {
|
|
333
|
+
return _resizer.pragmaticResizerStylesForTooltip;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
330
336
|
Object.defineProperty(exports, "resizerHandleClassName", {
|
|
331
337
|
enumerable: true,
|
|
332
338
|
get: function get() {
|
|
@@ -4,10 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleZIndex = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.pragmaticResizerStyles = exports.handleWrapperClass = void 0;
|
|
7
|
+
exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleZIndex = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.pragmaticResizerStylesForTooltip = exports.pragmaticResizerStyles = exports.handleWrapperClass = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
12
13
|
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
/*
|
|
@@ -31,6 +32,34 @@ var resizerHandleZIndex = exports.resizerHandleZIndex = 1;
|
|
|
31
32
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
|
|
32
33
|
var resizerStyles = exports.resizerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\t\t&.clamped {\n\t\t\t& .", " {\n\t\t\t\theight: clamp(43px, calc(100% - 32px), 96px);\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t// Remove when cleaning up platform_editor_interaction_api_refactor\n\t.ak-editor-no-interaction\n\t\t.", "\n\t\t.", ":not(:hover)\n\t\t.", " {\n\t\tbackground: ", ";\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t/* This below style is here to make sure the image width is correct when nested in a table */\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, #091E4224)", "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, #E9F2FF)", "var(--ds-background-selected, #E9F2FF)", akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", akEditorSelectedNodeClassName, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border, #091E4224)", resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
|
|
33
34
|
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
36
|
+
var pragmaticResizerStylesForTooltip = exports.pragmaticResizerStylesForTooltip = function pragmaticResizerStylesForTooltip() {
|
|
37
|
+
if ((0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release')) {
|
|
38
|
+
return (0, _react.css)({
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
40
|
+
'.pm-breakout-resize-handle-rail-wrapper': {
|
|
41
|
+
display: 'flex',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
justifyContent: 'center',
|
|
44
|
+
height: '100%',
|
|
45
|
+
cursor: 'col-resize',
|
|
46
|
+
borderRadius: 4,
|
|
47
|
+
zIndex: 2,
|
|
48
|
+
// Tootip element
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
50
|
+
'[role="presentation"]': {
|
|
51
|
+
height: '100%',
|
|
52
|
+
width: '100%'
|
|
53
|
+
},
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
55
|
+
'.pm-breakout-resize-handle-rail-inside-tooltip': {
|
|
56
|
+
height: '100%'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
34
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
35
64
|
var pragmaticResizerStyles = exports.pragmaticResizerStyles = function pragmaticResizerStyles() {
|
|
36
65
|
if ((0, _experiments.editorExperiment)('platform_editor_breakout_resizing', false)) {
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "106.
|
|
26
|
+
var packageVersion = "106.4.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
|
|
3
2
|
export const buildEditLinkPayload = type => {
|
|
4
3
|
return {
|
|
@@ -52,7 +51,7 @@ export const buildVisitedNonHyperLinkPayload = (type, inputMethod) => {
|
|
|
52
51
|
actionSubject: ACTION_SUBJECT.SMART_LINK,
|
|
53
52
|
actionSubjectId: type,
|
|
54
53
|
attributes: {
|
|
55
|
-
inputMethod:
|
|
54
|
+
inputMethod: inputMethod
|
|
56
55
|
},
|
|
57
56
|
eventType: EVENT_TYPE.TRACK
|
|
58
57
|
};
|
|
@@ -153,6 +153,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
153
153
|
ACTION["SELECT_ALL_ESCAPED"] = "selectAllEscaped";
|
|
154
154
|
ACTION["SORT_COLUMN"] = "sortedColumn";
|
|
155
155
|
ACTION["SORT_COLUMN_NOT_ALLOWED"] = "sortColumnNotAllowed";
|
|
156
|
+
ACTION["NCS_SESSION_STEP_METRICS"] = "ncsSessionStepMetrics";
|
|
156
157
|
ACTION["STEPS_TRACKED"] = "stepsTracked";
|
|
157
158
|
ACTION["STEPS_FILTERED"] = "stepsFiltered";
|
|
158
159
|
ACTION["CREATE_NOT_ALLOWED"] = "createNotAllowed";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,6 +13,7 @@ import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdow
|
|
|
13
13
|
import PreferencesIcon from '@atlaskit/icon/core/migration/customize--preferences';
|
|
14
14
|
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
15
15
|
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import { cardMessages as messages } from '../../messages';
|
|
17
18
|
import { StyledButton } from './StyledButton';
|
|
18
19
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
@@ -82,7 +83,8 @@ const Dropdown = ({
|
|
|
82
83
|
}
|
|
83
84
|
})),
|
|
84
85
|
testId: `${testId}-dropdown`,
|
|
85
|
-
onOpenChange: onOpenChange
|
|
86
|
+
onOpenChange: onOpenChange,
|
|
87
|
+
shouldRenderToParent: fg('should-render-to-parent-should-be-true-editor')
|
|
86
88
|
}, jsx(DropdownItemGroup, null, jsx(DropdownItem, {
|
|
87
89
|
elemBefore: jsx(LinkExternalIcon, {
|
|
88
90
|
label: goToLinkLabel,
|
|
@@ -14,5 +14,25 @@ export const messages = defineMessages({
|
|
|
14
14
|
id: 'fabric.editor.resizeHandle',
|
|
15
15
|
defaultMessage: 'Resize handle',
|
|
16
16
|
description: 'Resize handle'
|
|
17
|
+
},
|
|
18
|
+
resizeExpand: {
|
|
19
|
+
id: 'fabric.editor.breakout.resizeExpand',
|
|
20
|
+
defaultMessage: 'Resize expand',
|
|
21
|
+
description: 'Tooltip displayed on custom expand width resize handle'
|
|
22
|
+
},
|
|
23
|
+
resizeCodeBlock: {
|
|
24
|
+
id: 'fabric.editor.breakout.resizeCodeBlock',
|
|
25
|
+
defaultMessage: 'Resize code snippet',
|
|
26
|
+
description: 'Tooltip displayed on custom code block width resize handle'
|
|
27
|
+
},
|
|
28
|
+
resizeLayout: {
|
|
29
|
+
id: 'fabric.editor.breakout.resizeLayout',
|
|
30
|
+
defaultMessage: 'Resize layout',
|
|
31
|
+
description: 'Tooltip displayed on custom layout width resize handle'
|
|
32
|
+
},
|
|
33
|
+
resizeElement: {
|
|
34
|
+
id: 'fabric.editor.breakout.resizeElement',
|
|
35
|
+
defaultMessage: 'Resize element',
|
|
36
|
+
description: 'Tooltip displayed on custom element (node) width resize handle'
|
|
17
37
|
}
|
|
18
38
|
});
|
|
@@ -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 = "106.
|
|
4
|
+
const packageVersion = "106.4.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
4
|
+
export let NCS_STORAGE = /*#__PURE__*/function (NCS_STORAGE) {
|
|
5
|
+
NCS_STORAGE["NCS_STORAGE_CLIENT_KEY"] = "ncs-session-step-metrics-storage";
|
|
6
|
+
NCS_STORAGE["NCS_SESSION_STEP_METRICS"] = "ncsSessionStepMetrics";
|
|
7
|
+
NCS_STORAGE["NCS_ACTIVE_SESSIONS"] = "ncsActiveSessions";
|
|
8
|
+
return NCS_STORAGE;
|
|
9
|
+
}({});
|
|
@@ -26,7 +26,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
|
26
26
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix } from './shared/code-block';
|
|
27
27
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
|
|
28
28
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
29
|
-
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles } from './shared/resizer';
|
|
29
|
+
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles, pragmaticResizerStylesForTooltip } from './shared/resizer';
|
|
30
30
|
export { gridStyles, GRID_GUTTER } from './shared/grid';
|
|
31
31
|
export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
|
|
32
32
|
export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { akEditorDeleteIconColor } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
6
|
/*
|
|
6
7
|
Styles in this file are based on
|
|
@@ -226,6 +227,34 @@ export const resizerStyles = css`
|
|
|
226
227
|
}
|
|
227
228
|
`;
|
|
228
229
|
|
|
230
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
231
|
+
export const pragmaticResizerStylesForTooltip = () => {
|
|
232
|
+
if (editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release')) {
|
|
233
|
+
return css({
|
|
234
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
235
|
+
'.pm-breakout-resize-handle-rail-wrapper': {
|
|
236
|
+
display: 'flex',
|
|
237
|
+
alignItems: 'center',
|
|
238
|
+
justifyContent: 'center',
|
|
239
|
+
height: '100%',
|
|
240
|
+
cursor: 'col-resize',
|
|
241
|
+
borderRadius: 4,
|
|
242
|
+
zIndex: 2,
|
|
243
|
+
// Tootip element
|
|
244
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
245
|
+
'[role="presentation"]': {
|
|
246
|
+
height: '100%',
|
|
247
|
+
width: '100%'
|
|
248
|
+
},
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
250
|
+
'.pm-breakout-resize-handle-rail-inside-tooltip': {
|
|
251
|
+
height: '100%'
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
|
|
229
258
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
230
259
|
export const pragmaticResizerStyles = () => {
|
|
231
260
|
if (editorExperiment('platform_editor_breakout_resizing', false)) {
|
|
@@ -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 = "106.
|
|
16
|
+
const packageVersion = "106.4.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
|
|
3
2
|
export var buildEditLinkPayload = function buildEditLinkPayload(type) {
|
|
4
3
|
return {
|
|
@@ -52,7 +51,7 @@ export var buildVisitedNonHyperLinkPayload = function buildVisitedNonHyperLinkPa
|
|
|
52
51
|
actionSubject: ACTION_SUBJECT.SMART_LINK,
|
|
53
52
|
actionSubjectId: type,
|
|
54
53
|
attributes: {
|
|
55
|
-
inputMethod:
|
|
54
|
+
inputMethod: inputMethod
|
|
56
55
|
},
|
|
57
56
|
eventType: EVENT_TYPE.TRACK
|
|
58
57
|
};
|
|
@@ -153,6 +153,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
153
153
|
ACTION["SELECT_ALL_ESCAPED"] = "selectAllEscaped";
|
|
154
154
|
ACTION["SORT_COLUMN"] = "sortedColumn";
|
|
155
155
|
ACTION["SORT_COLUMN_NOT_ALLOWED"] = "sortColumnNotAllowed";
|
|
156
|
+
ACTION["NCS_SESSION_STEP_METRICS"] = "ncsSessionStepMetrics";
|
|
156
157
|
ACTION["STEPS_TRACKED"] = "stepsTracked";
|
|
157
158
|
ACTION["STEPS_FILTERED"] = "stepsFiltered";
|
|
158
159
|
ACTION["CREATE_NOT_ALLOWED"] = "createNotAllowed";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,6 +15,7 @@ import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdow
|
|
|
15
15
|
import PreferencesIcon from '@atlaskit/icon/core/migration/customize--preferences';
|
|
16
16
|
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
17
17
|
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
import { cardMessages as messages } from '../../messages';
|
|
19
20
|
import { StyledButton } from './StyledButton';
|
|
20
21
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
@@ -83,7 +84,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
83
84
|
}));
|
|
84
85
|
},
|
|
85
86
|
testId: "".concat(testId, "-dropdown"),
|
|
86
|
-
onOpenChange: onOpenChange
|
|
87
|
+
onOpenChange: onOpenChange,
|
|
88
|
+
shouldRenderToParent: fg('should-render-to-parent-should-be-true-editor')
|
|
87
89
|
}, jsx(DropdownItemGroup, null, jsx(DropdownItem, {
|
|
88
90
|
elemBefore: jsx(LinkExternalIcon, {
|
|
89
91
|
label: goToLinkLabel,
|
|
@@ -14,5 +14,25 @@ export var messages = defineMessages({
|
|
|
14
14
|
id: 'fabric.editor.resizeHandle',
|
|
15
15
|
defaultMessage: 'Resize handle',
|
|
16
16
|
description: 'Resize handle'
|
|
17
|
+
},
|
|
18
|
+
resizeExpand: {
|
|
19
|
+
id: 'fabric.editor.breakout.resizeExpand',
|
|
20
|
+
defaultMessage: 'Resize expand',
|
|
21
|
+
description: 'Tooltip displayed on custom expand width resize handle'
|
|
22
|
+
},
|
|
23
|
+
resizeCodeBlock: {
|
|
24
|
+
id: 'fabric.editor.breakout.resizeCodeBlock',
|
|
25
|
+
defaultMessage: 'Resize code snippet',
|
|
26
|
+
description: 'Tooltip displayed on custom code block width resize handle'
|
|
27
|
+
},
|
|
28
|
+
resizeLayout: {
|
|
29
|
+
id: 'fabric.editor.breakout.resizeLayout',
|
|
30
|
+
defaultMessage: 'Resize layout',
|
|
31
|
+
description: 'Tooltip displayed on custom layout width resize handle'
|
|
32
|
+
},
|
|
33
|
+
resizeElement: {
|
|
34
|
+
id: 'fabric.editor.breakout.resizeElement',
|
|
35
|
+
defaultMessage: 'Resize element',
|
|
36
|
+
description: 'Tooltip displayed on custom element (node) width resize handle'
|
|
17
37
|
}
|
|
18
38
|
});
|
|
@@ -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 = "106.
|
|
10
|
+
var packageVersion = "106.4.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
4
|
+
export var NCS_STORAGE = /*#__PURE__*/function (NCS_STORAGE) {
|
|
5
|
+
NCS_STORAGE["NCS_STORAGE_CLIENT_KEY"] = "ncs-session-step-metrics-storage";
|
|
6
|
+
NCS_STORAGE["NCS_SESSION_STEP_METRICS"] = "ncsSessionStepMetrics";
|
|
7
|
+
NCS_STORAGE["NCS_ACTIVE_SESSIONS"] = "ncsActiveSessions";
|
|
8
|
+
return NCS_STORAGE;
|
|
9
|
+
}({});
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
|
26
26
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix } from './shared/code-block';
|
|
27
27
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
|
|
28
28
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
29
|
-
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles } from './shared/resizer';
|
|
29
|
+
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles, pragmaticResizerStylesForTooltip } from './shared/resizer';
|
|
30
30
|
export { gridStyles, GRID_GUTTER } from './shared/grid';
|
|
31
31
|
export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
|
|
32
32
|
export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
|
|
@@ -3,6 +3,7 @@ var _templateObject;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { akEditorDeleteIconColor } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
8
|
/*
|
|
8
9
|
Styles in this file are based on
|
|
@@ -25,6 +26,34 @@ export var resizerHandleZIndex = 1;
|
|
|
25
26
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
|
|
26
27
|
export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\t\t&.clamped {\n\t\t\t& .", " {\n\t\t\t\theight: clamp(43px, calc(100% - 32px), 96px);\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t// Remove when cleaning up platform_editor_interaction_api_refactor\n\t.ak-editor-no-interaction\n\t\t.", "\n\t\t.", ":not(:hover)\n\t\t.", " {\n\t\tbackground: ", ";\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t/* This below style is here to make sure the image width is correct when nested in a table */\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, #091E4224)", "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, #E9F2FF)", "var(--ds-background-selected, #E9F2FF)", akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", akEditorSelectedNodeClassName, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border, #091E4224)", resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
|
|
27
28
|
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
30
|
+
export var pragmaticResizerStylesForTooltip = function pragmaticResizerStylesForTooltip() {
|
|
31
|
+
if (editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release')) {
|
|
32
|
+
return css({
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
34
|
+
'.pm-breakout-resize-handle-rail-wrapper': {
|
|
35
|
+
display: 'flex',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center',
|
|
38
|
+
height: '100%',
|
|
39
|
+
cursor: 'col-resize',
|
|
40
|
+
borderRadius: 4,
|
|
41
|
+
zIndex: 2,
|
|
42
|
+
// Tootip element
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
44
|
+
'[role="presentation"]': {
|
|
45
|
+
height: '100%',
|
|
46
|
+
width: '100%'
|
|
47
|
+
},
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
49
|
+
'.pm-breakout-resize-handle-rail-inside-tooltip': {
|
|
50
|
+
height: '100%'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
28
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
29
58
|
export var pragmaticResizerStyles = function pragmaticResizerStyles() {
|
|
30
59
|
if (editorExperiment('platform_editor_breakout_resizing', false)) {
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "106.
|
|
23
|
+
var packageVersion = "106.4.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -49,3 +49,4 @@ export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/a
|
|
|
49
49
|
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
50
50
|
export { type AIInlineSuggestionPayload, AI_SUGGESTION_TRIGGERED_FROM, } from './types/ai-inline-suggestion-events';
|
|
51
51
|
export { type TelepointerClickPayload } from './types/telepointer-events';
|
|
52
|
+
export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './types/ncs-session-step-events';
|
|
@@ -12,7 +12,13 @@ type ElementAttributes = {
|
|
|
12
12
|
};
|
|
13
13
|
type ElementMovedAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
14
14
|
type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
15
|
+
type ElementDragEndAEP = TrackAEP<ACTION.ENDED, ACTION_SUBJECT.DRAG, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, {
|
|
16
|
+
dragInitializationDuration: number;
|
|
17
|
+
dropProcessingDuration: number;
|
|
18
|
+
isCancelled: boolean;
|
|
19
|
+
nodesCount: number;
|
|
20
|
+
}, null>;
|
|
15
21
|
type DragCancelledAEP = UIAEP<ACTION.CANCELLED, ACTION_SUBJECT.DRAG, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
16
22
|
type ElementClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
17
|
-
export type ElementEventPayload = ElementClickedAEP | ElementMovedAEP | ElementDragAEP | DragCancelledAEP;
|
|
23
|
+
export type ElementEventPayload = ElementClickedAEP | ElementMovedAEP | ElementDragAEP | ElementDragEndAEP | DragCancelledAEP;
|
|
18
24
|
export {};
|
|
@@ -152,6 +152,7 @@ export declare enum ACTION {
|
|
|
152
152
|
SELECT_ALL_ESCAPED = "selectAllEscaped",
|
|
153
153
|
SORT_COLUMN = "sortedColumn",
|
|
154
154
|
SORT_COLUMN_NOT_ALLOWED = "sortColumnNotAllowed",
|
|
155
|
+
NCS_SESSION_STEP_METRICS = "ncsSessionStepMetrics",
|
|
155
156
|
STEPS_TRACKED = "stepsTracked",
|
|
156
157
|
STEPS_FILTERED = "stepsFiltered",
|
|
157
158
|
CREATE_NOT_ALLOWED = "createNotAllowed",
|
|
@@ -37,6 +37,7 @@ import type { LoomEventPayload } from './loom-events';
|
|
|
37
37
|
import type { MediaEventPayload } from './media-events';
|
|
38
38
|
import { type MentionEventPayload } from './mention-events';
|
|
39
39
|
import type { MoveContentEventPayload } from './move-content-events';
|
|
40
|
+
import { NcsSessionStepEventAEP } from './ncs-session-step-events';
|
|
40
41
|
import { type NestedTableActionsEventPayload } from './nested-table-events';
|
|
41
42
|
import type { NodeEventPayload } from './node-events';
|
|
42
43
|
import type { OfflineEditingEventPayload } from './offline-editing-event';
|
|
@@ -60,7 +61,7 @@ export type SimplifiedNode = {
|
|
|
60
61
|
marks?: string[];
|
|
61
62
|
content?: SimplifiedNode[];
|
|
62
63
|
};
|
|
63
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload;
|
|
64
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP;
|
|
64
65
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
65
66
|
previousColor: string;
|
|
66
67
|
newColor: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { OperationalAEP } from './utils';
|
|
3
|
+
export type NcsSessionStepMetrics = {
|
|
4
|
+
ncsSessionId?: string;
|
|
5
|
+
totalStepSize: number;
|
|
6
|
+
numberOfSteps: number;
|
|
7
|
+
maxStepSize: number;
|
|
8
|
+
stepSizeSumForP90?: number[];
|
|
9
|
+
p90StepSize?: number;
|
|
10
|
+
};
|
|
11
|
+
export type NcsSessionStepEventAEP = OperationalAEP<ACTION.NCS_SESSION_STEP_METRICS, ACTION_SUBJECT.COLLAB, undefined, NcsSessionStepMetrics>;
|
|
@@ -14,4 +14,24 @@ export declare const messages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
resizeExpand: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
resizeCodeBlock: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
resizeLayout: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
resizeElement: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
17
37
|
};
|
|
@@ -23,7 +23,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
|
23
23
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix, } from './shared/code-block';
|
|
24
24
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
|
|
25
25
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
26
|
-
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles, } from './shared/resizer';
|
|
26
|
+
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles, pragmaticResizerStylesForTooltip, } from './shared/resizer';
|
|
27
27
|
export { gridStyles, GRID_GUTTER } from './shared/grid';
|
|
28
28
|
export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
|
|
29
29
|
export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
|
|
@@ -9,4 +9,5 @@ export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
|
9
9
|
export declare const resizerHandleThumbWidth = 3;
|
|
10
10
|
export declare const resizerHandleZIndex = 1;
|
|
11
11
|
export declare const resizerStyles: import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const pragmaticResizerStylesForTooltip: () => import("@emotion/react").SerializedStyles | undefined;
|
|
12
13
|
export declare const pragmaticResizerStyles: () => import("@emotion/react").SerializedStyles | undefined;
|
|
@@ -49,3 +49,4 @@ export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/a
|
|
|
49
49
|
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
50
50
|
export { type AIInlineSuggestionPayload, AI_SUGGESTION_TRIGGERED_FROM, } from './types/ai-inline-suggestion-events';
|
|
51
51
|
export { type TelepointerClickPayload } from './types/telepointer-events';
|
|
52
|
+
export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './types/ncs-session-step-events';
|
|
@@ -12,7 +12,13 @@ type ElementAttributes = {
|
|
|
12
12
|
};
|
|
13
13
|
type ElementMovedAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
14
14
|
type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
15
|
+
type ElementDragEndAEP = TrackAEP<ACTION.ENDED, ACTION_SUBJECT.DRAG, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, {
|
|
16
|
+
dragInitializationDuration: number;
|
|
17
|
+
dropProcessingDuration: number;
|
|
18
|
+
isCancelled: boolean;
|
|
19
|
+
nodesCount: number;
|
|
20
|
+
}, null>;
|
|
15
21
|
type DragCancelledAEP = UIAEP<ACTION.CANCELLED, ACTION_SUBJECT.DRAG, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
16
22
|
type ElementClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
|
|
17
|
-
export type ElementEventPayload = ElementClickedAEP | ElementMovedAEP | ElementDragAEP | DragCancelledAEP;
|
|
23
|
+
export type ElementEventPayload = ElementClickedAEP | ElementMovedAEP | ElementDragAEP | ElementDragEndAEP | DragCancelledAEP;
|
|
18
24
|
export {};
|
|
@@ -152,6 +152,7 @@ export declare enum ACTION {
|
|
|
152
152
|
SELECT_ALL_ESCAPED = "selectAllEscaped",
|
|
153
153
|
SORT_COLUMN = "sortedColumn",
|
|
154
154
|
SORT_COLUMN_NOT_ALLOWED = "sortColumnNotAllowed",
|
|
155
|
+
NCS_SESSION_STEP_METRICS = "ncsSessionStepMetrics",
|
|
155
156
|
STEPS_TRACKED = "stepsTracked",
|
|
156
157
|
STEPS_FILTERED = "stepsFiltered",
|
|
157
158
|
CREATE_NOT_ALLOWED = "createNotAllowed",
|
|
@@ -37,6 +37,7 @@ import type { LoomEventPayload } from './loom-events';
|
|
|
37
37
|
import type { MediaEventPayload } from './media-events';
|
|
38
38
|
import { type MentionEventPayload } from './mention-events';
|
|
39
39
|
import type { MoveContentEventPayload } from './move-content-events';
|
|
40
|
+
import { NcsSessionStepEventAEP } from './ncs-session-step-events';
|
|
40
41
|
import { type NestedTableActionsEventPayload } from './nested-table-events';
|
|
41
42
|
import type { NodeEventPayload } from './node-events';
|
|
42
43
|
import type { OfflineEditingEventPayload } from './offline-editing-event';
|
|
@@ -60,7 +61,7 @@ export type SimplifiedNode = {
|
|
|
60
61
|
marks?: string[];
|
|
61
62
|
content?: SimplifiedNode[];
|
|
62
63
|
};
|
|
63
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload;
|
|
64
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP;
|
|
64
65
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
65
66
|
previousColor: string;
|
|
66
67
|
newColor: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { OperationalAEP } from './utils';
|
|
3
|
+
export type NcsSessionStepMetrics = {
|
|
4
|
+
ncsSessionId?: string;
|
|
5
|
+
totalStepSize: number;
|
|
6
|
+
numberOfSteps: number;
|
|
7
|
+
maxStepSize: number;
|
|
8
|
+
stepSizeSumForP90?: number[];
|
|
9
|
+
p90StepSize?: number;
|
|
10
|
+
};
|
|
11
|
+
export type NcsSessionStepEventAEP = OperationalAEP<ACTION.NCS_SESSION_STEP_METRICS, ACTION_SUBJECT.COLLAB, undefined, NcsSessionStepMetrics>;
|
|
@@ -14,4 +14,24 @@ export declare const messages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
resizeExpand: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
resizeCodeBlock: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
resizeLayout: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
resizeElement: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
17
37
|
};
|
|
@@ -23,7 +23,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
|
23
23
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix, } from './shared/code-block';
|
|
24
24
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
|
|
25
25
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
26
|
-
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles, } from './shared/resizer';
|
|
26
|
+
export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles, pragmaticResizerStylesForTooltip, } from './shared/resizer';
|
|
27
27
|
export { gridStyles, GRID_GUTTER } from './shared/grid';
|
|
28
28
|
export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
|
|
29
29
|
export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
|
|
@@ -9,4 +9,5 @@ export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
|
9
9
|
export declare const resizerHandleThumbWidth = 3;
|
|
10
10
|
export declare const resizerHandleZIndex = 1;
|
|
11
11
|
export declare const resizerStyles: import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const pragmaticResizerStylesForTooltip: () => import("@emotion/react").SerializedStyles | undefined;
|
|
12
13
|
export declare const pragmaticResizerStyles: () => import("@emotion/react").SerializedStyles | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/ncs-step-metrics",
|
|
3
|
+
"main": "../dist/cjs/ncs-step-metrics/index.js",
|
|
4
|
+
"module": "../dist/esm/ncs-step-metrics/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/ncs-step-metrics/index.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/ncs-step-metrics/index.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.4": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/ncs-step-metrics/index.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "106.
|
|
3
|
+
"version": "106.4.0",
|
|
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/"
|
|
@@ -118,7 +118,8 @@
|
|
|
118
118
|
"./UNSAFE_do_not_use_editor_context": "./src/ui/EditorContext/index.ts",
|
|
119
119
|
"./median": "./src/utils/median.ts",
|
|
120
120
|
"./ugc-tokens": "./src/ugc-tokens/index.ts",
|
|
121
|
-
"./get-dom-ref-from-selection": "./src/utils/get-dom-ref-from-selection.ts"
|
|
121
|
+
"./get-dom-ref-from-selection": "./src/utils/get-dom-ref-from-selection.ts",
|
|
122
|
+
"./ncs-step-metrics": "./src/ncs-step-metrics/index.ts"
|
|
122
123
|
},
|
|
123
124
|
"dependencies": {
|
|
124
125
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
@@ -160,7 +161,7 @@
|
|
|
160
161
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
161
162
|
"@atlaskit/popper": "^7.0.0",
|
|
162
163
|
"@atlaskit/primitives": "^14.8.0",
|
|
163
|
-
"@atlaskit/profilecard": "^23.
|
|
164
|
+
"@atlaskit/profilecard": "^23.18.0",
|
|
164
165
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
165
166
|
"@atlaskit/section-message": "^8.2.0",
|
|
166
167
|
"@atlaskit/smart-card": "^38.8.0",
|
|
@@ -169,7 +170,7 @@
|
|
|
169
170
|
"@atlaskit/task-decision": "^19.2.0",
|
|
170
171
|
"@atlaskit/textfield": "^8.0.0",
|
|
171
172
|
"@atlaskit/theme": "^18.0.0",
|
|
172
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
173
|
+
"@atlaskit/tmp-editor-statsig": "^5.14.0",
|
|
173
174
|
"@atlaskit/tokens": "^5.1.0",
|
|
174
175
|
"@atlaskit/tooltip": "^20.3.0",
|
|
175
176
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -373,9 +374,6 @@
|
|
|
373
374
|
"platform_editor_fix_code_block_bg_color_in_macro": {
|
|
374
375
|
"type": "boolean"
|
|
375
376
|
},
|
|
376
|
-
"platform_editor_controls_patch_analytics": {
|
|
377
|
-
"type": "boolean"
|
|
378
|
-
},
|
|
379
377
|
"confluence_preload_extension_providers": {
|
|
380
378
|
"type": "boolean"
|
|
381
379
|
},
|
|
@@ -400,8 +398,14 @@
|
|
|
400
398
|
"interactable_in_editor_inputs": {
|
|
401
399
|
"type": "boolean"
|
|
402
400
|
},
|
|
401
|
+
"should-render-to-parent-should-be-true-editor": {
|
|
402
|
+
"type": "boolean"
|
|
403
|
+
},
|
|
403
404
|
"platform_editor_fix_floating_toolbar_focus": {
|
|
404
405
|
"type": "boolean"
|
|
406
|
+
},
|
|
407
|
+
"platform_editor_breakout_resizing_hello_release": {
|
|
408
|
+
"type": "boolean"
|
|
405
409
|
}
|
|
406
410
|
}
|
|
407
411
|
}
|