@atlaskit/renderer 124.9.6 → 124.9.8

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,20 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 124.9.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6cb21d13010a3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6cb21d13010a3) -
8
+ Exclude SLLV (and keep only block card) element when applying list (ul/ol) css override
9
+ - Updated dependencies
10
+
11
+ ## 124.9.7
12
+
13
+ ### Patch Changes
14
+
15
+ - [`f716cffe0a4ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f716cffe0a4ad) -
16
+ Cleaned platform_editor_annotation_position_comment_nodes FG.
17
+
3
18
  ## 124.9.6
4
19
 
5
20
  ### Patch Changes
@@ -110,13 +110,11 @@ function resolveNodePos(node) {
110
110
  var resolvedPos = 0;
111
111
  var prev = node.previousSibling;
112
112
  while (prev) {
113
- if ((0, _platformFeatureFlags.fg)('platform_editor_annotation_position_comment_nodes')) {
114
- if (prev.nodeType === Node.COMMENT_NODE) {
115
- // Comment nodes should not result in the position being
116
- // incremented, so we skip them.
117
- prev = prev.previousSibling;
118
- continue;
119
- }
113
+ if (prev.nodeType === Node.COMMENT_NODE) {
114
+ // Comment nodes should not result in the position being
115
+ // incremented, so we skip them.
116
+ prev = prev.previousSibling;
117
+ continue;
120
118
  }
121
119
  if (prev && (isTextNode(prev) || isHighlightTextNode(prev))) {
122
120
  resolvedPos += (prev.textContent || '').length;
@@ -856,19 +856,19 @@ var smartCardStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".conc
856
856
  margin: "".concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0"),
857
857
  maxWidth: "".concat(8 * 95, "px")
858
858
  }));
859
- var smartCardStylesAvatarFix = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), {
859
+ var smartCardStylesAvatarFix = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, ":not(.").concat(_styles.SmartCardSharedCssClassName.DATASOURCE_CONTAINER, ")"), {
860
860
  /* EDM-11991: Fix list plugin adding padding to ADS AvatarGroup start */
861
861
  'ul, ol': {
862
862
  paddingLeft: 'inherit'
863
863
  }
864
864
  /* EDM-11991: Fix list plugin add padding to ADS AvatarGroup end */
865
865
  }));
866
- var smartCardStylesAvatarMarginFix = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), {
866
+ var smartCardStylesAvatarMarginFix = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, ":not(.").concat(_styles.SmartCardSharedCssClassName.DATASOURCE_CONTAINER, ")"), {
867
867
  'ul, ol': {
868
868
  marginRight: 'inherit'
869
869
  }
870
870
  }));
871
- var smartCardStylesAvatarListZeroMarginTop = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), {
871
+ var smartCardStylesAvatarListZeroMarginTop = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, ":not(.").concat(_styles.SmartCardSharedCssClassName.DATASOURCE_CONTAINER, ")"), {
872
872
  'ul, ol': {
873
873
  marginTop: 0
874
874
  }
@@ -68,7 +68,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
68
68
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
69
69
  var TABLE_WIDTH_INFO_TIMEOUT = 10000;
70
70
  var packageName = "@atlaskit/renderer";
71
- var packageVersion = "124.9.5";
71
+ var packageVersion = "124.9.7";
72
72
  var setAsQueryContainerStyles = (0, _react2.css)({
73
73
  containerName: 'ak-renderer-wrapper',
74
74
  containerType: 'inline-size'
@@ -105,13 +105,11 @@ function resolveNodePos(node) {
105
105
  let resolvedPos = 0;
106
106
  let prev = node.previousSibling;
107
107
  while (prev) {
108
- if (fg('platform_editor_annotation_position_comment_nodes')) {
109
- if (prev.nodeType === Node.COMMENT_NODE) {
110
- // Comment nodes should not result in the position being
111
- // incremented, so we skip them.
112
- prev = prev.previousSibling;
113
- continue;
114
- }
108
+ if (prev.nodeType === Node.COMMENT_NODE) {
109
+ // Comment nodes should not result in the position being
110
+ // incremented, so we skip them.
111
+ prev = prev.previousSibling;
112
+ continue;
115
113
  }
116
114
  if (prev && (isTextNode(prev) || isHighlightTextNode(prev))) {
117
115
  resolvedPos += (prev.textContent || '').length;
@@ -990,7 +990,7 @@ const smartCardStyles = css({
990
990
  }
991
991
  });
992
992
  const smartCardStylesAvatarFix = css({
993
- [`.${SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER}`]: {
993
+ [`.${SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER}:not(.${SmartCardSharedCssClassName.DATASOURCE_CONTAINER})`]: {
994
994
  /* EDM-11991: Fix list plugin adding padding to ADS AvatarGroup start */
995
995
  'ul, ol': {
996
996
  paddingLeft: 'inherit'
@@ -999,14 +999,14 @@ const smartCardStylesAvatarFix = css({
999
999
  }
1000
1000
  });
1001
1001
  const smartCardStylesAvatarMarginFix = css({
1002
- [`.${SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER}`]: {
1002
+ [`.${SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER}:not(.${SmartCardSharedCssClassName.DATASOURCE_CONTAINER})`]: {
1003
1003
  'ul, ol': {
1004
1004
  marginRight: 'inherit'
1005
1005
  }
1006
1006
  }
1007
1007
  });
1008
1008
  const smartCardStylesAvatarListZeroMarginTop = css({
1009
- [`.${SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER}`]: {
1009
+ [`.${SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER}:not(.${SmartCardSharedCssClassName.DATASOURCE_CONTAINER})`]: {
1010
1010
  'ul, ol': {
1011
1011
  marginTop: 0
1012
1012
  }
@@ -54,7 +54,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
54
54
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
55
55
  const TABLE_WIDTH_INFO_TIMEOUT = 10000;
56
56
  const packageName = "@atlaskit/renderer";
57
- const packageVersion = "124.9.5";
57
+ const packageVersion = "124.9.7";
58
58
  const setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size'
@@ -101,13 +101,11 @@ function resolveNodePos(node) {
101
101
  var resolvedPos = 0;
102
102
  var prev = node.previousSibling;
103
103
  while (prev) {
104
- if (fg('platform_editor_annotation_position_comment_nodes')) {
105
- if (prev.nodeType === Node.COMMENT_NODE) {
106
- // Comment nodes should not result in the position being
107
- // incremented, so we skip them.
108
- prev = prev.previousSibling;
109
- continue;
110
- }
104
+ if (prev.nodeType === Node.COMMENT_NODE) {
105
+ // Comment nodes should not result in the position being
106
+ // incremented, so we skip them.
107
+ prev = prev.previousSibling;
108
+ continue;
111
109
  }
112
110
  if (prev && (isTextNode(prev) || isHighlightTextNode(prev))) {
113
111
  resolvedPos += (prev.textContent || '').length;
@@ -849,19 +849,19 @@ var smartCardStyles = css(_defineProperty({}, ".".concat(SmartCardSharedCssClass
849
849
  margin: "".concat(blockNodesVerticalMargin, " 0 0"),
850
850
  maxWidth: "".concat(8 * 95, "px")
851
851
  }));
852
- var smartCardStylesAvatarFix = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), {
852
+ var smartCardStylesAvatarFix = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, ":not(.").concat(SmartCardSharedCssClassName.DATASOURCE_CONTAINER, ")"), {
853
853
  /* EDM-11991: Fix list plugin adding padding to ADS AvatarGroup start */
854
854
  'ul, ol': {
855
855
  paddingLeft: 'inherit'
856
856
  }
857
857
  /* EDM-11991: Fix list plugin add padding to ADS AvatarGroup end */
858
858
  }));
859
- var smartCardStylesAvatarMarginFix = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), {
859
+ var smartCardStylesAvatarMarginFix = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, ":not(.").concat(SmartCardSharedCssClassName.DATASOURCE_CONTAINER, ")"), {
860
860
  'ul, ol': {
861
861
  marginRight: 'inherit'
862
862
  }
863
863
  }));
864
- var smartCardStylesAvatarListZeroMarginTop = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), {
864
+ var smartCardStylesAvatarListZeroMarginTop = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, ":not(.").concat(SmartCardSharedCssClassName.DATASOURCE_CONTAINER, ")"), {
865
865
  'ul, ol': {
866
866
  marginTop: 0
867
867
  }
@@ -59,7 +59,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
59
59
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
60
60
  var TABLE_WIDTH_INFO_TIMEOUT = 10000;
61
61
  var packageName = "@atlaskit/renderer";
62
- var packageVersion = "124.9.5";
62
+ var packageVersion = "124.9.7";
63
63
  var setAsQueryContainerStyles = css({
64
64
  containerName: 'ak-renderer-wrapper',
65
65
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "124.9.6",
3
+ "version": "124.9.8",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/feature-gate-js-client": "^5.5.0",
42
42
  "@atlaskit/icon": "^28.5.0",
43
43
  "@atlaskit/link": "^3.2.0",
44
- "@atlaskit/link-datasource": "^4.27.0",
44
+ "@atlaskit/link-datasource": "^4.28.0",
45
45
  "@atlaskit/link-extractors": "^2.4.0",
46
46
  "@atlaskit/media-card": "^79.6.0",
47
47
  "@atlaskit/media-client": "^35.5.0",
@@ -57,8 +57,8 @@
57
57
  "@atlaskit/status": "^3.0.0",
58
58
  "@atlaskit/task-decision": "^19.2.0",
59
59
  "@atlaskit/theme": "^21.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^13.23.0",
61
- "@atlaskit/tokens": "^7.0.0",
60
+ "@atlaskit/tmp-editor-statsig": "^13.26.0",
61
+ "@atlaskit/tokens": "^7.1.0",
62
62
  "@atlaskit/tooltip": "^20.7.0",
63
63
  "@atlaskit/visually-hidden": "^3.0.0",
64
64
  "@babel/runtime": "^7.0.0",
@@ -71,7 +71,7 @@
71
71
  "uuid": "^3.1.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@atlaskit/editor-common": "^110.20.0",
74
+ "@atlaskit/editor-common": "^110.21.0",
75
75
  "@atlaskit/link-provider": "^4.0.0",
76
76
  "@atlaskit/media-core": "^37.0.0",
77
77
  "react": "^18.2.0",
@@ -140,9 +140,6 @@
140
140
  "platform_fix_nested_num_column_scaling": {
141
141
  "type": "boolean"
142
142
  },
143
- "platform_editor_annotation_position_comment_nodes": {
144
- "type": "boolean"
145
- },
146
143
  "platform_editor_typography_ugc": {
147
144
  "type": "boolean"
148
145
  },
@@ -1,141 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.post-office.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../post-office/tsDist/@atlaskit__renderer/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../adf-utils/afm-post-office/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../analytics/analytics-listeners/afm-post-office/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../analytics/analytics-namespaced-context/afm-post-office/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../analytics/analytics-next/afm-post-office/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../helpers/browser-apis/afm-post-office/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../design-system/button/afm-post-office/tsconfig.json"
43
- },
44
- {
45
- "path": "../../../design-system/code/afm-post-office/tsconfig.json"
46
- },
47
- {
48
- "path": "../../editor-json-transformer/afm-post-office/tsconfig.json"
49
- },
50
- {
51
- "path": "../../editor-palette/afm-post-office/tsconfig.json"
52
- },
53
- {
54
- "path": "../../editor-shared-styles/afm-post-office/tsconfig.json"
55
- },
56
- {
57
- "path": "../../editor-tables/afm-post-office/tsconfig.json"
58
- },
59
- {
60
- "path": "../../../elements/emoji/afm-post-office/tsconfig.json"
61
- },
62
- {
63
- "path": "../../../measurement/feature-gate-js-client/afm-post-office/tsconfig.json"
64
- },
65
- {
66
- "path": "../../../design-system/icon/afm-post-office/tsconfig.json"
67
- },
68
- {
69
- "path": "../../../design-system/link/afm-post-office/tsconfig.json"
70
- },
71
- {
72
- "path": "../../../linking-platform/link-datasource/afm-post-office/tsconfig.json"
73
- },
74
- {
75
- "path": "../../../linking-platform/link-extractors/afm-post-office/tsconfig.json"
76
- },
77
- {
78
- "path": "../../../media/media-card/afm-post-office/tsconfig.json"
79
- },
80
- {
81
- "path": "../../../media/media-client/afm-post-office/tsconfig.json"
82
- },
83
- {
84
- "path": "../../../media/media-client-react/afm-post-office/tsconfig.json"
85
- },
86
- {
87
- "path": "../../../media/media-common/afm-post-office/tsconfig.json"
88
- },
89
- {
90
- "path": "../../../media/media-filmstrip/afm-post-office/tsconfig.json"
91
- },
92
- {
93
- "path": "../../../media/media-ui/afm-post-office/tsconfig.json"
94
- },
95
- {
96
- "path": "../../../media/media-viewer/afm-post-office/tsconfig.json"
97
- },
98
- {
99
- "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
100
- },
101
- {
102
- "path": "../../../platform/feature-flags-react/afm-post-office/tsconfig.json"
103
- },
104
- {
105
- "path": "../../../react-ufo/atlaskit/afm-post-office/tsconfig.json"
106
- },
107
- {
108
- "path": "../../../linking-platform/smart-card/afm-post-office/tsconfig.json"
109
- },
110
- {
111
- "path": "../../../elements/status/afm-post-office/tsconfig.json"
112
- },
113
- {
114
- "path": "../../../elements/task-decision/afm-post-office/tsconfig.json"
115
- },
116
- {
117
- "path": "../../../design-system/theme/afm-post-office/tsconfig.json"
118
- },
119
- {
120
- "path": "../../tmp-editor-statsig/afm-post-office/tsconfig.json"
121
- },
122
- {
123
- "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
124
- },
125
- {
126
- "path": "../../../design-system/tooltip/afm-post-office/tsconfig.json"
127
- },
128
- {
129
- "path": "../../../design-system/visually-hidden/afm-post-office/tsconfig.json"
130
- },
131
- {
132
- "path": "../../editor-common/afm-post-office/tsconfig.json"
133
- },
134
- {
135
- "path": "../../../linking-platform/link-provider/afm-post-office/tsconfig.json"
136
- },
137
- {
138
- "path": "../../../media/media-core/afm-post-office/tsconfig.json"
139
- }
140
- ]
141
- }