@atlaskit/editor-core 209.6.5 → 209.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/afm-cc/tsconfig.json +6 -0
  3. package/afm-dev-agents/tsconfig.json +6 -0
  4. package/afm-jira/tsconfig.json +6 -0
  5. package/afm-post-office/tsconfig.json +6 -0
  6. package/afm-rovo-extension/tsconfig.json +6 -0
  7. package/afm-townsquare/tsconfig.json +6 -0
  8. package/dist/cjs/index.js +15 -1
  9. package/dist/cjs/ui/Appearance/Comment/Comment.js +5 -1
  10. package/dist/cjs/ui/Appearance/Comment/CommentToolbar.js +31 -0
  11. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +9 -2
  12. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +4 -0
  13. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +68 -0
  14. package/dist/cjs/ui/ContentStyles/index.js +1 -1
  15. package/dist/cjs/ui/ContentStyles/status.js +2 -1
  16. package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +205 -1
  17. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +4 -0
  18. package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +2 -1
  19. package/dist/cjs/ui/EditorContentContainer/styles/statusStyles.js +2 -1
  20. package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +205 -1
  21. package/dist/cjs/ui/Toolbar/Toolbar.js +31 -1
  22. package/dist/cjs/utils/toolbar.js +9 -0
  23. package/dist/cjs/version-wrapper.js +1 -1
  24. package/dist/es2019/index.js +3 -1
  25. package/dist/es2019/ui/Appearance/Comment/Comment.js +5 -1
  26. package/dist/es2019/ui/Appearance/Comment/CommentToolbar.js +23 -0
  27. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +9 -2
  28. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +4 -0
  29. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +62 -0
  30. package/dist/es2019/ui/ContentStyles/index.js +2 -2
  31. package/dist/es2019/ui/ContentStyles/status.js +2 -1
  32. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +206 -0
  33. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -1
  34. package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +2 -1
  35. package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +2 -1
  36. package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +206 -0
  37. package/dist/es2019/ui/Toolbar/Toolbar.js +32 -0
  38. package/dist/es2019/utils/toolbar.js +3 -0
  39. package/dist/es2019/version-wrapper.js +1 -1
  40. package/dist/esm/index.js +3 -1
  41. package/dist/esm/ui/Appearance/Comment/Comment.js +5 -1
  42. package/dist/esm/ui/Appearance/Comment/CommentToolbar.js +24 -0
  43. package/dist/esm/ui/Appearance/FullPage/FullPage.js +9 -2
  44. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.compiled.css +4 -0
  45. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +61 -0
  46. package/dist/esm/ui/ContentStyles/index.js +2 -2
  47. package/dist/esm/ui/ContentStyles/status.js +2 -1
  48. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +204 -0
  49. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -1
  50. package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +2 -1
  51. package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +2 -1
  52. package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +204 -0
  53. package/dist/esm/ui/Toolbar/Toolbar.js +31 -0
  54. package/dist/esm/utils/toolbar.js +3 -0
  55. package/dist/esm/version-wrapper.js +1 -1
  56. package/dist/types/composable-editor/editor-internal.d.ts +0 -1
  57. package/dist/types/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
  58. package/dist/types/create-editor/create-universal-preset.d.ts +78 -1053
  59. package/dist/types/create-editor/editorStateNotificationPlugin.d.ts +2 -2
  60. package/dist/types/create-editor/get-ui-component.d.ts +0 -1
  61. package/dist/types/index.d.ts +2 -0
  62. package/dist/types/presets/universal.d.ts +78 -1053
  63. package/dist/types/presets/useUniversalPreset.d.ts +78 -1053
  64. package/dist/types/test-utils.d.ts +1 -1
  65. package/dist/types/types/with-appearance-component.d.ts +0 -1
  66. package/dist/types/ui/Addon/types.d.ts +0 -1
  67. package/dist/types/ui/Appearance/Chromeless.d.ts +7 -7
  68. package/dist/types/ui/Appearance/Comment/Comment.d.ts +3 -1
  69. package/dist/types/ui/Appearance/Comment/CommentToolbar.d.ts +14 -0
  70. package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +2 -0
  71. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +7 -7
  72. package/dist/types/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +30 -0
  73. package/dist/types/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +1 -1
  74. package/dist/types/ui/CollapsedEditor/index.d.ts +1 -1
  75. package/dist/types/ui/ContentStyles/ai-panels.d.ts +1 -1
  76. package/dist/types/ui/ContentStyles/layout.d.ts +1 -1
  77. package/dist/types/ui/ContentStyles/tasks-and-decisions.d.ts +1 -0
  78. package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +1 -0
  79. package/dist/types/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -1
  80. package/dist/types/ui/Toolbar/Toolbar.d.ts +21 -1
  81. package/dist/types/utils/is-full-page.d.ts +1 -1
  82. package/dist/types/utils/prepare-extension-provider.d.ts +1 -1
  83. package/dist/types/utils/prepare-quick-insert-provider.d.ts +0 -1
  84. package/dist/types/utils/toolbar.d.ts +2 -0
  85. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +0 -1
  86. package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
  87. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +110 -1233
  88. package/dist/types-ts4.5/create-editor/editorStateNotificationPlugin.d.ts +2 -2
  89. package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +0 -1
  90. package/dist/types-ts4.5/index.d.ts +2 -0
  91. package/dist/types-ts4.5/presets/universal.d.ts +110 -1233
  92. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +110 -1233
  93. package/dist/types-ts4.5/test-utils.d.ts +1 -1
  94. package/dist/types-ts4.5/types/with-appearance-component.d.ts +0 -1
  95. package/dist/types-ts4.5/ui/Addon/types.d.ts +0 -1
  96. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +7 -7
  97. package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +3 -1
  98. package/dist/types-ts4.5/ui/Appearance/Comment/CommentToolbar.d.ts +16 -0
  99. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +2 -0
  100. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +7 -7
  101. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +32 -0
  102. package/dist/types-ts4.5/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +1 -1
  103. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +1 -1
  104. package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +1 -1
  105. package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +1 -1
  106. package/dist/types-ts4.5/ui/ContentStyles/tasks-and-decisions.d.ts +1 -0
  107. package/dist/types-ts4.5/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +1 -0
  108. package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -1
  109. package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +21 -1
  110. package/dist/types-ts4.5/utils/is-full-page.d.ts +1 -1
  111. package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +1 -1
  112. package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +0 -1
  113. package/dist/types-ts4.5/utils/toolbar.d.ts +2 -0
  114. package/package.json +12 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 209.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#199487](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199487)
8
+ [`54098ba4cc83c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/54098ba4cc83c) -
9
+ Add support to render primary toolbar for both full page editor and comment editor using new
10
+ toolbar components. Includes rewrites of full page toolbar which removes JS width calculation
11
+
12
+ ### Patch Changes
13
+
14
+ - [#199353](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199353)
15
+ [`f2d4ca35574b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2d4ca35574b8) -
16
+ Internal changes to how border radius values are applied. No visual change.
17
+ - Updated dependencies
18
+
19
+ ## 209.7.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [`4903edc4a60f8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4903edc4a60f8) -
24
+ [ux] Adds a configuration for media insert to allow for smart value input
25
+ - [`13a1ad07bb39e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/13a1ad07bb39e) -
26
+ [ux] EDITOR-1146 | EDITOR-1176 Introduce `blockTaskItem` node to Renderer and Editor
27
+ `editor-plugin-tasks-and-decisions` which adopts the same code and functionality as the regular
28
+ `taskItem` except that it allows block content such as extensions to be inserted. This is to
29
+ facilitate TinyMCE migration which requires usage of the Legacy Content Extension.
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 209.6.5
4
36
 
5
37
  ### Patch Changes
@@ -57,6 +57,12 @@
57
57
  {
58
58
  "path": "../../editor-shared-styles/afm-cc/tsconfig.json"
59
59
  },
60
+ {
61
+ "path": "../../editor-toolbar/afm-cc/tsconfig.json"
62
+ },
63
+ {
64
+ "path": "../../editor-toolbar-model/afm-cc/tsconfig.json"
65
+ },
60
66
  {
61
67
  "path": "../../../elements/emoji/afm-cc/tsconfig.json"
62
68
  },
@@ -57,6 +57,12 @@
57
57
  {
58
58
  "path": "../../editor-shared-styles/afm-dev-agents/tsconfig.json"
59
59
  },
60
+ {
61
+ "path": "../../editor-toolbar/afm-dev-agents/tsconfig.json"
62
+ },
63
+ {
64
+ "path": "../../editor-toolbar-model/afm-dev-agents/tsconfig.json"
65
+ },
60
66
  {
61
67
  "path": "../../../elements/emoji/afm-dev-agents/tsconfig.json"
62
68
  },
@@ -57,6 +57,12 @@
57
57
  {
58
58
  "path": "../../editor-shared-styles/afm-jira/tsconfig.json"
59
59
  },
60
+ {
61
+ "path": "../../editor-toolbar/afm-jira/tsconfig.json"
62
+ },
63
+ {
64
+ "path": "../../editor-toolbar-model/afm-jira/tsconfig.json"
65
+ },
60
66
  {
61
67
  "path": "../../../elements/emoji/afm-jira/tsconfig.json"
62
68
  },
@@ -57,6 +57,12 @@
57
57
  {
58
58
  "path": "../../editor-shared-styles/afm-post-office/tsconfig.json"
59
59
  },
60
+ {
61
+ "path": "../../editor-toolbar/afm-post-office/tsconfig.json"
62
+ },
63
+ {
64
+ "path": "../../editor-toolbar-model/afm-post-office/tsconfig.json"
65
+ },
60
66
  {
61
67
  "path": "../../../elements/emoji/afm-post-office/tsconfig.json"
62
68
  },
@@ -57,6 +57,12 @@
57
57
  {
58
58
  "path": "../../editor-shared-styles/afm-rovo-extension/tsconfig.json"
59
59
  },
60
+ {
61
+ "path": "../../editor-toolbar/afm-rovo-extension/tsconfig.json"
62
+ },
63
+ {
64
+ "path": "../../editor-toolbar-model/afm-rovo-extension/tsconfig.json"
65
+ },
60
66
  {
61
67
  "path": "../../../elements/emoji/afm-rovo-extension/tsconfig.json"
62
68
  },
@@ -57,6 +57,12 @@
57
57
  {
58
58
  "path": "../../editor-shared-styles/afm-townsquare/tsconfig.json"
59
59
  },
60
+ {
61
+ "path": "../../editor-toolbar/afm-townsquare/tsconfig.json"
62
+ },
63
+ {
64
+ "path": "../../editor-toolbar-model/afm-townsquare/tsconfig.json"
65
+ },
60
66
  {
61
67
  "path": "../../../elements/emoji/afm-townsquare/tsconfig.json"
62
68
  },
package/dist/cjs/index.js CHANGED
@@ -34,6 +34,12 @@ Object.defineProperty(exports, "EditorContext", {
34
34
  return _EditorContext.default;
35
35
  }
36
36
  });
37
+ Object.defineProperty(exports, "ReactEditorView", {
38
+ enumerable: true,
39
+ get: function get() {
40
+ return _ReactEditorView.ReactEditorView;
41
+ }
42
+ });
37
43
  Object.defineProperty(exports, "ToolbarHelp", {
38
44
  enumerable: true,
39
45
  get: function get() {
@@ -70,6 +76,12 @@ Object.defineProperty(exports, "createFeatureFlagsFromProps", {
70
76
  return _featureFlagsFromProps.createFeatureFlagsFromProps;
71
77
  }
72
78
  });
79
+ Object.defineProperty(exports, "getDefaultPresetOptionsFromEditorProps", {
80
+ enumerable: true,
81
+ get: function get() {
82
+ return _createPluginsList.getDefaultPresetOptionsFromEditorProps;
83
+ }
84
+ });
73
85
  Object.defineProperty(exports, "getNodesCount", {
74
86
  enumerable: true,
75
87
  get: function get() {
@@ -113,4 +125,6 @@ var _getNodesCount = require("./utils/getNodesCount");
113
125
  var _measureEnum = _interopRequireDefault(require("./utils/performance/measure-enum"));
114
126
  var _featureFlagsFromProps = require("./utils/feature-flags-from-props");
115
127
  var _actions = _interopRequireDefault(require("./actions"));
116
- var _ContentStyles = require("./ui/ContentStyles");
128
+ var _ContentStyles = require("./ui/ContentStyles");
129
+ var _createPluginsList = require("./create-editor/create-plugins-list");
130
+ var _ReactEditorView = require("./create-editor/ReactEditorView");
@@ -34,6 +34,7 @@ var _PluginSlot = _interopRequireDefault(require("../../PluginSlot"));
34
34
  var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
35
35
  var _ToolbarWithSizeDetector = require("../../Toolbar/ToolbarWithSizeDetector");
36
36
  var _WithFlash = _interopRequireDefault(require("../../WithFlash"));
37
+ var _CommentToolbar = require("./CommentToolbar");
37
38
  var _Toolbar = require("./Toolbar");
38
39
  var _templateObject;
39
40
  /**
@@ -250,7 +251,10 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
250
251
  editorAppearance: appearance,
251
252
  useStickyToolbar: useStickyToolbar,
252
253
  intl: intl
253
- }, (0, _react2.jsx)(_ToolbarWithSizeDetector.ToolbarWithSizeDetector
254
+ }, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true) ? (0, _react2.jsx)(_CommentToolbar.CommentToolbar, {
255
+ editorAPI: editorAPI,
256
+ editorView: editorView
257
+ }) : (0, _react2.jsx)(_ToolbarWithSizeDetector.ToolbarWithSizeDetector
254
258
  // Ignored via go/ees005
255
259
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
256
260
  , {
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.CommentToolbar = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _toolbar = require("@atlaskit/editor-common/toolbar");
10
+ var _toolbar2 = require("../../../utils/toolbar");
11
+ var _Toolbar = require("../../Toolbar/Toolbar");
12
+ /**
13
+ * Primary toolbar driven by components registered by `editor-plugin-toolbar`, introduced in `platform_editor_toolbar_aifc`.
14
+ */
15
+ var CommentToolbar = exports.CommentToolbar = function CommentToolbar(_ref) {
16
+ var _editorAPI$toolbar;
17
+ var editorAPI = _ref.editorAPI,
18
+ editorView = _ref.editorView;
19
+ var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
20
+ var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
21
+ return component.key === _toolbar.TOOLBARS.PRIMARY_TOOLBAR;
22
+ });
23
+ if (!components || !(0, _toolbar2.isToolbar)(toolbar)) {
24
+ return null;
25
+ }
26
+ return /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
27
+ toolbar: toolbar,
28
+ components: components,
29
+ editorView: editorView
30
+ });
31
+ };
@@ -15,10 +15,12 @@ var _ui = require("@atlaskit/editor-common/ui");
15
15
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
16
16
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
19
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
19
20
  var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
20
21
  var _FullPageContentArea = require("./FullPageContentArea");
21
22
  var _FullPageToolbar = require("./FullPageToolbar");
23
+ var _FullPageToolbarNext = require("./FullPageToolbarNext");
22
24
  var _getEditorViewModeSync = require("./getEditorViewModeSync");
23
25
  var _StyledComponents = require("./StyledComponents");
24
26
  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); }
@@ -169,7 +171,12 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
169
171
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
170
172
  '--ak-editor-fullpage-toolbar-height': (0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)()
171
173
  }
172
- }, !isEditorToolbarHidden && (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
174
+ }, !isEditorToolbarHidden && ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true) ? (0, _react2.jsx)(_FullPageToolbarNext.FullPageToolbarNext, {
175
+ toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
176
+ beforeIcon: props.primaryToolbarIconBefore,
177
+ editorAPI: editorAPI,
178
+ editorView: props.editorView
179
+ }) : (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
173
180
  appearance: props.appearance,
174
181
  editorAPI: editorAPI,
175
182
  beforeIcon: props.primaryToolbarIconBefore,
@@ -196,7 +203,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
196
203
  providerFactory: props.providerFactory,
197
204
  showKeyline: showKeyline,
198
205
  featureFlags: props.featureFlags
199
- }), (0, _react2.jsx)(_FullPageContentArea.FullPageContentArea, {
206
+ })), (0, _react2.jsx)(_FullPageContentArea.FullPageContentArea, {
200
207
  editorAPI: editorAPI,
201
208
  ref: scrollContentContainerRef,
202
209
  appearance: props.appearance,
@@ -0,0 +1,4 @@
1
+
2
+ ._n7zl7r9e{border-bottom:var(--ds-border-width,1px) solid var(--ds-border,#091e4224)}._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
3
+ ._2hwxpxbi{margin-right:var(--ds-space-200,1pc)}
4
+ ._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
@@ -0,0 +1,68 @@
1
+ /* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.FullPageToolbarNext = void 0;
9
+ require("./FullPageToolbarNext.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
11
+ var _react = _interopRequireDefault(require("react"));
12
+ var _toolbar = require("@atlaskit/editor-common/toolbar");
13
+ var _toolbar2 = require("../../../utils/toolbar");
14
+ var _Toolbar = require("../../Toolbar/Toolbar");
15
+ var _ToolbarPortal = require("../../Toolbar/ToolbarPortal");
16
+ var styles = {
17
+ mainToolbarIconBefore: "_19pkpxbi _2hwxpxbi _otyrpxbi",
18
+ mainToolbarWrapper: "_n7zl7r9e"
19
+ };
20
+ var MainToolbarWrapper = function MainToolbarWrapper(_ref) {
21
+ var children = _ref.children,
22
+ testId = _ref.testId;
23
+ return /*#__PURE__*/_react.default.createElement("div", {
24
+ "data-testid": testId,
25
+ className: (0, _runtime.ax)([styles.mainToolbarWrapper])
26
+ }, children);
27
+ };
28
+
29
+ /**
30
+ * TODO: ED-28732 - This component is a work in progress, re-writing `FullPageToolbar` and is not yet complete.
31
+ *
32
+ * [ ] Add support for custom toolbar + splitting into two lines
33
+ *
34
+ * [ ] Add support for toolbar keyboard shortcuts
35
+ *
36
+ * [ ] Add support for toolbar analytics
37
+ *
38
+ * [ ] Add support for toolbar accessibility
39
+ *
40
+ * [ ] Add support for toolbar localization
41
+ */
42
+ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbarNext(_ref2) {
43
+ var _editorAPI$toolbar, _useToolbarPortal;
44
+ var editorAPI = _ref2.editorAPI,
45
+ beforeIcon = _ref2.beforeIcon,
46
+ toolbarDockingPosition = _ref2.toolbarDockingPosition,
47
+ editorView = _ref2.editorView;
48
+ var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
49
+ var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
50
+ return component.key === _toolbar.TOOLBARS.PRIMARY_TOOLBAR;
51
+ });
52
+
53
+ // When a toolbar portal context is provided, render the toolbar inside a portal.
54
+ // Otherwise fall back to a fragment just to avoid forking rendering logic.
55
+ var _ref3 = (_useToolbarPortal = (0, _ToolbarPortal.useToolbarPortal)()) !== null && _useToolbarPortal !== void 0 ? _useToolbarPortal : {
56
+ Portal: _react.default.Fragment
57
+ },
58
+ ToolbarPortal = _ref3.Portal;
59
+ return /*#__PURE__*/_react.default.createElement(ToolbarPortal, null, /*#__PURE__*/_react.default.createElement(MainToolbarWrapper, {
60
+ testId: "full-page-primary-toolbar"
61
+ }, beforeIcon && /*#__PURE__*/_react.default.createElement("div", {
62
+ className: (0, _runtime.ax)([styles.mainToolbarIconBefore])
63
+ }, beforeIcon), toolbarDockingPosition !== 'none' && components && (0, _toolbar2.isToolbar)(toolbar) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
64
+ toolbar: toolbar,
65
+ components: components,
66
+ editorView: editorView
67
+ })));
68
+ };
@@ -171,7 +171,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
171
171
  var legacyContentStyles = function legacyContentStyles(props) {
172
172
  return (0, _react2.css)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t", "\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t/* For FullPage only when inside a table\n\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn the \"editorContentAreaContainerStyle\" function */\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? (0, _react2.css)(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), _editorSharedStyles.akEditorFullPageNarrowBreakout, _editorSharedStyles.akEditorGutterPaddingReduced) : null, (0, _editorSharedStyles.editorFontSize)({
173
173
  theme: props.theme
174
- }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? _styles3.findReplaceStylesNewNoImportant : _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _tasksAndDecisions.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithoutVisualRefresh, (0, _status.statusStyles)(), (0, _status.statusNodeStyles)(), (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _styles.getSmartCardSharedStyles)(), _date.dateStyles, _date.dateNodeStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _styles.pragmaticResizerStylesWithReducedEditorGutter)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarning.codeBidiWarningStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
174
+ }), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? _styles3.findReplaceStylesNewNoImportant : _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node', 'isEnabled', true) ? _tasksAndDecisions.taskItemStylesWithBlockTaskItem : _tasksAndDecisions.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithoutVisualRefresh, (0, _status.statusStyles)(), (0, _status.statusNodeStyles)(), (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _styles.getSmartCardSharedStyles)(), _date.dateStyles, _date.dateNodeStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _styles.pragmaticResizerStylesWithReducedEditorGutter)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarning.codeBidiWarningStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
175
175
  };
176
176
  var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
177
177
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -120,7 +120,8 @@ var baseStatusStyles = (0, _react.css)({
120
120
  maxWidth: '100%',
121
121
  paddingInline: "var(--ds-space-050, 4px)",
122
122
  display: 'inline-flex',
123
- borderRadius: '3px',
123
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
124
+ borderRadius: "var(--ds-border-radius-100, 3px)",
124
125
  blockSize: 'min-content',
125
126
  position: 'static',
126
127
  overflow: 'hidden',
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.taskItemStyles = exports.taskDecisionStyles = exports.taskDecisionIconWithoutVisualRefresh = exports.taskDecisionIconWithVisualRefresh = void 0;
7
+ exports.taskItemStylesWithBlockTaskItem = exports.taskItemStyles = exports.taskDecisionStyles = exports.taskDecisionIconWithoutVisualRefresh = exports.taskDecisionIconWithVisualRefresh = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _styles = require("@atlaskit/editor-common/styles");
@@ -349,4 +349,208 @@ var taskItemStyles = exports.taskItemStyles = (0, _react.css)((0, _definePropert
349
349
  transform: 'translate(-50%, -50%)'
350
350
  }
351
351
  }
352
+ }));
353
+
354
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
355
+ var taskItemStylesWithBlockTaskItem = exports.taskItemStylesWithBlockTaskItem = (0, _react.css)((0, _defineProperty2.default)({
356
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
357
+ '[data-prosemirror-node-name="taskItem"], [data-prosemirror-node-name="blockTaskItem"]': {
358
+ listStyle: 'none'
359
+ },
360
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
361
+ '[data-prosemirror-node-name="taskItem"] [data-component="task-item-main"], [data-prosemirror-node-name="blockTaskItem"] [data-component="task-item-main"]': {
362
+ display: 'flex',
363
+ flexDirection: 'row',
364
+ position: 'relative'
365
+ },
366
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
367
+ '[data-prosemirror-node-name="taskItem"] [data-component="placeholder"], [data-prosemirror-node-name="blockTaskItem"] [data-component="placeholder"]': {
368
+ position: 'absolute',
369
+ color: "var(--ds-text-subtlest, #626F86)",
370
+ margin: "0 0 0 calc(".concat("var(--ds-space-100, 8px)", " * 3)"),
371
+ pointerEvents: 'none',
372
+ textOverflow: 'ellipsis',
373
+ overflow: 'hidden',
374
+ whiteSpace: 'nowrap',
375
+ maxWidth: 'calc(100% - 50px)',
376
+ display: 'none'
377
+ },
378
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
379
+ "[data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder'], [data-prosemirror-node-name='blockTaskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
380
+ display: 'block'
381
+ },
382
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
383
+ '[data-prosemirror-node-name="taskItem"] [data-component="content"], [data-prosemirror-node-name="blockTaskItem"] [data-component="content"]': {
384
+ margin: 0,
385
+ wordWrap: 'break-word',
386
+ minWidth: 0,
387
+ flex: '1 1 auto'
388
+ },
389
+ // copied styles from packages/design-system/icon/src/components/icon-new.tsx
390
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
391
+ '[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"], [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"]': {
392
+ display: 'inline-block',
393
+ boxSizing: 'border-box',
394
+ flexShrink: 0,
395
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
396
+ lineHeight: 1,
397
+ paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
398
+ paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
399
+ },
400
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
401
+ '[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"] svg, [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"] svg': {
402
+ overflow: 'hidden',
403
+ pointerEvents: 'none',
404
+ color: 'currentColor',
405
+ verticalAlign: 'bottom',
406
+ width: "var(--ds-space-200, 16px)",
407
+ height: "var(--ds-space-200, 16px)"
408
+ },
409
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
410
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon]': {
411
+ display: 'none'
412
+ },
413
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
414
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon]': {
415
+ display: 'inline'
416
+ },
417
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
418
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon]': {
419
+ display: 'inline'
420
+ },
421
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
422
+ '[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon]': {
423
+ display: 'none'
424
+ }
425
+ }, "[data-prosemirror-node-name=\"taskItem\"] .".concat(_styles.TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER, ", [data-prosemirror-node-name=\"blockTaskItem\"] .").concat(_styles.TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER), {
426
+ flex: '0 0 24px',
427
+ width: '24px',
428
+ height: '24px',
429
+ position: 'relative',
430
+ alignSelf: 'start',
431
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
432
+ "& > input[type='checkbox']": {
433
+ width: '16px',
434
+ height: '16px',
435
+ zIndex: 1,
436
+ cursor: 'pointer',
437
+ outline: 'none',
438
+ margin: 0,
439
+ opacity: 0,
440
+ position: 'absolute',
441
+ top: '50%',
442
+ left: '50%',
443
+ transform: 'translate(-50%, -50%)',
444
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
445
+ '&[disabled]': {
446
+ cursor: 'default'
447
+ },
448
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
449
+ '+ span': {
450
+ width: '24px',
451
+ height: '24px',
452
+ position: 'absolute',
453
+ top: '50%',
454
+ left: '50%',
455
+ transform: 'translate(-50%, -50%)'
456
+ },
457
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
458
+ '+ span > svg': {
459
+ boxSizing: 'border-box',
460
+ display: 'inline',
461
+ top: '50%',
462
+ left: '50%',
463
+ transform: 'translate(-50%, -50%)',
464
+ maxWidth: 'unset',
465
+ maxHeight: 'unset',
466
+ position: 'absolute',
467
+ overflow: 'hidden',
468
+ color: "var(--ds-background-input, #FFFFFF)",
469
+ transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
470
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
471
+ 'path:first-of-type': {
472
+ visibility: 'hidden'
473
+ },
474
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
475
+ 'rect:first-of-type': {
476
+ stroke: "var(--ds-border-input, #8590A2)",
477
+ strokeWidth: 1,
478
+ transition: 'stroke 0.2s ease-in-out'
479
+ }
480
+ },
481
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
482
+ '&:hover + span > svg': {
483
+ color: "var(--ds-background-input-hovered, #F7F8F9)",
484
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
485
+ 'rect:first-of-type': {
486
+ stroke: "var(--ds-border-input, #8590A2)"
487
+ }
488
+ },
489
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
490
+ '&:checked:hover + span > svg': {
491
+ color: "var(--ds-background-selected-bold-hovered, #0055CC)",
492
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
493
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
494
+ 'rect:first-of-type': {
495
+ stroke: "var(--ds-background-selected-bold-hovered, #0055CC)"
496
+ }
497
+ },
498
+ '&:checked': {
499
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
500
+ '+ span > svg': {
501
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
502
+ 'path:first-of-type': {
503
+ visibility: 'visible'
504
+ },
505
+ color: "var(--ds-background-selected-bold, #0C66E4)",
506
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
507
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
508
+ 'rect:first-of-type': {
509
+ stroke: "var(--ds-background-selected-bold, #0C66E4)"
510
+ }
511
+ }
512
+ },
513
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
514
+ '&:active + span > svg': {
515
+ color: "var(--ds-background-input-pressed, #FFFFFF)",
516
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
517
+ 'rect:first-of-type': {
518
+ stroke: "var(--ds-border, #091E4224)"
519
+ }
520
+ },
521
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
522
+ '&:checked:active + span > svg': {
523
+ color: "var(--ds-background-input-pressed, #FFFFFF)",
524
+ fill: "var(--ds-icon-inverse, #FFFFFF)",
525
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
526
+ 'rect:first-of-type': {
527
+ stroke: "var(--ds-border, #091E4224)"
528
+ }
529
+ },
530
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
531
+ '&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
532
+ color: "var(--ds-background-disabled, #091E4208)",
533
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
534
+ 'rect:first-of-type': {
535
+ stroke: "var(--ds-background-disabled, #091E4208)"
536
+ }
537
+ },
538
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
539
+ '&:disabled:checked + span > svg': {
540
+ fill: "var(--ds-icon-disabled, #091E424F)"
541
+ },
542
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
543
+ '&:focus + span::after': {
544
+ position: 'absolute',
545
+ width: "var(--ds-space-200, 16px)",
546
+ height: "var(--ds-space-200, 16px)",
547
+ border: "2px solid ".concat("var(--ds-border-focused, #388BFF)"),
548
+ borderRadius: "var(--ds-space-050, 4px)",
549
+ content: "''",
550
+ display: 'block',
551
+ top: '50%',
552
+ left: '50%',
553
+ transform: 'translate(-50%, -50%)'
554
+ }
555
+ }
352
556
  }));
@@ -223,6 +223,10 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
223
223
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
224
224
  _tasksAndDecisionsStyles.decisionStyles,
225
225
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
226
+ (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node', 'isEnabled', true) ?
227
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
228
+ _tasksAndDecisionsStyles.taskItemStylesWithBlockTaskItem :
229
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
226
230
  _tasksAndDecisionsStyles.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') &&
227
231
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
228
232
  _tasksAndDecisionsStyles.decisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') &&
@@ -11,7 +11,8 @@ var _react = require("@emotion/react");
11
11
  var findReplaceStyles = exports.findReplaceStyles = (0, _react.css)({
12
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
13
13
  '.search-match': {
14
- borderRadius: '3px',
14
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
15
+ borderRadius: "var(--ds-border-radius-100, 3px)",
15
16
  backgroundColor: "var(--ds-background-accent-teal-subtlest, #E7F9FF)",
16
17
  boxShadow: "var(--ds-shadow-raised, 0 1px 1px 0 rgba(9, 30, 66, 0.25), 0 0 1px 0 rgba(9, 30, 66, 0.31))".concat(", inset 0 0 0 1px ", "var(--ds-border-input, #8590A2)")
17
18
  },
@@ -52,7 +52,8 @@ var statusStyles = exports.statusStyles = (0, _react.css)({
52
52
  maxWidth: '100%',
53
53
  paddingInline: "var(--ds-space-050, 4px)",
54
54
  display: 'inline-flex',
55
- borderRadius: '3px',
55
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
56
+ borderRadius: "var(--ds-border-radius-100, 3px)",
56
57
  blockSize: 'min-content',
57
58
  position: 'static',
58
59
  overflow: 'hidden',