@atlaskit/renderer 136.1.7 → 136.2.1
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 +29 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/react/index.js +2 -0
- package/dist/cjs/react/nodes/emoji.js +5 -0
- package/dist/cjs/react/nodes/index.js +2 -3
- package/dist/cjs/react/nodes/panel-compiled.compiled.css +7 -0
- package/dist/cjs/react/nodes/panel-compiled.js +2 -1
- package/dist/cjs/react/nodes/panel-emotion.js +27 -1
- package/dist/cjs/react/nodes/table/sticky.js +13 -1
- package/dist/cjs/ui/Renderer/index.js +2 -1
- package/dist/es2019/react/index.js +2 -0
- package/dist/es2019/react/nodes/emoji.js +5 -0
- package/dist/es2019/react/nodes/index.js +1 -3
- package/dist/es2019/react/nodes/panel-compiled.compiled.css +7 -0
- package/dist/es2019/react/nodes/panel-compiled.js +2 -1
- package/dist/es2019/react/nodes/panel-emotion.js +27 -1
- package/dist/es2019/react/nodes/table/sticky.js +17 -1
- package/dist/es2019/ui/Renderer/index.js +2 -1
- package/dist/esm/react/index.js +2 -0
- package/dist/esm/react/nodes/emoji.js +5 -0
- package/dist/esm/react/nodes/index.js +1 -3
- package/dist/esm/react/nodes/panel-compiled.compiled.css +7 -0
- package/dist/esm/react/nodes/panel-compiled.js +2 -1
- package/dist/esm/react/nodes/panel-emotion.js +27 -1
- package/dist/esm/react/nodes/table/sticky.js +13 -1
- package/dist/esm/ui/Renderer/index.js +2 -1
- package/dist/types/react/index.d.ts +3 -1
- package/dist/types/react/nodes/emoji.d.ts +2 -1
- package/dist/types/ui/renderer-props.d.ts +6 -1
- package/package.json +40 -33
- package/report.api.md +5 -0
- package/dist/cjs/react/nodes/nodes.js +0 -104
- package/dist/es2019/react/nodes/nodes.js +0 -97
- package/dist/esm/react/nodes/nodes.js +0 -97
- package/dist/types/react/nodes/nodes.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 136.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`de41cde76539d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/de41cde76539d) -
|
|
8
|
+
[ux] EDITOR-8647 fix sticky header mask for rounded table in panel
|
|
9
|
+
|
|
10
|
+
## 136.2.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`67cb56528e699`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/67cb56528e699) -
|
|
15
|
+
Add emojiProviderLookupOrder as an optional override for the shortName-only emoji lookup priority
|
|
16
|
+
- [`d82e6f76528ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82e6f76528ab) -
|
|
17
|
+
Add direct subpath package exports as part of the linking-platform, search, media, and
|
|
18
|
+
design-system barrel-removal (de-barrel) migration.
|
|
19
|
+
|
|
20
|
+
These packages now expose their individual modules via explicit `package.json` `exports` subpaths
|
|
21
|
+
so that consumers can import directly from the leaf module (e.g. `@atlaskit/pkg/thing`) instead of
|
|
22
|
+
the package barrel/index. This adds new public entry points without changing or removing any
|
|
23
|
+
existing exports, so it is a backwards-compatible additive change.
|
|
24
|
+
|
|
25
|
+
No runtime behaviour changes; this is an API-surface (entry-point) addition to support
|
|
26
|
+
tree-shaking and to unblock removal of the barrel index files.
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
|
|
3
32
|
## 136.1.7
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/dist/cjs/react/index.js
CHANGED
|
@@ -213,6 +213,7 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
213
213
|
this.surroundTextNodesWithTextWrapper = Boolean(init.surroundTextNodesWithTextWrapper);
|
|
214
214
|
this.media = init.media;
|
|
215
215
|
this.mentionNodeDataProvider = init.mentionNodeDataProvider;
|
|
216
|
+
this.emojiProviderLookupOrder = init.emojiProviderLookupOrder;
|
|
216
217
|
this.emojiResourceConfig = init.emojiResourceConfig;
|
|
217
218
|
this.smartLinks = init.smartLinks;
|
|
218
219
|
this.extensionViewportSizes = init.extensionViewportSizes;
|
|
@@ -563,6 +564,7 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
563
564
|
value: function getEmojiProps(node) {
|
|
564
565
|
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
565
566
|
return _objectSpread(_objectSpread({}, this.getProps(node, path)), {}, {
|
|
567
|
+
emojiProviderLookupOrder: (0, _platformFeatureFlags.fg)('platform_bitbucket_fix_shortname_and_ordering') ? this.emojiProviderLookupOrder : undefined,
|
|
566
568
|
resourceConfig: this.emojiResourceConfig
|
|
567
569
|
});
|
|
568
570
|
}
|
|
@@ -53,6 +53,7 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
|
|
|
53
53
|
fallback = _this$props.fallback,
|
|
54
54
|
fitToHeight = _this$props.fitToHeight,
|
|
55
55
|
showTooltip = _this$props.showTooltip,
|
|
56
|
+
emojiProviderLookupOrder = _this$props.emojiProviderLookupOrder,
|
|
56
57
|
resourceConfig = _this$props.resourceConfig;
|
|
57
58
|
if (allowTextFallback && !providers.emojiProvider) {
|
|
58
59
|
// When the gate is enabled and the fallback text is not a single
|
|
@@ -84,6 +85,7 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
|
|
|
84
85
|
fallback: fallback,
|
|
85
86
|
shortName: shortName
|
|
86
87
|
},
|
|
88
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
87
89
|
emojiProvider: providers.emojiProvider,
|
|
88
90
|
showTooltip: showTooltip,
|
|
89
91
|
fitToHeight: fitToHeight,
|
|
@@ -135,6 +137,7 @@ var EmojiItemComponent = exports.EmojiItemComponent = function EmojiItemComponen
|
|
|
135
137
|
shortName = props.shortName,
|
|
136
138
|
text = props.text,
|
|
137
139
|
fitToHeight = props.fitToHeight,
|
|
140
|
+
emojiProviderLookupOrder = props.emojiProviderLookupOrder,
|
|
138
141
|
resourceConfig = props.resourceConfig;
|
|
139
142
|
var inlineAnnotationProps = (0, _useInlineAnnotationProps.useInlineAnnotationProps)(props);
|
|
140
143
|
if ((0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
@@ -148,6 +151,7 @@ var EmojiItemComponent = exports.EmojiItemComponent = function EmojiItemComponen
|
|
|
148
151
|
fallback: text,
|
|
149
152
|
providers: providers,
|
|
150
153
|
fitToHeight: fitToHeight,
|
|
154
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
151
155
|
resourceConfig: resourceConfig
|
|
152
156
|
}))
|
|
153
157
|
);
|
|
@@ -159,6 +163,7 @@ var EmojiItemComponent = exports.EmojiItemComponent = function EmojiItemComponen
|
|
|
159
163
|
fallback: text,
|
|
160
164
|
providers: providers,
|
|
161
165
|
fitToHeight: fitToHeight,
|
|
166
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
162
167
|
resourceConfig: resourceConfig
|
|
163
168
|
});
|
|
164
169
|
};
|
|
@@ -179,13 +179,12 @@ var _table = _interopRequireDefault(require("./table"));
|
|
|
179
179
|
var _tableCell = require("./tableCell");
|
|
180
180
|
var _tableRow = _interopRequireDefault(require("./tableRow"));
|
|
181
181
|
var _unknownBlock = _interopRequireDefault(require("./unknownBlock"));
|
|
182
|
-
var _nodes = require("./nodes");
|
|
183
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
184
182
|
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; }
|
|
185
183
|
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; }
|
|
186
184
|
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" != (0, _typeof2.default)(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); } /* eslint-disable @atlaskit/editor/no-re-export */ // Mapping file
|
|
187
185
|
// Ignored via go/ees005
|
|
188
186
|
// eslint-disable-next-line import/no-named-as-default
|
|
187
|
+
|
|
189
188
|
var WindowedCodeBlock = exports.WindowedCodeBlock = (0, _reactLoadable.default)({
|
|
190
189
|
loader: function loader() {
|
|
191
190
|
return Promise.resolve().then(function () {
|
|
@@ -516,7 +515,7 @@ var toReact = exports.toReact = function toReact(node, flags, nodeComponents
|
|
|
516
515
|
}
|
|
517
516
|
|
|
518
517
|
// Allowing custom components to override those provided in nodeToReact
|
|
519
|
-
var nodes = _objectSpread(_objectSpread({},
|
|
518
|
+
var nodes = _objectSpread(_objectSpread({}, nodeToReact), nodeComponents);
|
|
520
519
|
if (node.type.name === 'codeBlock') {
|
|
521
520
|
var _nodes$codeBlock;
|
|
522
521
|
if ((flags === null || flags === void 0 ? void 0 : flags.allowWindowedCodeBlock) === true) {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
._13n84jg8.ak-editor-panel{align-items:normal}
|
|
7
7
|
._1554u2gc.ak-editor-panel{padding-top:var(--ds-space-100,8px)}
|
|
8
8
|
._15sp1vk5.ak-editor-panel[data-panel-type=error]{background-color:var(--ds-background-accent-red-subtlest,#ffeceb)}
|
|
9
|
+
._18hz1vk5.ak-editor-panel[data-panel-type=error]{--ak-renderer-panel-bg-color:var(--ds-background-accent-red-subtlest,#ffeceb)}
|
|
9
10
|
._18w0h2mm.ak-editor-panel{position:relative}
|
|
10
11
|
._18y8qm1h.ak-editor-panel[data-panel-type=note] .ak-editor-panel__icon{color:var(--ds-icon-discovery,#af59e1)}
|
|
11
12
|
._19agidpf.ak-editor-panel .ak-editor-panel__content{flex-shrink:0}
|
|
@@ -37,18 +38,24 @@
|
|
|
37
38
|
._66ohu2gc.ak-editor-panel{padding-left:var(--ds-space-100,8px)}
|
|
38
39
|
._6qwr1hna.ak-editor-panel{word-break:break-word}
|
|
39
40
|
._7c6p1t9x.ak-editor-panel .ak-editor-panel__icon .emoji-common-emoji-image{vertical-align:var(--_1glv3p1)}
|
|
41
|
+
._93eu1aok.ak-editor-panel[data-panel-type=custom]{--ak-renderer-panel-bg-color:var(--ak-renderer-panel-custom-bg-color)}
|
|
40
42
|
._9dunutpp.ak-editor-panel__no-icon{padding-left:var(--ds-space-150,9pt)}
|
|
43
|
+
._a9e5p2ly.ak-editor-panel[data-panel-type=note]{--ak-renderer-panel-bg-color:var(--ds-background-accent-purple-subtlest,#f8eefe)}
|
|
41
44
|
._e5ovn729.ak-editor-panel[data-panel-type=tip]{background-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
45
|
+
._eba1ibhp.ak-editor-panel[data-panel-type=warning]{--ak-renderer-panel-bg-color:var(--ds-background-accent-yellow-subtlest,#fef7c8)}
|
|
42
46
|
._fc9iidpf.ak-editor-panel .ak-editor-panel__content{min-width:0}
|
|
43
47
|
._g8a34pcx.ak-editor-panel[data-panel-type=tip] .ak-editor-panel__icon{color:var(--ds-icon-success,#6a9a23)}
|
|
44
48
|
._gb1eidpf.ak-editor-panel .ak-editor-panel__content{margin-left:0}
|
|
49
|
+
._giv8n729.ak-editor-panel[data-panel-type=success]{--ak-renderer-panel-bg-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
45
50
|
._gt7x4pcx.ak-editor-panel[data-panel-type=success] .ak-editor-panel__icon{color:var(--ds-icon-success,#6a9a23)}
|
|
46
51
|
._iqv91kw7.ak-editor-panel{color:inherit}
|
|
47
52
|
._jde2v77o.ak-editor-panel .ak-editor-panel__content{margin-top:var(--ds-space-025,2px)}
|
|
53
|
+
._niep1s93.ak-editor-panel{--ak-renderer-panel-bg-color:var(--ds-background-accent-blue-subtlest,#e9f2fe)}
|
|
48
54
|
._nlelp2ly.ak-editor-panel[data-panel-type=note]{background-color:var(--ds-background-accent-purple-subtlest,#f8eefe)}
|
|
49
55
|
._pzbautpp.ak-editor-panel__no-icon{padding-right:var(--ds-space-150,9pt)}
|
|
50
56
|
._s4ldn729.ak-editor-panel[data-panel-type=success]{background-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
51
57
|
._ujht1s93.ak-editor-panel{background-color:var(--ds-background-accent-blue-subtlest,#e9f2fe)}
|
|
58
|
+
._vy90n729.ak-editor-panel[data-panel-type=tip]{--ak-renderer-panel-bg-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
52
59
|
._wz94glyw.ak-editor-panel .ak-editor-panel__icon{-moz-user-select:none}
|
|
53
60
|
._zs6jglyw.ak-editor-panel .ak-editor-panel__icon{-webkit-user-select:none}
|
|
54
61
|
@-moz-document url-prefix(){._udsa1o8l.ak-editor-panel .ak-editor-panel__icon .emoji-common-emoji-image img{display:inline-block}}
|
|
@@ -33,6 +33,7 @@ var panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
|
|
|
33
33
|
var blockNodesVerticalMargin = '0.75rem';
|
|
34
34
|
var akEditorTableCellMinWidth = 48;
|
|
35
35
|
var panelBaseStyles = null;
|
|
36
|
+
var panelBackgroundColorVariableStyles = null;
|
|
36
37
|
var panelHasNoIconStyles = null;
|
|
37
38
|
var panelInfoIconStyles = null;
|
|
38
39
|
var panelNestedIconStyles = null;
|
|
@@ -47,7 +48,7 @@ var PanelStyledCompiled = exports.PanelStyledCompiled = function PanelStyledComp
|
|
|
47
48
|
var customBackgroundColor = backgroundColor ? (0, _editorPalette.hexToEditorBackgroundPaletteColor)(backgroundColor) || backgroundColor : undefined;
|
|
48
49
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, props, {
|
|
49
50
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- intentional: preserve existing PanelSharedCssClassName.prefix class
|
|
50
|
-
className: (0, _runtime.ax)(["_lklzfajl _imyb1bbz _50vakb7n _19agidpf _1q6xf1ug _jde2v77o _1bi2v77o _gb1eidpf _11k7idpf _fc9iidpf _1554u2gc _1eiopxbi _1w22u2gc _66ohu2gc _1it3jmsf _19s71txw _18w0h2mm _13n84jg8 _6qwr1hna _ujht1s93 _iqv91kw7 _1l9midpf _1v1c1ejb _11wb1ejb _1oah1ntv _1pciu2gc _1cgk1h6o _5zphglyw _wz94glyw _zs6jglyw _1n3wglyw _1yw1vq3b _1h33yhbg _1a3fnkob _1uvd116y _1hauowts _7c6p1t9x _udsa1o8l _nlelp2ly _18y8qm1h _e5ovn729 _g8a34pcx _1g6dibhp _1udservl _15sp1vk5 _1fe7s4qr _s4ldn729 _gt7x4pcx", (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) && (0, _fg.fg)('platform_editor_nest_table_in_panel_patch_2') && "_19mdyhbg", !hasIcon && "_1whxutpp _1b0jutpp", props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor && "_122m1aok", "_9dunutpp _pzbautpp", "_1wvnia51", className]),
|
|
51
|
+
className: (0, _runtime.ax)(["_lklzfajl _imyb1bbz _50vakb7n _19agidpf _1q6xf1ug _jde2v77o _1bi2v77o _gb1eidpf _11k7idpf _fc9iidpf _1554u2gc _1eiopxbi _1w22u2gc _66ohu2gc _1it3jmsf _19s71txw _18w0h2mm _13n84jg8 _6qwr1hna _ujht1s93 _iqv91kw7 _1l9midpf _1v1c1ejb _11wb1ejb _1oah1ntv _1pciu2gc _1cgk1h6o _5zphglyw _wz94glyw _zs6jglyw _1n3wglyw _1yw1vq3b _1h33yhbg _1a3fnkob _1uvd116y _1hauowts _7c6p1t9x _udsa1o8l _nlelp2ly _18y8qm1h _e5ovn729 _g8a34pcx _1g6dibhp _1udservl _15sp1vk5 _1fe7s4qr _s4ldn729 _gt7x4pcx", (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) && (0, _fg.fg)('platform_editor_nest_table_in_panel_patch_3') && "_niep1s93 _a9e5p2ly _giv8n729 _vy90n729 _eba1ibhp _18hz1vk5 _93eu1aok", (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) && (0, _fg.fg)('platform_editor_nest_table_in_panel_patch_2') && "_19mdyhbg", !hasIcon && "_1whxutpp _1b0jutpp", props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor && "_122m1aok", "_9dunutpp _pzbautpp", "_1wvnia51", className]),
|
|
51
52
|
style: _objectSpread(_objectSpread({}, {
|
|
52
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- intentional: custom panel background is dynamic via CSS variable
|
|
53
54
|
'--ak-renderer-panel-custom-bg-color': customBackgroundColor
|
|
@@ -135,6 +135,32 @@ var panelBaseStyles = (0, _react2.css)({
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
+
var panelBackgroundColorVariableStyles = (0, _react2.css)({
|
|
139
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
140
|
+
'&.ak-editor-panel': {
|
|
141
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
|
|
142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
143
|
+
'&[data-panel-type="note"]': {
|
|
144
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-purple-subtlest, #F8EEFE)"
|
|
145
|
+
},
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
147
|
+
'&[data-panel-type="tip"], &[data-panel-type="success"]': {
|
|
148
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-green-subtlest, #DCFFF1)"
|
|
149
|
+
},
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
151
|
+
'&[data-panel-type="warning"]': {
|
|
152
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-yellow-subtlest, #FEF7C8)"
|
|
153
|
+
},
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
155
|
+
'&[data-panel-type="error"]': {
|
|
156
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-red-subtlest, #FFECEB)"
|
|
157
|
+
},
|
|
158
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
159
|
+
'&[data-panel-type="custom"]': {
|
|
160
|
+
'--ak-renderer-panel-bg-color': 'var(--ak-renderer-panel-custom-bg-color)'
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
138
164
|
var panelHasNoIconStyles = (0, _react2.css)({
|
|
139
165
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
140
166
|
'&.ak-editor-panel': {
|
|
@@ -187,7 +213,7 @@ var PanelStyledEmotion = exports.PanelStyledEmotion = function PanelStyledEmotio
|
|
|
187
213
|
{
|
|
188
214
|
'--ak-renderer-panel-custom-bg-color': customBackgroundColor
|
|
189
215
|
},
|
|
190
|
-
css: [panelBaseStyles, (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) && (0, _fg.fg)('platform_editor_nest_table_in_panel_patch_2') && panelInfoIconStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor && panelCustomBackground, panelNestedIconStyles, nestedPanelStyles]
|
|
216
|
+
css: [panelBaseStyles, (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) && (0, _fg.fg)('platform_editor_nest_table_in_panel_patch_3') && panelBackgroundColorVariableStyles, (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) && (0, _fg.fg)('platform_editor_nest_table_in_panel_patch_2') && panelInfoIconStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor && panelCustomBackground, panelNestedIconStyles, nestedPanelStyles]
|
|
191
217
|
// Ignored via go/ees005
|
|
192
218
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
193
219
|
}, props), props.children);
|
|
@@ -13,6 +13,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
14
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
15
15
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
16
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
17
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
18
|
var _table = require("./table");
|
|
18
19
|
var _injectProps = require("../../utils/inject-props");
|
|
@@ -41,6 +42,17 @@ var suppressExternalStickStyles = (0, _react2.css)({
|
|
|
41
42
|
background: "var(--ds-surface, #FFFFFF)"
|
|
42
43
|
}
|
|
43
44
|
});
|
|
45
|
+
var panelAwareStickyTableStyles = (0, _react2.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Override external renderer wrapper styles targeting div[mode='stick']
|
|
47
|
+
"&.fixed-table-div-custom-table-resizing[mode='stick']": {
|
|
48
|
+
background: "var(--ak-renderer-panel-bg-color, ".concat("var(--ds-surface, #FFFFFF)", ")")
|
|
49
|
+
}
|
|
50
|
+
}, "& .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ", & .").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
|
+
tr: {
|
|
53
|
+
background: "var(--ak-renderer-panel-bg-color, ".concat("var(--ds-surface, #FFFFFF)", ")")
|
|
54
|
+
}
|
|
55
|
+
}), "borderTopColor", "var(--ak-renderer-panel-bg-color, ".concat("var(--ds-surface, #FFFFFF)", ")")), "background", "var(--ak-renderer-panel-bg-color, ".concat("var(--ds-surface-overlay, #FFFFFF)", ")")));
|
|
44
56
|
|
|
45
57
|
// refactored based on fixedTableDivStaticStyles
|
|
46
58
|
// TODO: DSP-4123 - Quality ticket
|
|
@@ -81,7 +93,7 @@ var FixedTableDiv = function FixedTableDiv(props) {
|
|
|
81
93
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
82
94
|
,
|
|
83
95
|
className: allowTableResizing ? 'fixed-table-div-custom-table-resizing' : '',
|
|
84
|
-
css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode], (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && suppressExternalStickStyles],
|
|
96
|
+
css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode], (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && suppressExternalStickStyles, (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) && (0, _fg.fg)('platform_editor_nest_table_in_panel_patch_3') && panelAwareStickyTableStyles],
|
|
85
97
|
style: {
|
|
86
98
|
'--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
|
|
87
99
|
width: "".concat(wrapperWidth, "px"),
|
|
@@ -73,7 +73,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
73
73
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
74
74
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
75
75
|
var packageName = "@atlaskit/renderer";
|
|
76
|
-
var packageVersion = "136.
|
|
76
|
+
var packageVersion = "136.2.0";
|
|
77
77
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
78
78
|
containerName: 'ak-renderer-wrapper',
|
|
79
79
|
containerType: 'inline-size'
|
|
@@ -262,6 +262,7 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
262
262
|
surroundTextNodesWithTextWrapper: allowAnnotationsDraftMode,
|
|
263
263
|
media: props.media,
|
|
264
264
|
mentionNodeDataProvider: props.mentionNodeDataProvider,
|
|
265
|
+
emojiProviderLookupOrder: props.emojiProviderLookupOrder,
|
|
265
266
|
emojiResourceConfig: props.emojiResourceConfig,
|
|
266
267
|
smartLinks: props.smartLinks,
|
|
267
268
|
extensionViewportSizes: props.extensionViewportSizes,
|
|
@@ -200,6 +200,7 @@ export default class ReactSerializer {
|
|
|
200
200
|
this.surroundTextNodesWithTextWrapper = Boolean(init.surroundTextNodesWithTextWrapper);
|
|
201
201
|
this.media = init.media;
|
|
202
202
|
this.mentionNodeDataProvider = init.mentionNodeDataProvider;
|
|
203
|
+
this.emojiProviderLookupOrder = init.emojiProviderLookupOrder;
|
|
203
204
|
this.emojiResourceConfig = init.emojiResourceConfig;
|
|
204
205
|
this.smartLinks = init.smartLinks;
|
|
205
206
|
this.extensionViewportSizes = init.extensionViewportSizes;
|
|
@@ -509,6 +510,7 @@ export default class ReactSerializer {
|
|
|
509
510
|
getEmojiProps(node, path = []) {
|
|
510
511
|
return {
|
|
511
512
|
...this.getProps(node, path),
|
|
513
|
+
emojiProviderLookupOrder: fg('platform_bitbucket_fix_shortname_and_ordering') ? this.emojiProviderLookupOrder : undefined,
|
|
512
514
|
resourceConfig: this.emojiResourceConfig
|
|
513
515
|
};
|
|
514
516
|
}
|
|
@@ -39,6 +39,7 @@ class EmojiNode extends PureComponent {
|
|
|
39
39
|
fallback,
|
|
40
40
|
fitToHeight,
|
|
41
41
|
showTooltip,
|
|
42
|
+
emojiProviderLookupOrder,
|
|
42
43
|
resourceConfig
|
|
43
44
|
} = this.props;
|
|
44
45
|
if (allowTextFallback && !providers.emojiProvider) {
|
|
@@ -71,6 +72,7 @@ class EmojiNode extends PureComponent {
|
|
|
71
72
|
fallback,
|
|
72
73
|
shortName
|
|
73
74
|
},
|
|
75
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
74
76
|
emojiProvider: providers.emojiProvider,
|
|
75
77
|
showTooltip: showTooltip,
|
|
76
78
|
fitToHeight: fitToHeight,
|
|
@@ -116,6 +118,7 @@ export const EmojiItemComponent = props => {
|
|
|
116
118
|
shortName,
|
|
117
119
|
text,
|
|
118
120
|
fitToHeight,
|
|
121
|
+
emojiProviderLookupOrder,
|
|
119
122
|
resourceConfig
|
|
120
123
|
} = props;
|
|
121
124
|
const inlineAnnotationProps = useInlineAnnotationProps(props);
|
|
@@ -130,6 +133,7 @@ export const EmojiItemComponent = props => {
|
|
|
130
133
|
fallback: text,
|
|
131
134
|
providers: providers,
|
|
132
135
|
fitToHeight: fitToHeight,
|
|
136
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
133
137
|
resourceConfig: resourceConfig
|
|
134
138
|
}))
|
|
135
139
|
);
|
|
@@ -141,6 +145,7 @@ export const EmojiItemComponent = props => {
|
|
|
141
145
|
fallback: text,
|
|
142
146
|
providers: providers,
|
|
143
147
|
fitToHeight: fitToHeight,
|
|
148
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
144
149
|
resourceConfig: resourceConfig
|
|
145
150
|
});
|
|
146
151
|
};
|
|
@@ -29,8 +29,6 @@ import UnknownBlock from './unknownBlock';
|
|
|
29
29
|
// Ignored via go/ees005
|
|
30
30
|
// eslint-disable-next-line import/no-named-as-default
|
|
31
31
|
|
|
32
|
-
import { nodeToReact as nodeToReactNew } from './nodes';
|
|
33
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
34
32
|
const WindowedCodeBlock = Loadable({
|
|
35
33
|
loader: () => import( /* webpackChunkName: "@atlaskit-internal_renderer-node_WindowedCodeBlock" */
|
|
36
34
|
'./codeBlock/windowedCodeBlock').then(mod => mod.default),
|
|
@@ -194,7 +192,7 @@ export const toReact = (node, flags, nodeComponents
|
|
|
194
192
|
|
|
195
193
|
// Allowing custom components to override those provided in nodeToReact
|
|
196
194
|
const nodes = {
|
|
197
|
-
...
|
|
195
|
+
...nodeToReact,
|
|
198
196
|
...nodeComponents
|
|
199
197
|
};
|
|
200
198
|
if (node.type.name === 'codeBlock') {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
._13n84jg8.ak-editor-panel{align-items:normal}
|
|
6
6
|
._1554u2gc.ak-editor-panel{padding-top:var(--ds-space-100,8px)}
|
|
7
7
|
._15sp1vk5.ak-editor-panel[data-panel-type=error]{background-color:var(--ds-background-accent-red-subtlest,#ffeceb)}
|
|
8
|
+
._18hz1vk5.ak-editor-panel[data-panel-type=error]{--ak-renderer-panel-bg-color:var(--ds-background-accent-red-subtlest,#ffeceb)}
|
|
8
9
|
._18w0h2mm.ak-editor-panel{position:relative}
|
|
9
10
|
._18y8qm1h.ak-editor-panel[data-panel-type=note] .ak-editor-panel__icon{color:var(--ds-icon-discovery,#af59e1)}
|
|
10
11
|
._19agidpf.ak-editor-panel .ak-editor-panel__content{flex-shrink:0}
|
|
@@ -38,19 +39,25 @@
|
|
|
38
39
|
._66ohu2gc.ak-editor-panel{padding-left:var(--ds-space-100,8px)}
|
|
39
40
|
._6qwr1hna.ak-editor-panel{word-break:break-word}
|
|
40
41
|
._7c6pj39m.ak-editor-panel .ak-editor-panel__icon .emoji-common-emoji-image{vertical-align:-3px}
|
|
42
|
+
._93eu1aok.ak-editor-panel[data-panel-type=custom]{--ak-renderer-panel-bg-color:var(--ak-renderer-panel-custom-bg-color)}
|
|
41
43
|
._9dunutpp.ak-editor-panel__no-icon{padding-left:var(--ds-space-150,9pt)}
|
|
44
|
+
._a9e5p2ly.ak-editor-panel[data-panel-type=note]{--ak-renderer-panel-bg-color:var(--ds-background-accent-purple-subtlest,#f8eefe)}
|
|
42
45
|
._e5ovn729.ak-editor-panel[data-panel-type=tip]{background-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
46
|
+
._eba1ibhp.ak-editor-panel[data-panel-type=warning]{--ak-renderer-panel-bg-color:var(--ds-background-accent-yellow-subtlest,#fef7c8)}
|
|
43
47
|
._fc9iidpf.ak-editor-panel .ak-editor-panel__content{min-width:0}
|
|
44
48
|
._g8a34pcx.ak-editor-panel[data-panel-type=tip] .ak-editor-panel__icon{color:var(--ds-icon-success,#6a9a23)}
|
|
45
49
|
._gb1eidpf.ak-editor-panel .ak-editor-panel__content{margin-left:0}
|
|
50
|
+
._giv8n729.ak-editor-panel[data-panel-type=success]{--ak-renderer-panel-bg-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
46
51
|
._gt7x4pcx.ak-editor-panel[data-panel-type=success] .ak-editor-panel__icon{color:var(--ds-icon-success,#6a9a23)}
|
|
47
52
|
._iqv91kw7.ak-editor-panel{color:inherit}
|
|
48
53
|
._jde2v77o.ak-editor-panel .ak-editor-panel__content{margin-top:var(--ds-space-025,2px)}
|
|
54
|
+
._niep1s93.ak-editor-panel{--ak-renderer-panel-bg-color:var(--ds-background-accent-blue-subtlest,#e9f2fe)}
|
|
49
55
|
._nlelp2ly.ak-editor-panel[data-panel-type=note]{background-color:var(--ds-background-accent-purple-subtlest,#f8eefe)}
|
|
50
56
|
._pzbautpp.ak-editor-panel__no-icon{padding-right:var(--ds-space-150,9pt)}
|
|
51
57
|
._s4ldn729.ak-editor-panel[data-panel-type=success]{background-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
52
58
|
._u70eidpf.ak-editor-panel{margin-bottom:0}
|
|
53
59
|
._ujht1s93.ak-editor-panel{background-color:var(--ds-background-accent-blue-subtlest,#e9f2fe)}
|
|
60
|
+
._vy90n729.ak-editor-panel[data-panel-type=tip]{--ak-renderer-panel-bg-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
54
61
|
._wz94glyw.ak-editor-panel .ak-editor-panel__icon{-moz-user-select:none}
|
|
55
62
|
._xmo1idpf.ak-editor-panel{margin-right:0}
|
|
56
63
|
._zs6jglyw.ak-editor-panel .ak-editor-panel__icon{-webkit-user-select:none}
|
|
@@ -21,6 +21,7 @@ const panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
|
|
|
21
21
|
const blockNodesVerticalMargin = '0.75rem';
|
|
22
22
|
const akEditorTableCellMinWidth = 48;
|
|
23
23
|
const panelBaseStyles = null;
|
|
24
|
+
const panelBackgroundColorVariableStyles = null;
|
|
24
25
|
const panelHasNoIconStyles = null;
|
|
25
26
|
const panelInfoIconStyles = null;
|
|
26
27
|
const panelNestedIconStyles = null;
|
|
@@ -36,7 +37,7 @@ export const PanelStyledCompiled = ({
|
|
|
36
37
|
const customBackgroundColor = backgroundColor ? hexToEditorBackgroundPaletteColor(backgroundColor) || backgroundColor : undefined;
|
|
37
38
|
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
38
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- intentional: preserve existing PanelSharedCssClassName.prefix class
|
|
39
|
-
className: ax(["_lklzfajl _1alzoqnp _xmo1idpf _u70eidpf _1m1jidpf _50vakb7n _19agidpf _1q6xf1ug _jde2v77o _1bi2v77o _gb1eidpf _11k7idpf _fc9iidpf _1554u2gc _1eiopxbi _1w22u2gc _66ohu2gc _1it3ckbl _19s71txw _18w0h2mm _13n84jg8 _6qwr1hna _ujht1s93 _iqv91kw7 _1l9midpf _1v1c1ejb _11wb1ejb _1oah1ntv _1pciu2gc _1cgk1h6o _5zphglyw _wz94glyw _zs6jglyw _1n3wglyw _1yw1vq3b _1h33yhbg _1a3fnkob _1uvd116y _1hau12gs _7c6pj39m _udsa1o8l _nlelp2ly _18y8qm1h _e5ovn729 _g8a34pcx _1g6dibhp _1udservl _15sp1vk5 _1fe7s4qr _s4ldn729 _gt7x4pcx", expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) && fg('platform_editor_nest_table_in_panel_patch_2') && "_19mdyhbg", !hasIcon && "_1whxutpp _1b0jutpp", props['data-panel-type'] === PanelType.CUSTOM && backgroundColor && "_122m1aok", "_9dunutpp _pzbautpp", "_1wvnia51", className]),
|
|
40
|
+
className: ax(["_lklzfajl _1alzoqnp _xmo1idpf _u70eidpf _1m1jidpf _50vakb7n _19agidpf _1q6xf1ug _jde2v77o _1bi2v77o _gb1eidpf _11k7idpf _fc9iidpf _1554u2gc _1eiopxbi _1w22u2gc _66ohu2gc _1it3ckbl _19s71txw _18w0h2mm _13n84jg8 _6qwr1hna _ujht1s93 _iqv91kw7 _1l9midpf _1v1c1ejb _11wb1ejb _1oah1ntv _1pciu2gc _1cgk1h6o _5zphglyw _wz94glyw _zs6jglyw _1n3wglyw _1yw1vq3b _1h33yhbg _1a3fnkob _1uvd116y _1hau12gs _7c6pj39m _udsa1o8l _nlelp2ly _18y8qm1h _e5ovn729 _g8a34pcx _1g6dibhp _1udservl _15sp1vk5 _1fe7s4qr _s4ldn729 _gt7x4pcx", expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) && fg('platform_editor_nest_table_in_panel_patch_3') && "_niep1s93 _a9e5p2ly _giv8n729 _vy90n729 _eba1ibhp _18hz1vk5 _93eu1aok", expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) && fg('platform_editor_nest_table_in_panel_patch_2') && "_19mdyhbg", !hasIcon && "_1whxutpp _1b0jutpp", props['data-panel-type'] === PanelType.CUSTOM && backgroundColor && "_122m1aok", "_9dunutpp _pzbautpp", "_1wvnia51", className]),
|
|
40
41
|
style: {
|
|
41
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- intentional: custom panel background is dynamic via CSS variable
|
|
42
43
|
'--ak-renderer-panel-custom-bg-color': customBackgroundColor
|
|
@@ -127,6 +127,32 @@ const panelBaseStyles = css({
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
+
const panelBackgroundColorVariableStyles = css({
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
132
|
+
'&.ak-editor-panel': {
|
|
133
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
|
|
134
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
135
|
+
'&[data-panel-type="note"]': {
|
|
136
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-purple-subtlest, #F8EEFE)"
|
|
137
|
+
},
|
|
138
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
139
|
+
'&[data-panel-type="tip"], &[data-panel-type="success"]': {
|
|
140
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-green-subtlest, #DCFFF1)"
|
|
141
|
+
},
|
|
142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
143
|
+
'&[data-panel-type="warning"]': {
|
|
144
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-yellow-subtlest, #FEF7C8)"
|
|
145
|
+
},
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
147
|
+
'&[data-panel-type="error"]': {
|
|
148
|
+
'--ak-renderer-panel-bg-color': "var(--ds-background-accent-red-subtlest, #FFECEB)"
|
|
149
|
+
},
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
151
|
+
'&[data-panel-type="custom"]': {
|
|
152
|
+
'--ak-renderer-panel-bg-color': 'var(--ak-renderer-panel-custom-bg-color)'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
130
156
|
const panelHasNoIconStyles = css({
|
|
131
157
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
132
158
|
'&.ak-editor-panel': {
|
|
@@ -180,7 +206,7 @@ export const PanelStyledEmotion = ({
|
|
|
180
206
|
{
|
|
181
207
|
'--ak-renderer-panel-custom-bg-color': customBackgroundColor
|
|
182
208
|
},
|
|
183
|
-
css: [panelBaseStyles, expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) && fg('platform_editor_nest_table_in_panel_patch_2') && panelInfoIconStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === PanelType.CUSTOM && backgroundColor && panelCustomBackground, panelNestedIconStyles, nestedPanelStyles]
|
|
209
|
+
css: [panelBaseStyles, expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) && fg('platform_editor_nest_table_in_panel_patch_3') && panelBackgroundColorVariableStyles, expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) && fg('platform_editor_nest_table_in_panel_patch_2') && panelInfoIconStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === PanelType.CUSTOM && backgroundColor && panelCustomBackground, panelNestedIconStyles, nestedPanelStyles]
|
|
184
210
|
// Ignored via go/ees005
|
|
185
211
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
186
212
|
}, props), props.children);
|
|
@@ -8,6 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { jsx, css } from '@emotion/react';
|
|
9
9
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
import { Table } from './table';
|
|
13
14
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
@@ -29,6 +30,21 @@ const suppressExternalStickStyles = css({
|
|
|
29
30
|
background: "var(--ds-surface, #FFFFFF)"
|
|
30
31
|
}
|
|
31
32
|
});
|
|
33
|
+
const panelAwareStickyTableStyles = css({
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Override external renderer wrapper styles targeting div[mode='stick']
|
|
35
|
+
"&.fixed-table-div-custom-table-resizing[mode='stick']": {
|
|
36
|
+
background: `var(--ak-renderer-panel-bg-color, ${"var(--ds-surface, #FFFFFF)"})`
|
|
37
|
+
},
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
+
[`& .${TableSharedCssClassName.TABLE_CONTAINER}, & .${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table`]: {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
|
+
tr: {
|
|
42
|
+
background: `var(--ak-renderer-panel-bg-color, ${"var(--ds-surface, #FFFFFF)"})`
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
borderTopColor: `var(--ak-renderer-panel-bg-color, ${"var(--ds-surface, #FFFFFF)"})`,
|
|
46
|
+
background: `var(--ak-renderer-panel-bg-color, ${"var(--ds-surface-overlay, #FFFFFF)"})`
|
|
47
|
+
});
|
|
32
48
|
|
|
33
49
|
// refactored based on fixedTableDivStaticStyles
|
|
34
50
|
// TODO: DSP-4123 - Quality ticket
|
|
@@ -82,7 +98,7 @@ const FixedTableDiv = props => {
|
|
|
82
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
83
99
|
,
|
|
84
100
|
className: allowTableResizing ? 'fixed-table-div-custom-table-resizing' : '',
|
|
85
|
-
css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode], expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && suppressExternalStickStyles],
|
|
101
|
+
css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode], expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && suppressExternalStickStyles, expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) && fg('platform_editor_nest_table_in_panel_patch_3') && panelAwareStickyTableStyles],
|
|
86
102
|
style: {
|
|
87
103
|
'--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
|
|
88
104
|
width: `${wrapperWidth}px`,
|
|
@@ -59,7 +59,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
59
59
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
60
60
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
61
61
|
const packageName = "@atlaskit/renderer";
|
|
62
|
-
const packageVersion = "136.
|
|
62
|
+
const packageVersion = "136.2.0";
|
|
63
63
|
const setAsQueryContainerStyles = css({
|
|
64
64
|
containerName: 'ak-renderer-wrapper',
|
|
65
65
|
containerType: 'inline-size'
|
|
@@ -254,6 +254,7 @@ export const RendererFunctionalComponent = props => {
|
|
|
254
254
|
surroundTextNodesWithTextWrapper: allowAnnotationsDraftMode,
|
|
255
255
|
media: props.media,
|
|
256
256
|
mentionNodeDataProvider: props.mentionNodeDataProvider,
|
|
257
|
+
emojiProviderLookupOrder: props.emojiProviderLookupOrder,
|
|
257
258
|
emojiResourceConfig: props.emojiResourceConfig,
|
|
258
259
|
smartLinks: props.smartLinks,
|
|
259
260
|
extensionViewportSizes: props.extensionViewportSizes,
|
package/dist/esm/react/index.js
CHANGED
|
@@ -206,6 +206,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
206
206
|
this.surroundTextNodesWithTextWrapper = Boolean(init.surroundTextNodesWithTextWrapper);
|
|
207
207
|
this.media = init.media;
|
|
208
208
|
this.mentionNodeDataProvider = init.mentionNodeDataProvider;
|
|
209
|
+
this.emojiProviderLookupOrder = init.emojiProviderLookupOrder;
|
|
209
210
|
this.emojiResourceConfig = init.emojiResourceConfig;
|
|
210
211
|
this.smartLinks = init.smartLinks;
|
|
211
212
|
this.extensionViewportSizes = init.extensionViewportSizes;
|
|
@@ -556,6 +557,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
556
557
|
value: function getEmojiProps(node) {
|
|
557
558
|
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
558
559
|
return _objectSpread(_objectSpread({}, this.getProps(node, path)), {}, {
|
|
560
|
+
emojiProviderLookupOrder: fg('platform_bitbucket_fix_shortname_and_ordering') ? this.emojiProviderLookupOrder : undefined,
|
|
559
561
|
resourceConfig: this.emojiResourceConfig
|
|
560
562
|
});
|
|
561
563
|
}
|
|
@@ -48,6 +48,7 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
|
|
|
48
48
|
fallback = _this$props.fallback,
|
|
49
49
|
fitToHeight = _this$props.fitToHeight,
|
|
50
50
|
showTooltip = _this$props.showTooltip,
|
|
51
|
+
emojiProviderLookupOrder = _this$props.emojiProviderLookupOrder,
|
|
51
52
|
resourceConfig = _this$props.resourceConfig;
|
|
52
53
|
if (allowTextFallback && !providers.emojiProvider) {
|
|
53
54
|
// When the gate is enabled and the fallback text is not a single
|
|
@@ -79,6 +80,7 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
|
|
|
79
80
|
fallback: fallback,
|
|
80
81
|
shortName: shortName
|
|
81
82
|
},
|
|
83
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
82
84
|
emojiProvider: providers.emojiProvider,
|
|
83
85
|
showTooltip: showTooltip,
|
|
84
86
|
fitToHeight: fitToHeight,
|
|
@@ -130,6 +132,7 @@ export var EmojiItemComponent = function EmojiItemComponent(props) {
|
|
|
130
132
|
shortName = props.shortName,
|
|
131
133
|
text = props.text,
|
|
132
134
|
fitToHeight = props.fitToHeight,
|
|
135
|
+
emojiProviderLookupOrder = props.emojiProviderLookupOrder,
|
|
133
136
|
resourceConfig = props.resourceConfig;
|
|
134
137
|
var inlineAnnotationProps = useInlineAnnotationProps(props);
|
|
135
138
|
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
@@ -143,6 +146,7 @@ export var EmojiItemComponent = function EmojiItemComponent(props) {
|
|
|
143
146
|
fallback: text,
|
|
144
147
|
providers: providers,
|
|
145
148
|
fitToHeight: fitToHeight,
|
|
149
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
146
150
|
resourceConfig: resourceConfig
|
|
147
151
|
}))
|
|
148
152
|
);
|
|
@@ -154,6 +158,7 @@ export var EmojiItemComponent = function EmojiItemComponent(props) {
|
|
|
154
158
|
fallback: text,
|
|
155
159
|
providers: providers,
|
|
156
160
|
fitToHeight: fitToHeight,
|
|
161
|
+
emojiProviderLookupOrder: emojiProviderLookupOrder,
|
|
157
162
|
resourceConfig: resourceConfig
|
|
158
163
|
});
|
|
159
164
|
};
|
|
@@ -32,8 +32,6 @@ import UnknownBlock from './unknownBlock';
|
|
|
32
32
|
// Ignored via go/ees005
|
|
33
33
|
// eslint-disable-next-line import/no-named-as-default
|
|
34
34
|
|
|
35
|
-
import { nodeToReact as nodeToReactNew } from './nodes';
|
|
36
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
37
35
|
var WindowedCodeBlock = Loadable({
|
|
38
36
|
loader: function loader() {
|
|
39
37
|
return import( /* webpackChunkName: "@atlaskit-internal_renderer-node_WindowedCodeBlock" */
|
|
@@ -322,7 +320,7 @@ export var toReact = function toReact(node, flags, nodeComponents
|
|
|
322
320
|
}
|
|
323
321
|
|
|
324
322
|
// Allowing custom components to override those provided in nodeToReact
|
|
325
|
-
var nodes = _objectSpread(_objectSpread({},
|
|
323
|
+
var nodes = _objectSpread(_objectSpread({}, nodeToReact), nodeComponents);
|
|
326
324
|
if (node.type.name === 'codeBlock') {
|
|
327
325
|
var _nodes$codeBlock;
|
|
328
326
|
if ((flags === null || flags === void 0 ? void 0 : flags.allowWindowedCodeBlock) === true) {
|