@atlaskit/editor-core 205.3.1 → 205.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/composable-editor/core-editor.js +7 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +7 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +7 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 205.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#140996](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140996)
|
|
8
|
+
[`f24f59a665aaf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f24f59a665aaf) -
|
|
9
|
+
Added a temporary experiment to aid editor controls experiment set up
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 205.3.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
18
18
|
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
19
19
|
var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
|
|
20
20
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
22
|
var _actions = _interopRequireDefault(require("../actions"));
|
|
22
23
|
var _EditorContext = require("../ui/EditorContext");
|
|
23
24
|
var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
|
|
@@ -115,13 +116,17 @@ var useMemoEditorFeatureFlags = function useMemoEditorFeatureFlags(featureFlags)
|
|
|
115
116
|
function CoreEditor(props) {
|
|
116
117
|
var editorSessionId = (0, _react.useRef)((0, _v.default)());
|
|
117
118
|
var data = (0, _react.useMemo)(function () {
|
|
118
|
-
return {
|
|
119
|
+
return _objectSpread({
|
|
119
120
|
packageName: _versionWrapper.name,
|
|
120
121
|
packageVersion: _versionWrapper.version,
|
|
121
122
|
componentName: 'editorCore',
|
|
122
123
|
appearance: (0, _analytics2.getAnalyticsAppearance)(props.appearance),
|
|
123
124
|
editorSessionId: editorSessionId.current
|
|
124
|
-
}
|
|
125
|
+
}, (0, _experiments.editorExperiment)('platform_editor_controls_shadow', 'variant1', {
|
|
126
|
+
exposure: true
|
|
127
|
+
}) ? {
|
|
128
|
+
tmpControlsShadow: true
|
|
129
|
+
} : {});
|
|
125
130
|
}, [props.appearance]);
|
|
126
131
|
var memodEditorFeatureFlags = useMemoEditorFeatureFlags(props.featureFlags);
|
|
127
132
|
return (0, _react2.jsx)(_analyticsNamespacedContext.FabricEditorAnalyticsContext
|
|
@@ -15,6 +15,7 @@ import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
15
15
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
16
16
|
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils/analytics';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
19
|
import EditorActions from '../actions';
|
|
19
20
|
import { useEditorContext } from '../ui/EditorContext';
|
|
20
21
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
@@ -118,7 +119,12 @@ export function CoreEditor(props) {
|
|
|
118
119
|
packageVersion: version,
|
|
119
120
|
componentName: 'editorCore',
|
|
120
121
|
appearance: getAnalyticsAppearance(props.appearance),
|
|
121
|
-
editorSessionId: editorSessionId.current
|
|
122
|
+
editorSessionId: editorSessionId.current,
|
|
123
|
+
...(editorExperiment('platform_editor_controls_shadow', 'variant1', {
|
|
124
|
+
exposure: true
|
|
125
|
+
}) ? {
|
|
126
|
+
tmpControlsShadow: true
|
|
127
|
+
} : {})
|
|
122
128
|
};
|
|
123
129
|
}, [props.appearance]);
|
|
124
130
|
const memodEditorFeatureFlags = useMemoEditorFeatureFlags(props.featureFlags);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "205.3.
|
|
2
|
+
export const version = "205.3.2";
|
|
@@ -18,6 +18,7 @@ import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
18
18
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
19
19
|
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils/analytics';
|
|
20
20
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
21
22
|
import EditorActions from '../actions';
|
|
22
23
|
import { useEditorContext } from '../ui/EditorContext';
|
|
23
24
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
@@ -111,13 +112,17 @@ var useMemoEditorFeatureFlags = function useMemoEditorFeatureFlags(featureFlags)
|
|
|
111
112
|
export function CoreEditor(props) {
|
|
112
113
|
var editorSessionId = useRef(uuid());
|
|
113
114
|
var data = useMemo(function () {
|
|
114
|
-
return {
|
|
115
|
+
return _objectSpread({
|
|
115
116
|
packageName: name,
|
|
116
117
|
packageVersion: version,
|
|
117
118
|
componentName: 'editorCore',
|
|
118
119
|
appearance: getAnalyticsAppearance(props.appearance),
|
|
119
120
|
editorSessionId: editorSessionId.current
|
|
120
|
-
}
|
|
121
|
+
}, editorExperiment('platform_editor_controls_shadow', 'variant1', {
|
|
122
|
+
exposure: true
|
|
123
|
+
}) ? {
|
|
124
|
+
tmpControlsShadow: true
|
|
125
|
+
} : {});
|
|
121
126
|
}, [props.appearance]);
|
|
122
127
|
var memodEditorFeatureFlags = useMemoEditorFeatureFlags(props.featureFlags);
|
|
123
128
|
return jsx(FabricEditorAnalyticsContext
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "205.3.
|
|
2
|
+
export var version = "205.3.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "205.3.
|
|
3
|
+
"version": "205.3.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.1.0",
|
|
62
62
|
"@atlaskit/react-ufo": "^3.5.0",
|
|
63
63
|
"@atlaskit/task-decision": "^19.1.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^4.7.0",
|
|
65
65
|
"@atlaskit/tokens": "^4.7.0",
|
|
66
66
|
"@atlaskit/tooltip": "^20.0.0",
|
|
67
67
|
"@atlaskit/width-detector": "^5.0.0",
|