@atlaskit/renderer 130.2.10 → 130.2.11
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 +8 -0
- package/dist/cjs/actions/index.js +3 -6
- package/dist/cjs/react/marks/alignment.js +1 -1
- package/dist/cjs/react/marks/border.js +1 -1
- package/dist/cjs/react/marks/breakout.js +1 -1
- package/dist/cjs/react/marks/code.js +3 -1
- package/dist/cjs/react/marks/link.js +1 -1
- package/dist/cjs/react/nodes/blockCard.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/date.js +2 -0
- package/dist/cjs/react/nodes/embedCard.js +1 -1
- package/dist/cjs/react/nodes/emoji.js +2 -1
- package/dist/cjs/react/nodes/extensionFrame.js +1 -1
- package/dist/cjs/react/nodes/heading-anchor.js +3 -2
- package/dist/cjs/react/nodes/layoutColumn.js +1 -1
- package/dist/cjs/react/nodes/media/index.js +1 -1
- package/dist/cjs/react/nodes/mediaInline.js +4 -1
- package/dist/cjs/react/nodes/mediaSingle/index.js +4 -1
- package/dist/cjs/react/nodes/mention.js +3 -2
- package/dist/cjs/react/nodes/multiBodiedExtension.js +1 -1
- package/dist/cjs/react/nodes/panel.js +1 -1
- package/dist/cjs/react/nodes/status.js +3 -2
- package/dist/cjs/react/nodes/table/sticky.js +1 -3
- package/dist/cjs/react/nodes/tableNew.js +3 -1
- package/dist/cjs/react/utils/getCardClickHandler.js +1 -0
- package/dist/cjs/renderer-context.js +2 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/actions/index.js +1 -3
- package/dist/es2019/react/marks/alignment.js +1 -1
- package/dist/es2019/react/marks/border.js +1 -1
- package/dist/es2019/react/marks/breakout.js +2 -2
- package/dist/es2019/react/marks/code.js +3 -1
- package/dist/es2019/react/marks/link.js +2 -2
- package/dist/es2019/react/nodes/blockCard.js +2 -2
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/es2019/react/nodes/date.js +2 -0
- package/dist/es2019/react/nodes/embedCard.js +2 -2
- package/dist/es2019/react/nodes/emoji.js +2 -1
- package/dist/es2019/react/nodes/extensionFrame.js +1 -1
- package/dist/es2019/react/nodes/heading-anchor.js +4 -1
- package/dist/es2019/react/nodes/layoutColumn.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +1 -1
- package/dist/es2019/react/nodes/mediaInline.js +4 -1
- package/dist/es2019/react/nodes/mediaSingle/index.js +4 -1
- package/dist/es2019/react/nodes/mention.js +3 -2
- package/dist/es2019/react/nodes/multiBodiedExtension.js +1 -1
- package/dist/es2019/react/nodes/panel.js +2 -2
- package/dist/es2019/react/nodes/status.js +3 -2
- package/dist/es2019/react/nodes/table/sticky.js +2 -4
- package/dist/es2019/react/nodes/tableNew.js +3 -1
- package/dist/es2019/react/utils/getCardClickHandler.js +2 -0
- package/dist/es2019/renderer-context.js +2 -0
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/actions/index.js +3 -6
- package/dist/esm/react/marks/alignment.js +1 -1
- package/dist/esm/react/marks/border.js +1 -1
- package/dist/esm/react/marks/breakout.js +2 -2
- package/dist/esm/react/marks/code.js +3 -1
- package/dist/esm/react/marks/link.js +2 -2
- package/dist/esm/react/nodes/blockCard.js +2 -2
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/esm/react/nodes/date.js +2 -0
- package/dist/esm/react/nodes/embedCard.js +2 -2
- package/dist/esm/react/nodes/emoji.js +2 -1
- package/dist/esm/react/nodes/extensionFrame.js +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +3 -2
- package/dist/esm/react/nodes/layoutColumn.js +1 -1
- package/dist/esm/react/nodes/media/index.js +1 -1
- package/dist/esm/react/nodes/mediaInline.js +4 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +4 -1
- package/dist/esm/react/nodes/mention.js +3 -2
- package/dist/esm/react/nodes/multiBodiedExtension.js +1 -1
- package/dist/esm/react/nodes/panel.js +2 -2
- package/dist/esm/react/nodes/status.js +3 -2
- package/dist/esm/react/nodes/table/sticky.js +2 -4
- package/dist/esm/react/nodes/tableNew.js +3 -1
- package/dist/esm/react/utils/getCardClickHandler.js +2 -0
- package/dist/esm/renderer-context.js +2 -0
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/react/hooks/use-in-viewport.d.ts +2 -1
- package/dist/types/react/marks/code.d.ts +6 -6
- package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +9 -4
- package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +5 -4
- package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +5 -5
- package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +2 -1
- package/dist/types/react/nodes/date.d.ts +2 -2
- package/dist/types/react/nodes/embedCard.d.ts +2 -1
- package/dist/types/react/nodes/emoji.d.ts +3 -3
- package/dist/types/react/nodes/heading-anchor.d.ts +3 -3
- package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
- package/dist/types/react/nodes/mediaInline.d.ts +3 -3
- package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -3
- package/dist/types/react/nodes/mention.d.ts +2 -2
- package/dist/types/react/nodes/status.d.ts +2 -2
- package/dist/types/react/utils/appearance.d.ts +1 -1
- package/dist/types-ts4.5/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +2 -1
- package/dist/types-ts4.5/react/marks/code.d.ts +6 -6
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +9 -4
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +5 -4
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +5 -5
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/date.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mention.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/status.d.ts +2 -2
- package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 130.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`721f0a967d1fe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/721f0a967d1fe) -
|
|
8
|
+
[ux] Updating smart card icon sizing and tiling behind FG platform_sl_icons_refactor
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 130.2.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -20,8 +20,6 @@ var _steps = require("../steps");
|
|
|
20
20
|
var _getRendererRangeInlineNodeNames = require("./get-renderer-range-inline-node-names");
|
|
21
21
|
var _matchesUtils = require("./matches-utils");
|
|
22
22
|
var _selection = require("./selection");
|
|
23
|
-
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; }
|
|
24
|
-
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; }
|
|
25
23
|
var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
26
24
|
// Any kind of refence is allowed
|
|
27
25
|
// Ignored via go/ees005
|
|
@@ -344,7 +342,7 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
344
342
|
numMatches = _getIndexMatch.numMatches,
|
|
345
343
|
matchIndex = _getIndexMatch.matchIndex,
|
|
346
344
|
blockNodePos = _getIndexMatch.blockNodePos;
|
|
347
|
-
return
|
|
345
|
+
return {
|
|
348
346
|
step: step,
|
|
349
347
|
doc: this.transformer.encode(doc),
|
|
350
348
|
inlineNodeTypes: (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
@@ -364,10 +362,9 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
364
362
|
originalSelection: originalSelection,
|
|
365
363
|
numMatches: numMatches,
|
|
366
364
|
matchIndex: matchIndex,
|
|
367
|
-
pos: blockNodePos
|
|
368
|
-
}, {
|
|
365
|
+
pos: blockNodePos,
|
|
369
366
|
targetNodeType: targetNodeType
|
|
370
|
-
}
|
|
367
|
+
};
|
|
371
368
|
}
|
|
372
369
|
}, {
|
|
373
370
|
key: "generateAnnotationIndexMatch",
|
|
@@ -14,7 +14,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
14
14
|
* @jsx jsx
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
18
18
|
|
|
19
19
|
var MarkWrapper = function MarkWrapper(props) {
|
|
20
20
|
var dataAlign = props['data-align'] ? _adfSchema.alignmentPositionMap[props['data-align']] : undefined;
|
|
@@ -9,7 +9,7 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
* @jsxRuntime classic
|
|
10
10
|
* @jsx jsx
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
13
13
|
|
|
14
14
|
function Border(props) {
|
|
15
15
|
var _props$color, _props$size;
|
|
@@ -15,7 +15,7 @@ var _consts = require("../../consts");
|
|
|
15
15
|
* @jsxRuntime classic
|
|
16
16
|
* @jsx jsx
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
19
19
|
|
|
20
20
|
// Legacy centering (breaks position: sticky in nested content).
|
|
21
21
|
var legacyWrapperStyles = (0, _react.css)({
|
|
@@ -26,4 +26,6 @@ function CodeWithIntl(props) {
|
|
|
26
26
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
27
27
|
}, props.dataAttributes), props.children);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
30
|
+
var _default_1 = (0, _reactIntl.injectIntl)(CodeWithIntl);
|
|
31
|
+
var _default = exports.default = _default_1;
|
|
@@ -20,7 +20,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
20
20
|
* @jsx jsx
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
24
24
|
|
|
25
25
|
var anchorStyles = (0, _react2.css)({
|
|
26
26
|
color: "var(--ds-link, #1868DB)",
|
|
@@ -25,7 +25,7 @@ var _consts = require("../../consts");
|
|
|
25
25
|
* @jsxRuntime classic
|
|
26
26
|
* @jsx jsx
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
29
29
|
|
|
30
30
|
var datasourceCenterWrapperStyles = (0, _react.css)({
|
|
31
31
|
marginTop: "var(--ds-space-150, 12px)",
|
|
@@ -56,4 +56,5 @@ function CodeBlock(props) {
|
|
|
56
56
|
hasBidiWarnings: (0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
|
|
57
57
|
}));
|
|
58
58
|
}
|
|
59
|
-
var
|
|
59
|
+
var _default_1 = (0, _reactIntl.injectIntl)(CodeBlock);
|
|
60
|
+
var _default = exports.default = _default_1;
|
|
@@ -12,7 +12,7 @@ var _codeBlockWrapButton = _interopRequireDefault(require("./codeBlockWrapButton
|
|
|
12
12
|
* @jsxRuntime classic
|
|
13
13
|
* @jsx jsx
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
16
16
|
|
|
17
17
|
var codeBlockButtonsWrapper = (0, _react.css)({
|
|
18
18
|
position: 'sticky',
|
|
@@ -15,7 +15,7 @@ var _codeBlockButtonContainer = _interopRequireDefault(require("./codeBlockButto
|
|
|
15
15
|
* @jsxRuntime classic
|
|
16
16
|
* @jsx jsx
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
19
19
|
|
|
20
20
|
var codeBlockStyleOverrides = (0, _react.css)((0, _defineProperty2.default)({
|
|
21
21
|
tabSize: 4,
|
|
@@ -62,4 +62,5 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
|
|
|
62
62
|
})));
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
|
-
var
|
|
65
|
+
var _default_1 = (0, _reactIntl.injectIntl)(CodeBlockWrapButton);
|
|
66
|
+
var _default = exports.default = _default_1;
|
|
@@ -20,7 +20,7 @@ var _codeBlockContainer = _interopRequireDefault(require("./components/codeBlock
|
|
|
20
20
|
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" != _typeof(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); } /**
|
|
21
21
|
* @jsxRuntime classic
|
|
22
22
|
* @jsx jsx
|
|
23
|
-
*/
|
|
23
|
+
*/ /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
24
24
|
var LazyAkCodeBlock = /*#__PURE__*/(0, _react.lazy)(
|
|
25
25
|
/*#__PURE__*/
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -38,6 +38,8 @@ var Date = /*#__PURE__*/(0, _react.memo)(function Date(props) {
|
|
|
38
38
|
"data-timestamp": timestamp
|
|
39
39
|
}, parentIsIncompleteTask ? (0, _utils.timestampToTaskContext)(timestamp, intl, timeZone) : (0, _utils.timestampToString)(timestamp, intl)));
|
|
40
40
|
});
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
41
43
|
var DateComponent = exports.DateComponent = (0, _reactIntl.injectIntl)(Date);
|
|
42
44
|
function DateWithFormatContext(props) {
|
|
43
45
|
var _useTaskItemsFormatCo = (0, _TaskItemsFormatContext.useTaskItemsFormatContext)(),
|
|
@@ -31,7 +31,7 @@ var _blockCard = _interopRequireDefault(require("./blockCard"));
|
|
|
31
31
|
* @jsx jsx
|
|
32
32
|
*/
|
|
33
33
|
/* eslint-disable jsdoc/check-tag-names */
|
|
34
|
-
|
|
34
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
35
35
|
|
|
36
36
|
var embedCardWrapperStyles = (0, _react.css)({
|
|
37
37
|
width: '100%',
|
|
@@ -133,4 +133,5 @@ var EmojiItemComponent = exports.EmojiItemComponent = function EmojiItemComponen
|
|
|
133
133
|
resourceConfig: resourceConfig
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
|
-
var
|
|
136
|
+
var _default_1 = /*#__PURE__*/(0, _react2.memo)(EmojiItemComponent);
|
|
137
|
+
var _default = exports.default = _default_1;
|
|
@@ -10,7 +10,7 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
* @jsx jsx
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
14
14
|
|
|
15
15
|
var containerCSS = (0, _react.css)({
|
|
16
16
|
padding: "var(--ds-space-100, 8px)",
|
|
@@ -163,5 +163,6 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
163
163
|
return this.renderAnchorButton();
|
|
164
164
|
}
|
|
165
165
|
}]);
|
|
166
|
-
}(_react.default.PureComponent);
|
|
167
|
-
var
|
|
166
|
+
}(_react.default.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
167
|
+
var _default_1 = (0, _reactIntl.injectIntl)(HeadingAnchor);
|
|
168
|
+
var _default = exports.default = _default_1;
|
|
@@ -15,7 +15,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
15
15
|
* @jsx jsx
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
19
19
|
|
|
20
20
|
// localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
|
|
21
21
|
var clearNextSiblingMarginTopStyle = (0, _react2.css)({
|
|
@@ -40,7 +40,7 @@ var _excluded = ["marks", "mediaSingleElement", "isDrafting"];
|
|
|
40
40
|
* @jsx jsx
|
|
41
41
|
* @jsxFrag
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
44
44
|
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" != _typeof(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); }
|
|
45
45
|
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; }
|
|
46
46
|
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; }
|
|
@@ -216,4 +216,7 @@ var MediaInline = function MediaInline(props) {
|
|
|
216
216
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher
|
|
217
217
|
});
|
|
218
218
|
};
|
|
219
|
-
|
|
219
|
+
|
|
220
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
221
|
+
var _default_1 = (0, _reactIntl.injectIntl)(MediaInline);
|
|
222
|
+
var _default = exports.default = _default_1;
|
|
@@ -288,4 +288,7 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
288
288
|
caption: caption
|
|
289
289
|
}));
|
|
290
290
|
};
|
|
291
|
-
|
|
291
|
+
|
|
292
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
293
|
+
var _default_1 = (0, _reactIntl.injectIntl)(MediaSingle);
|
|
294
|
+
var _default = exports.default = _default_1;
|
|
@@ -10,7 +10,7 @@ var _mention = require("@atlaskit/editor-common/mention");
|
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
11
|
var _useInlineAnnotationProps = require("../../ui/annotations/element/useInlineAnnotationProps");
|
|
12
12
|
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" != _typeof(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); }
|
|
13
|
-
var
|
|
13
|
+
var _default_1 = /*#__PURE__*/(0, _react.memo)(function MentionItem(props) {
|
|
14
14
|
var eventHandlers = props.eventHandlers,
|
|
15
15
|
id = props.id,
|
|
16
16
|
providers = props.providers,
|
|
@@ -41,4 +41,5 @@ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(function MentionI
|
|
|
41
41
|
localId: localId,
|
|
42
42
|
eventHandlers: eventHandlers && eventHandlers.mention
|
|
43
43
|
});
|
|
44
|
-
});
|
|
44
|
+
});
|
|
45
|
+
var _default = exports.default = _default_1;
|
|
@@ -24,7 +24,7 @@ var _templateObject;
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
* @jsxFrag
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
28
28
|
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" != _typeof(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); }
|
|
29
29
|
var containerStyles = (0, _react.css)({
|
|
30
30
|
// Remove top margin if MBE is the first on the doc/page (MBE can only be on the first level)
|
|
@@ -23,7 +23,7 @@ var _excluded = ["backgroundColor", "hasIcon"];
|
|
|
23
23
|
* @jsxRuntime classic
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
27
27
|
// New custom icons are a little smaller than predefined icons.
|
|
28
28
|
// To fix alignment issues with custom icons, vertical alignment is updated.
|
|
29
29
|
var panelEmojiSpriteVerticalAlignment = -(8 * 3 - _consts.akEditorCustomIconSize) / 2;
|
|
@@ -16,7 +16,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
16
16
|
var ANALYTICS_DATA = {
|
|
17
17
|
userContext: 'document'
|
|
18
18
|
};
|
|
19
|
-
var
|
|
19
|
+
var _default_1 = /*#__PURE__*/(0, _react.memo)(function Status(props) {
|
|
20
20
|
var text = props.text,
|
|
21
21
|
color = props.color,
|
|
22
22
|
style = props.style,
|
|
@@ -75,4 +75,5 @@ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(function Status(p
|
|
|
75
75
|
localId: localId,
|
|
76
76
|
isBold: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh')
|
|
77
77
|
})));
|
|
78
|
-
});
|
|
78
|
+
});
|
|
79
|
+
var _default = exports.default = _default_1;
|
|
@@ -20,9 +20,7 @@ var _injectProps = require("../../utils/inject-props");
|
|
|
20
20
|
* @jsx jsx
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
26
24
|
|
|
27
25
|
var tableStickyPadding = exports.tableStickyPadding = 8;
|
|
28
26
|
var modeSpecficStyles = {
|
|
@@ -111,7 +111,9 @@ var shouldHeaderStick = exports.shouldHeaderStick = function shouldHeaderStick(s
|
|
|
111
111
|
var shouldHeaderPinBottom = exports.shouldHeaderPinBottom = function shouldHeaderPinBottom(scrollTop, tableBottom, rowHeight) {
|
|
112
112
|
return tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
|
|
113
113
|
};
|
|
114
|
-
var addSortableColumn = exports.addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
|
|
114
|
+
var addSortableColumn = exports.addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
|
|
115
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
116
|
+
) {
|
|
115
117
|
return _react.default.Children.map(rows, function (row, index) {
|
|
116
118
|
if (index === 0) {
|
|
117
119
|
return /*#__PURE__*/_react.default.cloneElement(_react.default.Children.only(row), {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getCardClickHandler = void 0;
|
|
7
7
|
var _utils = require("../../utils");
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
9
|
var getCardClickHandler = exports.getCardClickHandler = function getCardClickHandler(eventHandlers, url) {
|
|
9
10
|
var handler = (0, _utils.getEventHandler)(eventHandlers, 'smartCard');
|
|
10
11
|
return handler ? function (e) {
|
|
@@ -13,4 +13,6 @@ var RendererContext = /*#__PURE__*/_react.default.createContext({});
|
|
|
13
13
|
var useRendererContext = exports.useRendererContext = function useRendererContext() {
|
|
14
14
|
return _react.default.useContext(RendererContext);
|
|
15
15
|
};
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
16
18
|
var RendererContextProvider = exports.RendererContextProvider = RendererContext.Provider;
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "
|
|
74
|
+
var packageVersion = "0.0.0-development";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
|
|
7
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { alignmentPositionMap } from '@atlaskit/adf-schema';
|
|
10
10
|
const MarkWrapper = props => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
export default function Border(props) {
|
|
8
8
|
var _props$color, _props$size;
|
|
@@ -3,8 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
import {
|
|
6
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
7
|
+
import { jsx, css } from '@emotion/react';
|
|
8
8
|
import { akEditorFullWidthLayoutWidth, akEditorMaxLayoutWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -18,4 +18,6 @@ export function CodeWithIntl(props) {
|
|
|
18
18
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
19
19
|
}, props.dataAttributes), props.children);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
22
|
+
const _default_1 = injectIntl(CodeWithIntl);
|
|
23
|
+
export default _default_1;
|
|
@@ -4,8 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React, { Fragment } from 'react';
|
|
7
|
-
|
|
8
|
-
import {
|
|
7
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
8
|
+
import { jsx, css } from '@emotion/react';
|
|
9
9
|
import { getEventHandler } from '../../utils';
|
|
10
10
|
import { PLATFORM, MODE } from '../../analytics/events';
|
|
11
11
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -3,8 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
import {
|
|
6
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
7
|
+
import { jsx, css } from '@emotion/react';
|
|
8
8
|
import { Card } from '@atlaskit/smart-card';
|
|
9
9
|
import { UnsupportedBlock, UnsupportedInline, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { CardErrorBoundary } from './fallback';
|
|
@@ -43,4 +43,5 @@ function CodeBlock(props) {
|
|
|
43
43
|
hasBidiWarnings: expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
|
|
44
44
|
}));
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
const _default_1 = injectIntl(CodeBlock);
|
|
47
|
+
export default _default_1;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
6
6
|
import { jsx, css } from '@emotion/react';
|
|
7
7
|
import CopyButton from './codeBlockCopyButton';
|
|
8
8
|
import CodeWrapButton from './codeBlockWrapButton';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
6
6
|
import { jsx, css } from '@emotion/react';
|
|
7
7
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { Fragment, lazy, memo, Suspense, useState } from 'react';
|
|
6
|
-
|
|
6
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -31,6 +31,8 @@ const Date = /*#__PURE__*/memo(function Date(props) {
|
|
|
31
31
|
"data-timestamp": timestamp
|
|
32
32
|
}, parentIsIncompleteTask ? timestampToTaskContext(timestamp, intl, timeZone) : timestampToString(timestamp, intl)));
|
|
33
33
|
});
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
34
36
|
export const DateComponent = injectIntl(Date);
|
|
35
37
|
function DateWithFormatContext(props) {
|
|
36
38
|
const [isChecked] = useTaskItemsFormatContext();
|
|
@@ -4,8 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
/* eslint-disable jsdoc/check-tag-names */
|
|
7
|
-
|
|
8
|
-
import {
|
|
7
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
8
|
+
import { jsx, css } from '@emotion/react';
|
|
9
9
|
import { useContext, useState, useRef } from 'react';
|
|
10
10
|
import { Card, EmbedResizeMessageListener } from '@atlaskit/smart-card';
|
|
11
11
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
7
7
|
import { jsx, css } from '@emotion/react';
|
|
8
8
|
const containerCSS = css({
|
|
9
9
|
padding: `${"var(--ds-space-100, 8px)"}`,
|
|
@@ -127,4 +127,7 @@ class HeadingAnchor extends React.PureComponent {
|
|
|
127
127
|
return this.renderAnchorButton();
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
132
|
+
const _default_1 = injectIntl(HeadingAnchor);
|
|
133
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
|
|
6
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
7
7
|
import { jsx, css } from '@emotion/react';
|
|
8
8
|
import { WidthProvider } from '@atlaskit/editor-common/ui';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React, { PureComponent, Fragment, useEffect, useState, useMemo } from 'react';
|
|
10
|
-
|
|
10
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
11
11
|
import { jsx, css } from '@emotion/react';
|
|
12
12
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
13
13
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
|
|
@@ -181,4 +181,7 @@ const MediaInline = props => {
|
|
|
181
181
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher
|
|
182
182
|
});
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
|
|
185
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
186
|
+
const _default_1 = injectIntl(MediaInline);
|
|
187
|
+
export default _default_1;
|