@atlaskit/renderer 114.10.0 → 114.10.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 +18 -0
- package/dist/cjs/react/nodes/table/sticky.js +2 -1
- package/dist/cjs/ui/Renderer/index.js +12 -2
- package/dist/es2019/react/nodes/table/sticky.js +2 -1
- package/dist/es2019/ui/Renderer/index.js +14 -2
- package/dist/esm/react/nodes/table/sticky.js +2 -1
- package/dist/esm/ui/Renderer/index.js +12 -2
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 114.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#145086](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145086)
|
|
8
|
+
[`974da2c11753a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/974da2c11753a) -
|
|
9
|
+
Reduced dependency list of analytics callback in renderer
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 114.10.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#142223](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142223)
|
|
17
|
+
[`af7ab9622fe12`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/af7ab9622fe12) -
|
|
18
|
+
[ux] ED-27387 fix table sticky header positioning in embedded confluence
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 114.10.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -14,6 +14,7 @@ var _react2 = require("@emotion/react");
|
|
|
14
14
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
15
15
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _table = require("./table");
|
|
18
19
|
var _injectProps = require("../../utils/inject-props");
|
|
19
20
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
@@ -134,7 +135,7 @@ var FixedTableDivNew = function FixedTableDivNew(props) {
|
|
|
134
135
|
style: {
|
|
135
136
|
'--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
|
|
136
137
|
width: "".concat(wrapperWidth, "px"),
|
|
137
|
-
top: top ? "".concat(top, "px") : undefined
|
|
138
|
+
top: (0, _platformFeatureFlags.fg)('sticky_header_in_embedded_confluence_fix') ? typeof top === 'number' ? "".concat(top, "px") : undefined : top ? "".concat(top, "px") : undefined
|
|
138
139
|
}
|
|
139
140
|
}), props.children);
|
|
140
141
|
};
|
|
@@ -67,7 +67,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
67
67
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
68
68
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
69
69
|
var packageName = "@atlaskit/renderer";
|
|
70
|
-
var packageVersion = "114.10.
|
|
70
|
+
var packageVersion = "114.10.2";
|
|
71
71
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
72
72
|
containerName: 'ak-renderer-wrapper',
|
|
73
73
|
containerType: 'inline-size',
|
|
@@ -582,6 +582,7 @@ var handleWrapperOnClick = function handleWrapperOnClick(event, props, mouseDown
|
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
584
|
var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
|
|
585
|
+
var createAnalyticsEvent = props.createAnalyticsEvent;
|
|
585
586
|
var mouseDownSelection = (0, _react.useRef)(undefined);
|
|
586
587
|
var providerFactory = (0, _react.useMemo)(function () {
|
|
587
588
|
return props.dataProviders || new _providerFactory.ProviderFactory();
|
|
@@ -595,13 +596,22 @@ var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
|
|
|
595
596
|
};
|
|
596
597
|
};
|
|
597
598
|
}, []);
|
|
598
|
-
var
|
|
599
|
+
var fireAnalyticsEventOld = (0, _react.useCallback)(function (event) {
|
|
599
600
|
var createAnalyticsEvent = props.createAnalyticsEvent;
|
|
600
601
|
if (createAnalyticsEvent) {
|
|
601
602
|
var channel = _types.FabricChannel.editor;
|
|
602
603
|
createAnalyticsEvent(event).fire(channel);
|
|
603
604
|
}
|
|
604
605
|
}, [props]);
|
|
606
|
+
var fireAnalyticsEventNew = (0, _react.useCallback)(function (event) {
|
|
607
|
+
if (createAnalyticsEvent) {
|
|
608
|
+
var channel = _types.FabricChannel.editor;
|
|
609
|
+
createAnalyticsEvent(event).fire(channel);
|
|
610
|
+
}
|
|
611
|
+
}, [createAnalyticsEvent]);
|
|
612
|
+
var _fireAnalyticsEvent = (0, _experiments.editorExperiment)('platform_renderer_fix_analytics_memo_callback', true, {
|
|
613
|
+
exposure: true
|
|
614
|
+
}) ? fireAnalyticsEventNew : fireAnalyticsEventOld;
|
|
605
615
|
var deriveSerializerProps = (0, _react.useCallback)(function (props) {
|
|
606
616
|
var stickyHeaders = props.stickyHeaders ? props.stickyHeaders === true ? {} : props.stickyHeaders : undefined;
|
|
607
617
|
var annotationProvider = props.annotationProvider;
|
|
@@ -11,6 +11,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
13
13
|
import { N40A } from '@atlaskit/theme/colors';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Table } from './table';
|
|
15
16
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
16
17
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
@@ -148,7 +149,7 @@ const FixedTableDivNew = props => {
|
|
|
148
149
|
style: {
|
|
149
150
|
'--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
|
|
150
151
|
width: `${wrapperWidth}px`,
|
|
151
|
-
top: top ? `${top}px` : undefined
|
|
152
|
+
top: fg('sticky_header_in_embedded_confluence_fix') ? typeof top === 'number' ? `${top}px` : undefined : top ? `${top}px` : undefined
|
|
152
153
|
}
|
|
153
154
|
}), props.children);
|
|
154
155
|
};
|
|
@@ -48,7 +48,7 @@ import { removeEmptySpaceAroundContent } from './rendererHelper';
|
|
|
48
48
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
49
49
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
50
50
|
const packageName = "@atlaskit/renderer";
|
|
51
|
-
const packageVersion = "114.10.
|
|
51
|
+
const packageVersion = "114.10.2";
|
|
52
52
|
const setAsQueryContainerStyles = css({
|
|
53
53
|
containerName: 'ak-renderer-wrapper',
|
|
54
54
|
containerType: 'inline-size',
|
|
@@ -560,6 +560,9 @@ const handleWrapperOnClick = (event, props, mouseDownSelection) => {
|
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
562
|
const RendererFunctionalComponent = props => {
|
|
563
|
+
const {
|
|
564
|
+
createAnalyticsEvent
|
|
565
|
+
} = props;
|
|
563
566
|
const mouseDownSelection = useRef(undefined);
|
|
564
567
|
const providerFactory = useMemo(() => props.dataProviders || new ProviderFactory(), [props.dataProviders]);
|
|
565
568
|
const createRendererContext = useMemo(() => (featureFlags, isTopLevelRenderer) => {
|
|
@@ -569,7 +572,7 @@ const RendererFunctionalComponent = props => {
|
|
|
569
572
|
isTopLevelRenderer: isTopLevelRenderer === undefined
|
|
570
573
|
};
|
|
571
574
|
}, []);
|
|
572
|
-
const
|
|
575
|
+
const fireAnalyticsEventOld = useCallback(event => {
|
|
573
576
|
const {
|
|
574
577
|
createAnalyticsEvent
|
|
575
578
|
} = props;
|
|
@@ -578,6 +581,15 @@ const RendererFunctionalComponent = props => {
|
|
|
578
581
|
createAnalyticsEvent(event).fire(channel);
|
|
579
582
|
}
|
|
580
583
|
}, [props]);
|
|
584
|
+
const fireAnalyticsEventNew = useCallback(event => {
|
|
585
|
+
if (createAnalyticsEvent) {
|
|
586
|
+
const channel = FabricChannel.editor;
|
|
587
|
+
createAnalyticsEvent(event).fire(channel);
|
|
588
|
+
}
|
|
589
|
+
}, [createAnalyticsEvent]);
|
|
590
|
+
const fireAnalyticsEvent = editorExperiment('platform_renderer_fix_analytics_memo_callback', true, {
|
|
591
|
+
exposure: true
|
|
592
|
+
}) ? fireAnalyticsEventNew : fireAnalyticsEventOld;
|
|
581
593
|
const deriveSerializerProps = useCallback(props => {
|
|
582
594
|
const stickyHeaders = props.stickyHeaders ? props.stickyHeaders === true ? {} : props.stickyHeaders : undefined;
|
|
583
595
|
const {
|
|
@@ -14,6 +14,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
14
14
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
15
15
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import { N40A } from '@atlaskit/theme/colors';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
18
|
import { Table } from './table';
|
|
18
19
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
19
20
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
@@ -125,7 +126,7 @@ var FixedTableDivNew = function FixedTableDivNew(props) {
|
|
|
125
126
|
style: {
|
|
126
127
|
'--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
|
|
127
128
|
width: "".concat(wrapperWidth, "px"),
|
|
128
|
-
top: top ? "".concat(top, "px") : undefined
|
|
129
|
+
top: fg('sticky_header_in_embedded_confluence_fix') ? typeof top === 'number' ? "".concat(top, "px") : undefined : top ? "".concat(top, "px") : undefined
|
|
129
130
|
}
|
|
130
131
|
}), props.children);
|
|
131
132
|
};
|
|
@@ -57,7 +57,7 @@ import { removeEmptySpaceAroundContent } from './rendererHelper';
|
|
|
57
57
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
58
58
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
59
59
|
var packageName = "@atlaskit/renderer";
|
|
60
|
-
var packageVersion = "114.10.
|
|
60
|
+
var packageVersion = "114.10.2";
|
|
61
61
|
var setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size',
|
|
@@ -572,6 +572,7 @@ var handleWrapperOnClick = function handleWrapperOnClick(event, props, mouseDown
|
|
|
572
572
|
}
|
|
573
573
|
};
|
|
574
574
|
var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
|
|
575
|
+
var createAnalyticsEvent = props.createAnalyticsEvent;
|
|
575
576
|
var mouseDownSelection = useRef(undefined);
|
|
576
577
|
var providerFactory = useMemo(function () {
|
|
577
578
|
return props.dataProviders || new ProviderFactory();
|
|
@@ -585,13 +586,22 @@ var RendererFunctionalComponent = function RendererFunctionalComponent(props) {
|
|
|
585
586
|
};
|
|
586
587
|
};
|
|
587
588
|
}, []);
|
|
588
|
-
var
|
|
589
|
+
var fireAnalyticsEventOld = useCallback(function (event) {
|
|
589
590
|
var createAnalyticsEvent = props.createAnalyticsEvent;
|
|
590
591
|
if (createAnalyticsEvent) {
|
|
591
592
|
var channel = FabricChannel.editor;
|
|
592
593
|
createAnalyticsEvent(event).fire(channel);
|
|
593
594
|
}
|
|
594
595
|
}, [props]);
|
|
596
|
+
var fireAnalyticsEventNew = useCallback(function (event) {
|
|
597
|
+
if (createAnalyticsEvent) {
|
|
598
|
+
var channel = FabricChannel.editor;
|
|
599
|
+
createAnalyticsEvent(event).fire(channel);
|
|
600
|
+
}
|
|
601
|
+
}, [createAnalyticsEvent]);
|
|
602
|
+
var _fireAnalyticsEvent = editorExperiment('platform_renderer_fix_analytics_memo_callback', true, {
|
|
603
|
+
exposure: true
|
|
604
|
+
}) ? fireAnalyticsEventNew : fireAnalyticsEventOld;
|
|
595
605
|
var deriveSerializerProps = useCallback(function (props) {
|
|
596
606
|
var stickyHeaders = props.stickyHeaders ? props.stickyHeaders === true ? {} : props.stickyHeaders : undefined;
|
|
597
607
|
var annotationProvider = props.annotationProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "114.10.
|
|
3
|
+
"version": "114.10.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
32
32
|
"@atlaskit/button": "^23.0.0",
|
|
33
33
|
"@atlaskit/code": "^17.0.0",
|
|
34
|
-
"@atlaskit/editor-common": "^103.
|
|
34
|
+
"@atlaskit/editor-common": "^103.15.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/emoji": "^69.1.0",
|
|
40
40
|
"@atlaskit/feature-gate-js-client": "^5.2.0",
|
|
41
41
|
"@atlaskit/icon": "^25.6.0",
|
|
42
|
-
"@atlaskit/link-datasource": "^4.
|
|
42
|
+
"@atlaskit/link-datasource": "^4.6.0",
|
|
43
43
|
"@atlaskit/media-card": "^79.2.0",
|
|
44
44
|
"@atlaskit/media-client": "^32.0.0",
|
|
45
45
|
"@atlaskit/media-client-react": "^4.0.0",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags-react": "^0.1.0",
|
|
52
52
|
"@atlaskit/react-ufo": "^3.6.0",
|
|
53
|
-
"@atlaskit/smart-card": "^36.
|
|
53
|
+
"@atlaskit/smart-card": "^36.9.0",
|
|
54
54
|
"@atlaskit/status": "^3.0.0",
|
|
55
55
|
"@atlaskit/task-decision": "^19.1.0",
|
|
56
56
|
"@atlaskit/theme": "^18.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^4.14.0",
|
|
58
58
|
"@atlaskit/tokens": "^4.8.0",
|
|
59
59
|
"@atlaskit/tooltip": "^20.0.0",
|
|
60
60
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -221,6 +221,9 @@
|
|
|
221
221
|
},
|
|
222
222
|
"confluence_frontend_fix_extension_draft_annotation": {
|
|
223
223
|
"type": "boolean"
|
|
224
|
+
},
|
|
225
|
+
"sticky_header_in_embedded_confluence_fix": {
|
|
226
|
+
"type": "boolean"
|
|
224
227
|
}
|
|
225
228
|
},
|
|
226
229
|
"af:exports": {
|