@atlaskit/editor-presets 10.0.8 → 10.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-presets
2
2
 
3
+ ## 10.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 10.0.8
4
10
 
5
11
  ### Patch Changes
@@ -102,7 +102,7 @@ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-ex
102
102
  var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
103
103
  var _fg = require("@atlaskit/platform-feature-flags/fg");
104
104
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
105
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
105
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
106
106
  var _editorPluginAgentManagedExtension = require("@atlassian/editor-plugin-agent-managed-extension");
107
107
  var _agentManagedExtensionPluginOptions = require("./pluginOptions/agentManagedExtensionPluginOptions");
108
108
  var _analyticsPluginOptions = require("./pluginOptions/analyticsPluginOptions");
@@ -206,7 +206,7 @@ function confluenceFullPageBasePreset(props) {
206
206
  options: pluginOptions.toolbar
207
207
  })], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([_editorPluginBlockMenu.blockMenuPlugin, (0, _blockMenuPluginOptions.blockMenuPluginOptions)({
208
208
  options: pluginOptions.blockMenu
209
- })], (0, _experiments.editorExperiment)('platform_editor_block_menu', true)).add(_editorPluginUndoRedo.undoRedoPlugin).add([_editorPluginBlockType.blockTypePlugin, (0, _blockTypePluginOptions.blockTypePluginOptions)({
209
+ })], (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)).add(_editorPluginUndoRedo.undoRedoPlugin).add([_editorPluginBlockType.blockTypePlugin, (0, _blockTypePluginOptions.blockTypePluginOptions)({
210
210
  options: pluginOptions.blockType
211
211
  })]).add(_editorPluginClearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).add([_editorPluginSelectionToolbar.selectionToolbarPlugin, (0, _selectionToolbarPluginOptions.selectionToolbarPluginOptions)({
212
212
  options: pluginOptions.selectionToolbar,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.featureFlagsPluginOptions = featureFlagsPluginOptions;
8
8
  var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
9
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
9
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
10
10
  function featureFlagsPluginOptions(_ref) {
11
11
  (0, _objectDestructuringEmpty2.default)(_ref);
12
12
  /**
@@ -27,7 +27,7 @@ function featureFlagsPluginOptions(_ref) {
27
27
  // END SECTION
28
28
 
29
29
  // SECTION: From confluence/next/packages/full-page-editor/src/hooks/useEditorFullPageExperiments.ts
30
- tableSelector: (0, _experiments.editorExperiment)('platform_editor_tables_table_selector', true),
30
+ tableSelector: (0, _editorExperiment.editorExperiment)('platform_editor_tables_table_selector', true),
31
31
  macroInteractionUpdates: true,
32
32
  moreElementsInQuickInsertView: true,
33
33
  // END SECTION
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.insertBlockPluginOptions = insertBlockPluginOptions;
7
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
7
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
8
8
  function insertBlockPluginOptions(_ref) {
9
9
  var options = _ref.options;
10
10
  return {
11
11
  allowTables: true,
12
12
  allowExpand: true,
13
13
  horizontalRuleEnabled: true,
14
- tableSelectorSupported: (0, _experiments.editorExperiment)('platform_editor_tables_table_selector', true),
14
+ tableSelectorSupported: (0, _editorExperiment.editorExperiment)('platform_editor_tables_table_selector', true),
15
15
  nativeStatusSupported: true,
16
16
  showElementBrowserLink: true,
17
17
  appearance: options.editorAppearance,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.placeholderPluginOptions = placeholderPluginOptions;
7
7
  var _createAdfFromHtml = require("@atlaskit/editor-common/utils/create-adf-from-html");
8
8
  var _fg = require("@atlaskit/platform-feature-flags/fg");
9
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
9
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
10
10
  var _i18n = require("./i18n");
11
11
  function placeholderPluginOptions(_ref) {
12
12
  var _options$enableLoadin;
@@ -29,7 +29,7 @@ function placeholderPluginOptions(_ref) {
29
29
  if (!options.isAIEnabled) {
30
30
  return intl.formatMessage(_i18n.i18n.editorEmptyDocumentPlaceholderAI);
31
31
  }
32
- if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
32
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
33
33
  return intl.formatMessage(_i18n.i18n.defaultPlaceholder);
34
34
  }
35
35
  return intl.formatMessage(_i18n.i18n.easyMentionsPlaceholder);
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.tablePluginOptions = tablePluginOptions;
7
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
7
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
8
8
  function tablePluginOptions(_ref) {
9
9
  var options = _ref.options;
10
10
  return {
@@ -34,7 +34,7 @@ function tablePluginOptions(_ref) {
34
34
  getEditorFeatureFlags: function getEditorFeatureFlags() {
35
35
  return {
36
36
  // SECTION: From confluence/next/packages/full-page-editor/src/hooks/useEditorFullPageExperiments.ts
37
- tableSelector: (0, _experiments.editorExperiment)('platform_editor_tables_table_selector', true)
37
+ tableSelector: (0, _editorExperiment.editorExperiment)('platform_editor_tables_table_selector', true)
38
38
  // END SECTION
39
39
  };
40
40
  },
@@ -96,7 +96,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
96
96
  import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
97
97
  import { fg } from '@atlaskit/platform-feature-flags/fg';
98
98
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
99
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
99
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
100
100
  import { agentManagedExtensionPlugin } from '@atlassian/editor-plugin-agent-managed-extension';
101
101
  import { agentManagedExtensionPluginOptions } from './pluginOptions/agentManagedExtensionPluginOptions';
102
102
  import { analyticsPluginOptions } from './pluginOptions/analyticsPluginOptions';
@@ -1,4 +1,4 @@
1
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
2
2
  export function featureFlagsPluginOptions({}) {
3
3
  /**
4
4
  * @private
@@ -1,4 +1,4 @@
1
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
2
2
  export function insertBlockPluginOptions({
3
3
  options
4
4
  }) {
@@ -1,6 +1,6 @@
1
1
  import { createADFFromHTML } from '@atlaskit/editor-common/utils/create-adf-from-html';
2
2
  import { fg } from '@atlaskit/platform-feature-flags/fg';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
4
4
  import { i18n } from './i18n';
5
5
  export function placeholderPluginOptions({
6
6
  intl,
@@ -1,4 +1,4 @@
1
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
2
2
  export function tablePluginOptions({
3
3
  options
4
4
  }) {
@@ -96,7 +96,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
96
96
  import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
97
97
  import { fg } from '@atlaskit/platform-feature-flags/fg';
98
98
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
99
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
99
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
100
100
  import { agentManagedExtensionPlugin } from '@atlassian/editor-plugin-agent-managed-extension';
101
101
  import { agentManagedExtensionPluginOptions } from './pluginOptions/agentManagedExtensionPluginOptions';
102
102
  import { analyticsPluginOptions } from './pluginOptions/analyticsPluginOptions';
@@ -1,5 +1,5 @@
1
1
  import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
2
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
2
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
3
3
  export function featureFlagsPluginOptions(_ref) {
4
4
  _objectDestructuringEmpty(_ref);
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
2
2
  export function insertBlockPluginOptions(_ref) {
3
3
  var options = _ref.options;
4
4
  return {
@@ -1,6 +1,6 @@
1
1
  import { createADFFromHTML } from '@atlaskit/editor-common/utils/create-adf-from-html';
2
2
  import { fg } from '@atlaskit/platform-feature-flags/fg';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
4
4
  import { i18n } from './i18n';
5
5
  export function placeholderPluginOptions(_ref) {
6
6
  var _options$enableLoadin;
@@ -1,4 +1,4 @@
1
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
1
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
2
2
  export function tablePluginOptions(_ref) {
3
3
  var options = _ref.options;
4
4
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-presets",
3
- "version": "10.0.8",
3
+ "version": "10.0.9",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Public editor presets for Atlassian Editor containing base configurations for Confluence and other products",
6
6
  "publishConfig": {
@@ -116,7 +116,7 @@
116
116
  "@atlaskit/editor-plugin-width": "^17.0.0",
117
117
  "@atlaskit/platform-feature-experiments": "^0.3.0",
118
118
  "@atlaskit/platform-feature-flags": "^2.1.0",
119
- "@atlaskit/tmp-editor-statsig": "^167.0.0",
119
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
120
120
  "@atlassian/ari": "^2.596.0",
121
121
  "@atlassian/editor-plugin-agent-managed-extension": "^6.0.0",
122
122
  "@babel/runtime": "^7.0.0"