@atlaskit/editor-core 224.4.2 → 224.4.4

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 (123) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/afm-cc/tsconfig.json +15 -0
  3. package/afm-products/tsconfig.json +15 -0
  4. package/dist/cjs/composable-editor/BaseThemeWrapper.js +2 -2
  5. package/dist/cjs/composable-editor/core-editor.js +2 -2
  6. package/dist/cjs/composable-editor/editor-internal.js +2 -2
  7. package/dist/cjs/create-editor/ErrorBoundary.js +4 -4
  8. package/dist/cjs/create-editor/ReactEditorView.js +4 -4
  9. package/dist/cjs/presets/default.js +2 -2
  10. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -2
  11. package/dist/cjs/ui/Appearance/ChromelessEditorContainer.js +2 -2
  12. package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +3 -3
  13. package/dist/cjs/ui/Appearance/Comment/Comment-emotion.js +3 -3
  14. package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
  15. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +2 -2
  16. package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +2 -2
  17. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +2 -2
  18. package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +2 -2
  19. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +3 -3
  20. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +2 -2
  21. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +3 -3
  22. package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +2 -2
  23. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +8 -8
  24. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +2 -2
  25. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -2
  26. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
  27. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +2 -2
  28. package/dist/cjs/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +2 -2
  29. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +2 -2
  30. package/dist/cjs/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +2 -2
  31. package/dist/cjs/ui/ChromeCollapsed/index.js +2 -2
  32. package/dist/cjs/ui/ContextPanel/index.js +7 -7
  33. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +5 -5
  34. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +9 -9
  35. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +2 -2
  36. package/dist/cjs/ui/PluginSlot/index.js +2 -2
  37. package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -2
  38. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +4 -4
  39. package/dist/cjs/ui/Toolbar/hooks.js +2 -2
  40. package/dist/cjs/ui/Toolbar/toolbar-size.js +2 -2
  41. package/dist/cjs/ui/WithFlash/index.js +2 -2
  42. package/dist/cjs/version-wrapper.js +1 -1
  43. package/dist/es2019/composable-editor/BaseThemeWrapper.js +1 -1
  44. package/dist/es2019/composable-editor/core-editor.js +1 -1
  45. package/dist/es2019/composable-editor/editor-internal.js +1 -1
  46. package/dist/es2019/create-editor/ErrorBoundary.js +2 -2
  47. package/dist/es2019/create-editor/ReactEditorView.js +1 -1
  48. package/dist/es2019/presets/default.js +1 -1
  49. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -1
  50. package/dist/es2019/ui/Appearance/ChromelessEditorContainer.js +1 -1
  51. package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +1 -1
  52. package/dist/es2019/ui/Appearance/Comment/Comment-emotion.js +1 -1
  53. package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
  54. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
  55. package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +1 -1
  56. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
  57. package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +1 -1
  58. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +1 -1
  59. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  60. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
  61. package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +1 -1
  62. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -2
  63. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
  64. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
  65. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
  66. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
  67. package/dist/es2019/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +1 -1
  68. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
  69. package/dist/es2019/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +1 -1
  70. package/dist/es2019/ui/ChromeCollapsed/index.js +1 -1
  71. package/dist/es2019/ui/ContextPanel/index.js +2 -2
  72. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
  73. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
  74. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  75. package/dist/es2019/ui/PluginSlot/index.js +1 -1
  76. package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -1
  77. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
  78. package/dist/es2019/ui/Toolbar/hooks.js +1 -1
  79. package/dist/es2019/ui/Toolbar/toolbar-size.js +1 -1
  80. package/dist/es2019/ui/WithFlash/index.js +1 -1
  81. package/dist/es2019/version-wrapper.js +1 -1
  82. package/dist/esm/composable-editor/BaseThemeWrapper.js +1 -1
  83. package/dist/esm/composable-editor/core-editor.js +1 -1
  84. package/dist/esm/composable-editor/editor-internal.js +1 -1
  85. package/dist/esm/create-editor/ErrorBoundary.js +2 -2
  86. package/dist/esm/create-editor/ReactEditorView.js +1 -1
  87. package/dist/esm/presets/default.js +1 -1
  88. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -1
  89. package/dist/esm/ui/Appearance/ChromelessEditorContainer.js +1 -1
  90. package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +1 -1
  91. package/dist/esm/ui/Appearance/Comment/Comment-emotion.js +1 -1
  92. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
  93. package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
  94. package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +1 -1
  95. package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
  96. package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +1 -1
  97. package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
  98. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  99. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
  100. package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +1 -1
  101. package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -2
  102. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
  103. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
  104. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
  105. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
  106. package/dist/esm/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +1 -1
  107. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
  108. package/dist/esm/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +1 -1
  109. package/dist/esm/ui/ChromeCollapsed/index.js +1 -1
  110. package/dist/esm/ui/ContextPanel/index.js +2 -2
  111. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
  112. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
  113. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  114. package/dist/esm/ui/PluginSlot/index.js +1 -1
  115. package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -1
  116. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
  117. package/dist/esm/ui/Toolbar/hooks.js +1 -1
  118. package/dist/esm/ui/Toolbar/toolbar-size.js +1 -1
  119. package/dist/esm/ui/WithFlash/index.js +1 -1
  120. package/dist/esm/version-wrapper.js +1 -1
  121. package/dist/types/actions/index.d.ts +1 -1
  122. package/dist/types/actions/temp-to-json.d.ts +1 -1
  123. package/package.json +42 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 224.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 224.4.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
14
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
15
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
16
+ changes.
17
+ - Updated dependencies
18
+
3
19
  ## 224.4.2
4
20
 
5
21
  ### Patch Changes
@@ -47,12 +47,18 @@
47
47
  {
48
48
  "path": "../../editor-performance-metrics/afm-cc/tsconfig.json"
49
49
  },
50
+ {
51
+ "path": "../../editor-plugin-block-menu/afm-cc/tsconfig.json"
52
+ },
50
53
  {
51
54
  "path": "../../editor-plugin-connectivity/afm-cc/tsconfig.json"
52
55
  },
53
56
  {
54
57
  "path": "../../editor-plugin-quick-insert/afm-cc/tsconfig.json"
55
58
  },
59
+ {
60
+ "path": "../../editor-plugin-selection-extension/afm-cc/tsconfig.json"
61
+ },
56
62
  {
57
63
  "path": "../../editor-plugin-user-preferences/afm-cc/tsconfig.json"
58
64
  },
@@ -80,6 +86,9 @@
80
86
  {
81
87
  "path": "../../../measurement/feature-gate-js-client/afm-cc/tsconfig.json"
82
88
  },
89
+ {
90
+ "path": "../../../design-system/heading/afm-cc/tsconfig.json"
91
+ },
83
92
  {
84
93
  "path": "../../../design-system/icon/afm-cc/tsconfig.json"
85
94
  },
@@ -104,6 +113,12 @@
104
113
  {
105
114
  "path": "../../../platform/feature-flags-react/afm-cc/tsconfig.json"
106
115
  },
116
+ {
117
+ "path": "../../../design-system/popup/afm-cc/tsconfig.json"
118
+ },
119
+ {
120
+ "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
121
+ },
107
122
  {
108
123
  "path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
109
124
  },
@@ -47,12 +47,18 @@
47
47
  {
48
48
  "path": "../../editor-performance-metrics/afm-products/tsconfig.json"
49
49
  },
50
+ {
51
+ "path": "../../editor-plugin-block-menu/afm-products/tsconfig.json"
52
+ },
50
53
  {
51
54
  "path": "../../editor-plugin-connectivity/afm-products/tsconfig.json"
52
55
  },
53
56
  {
54
57
  "path": "../../editor-plugin-quick-insert/afm-products/tsconfig.json"
55
58
  },
59
+ {
60
+ "path": "../../editor-plugin-selection-extension/afm-products/tsconfig.json"
61
+ },
56
62
  {
57
63
  "path": "../../editor-plugin-user-preferences/afm-products/tsconfig.json"
58
64
  },
@@ -80,6 +86,9 @@
80
86
  {
81
87
  "path": "../../../measurement/feature-gate-js-client/afm-products/tsconfig.json"
82
88
  },
89
+ {
90
+ "path": "../../../design-system/heading/afm-products/tsconfig.json"
91
+ },
83
92
  {
84
93
  "path": "../../../design-system/icon/afm-products/tsconfig.json"
85
94
  },
@@ -104,6 +113,12 @@
104
113
  {
105
114
  "path": "../../../platform/feature-flags-react/afm-products/tsconfig.json"
106
115
  },
116
+ {
117
+ "path": "../../../design-system/popup/afm-products/tsconfig.json"
118
+ },
119
+ {
120
+ "path": "../../../design-system/primitives/afm-products/tsconfig.json"
121
+ },
107
122
  {
108
123
  "path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
109
124
  },
@@ -8,7 +8,7 @@ exports.BaseThemeWrapper = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
11
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
12
12
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
13
  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); }
14
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -42,6 +42,6 @@ var BaseThemeWrapperLegacy = function BaseThemeWrapperLegacy(_ref2) {
42
42
 
43
43
  // Gated at module load — when the experiment is enabled, this becomes a no-op
44
44
  // wrapper; otherwise it preserves today's Emotion <ThemeProvider> behaviour.
45
- var BaseThemeWrapper = exports.BaseThemeWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
45
+ var BaseThemeWrapper = exports.BaseThemeWrapper = (0, _componentWithCondition.componentWithCondition)(function () {
46
46
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
47
47
  }, BaseThemeWrapperNoop, BaseThemeWrapperLegacy);
@@ -12,7 +12,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
14
14
  var _v = _interopRequireDefault(require("uuid/v4"));
15
- var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
15
+ var _FabricEditorAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext");
16
16
  var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
17
17
  var _analytics = require("@atlaskit/editor-common/analytics");
18
18
  var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
@@ -131,7 +131,7 @@ function CoreEditor(props) {
131
131
  };
132
132
  }, [props.appearance]);
133
133
  var memodEditorFeatureFlags = useMemoEditorFeatureFlags(props.featureFlags);
134
- return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricEditorAnalyticsContext
134
+ return /*#__PURE__*/_react.default.createElement(_FabricEditorAnalyticsContext.FabricEditorAnalyticsContext
135
135
  // @ts-expect-error Type 'string' is not assignable to type '"editorCore" | "renderer"'.
136
136
  , {
137
137
  data: data
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _portal = require("@atlaskit/editor-common/portal");
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
14
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
15
15
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
16
  var _ErrorBoundary = _interopRequireDefault(require("../create-editor/ErrorBoundary"));
17
17
  var _ReactEditorView = _interopRequireDefault(require("../create-editor/ReactEditorView"));
@@ -25,7 +25,7 @@ var _getBaseFontSize = require("./utils/getBaseFontSize");
25
25
  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); }
26
26
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27
27
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28
- var EditorInternalContainerMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
28
+ var EditorInternalContainerMigration = (0, _componentWithCondition.componentWithCondition)(function () {
29
29
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
30
30
  }, _editorInternalCompiled.EditorInternalContainerCompiled, _editorInternalEmotion.EditorInternalContainerEmotion);
31
31
  /**
@@ -20,8 +20,8 @@ var _analytics = require("@atlaskit/editor-common/analytics");
20
20
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
21
21
  var _intlErrorBoundary = require("@atlaskit/editor-common/intl-error-boundary");
22
22
  var _monitoring = require("@atlaskit/editor-common/monitoring");
23
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
23
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
24
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
25
25
  var _outdatedBrowsers = require("../utils/outdatedBrowsers");
26
26
  var _WithEditorView = require("./WithEditorView");
27
27
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -206,8 +206,8 @@ var ErrorBoundaryWithEditorViewWithAnalyticsReactContext = exports.ErrorBoundary
206
206
  return (0, _createClass2.default)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext);
207
207
  }(ErrorBoundaryWithEditorView); // eslint-disable-next-line @typescript-eslint/ban-types
208
208
  (0, _defineProperty2.default)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, "contextType", _analyticsNextStableReactContext.default);
209
- var _default_1 = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
210
- return (0, _platformFeatureFlags.fg)('platform_editor_sentry_breadcrumbs');
209
+ var _default_1 = (0, _componentWithCondition.componentWithCondition)(function () {
210
+ return (0, _fg.fg)('platform_editor_sentry_breadcrumbs');
211
211
  }, (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView));
212
212
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
213
213
  var _default = exports.default = _default_1;
@@ -37,7 +37,7 @@ var _createSsrEditorState = require("@atlaskit/editor-ssr-renderer/create-ssr-ed
37
37
  var _createSsrPmPlugins = require("@atlaskit/editor-ssr-renderer/create-ssr-pm-plugins");
38
38
  var _api = require("@atlaskit/insm/api");
39
39
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
40
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
40
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
41
41
  var _customData = require("@atlaskit/react-ufo/custom-data");
42
42
  var _interactionIdContext = require("@atlaskit/react-ufo/interaction-id-context");
43
43
  var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
@@ -818,7 +818,7 @@ function ReactEditorView(props) {
818
818
  if ((0, _isChromeless.isChromeless)(props.editorProps.appearance)) {
819
819
  focusTimeoutId.current = (0, _handleEditorFocus.handleEditorFocus)(editorView);
820
820
  }
821
- if ((0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('cc_editor_focus_before_editor_on_load')) {
821
+ if ((0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true) && (0, _fg.fg)('cc_editor_focus_before_editor_on_load')) {
822
822
  if (!disabled && shouldFocus && !(0, _document.isEmptyDocument)(editorView.state.doc)) {
823
823
  (0, _focusEditorElement.focusEditorElement)(editorId.current);
824
824
  }
@@ -967,7 +967,7 @@ function ReactEditorView(props) {
967
967
  };
968
968
  }, [editorView, isPageAppearance]);
969
969
  var createEditor = (0, _react.useCallback)(function (assistiveLabel, assistiveDescribedBy) {
970
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _platformFeatureFlags.fg)('cc_editor_focus_before_editor_on_load') && /*#__PURE__*/_react.default.createElement("div", {
970
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _fg.fg)('cc_editor_focus_before_editor_on_load') && /*#__PURE__*/_react.default.createElement("div", {
971
971
  tabIndex: -1,
972
972
  "data-focus-id": editorId.current,
973
973
  "data-testid": "react-editor-view-inital-focus-element"
@@ -1025,7 +1025,7 @@ function ReactEditorView(props) {
1025
1025
  if (!disabled && shouldFocus && !isLivePageWithContent) {
1026
1026
  focusTimeoutId.current = (0, _handleEditorFocus.handleEditorFocus)(viewRef.current);
1027
1027
  }
1028
- if ((0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('cc_editor_focus_before_editor_on_load')) {
1028
+ if ((0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true) && (0, _fg.fg)('cc_editor_focus_before_editor_on_load')) {
1029
1029
  if (!disabled && shouldFocus && !(0, _document.isEmptyDocument)(viewRef.current.state.doc)) {
1030
1030
  (0, _focusEditorElement.focusEditorElement)(editorId.current);
1031
1031
  }
@@ -44,7 +44,7 @@ var _unsupportedContent = require("@atlaskit/editor-plugins/unsupported-content"
44
44
  var _userIntent = require("@atlaskit/editor-plugins/user-intent");
45
45
  var _width = require("@atlaskit/editor-plugins/width");
46
46
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
47
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
47
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
48
48
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
49
49
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
50
50
  var _isFullPage = require("../utils/is-full-page");
@@ -71,7 +71,7 @@ function createDefaultPreset(options) {
71
71
  toolbarDockingPosition: isFullPage ? 'none' : 'top'
72
72
  }
73
73
  }], function () {
74
- return (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin');
74
+ return (0, _fg.fg)('platform_editor_use_preferences_plugin');
75
75
  }).maybeAdd(_interaction.interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) || (0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
76
76
  contextIdentifierProvider: options.contextIdentifierProvider
77
77
  }]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(options.allowUndoRedoButtons)).add(_userIntent.userIntentPlugin).maybeAdd([_toolbar.toolbarPlugin, options.toolbar || {}], Boolean((_options$toolbar = options.toolbar) === null || _options$toolbar === void 0 ? void 0 : _options$toolbar.enableNewToolbarExperience)).add([_primaryToolbar.primaryToolbarPlugin, {
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.ClickAreaBlock = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
9
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
10
10
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
11
  var _clickAreaHelper = require("../click-area-helper");
12
12
  var _clickAreaBlockCompiled = require("./clickAreaBlock-compiled");
13
13
  var _clickAreaBlockEmotion = require("./clickAreaBlock-emotion");
14
- var ClickAreaBlockContainerMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
14
+ var ClickAreaBlockContainerMigration = (0, _componentWithCondition.componentWithCondition)(function () {
15
15
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
16
16
  }, _clickAreaBlockCompiled.ClickAreaBlockContainerCompiled, _clickAreaBlockEmotion.ClickAreaBlockContainerEmotion);
17
17
  var ClickAreaBlock = exports.ClickAreaBlock = function ClickAreaBlock(_ref) {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ChromelessEditorContainer = void 0;
7
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
7
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
8
8
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
9
  var _ChromelessCompiled = require("./Chromeless-compiled");
10
10
  var _ChromelessEmotion = require("./Chromeless-emotion");
@@ -14,6 +14,6 @@ var _ChromelessEmotion = require("./Chromeless-emotion");
14
14
  * @param param0 props for the chromeless editor container
15
15
  * @returns JSX element representing the chromeless editor container
16
16
  */
17
- var ChromelessEditorContainer = exports.ChromelessEditorContainer = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
17
+ var ChromelessEditorContainer = exports.ChromelessEditorContainer = (0, _componentWithCondition.componentWithCondition)(function () {
18
18
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
19
19
  }, _ChromelessCompiled.ChromelessEditorContainerCompiled, _ChromelessEmotion.ChromelessEditorContainerEmotion);
@@ -15,7 +15,7 @@ var _react = _interopRequireWildcard(require("react"));
15
15
  var _classnames = _interopRequireDefault(require("classnames"));
16
16
  var _reactIntl = require("react-intl");
17
17
  var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
18
- var _new = _interopRequireDefault(require("@atlaskit/button/new"));
18
+ var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
19
19
  var _hooks = require("@atlaskit/editor-common/hooks");
20
20
  var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
21
21
  var _ui = require("@atlaskit/editor-common/ui");
@@ -254,13 +254,13 @@ var CommentEditorWithIntlCompiled = exports.CommentEditorWithIntlCompiled = func
254
254
  }))), showSecondaryToolbar && /*#__PURE__*/_react.default.createElement("div", {
255
255
  "data-testid": "ak-editor-secondary-toolbar",
256
256
  className: (0, _runtime.ax)([commentEditorCompiledStyles.secondaryToolbar])
257
- }, /*#__PURE__*/_react.default.createElement(_buttonGroup.default, null, !!onSave && /*#__PURE__*/_react.default.createElement(_new.default, {
257
+ }, /*#__PURE__*/_react.default.createElement(_buttonGroup.default, null, !!onSave && /*#__PURE__*/_react.default.createElement(_button.default, {
258
258
  appearance: "primary",
259
259
  onClick: handleSave,
260
260
  testId: "comment-save-button",
261
261
  isDisabled: disabled || saveButtonDisabled,
262
262
  interactionName: "editor-comment-save-button"
263
- }, intl.formatMessage(_messages.default.saveButton)), !!onCancel && /*#__PURE__*/_react.default.createElement(_new.default, {
263
+ }, intl.formatMessage(_messages.default.saveButton)), !!onCancel && /*#__PURE__*/_react.default.createElement(_button.default, {
264
264
  appearance: "subtle",
265
265
  onClick: handleCancel,
266
266
  testId: "comment-cancel-button",
@@ -13,7 +13,7 @@ var _react2 = require("@emotion/react");
13
13
  var _classnames = _interopRequireDefault(require("classnames"));
14
14
  var _reactIntl = require("react-intl");
15
15
  var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
16
- var _new = _interopRequireDefault(require("@atlaskit/button/new"));
16
+ var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
17
17
  var _hooks = require("@atlaskit/editor-common/hooks");
18
18
  var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
19
19
  var _ui = require("@atlaskit/editor-common/ui");
@@ -337,13 +337,13 @@ var CommentEditorWithIntlEmotion = exports.CommentEditorWithIntlEmotion = functi
337
337
  }))), showSecondaryToolbar && (0, _react2.jsx)("div", {
338
338
  css: secondaryToolbarStyles,
339
339
  "data-testid": "ak-editor-secondary-toolbar"
340
- }, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_new.default, {
340
+ }, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_button.default, {
341
341
  appearance: "primary",
342
342
  onClick: handleSave,
343
343
  testId: "comment-save-button",
344
344
  isDisabled: disabled || saveButtonDisabled,
345
345
  interactionName: "editor-comment-save-button"
346
- }, intl.formatMessage(_messages.default.saveButton)), !!onCancel && (0, _react2.jsx)(_new.default, {
346
+ }, intl.formatMessage(_messages.default.saveButton)), !!onCancel && (0, _react2.jsx)(_button.default, {
347
347
  appearance: "subtle",
348
348
  onClick: handleCancel,
349
349
  testId: "comment-cancel-button",
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CommentEditorWithIntl = void 0;
7
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
7
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
8
8
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
9
  var _CommentCompiled = require("./Comment-compiled");
10
10
  var _CommentEmotion = require("./Comment-emotion");
11
- var CommentEditorWithIntl = exports.CommentEditorWithIntl = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
11
+ var CommentEditorWithIntl = exports.CommentEditorWithIntl = (0, _componentWithCondition.componentWithCondition)(function () {
12
12
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
13
13
  }, _CommentCompiled.CommentEditorWithIntlCompiled, _CommentEmotion.CommentEditorWithIntlEmotion);
@@ -15,7 +15,7 @@ exports.FixedToolbarCompiled = void 0;
15
15
  require("./FixedToolbar-compiled.compiled.css");
16
16
  var _runtime = require("@compiled/react/runtime");
17
17
  var _react = _interopRequireDefault(require("react"));
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
19
19
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
20
20
  var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
21
21
  var fixedToolbarCompiledStyles = {
@@ -30,6 +30,6 @@ var fixedToolbarCompiledStyles = {
30
30
  var FixedToolbarCompiled = exports.FixedToolbarCompiled = function FixedToolbarCompiled(props) {
31
31
  return /*#__PURE__*/_react.default.createElement("div", {
32
32
  "data-testid": "ak-editor-main-toolbar",
33
- className: (0, _runtime.ax)([fixedToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && fixedToolbarCompiledStyles.mainToolbarTwoLine, fixedToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, props.isNewToolbarEnabled && fixedToolbarCompiledStyles.mainToolbarWithoutLeftPadding, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && fixedToolbarCompiledStyles.mainToolbarWithRadius, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fixedToolbarCompiledStyles.mainToolbarRadius, props.isEditorModernisationEnabled && fixedToolbarCompiledStyles.editorModernisationToolbar])
33
+ className: (0, _runtime.ax)([fixedToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && fixedToolbarCompiledStyles.mainToolbarTwoLine, fixedToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, props.isNewToolbarEnabled && fixedToolbarCompiledStyles.mainToolbarWithoutLeftPadding, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _fg.fg)('platform_editor_comments_border_radius') && fixedToolbarCompiledStyles.mainToolbarWithRadius, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && fixedToolbarCompiledStyles.mainToolbarRadius, props.isEditorModernisationEnabled && fixedToolbarCompiledStyles.editorModernisationToolbar])
34
34
  }, props.children);
35
35
  };
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.FixedToolbarEmotion = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
11
11
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
12
  /**
13
13
  * @jsxRuntime classic
@@ -87,7 +87,7 @@ var FixedToolbarEmotion = exports.FixedToolbarEmotion = function FixedToolbarEmo
87
87
  return (
88
88
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
89
89
  (0, _react.jsx)("div", {
90
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, props.isEditorModernisationEnabled && editorModernisationToolbarStyle],
90
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, props.isNewToolbarEnabled && mainToolbarWithoutLeftPadding, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _fg.fg)('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, props.isEditorModernisationEnabled && editorModernisationToolbarStyle],
91
91
  "data-testid": "ak-editor-main-toolbar"
92
92
  }, props.children)
93
93
  );
@@ -11,7 +11,7 @@ require("./StickyToolbar-compiled.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
  var _react = _interopRequireWildcard(require("react"));
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
15
15
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
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
  /**
@@ -61,6 +61,6 @@ var StickyToolbarCompiled = exports.StickyToolbarCompiled = function StickyToolb
61
61
  "data-testid": "ak-editor-main-toolbar"
62
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
63
63
  ,
64
- className: (0, _runtime.ax)([stickyToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && stickyToolbarCompiledStyles.mainToolbarTwoLine, stickyToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, stickyToolbarCompiledStyles.stickyToolbarWrapper, props.isNewToolbarEnabled && stickyToolbarCompiledStyles.mainToolbarWithPadding, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && stickyToolbarCompiledStyles.mainToolbarRadius, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && stickyToolbarCompiledStyles.mainToolbarWithRadius, props.isEditorModernisationEnabled && stickyToolbarCompiledStyles.editorModernisationToolbar, 'show-keyline'])
64
+ className: (0, _runtime.ax)([stickyToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && stickyToolbarCompiledStyles.mainToolbarTwoLine, stickyToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, stickyToolbarCompiledStyles.stickyToolbarWrapper, props.isNewToolbarEnabled && stickyToolbarCompiledStyles.mainToolbarWithPadding, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && stickyToolbarCompiledStyles.mainToolbarRadius, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _fg.fg)('platform_editor_comments_border_radius') && stickyToolbarCompiledStyles.mainToolbarWithRadius, props.isEditorModernisationEnabled && stickyToolbarCompiledStyles.editorModernisationToolbar, 'show-keyline'])
65
65
  }, props.children);
66
66
  };
@@ -9,7 +9,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = require("react");
11
11
  var _react2 = require("@emotion/react");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
13
13
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
14
  /**
15
15
  * @jsxRuntime classic
@@ -118,7 +118,7 @@ var StickyToolbarEmotion = exports.StickyToolbarEmotion = function StickyToolbar
118
118
  return (
119
119
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
120
120
  (0, _react2.jsx)("div", {
121
- css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, props.isEditorModernisationEnabled && editorModernisationToolbarStyle]
121
+ css: [mainToolbarWrapperStyleNew, props.twoLineEditorToolbar && mainToolbarTwoLineStylesNew, mainToolbarWrapperStylesVisualRefresh, stickyToolbarWrapperStyleNew, props.isNewToolbarEnabled && mainToolbarWithPadding, (0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && mainToolbarRadius, !(0, _expValEquals.expValEquals)('platform_editor_comment_editor_border_radius', 'isEnabled', true) && (0, _fg.fg)('platform_editor_comments_border_radius') && mainToolbarWithRadiusStyle, props.isEditorModernisationEnabled && editorModernisationToolbarStyle]
122
122
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/enforce-style-prop -- top is computed dynamically from externalToolbarRef height / offsetTop and cannot be a static css value
123
123
  ,
124
124
  style: wrapperStyle,
@@ -8,16 +8,16 @@ exports.MainToolbar = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
11
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
12
12
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
13
  var _FixedToolbarCompiled = require("./FixedToolbar-compiled");
14
14
  var _FixedToolbarEmotion = require("./FixedToolbar-emotion");
15
15
  var _StickyToolbarCompiled = require("./StickyToolbar-compiled");
16
16
  var _StickyToolbarEmotion = require("./StickyToolbar-emotion");
17
- var StickyToolbarMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
17
+ var StickyToolbarMigration = (0, _componentWithCondition.componentWithCondition)(function () {
18
18
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
19
19
  }, _StickyToolbarCompiled.StickyToolbarCompiled, _StickyToolbarEmotion.StickyToolbarEmotion);
20
- var FixedToolbarMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
20
+ var FixedToolbarMigration = (0, _componentWithCondition.componentWithCondition)(function () {
21
21
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
22
22
  }, _FixedToolbarCompiled.FixedToolbarCompiled, _FixedToolbarEmotion.FixedToolbarEmotion);
23
23
 
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.BeforePrimaryToolbarWrapper = void 0;
7
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
7
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
8
8
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
9
  var _BeforeWrapperCompiled = require("./BeforeWrapper-compiled");
10
10
  var _BeforeWrapperEmotion = require("./BeforeWrapper-emotion");
11
11
  // Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
12
12
  // only in `FullPageToolbar` to decouple the plugin from the main toolbar
13
- var BeforePrimaryToolbarWrapper = exports.BeforePrimaryToolbarWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
13
+ var BeforePrimaryToolbarWrapper = exports.BeforePrimaryToolbarWrapper = (0, _componentWithCondition.componentWithCondition)(function () {
14
14
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
15
15
  }, _BeforeWrapperCompiled.BeforePrimaryToolbarWrapperCompiled, _BeforeWrapperEmotion.BeforePrimaryToolbarWrapperEmotion);
@@ -4,17 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.MainToolbarForSecondChildWrapper = exports.MainToolbarForFirstChildWrapper = void 0;
7
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
7
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
8
8
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
9
  var _CustomToolbarWrapperCompiled = require("./CustomToolbarWrapper-compiled");
10
10
  var _CustomToolbarWrapperEmotion = require("./CustomToolbarWrapper-emotion");
11
11
  // ---------------- First child wrapper ----------------
12
- var MainToolbarForFirstChildWrapper = exports.MainToolbarForFirstChildWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
12
+ var MainToolbarForFirstChildWrapper = exports.MainToolbarForFirstChildWrapper = (0, _componentWithCondition.componentWithCondition)(function () {
13
13
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
14
14
  }, _CustomToolbarWrapperCompiled.MainToolbarForFirstChildWrapperCompiled, _CustomToolbarWrapperEmotion.MainToolbarForFirstChildWrapperEmotion);
15
15
 
16
16
  // ---------------- Second child wrapper ----------------
17
17
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
18
- var MainToolbarForSecondChildWrapper = exports.MainToolbarForSecondChildWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
18
+ var MainToolbarForSecondChildWrapper = exports.MainToolbarForSecondChildWrapper = (0, _componentWithCondition.componentWithCondition)(function () {
19
19
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
20
20
  }, _CustomToolbarWrapperCompiled.MainToolbarForSecondChildWrapperCompiled, _CustomToolbarWrapperEmotion.MainToolbarForSecondChildWrapperEmotion);
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CustomToolbarWrapperMigration = void 0;
7
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
7
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
8
8
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
9
  var _MainToolbarCompiled = require("./MainToolbar-compiled");
10
10
  var _MainToolbarEmotion = require("./MainToolbar-emotion");
11
- var CustomToolbarWrapperMigration = exports.CustomToolbarWrapperMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
11
+ var CustomToolbarWrapperMigration = exports.CustomToolbarWrapperMigration = (0, _componentWithCondition.componentWithCondition)(function () {
12
12
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
13
13
  }, _MainToolbarCompiled.CustomToolbarWrapperCompiled, _MainToolbarEmotion.CustomToolbarWrapperEmotion);
@@ -15,8 +15,8 @@ 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 _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
18
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
19
+ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
20
20
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
21
21
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
22
22
  var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
@@ -27,7 +27,7 @@ var _FullPageToolbar = require("./FullPageToolbar");
27
27
  var _FullPageToolbarNext = require("./FullPageToolbarNext");
28
28
  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); }
29
29
  var SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
30
- var FullPageEditorWrapperMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
30
+ var FullPageEditorWrapperMigration = (0, _componentWithCondition.componentWithCondition)(function () {
31
31
  return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
32
32
  }, _FullPageCompiled.FullPageEditorWrapperCompiled, _FullPageEmotion.FullPageEditorWrapperEmotion);
33
33
  var useShowKeyline = function useShowKeyline(contentAreaRef) {
@@ -97,9 +97,9 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
97
97
  var primaryToolbarState = (0, _getPrimaryToolbarComponents.getPrimaryToolbarComponents)(editorAPI, state.primaryToolbarComponents);
98
98
  var hasHadInteraction = interactionState !== 'hasNotHadInteraction';
99
99
  var toolbarDocking = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'selectionToolbar.toolbarDocking', {
100
- disabled: (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
100
+ disabled: (0, _fg.fg)('platform_editor_use_preferences_plugin')
101
101
  });
102
- if (!(0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')) {
102
+ if (!(0, _fg.fg)('platform_editor_use_preferences_plugin')) {
103
103
  if (!toolbarDocking) {
104
104
  var _editorAPI$selectionT, _editorAPI$selectionT2;
105
105
  // This is a workaround for the rendering issue with the selection toolbar
@@ -110,10 +110,10 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
110
110
  }
111
111
  }
112
112
  var _ref3 = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'userPreferences.preferences', {
113
- disabled: !(0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
113
+ disabled: !(0, _fg.fg)('platform_editor_use_preferences_plugin')
114
114
  }) || {},
115
115
  toolbarDockingPosition = _ref3.toolbarDockingPosition;
116
- if ((0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')) {
116
+ if ((0, _fg.fg)('platform_editor_use_preferences_plugin')) {
117
117
  if (!toolbarDockingPosition) {
118
118
  var _editorAPI$userPrefer, _editorAPI$userPrefer2;
119
119
  // This is a workaround for the rendering issue with the selection toolbar
@@ -133,7 +133,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
133
133
  if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
134
134
  exposure: true
135
135
  })) {
136
- if ((0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')) {
136
+ if ((0, _fg.fg)('platform_editor_use_preferences_plugin')) {
137
137
  // need to check if the toolbarDockingPosition is set to 'none' or 'top'
138
138
  if (toolbarDockingPosition === 'none' && !forcePrimaryToolbarPinned) {
139
139
  primaryToolbarComponents = [];
@@ -15,7 +15,7 @@ var _reactIntl = require("react-intl");
15
15
  var _hooks = require("@atlaskit/editor-common/hooks");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
17
17
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
19
19
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
20
20
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
21
21
  var _ClickAreaBlock = require("../../Addon/ClickAreaBlock");
@@ -136,7 +136,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
136
136
  "data-vc": "editor-content-area-region"
137
137
  }, /*#__PURE__*/_react.default.createElement("div", {
138
138
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
139
- className: (0, _runtime.ax)([compiledStyles.editorContentGutterStyles, (0, _platformFeatureFlags.fg)('platform_editor_controls_increase_full_page_gutter') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && compiledStyles.editorContentGutterStyleFG, (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
139
+ className: (0, _runtime.ax)([compiledStyles.editorContentGutterStyles, (0, _fg.fg)('platform_editor_controls_increase_full_page_gutter') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && compiledStyles.editorContentGutterStyleFG, (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
140
140
  exposure: true
141
141
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
142
142
  }) && compiledStyles.editorContentReducedGutterStyles, (0, _classnames.default)('ak-editor-content-area', 'appearance-full-page', {
@@ -15,7 +15,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
15
15
  var _hooks = require("@atlaskit/editor-common/hooks");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
17
17
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
19
19
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
20
20
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
21
21
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
@@ -360,7 +360,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
360
360
  }, (0, _react2.jsx)("div", {
361
361
  css: [editorContentGutterStyles,
362
362
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
363
- (0, _platformFeatureFlags.fg)('platform_editor_controls_increase_full_page_gutter') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && editorContentGutterStyleFG, (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
363
+ (0, _fg.fg)('platform_editor_controls_increase_full_page_gutter') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && editorContentGutterStyleFG, (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
364
364
  exposure: true
365
365
  }) && editorContentReducedGutterStyles]
366
366
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766