@atlaskit/renderer 124.8.6 → 124.9.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 +21 -0
- package/dist/cjs/react/hooks/use-bidi-warnings.js +4 -0
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +3 -1
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +3 -1
- package/dist/cjs/ui/Renderer/index.js +16 -12
- package/dist/es2019/react/hooks/use-bidi-warnings.js +4 -0
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +3 -1
- package/dist/es2019/ui/Renderer/index.js +14 -8
- package/dist/esm/react/hooks/use-bidi-warnings.js +4 -0
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +3 -1
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +3 -1
- package/dist/esm/ui/Renderer/index.js +16 -12
- package/dist/types/renderer-context.d.ts +2 -0
- package/dist/types/ui/renderer-props.d.ts +1 -1
- package/dist/types-ts4.5/renderer-context.d.ts +2 -0
- package/dist/types-ts4.5/ui/renderer-props.d.ts +1 -1
- package/package.json +6 -3
- package/afm-dev-agents/tsconfig.json +0 -141
- package/afm-passionfruit/tsconfig.json +0 -141
- package/afm-rovo-extension/tsconfig.json +0 -141
- package/afm-volt/tsconfig.json +0 -135
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 124.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`62d0954696c7e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/62d0954696c7e) -
|
|
8
|
+
[ux] EDITOR-1648 handle permission denied, not found and any generic error for sync block
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 124.9.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`b6d8f527de69b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b6d8f527de69b) -
|
|
16
|
+
[ux] EDITOR-2503 Pass contentMode through React context to nested renderers
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`ce0b8f9e44b69`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ce0b8f9e44b69) -
|
|
21
|
+
[ux] [ED-29581] Removes bidi character scanning from code blocks and code snippets
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 124.8.6
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -10,12 +10,16 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
10
10
|
var _bidiWarning = _interopRequireDefault(require("@atlaskit/code/bidi-warning"));
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _bidiWarningDecorator = _interopRequireDefault(require("@atlaskit/code/bidi-warning-decorator"));
|
|
13
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
14
|
var useBidiWarnings = exports.useBidiWarnings = function useBidiWarnings(_ref) {
|
|
14
15
|
var _ref$enableWarningToo = _ref.enableWarningTooltip,
|
|
15
16
|
enableWarningTooltip = _ref$enableWarningToo === void 0 ? true : _ref$enableWarningToo;
|
|
16
17
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
17
18
|
var warningLabel = intl.formatMessage(_messages.codeBidiWarningMessages.label);
|
|
18
19
|
var renderBidiWarnings = function renderBidiWarnings(text) {
|
|
20
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
21
|
+
return text;
|
|
22
|
+
}
|
|
19
23
|
return (0, _bidiWarningDecorator.default)(text, function (_ref2) {
|
|
20
24
|
var bidiCharacter = _ref2.bidiCharacter,
|
|
21
25
|
index = _ref2.index;
|
|
@@ -12,6 +12,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
12
12
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
13
13
|
var _code = require("@atlaskit/code");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
16
|
var _codeBlockContainer = _interopRequireDefault(require("./components/codeBlockContainer"));
|
|
16
17
|
/**
|
|
17
18
|
* @jsxRuntime classic
|
|
@@ -51,7 +52,8 @@ function CodeBlock(props) {
|
|
|
51
52
|
text: text,
|
|
52
53
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
53
54
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
54
|
-
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines
|
|
55
|
+
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines,
|
|
56
|
+
hasBidiWarnings: (0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
|
|
55
57
|
}));
|
|
56
58
|
}
|
|
57
59
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(CodeBlock);
|
|
@@ -12,6 +12,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
14
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
15
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
16
|
var _useInViewport2 = require("../../hooks/use-in-viewport");
|
|
16
17
|
var _useBidiWarnings2 = require("../../hooks/use-bidi-warnings");
|
|
17
18
|
var _lightWeightCodeBlock = _interopRequireDefault(require("./components/lightWeightCodeBlock"));
|
|
@@ -89,7 +90,8 @@ var WindowedCodeBlock = function WindowedCodeBlock(_ref2) {
|
|
|
89
90
|
text: text,
|
|
90
91
|
codeBidiWarningLabel: warningLabel,
|
|
91
92
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
92
|
-
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines
|
|
93
|
+
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines,
|
|
94
|
+
hasBidiWarnings: (0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
|
|
93
95
|
})))) : memoizedLightWeightCodeBlock;
|
|
94
96
|
};
|
|
95
97
|
var _default = exports.default = WindowedCodeBlock;
|
|
@@ -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.
|
|
71
|
+
var packageVersion = "124.9.0";
|
|
72
72
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
73
73
|
containerName: 'ak-renderer-wrapper',
|
|
74
74
|
containerType: 'inline-size'
|
|
@@ -189,15 +189,19 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
189
189
|
var providerFactory = (0, _react.useMemo)(function () {
|
|
190
190
|
return props.dataProviders || new _providerFactory.ProviderFactory();
|
|
191
191
|
}, [props.dataProviders]);
|
|
192
|
+
var _useRendererContext = (0, _rendererContext.useRendererContext)(),
|
|
193
|
+
parentContextContentMode = _useRendererContext.contentMode;
|
|
192
194
|
var createRendererContext = (0, _react.useMemo)(function () {
|
|
193
|
-
return function (featureFlags, isTopLevelRenderer) {
|
|
195
|
+
return function (featureFlags, isTopLevelRenderer, contentMode) {
|
|
194
196
|
var normalizedFeatureFlags = (0, _normalizeFeatureFlags.normalizeFeatureFlags)(featureFlags);
|
|
195
|
-
return {
|
|
197
|
+
return _objectSpread({
|
|
196
198
|
featureFlags: normalizedFeatureFlags,
|
|
197
199
|
isTopLevelRenderer: isTopLevelRenderer === undefined
|
|
198
|
-
}
|
|
200
|
+
}, (0, _platformFeatureFlags.fg)('platform_editor_content_mode_render_context') && {
|
|
201
|
+
contentMode: contentMode || parentContextContentMode
|
|
202
|
+
});
|
|
199
203
|
};
|
|
200
|
-
}, []);
|
|
204
|
+
}, [parentContextContentMode]);
|
|
201
205
|
var fireAnalyticsEventOld = (0, _react.useCallback)(function (event) {
|
|
202
206
|
var createAnalyticsEvent = props.createAnalyticsEvent;
|
|
203
207
|
if (createAnalyticsEvent) {
|
|
@@ -219,7 +223,7 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
219
223
|
var stickyHeaders = props.stickyHeaders ? props.stickyHeaders === true ? {} : props.stickyHeaders : undefined;
|
|
220
224
|
var annotationProvider = props.annotationProvider;
|
|
221
225
|
var allowAnnotationsDraftMode = Boolean(annotationProvider && annotationProvider.inlineComment && annotationProvider.inlineComment.allowDraftMode);
|
|
222
|
-
var _createRendererContex = createRendererContext(props.featureFlags, props.isTopLevelRenderer),
|
|
226
|
+
var _createRendererContex = createRendererContext(props.featureFlags, props.isTopLevelRenderer, props.contentMode),
|
|
223
227
|
featureFlags = _createRendererContex.featureFlags;
|
|
224
228
|
return {
|
|
225
229
|
startPos: (_props$startPos = props.startPos) !== null && _props$startPos !== void 0 ? _props$startPos : 0,
|
|
@@ -413,8 +417,8 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
413
417
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
414
418
|
}, []);
|
|
415
419
|
var rendererContext = (0, _react.useMemo)(function () {
|
|
416
|
-
return createRendererContext(props.featureFlags, props.isTopLevelRenderer);
|
|
417
|
-
}, [props.featureFlags, props.isTopLevelRenderer, createRendererContext]);
|
|
420
|
+
return createRendererContext(props.featureFlags, props.isTopLevelRenderer, props.contentMode);
|
|
421
|
+
}, [props.featureFlags, props.isTopLevelRenderer, createRendererContext, props.contentMode]);
|
|
418
422
|
try {
|
|
419
423
|
var _rendererContext$feat, _props$media;
|
|
420
424
|
var schema = getSchema(props.schema, props.adfStage);
|
|
@@ -440,7 +444,7 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
440
444
|
}, (0, _react2.jsx)(RendererWrapper, {
|
|
441
445
|
allowAnnotations: props.allowAnnotations,
|
|
442
446
|
appearance: props.appearance,
|
|
443
|
-
contentMode: props.contentMode || 'standard',
|
|
447
|
+
contentMode: (0, _platformFeatureFlags.fg)('platform_editor_content_mode_render_context') ? props.contentMode || rendererContext.contentMode || 'standard' : props.contentMode || 'standard',
|
|
444
448
|
allowNestedHeaderLinks: (0, _links.isNestedHeaderLinksEnabled)(props.allowHeadingAnchorLinks),
|
|
445
449
|
allowColumnSorting: props.allowColumnSorting,
|
|
446
450
|
allowCopyToClipboard: props.allowCopyToClipboard,
|
|
@@ -479,7 +483,7 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
479
483
|
return (0, _react2.jsx)(RendererWrapper, {
|
|
480
484
|
allowAnnotations: props.allowAnnotations,
|
|
481
485
|
appearance: props.appearance,
|
|
482
|
-
contentMode: props.contentMode || 'standard',
|
|
486
|
+
contentMode: (0, _platformFeatureFlags.fg)('platform_editor_content_mode_render_context') ? props.contentMode || rendererContext.contentMode || 'standard' : props.contentMode || 'standard',
|
|
483
487
|
allowCopyToClipboard: props.allowCopyToClipboard,
|
|
484
488
|
allowWrapCodeBlock: props.allowWrapCodeBlock,
|
|
485
489
|
allowPlaceholderText: props.allowPlaceholderText,
|
|
@@ -518,8 +522,8 @@ function Renderer(props) {
|
|
|
518
522
|
var _props$isTopLevelRend;
|
|
519
523
|
var _React$useContext = _react.default.useContext(_annotations.AnnotationsPositionContext),
|
|
520
524
|
startPos = _React$useContext.startPos;
|
|
521
|
-
var
|
|
522
|
-
isTopLevelRenderer =
|
|
525
|
+
var _useRendererContext2 = (0, _rendererContext.useRendererContext)(),
|
|
526
|
+
isTopLevelRenderer = _useRendererContext2.isTopLevelRenderer;
|
|
523
527
|
var _ref = (0, _react.useContext)(_ValidationContext.ValidationContext) || {},
|
|
524
528
|
skipValidation = _ref.skipValidation,
|
|
525
529
|
allowNestedTables = _ref.allowNestedTables;
|
|
@@ -3,12 +3,16 @@ import { useIntl } from 'react-intl-next';
|
|
|
3
3
|
import CodeBidiWarning from '@atlaskit/code/bidi-warning';
|
|
4
4
|
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import codeBidiWarningDecorator from '@atlaskit/code/bidi-warning-decorator';
|
|
6
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
7
|
export const useBidiWarnings = ({
|
|
7
8
|
enableWarningTooltip = true
|
|
8
9
|
}) => {
|
|
9
10
|
const intl = useIntl();
|
|
10
11
|
const warningLabel = intl.formatMessage(codeBidiWarningMessages.label);
|
|
11
12
|
const renderBidiWarnings = text => {
|
|
13
|
+
if (expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
14
|
+
return text;
|
|
15
|
+
}
|
|
12
16
|
return codeBidiWarningDecorator(text, ({
|
|
13
17
|
bidiCharacter,
|
|
14
18
|
index
|
|
@@ -9,6 +9,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
9
9
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { CodeBlock as AkCodeBlock } from '@atlaskit/code';
|
|
11
11
|
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
12
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
import CodeBlockContainer from './components/codeBlockContainer';
|
|
13
14
|
function CodeBlock(props) {
|
|
14
15
|
const {
|
|
@@ -38,7 +39,8 @@ function CodeBlock(props) {
|
|
|
38
39
|
text: text,
|
|
39
40
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
40
41
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
41
|
-
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines
|
|
42
|
+
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines,
|
|
43
|
+
hasBidiWarnings: expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
|
|
42
44
|
}));
|
|
43
45
|
}
|
|
44
46
|
export default injectIntl(CodeBlock);
|
|
@@ -6,6 +6,7 @@ import { Fragment, lazy, memo, Suspense, useState } from 'react';
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
10
|
import { useInViewport } from '../../hooks/use-in-viewport';
|
|
10
11
|
import { useBidiWarnings } from '../../hooks/use-bidi-warnings';
|
|
11
12
|
import LightWeightCodeBlock from './components/lightWeightCodeBlock';
|
|
@@ -60,7 +61,8 @@ const WindowedCodeBlock = ({
|
|
|
60
61
|
text: text,
|
|
61
62
|
codeBidiWarningLabel: warningLabel,
|
|
62
63
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
63
|
-
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines
|
|
64
|
+
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines,
|
|
65
|
+
hasBidiWarnings: expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
|
|
64
66
|
})))) : memoizedLightWeightCodeBlock;
|
|
65
67
|
};
|
|
66
68
|
export default WindowedCodeBlock;
|
|
@@ -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.
|
|
57
|
+
const packageVersion = "124.9.0";
|
|
58
58
|
const setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
|
@@ -177,13 +177,19 @@ export const RendererFunctionalComponent = props => {
|
|
|
177
177
|
} = props;
|
|
178
178
|
const mouseDownSelection = useRef(undefined);
|
|
179
179
|
const providerFactory = useMemo(() => props.dataProviders || new ProviderFactory(), [props.dataProviders]);
|
|
180
|
-
const
|
|
180
|
+
const {
|
|
181
|
+
contentMode: parentContextContentMode
|
|
182
|
+
} = useRendererContext();
|
|
183
|
+
const createRendererContext = useMemo(() => (featureFlags, isTopLevelRenderer, contentMode) => {
|
|
181
184
|
const normalizedFeatureFlags = normalizeFeatureFlags(featureFlags);
|
|
182
185
|
return {
|
|
183
186
|
featureFlags: normalizedFeatureFlags,
|
|
184
|
-
isTopLevelRenderer: isTopLevelRenderer === undefined
|
|
187
|
+
isTopLevelRenderer: isTopLevelRenderer === undefined,
|
|
188
|
+
...(fg('platform_editor_content_mode_render_context') && {
|
|
189
|
+
contentMode: contentMode || parentContextContentMode
|
|
190
|
+
})
|
|
185
191
|
};
|
|
186
|
-
}, []);
|
|
192
|
+
}, [parentContextContentMode]);
|
|
187
193
|
const fireAnalyticsEventOld = useCallback(event => {
|
|
188
194
|
const {
|
|
189
195
|
createAnalyticsEvent
|
|
@@ -211,7 +217,7 @@ export const RendererFunctionalComponent = props => {
|
|
|
211
217
|
const allowAnnotationsDraftMode = Boolean(annotationProvider && annotationProvider.inlineComment && annotationProvider.inlineComment.allowDraftMode);
|
|
212
218
|
const {
|
|
213
219
|
featureFlags
|
|
214
|
-
} = createRendererContext(props.featureFlags, props.isTopLevelRenderer);
|
|
220
|
+
} = createRendererContext(props.featureFlags, props.isTopLevelRenderer, props.contentMode);
|
|
215
221
|
return {
|
|
216
222
|
startPos: (_props$startPos = props.startPos) !== null && _props$startPos !== void 0 ? _props$startPos : 0,
|
|
217
223
|
providers: providerFactory,
|
|
@@ -402,7 +408,7 @@ export const RendererFunctionalComponent = props => {
|
|
|
402
408
|
// having a dependency array means we run stopMeasure twice per render
|
|
403
409
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
404
410
|
}, []);
|
|
405
|
-
const rendererContext = useMemo(() => createRendererContext(props.featureFlags, props.isTopLevelRenderer), [props.featureFlags, props.isTopLevelRenderer, createRendererContext]);
|
|
411
|
+
const rendererContext = useMemo(() => createRendererContext(props.featureFlags, props.isTopLevelRenderer, props.contentMode), [props.featureFlags, props.isTopLevelRenderer, createRendererContext, props.contentMode]);
|
|
406
412
|
try {
|
|
407
413
|
var _rendererContext$feat, _props$media;
|
|
408
414
|
const schema = getSchema(props.schema, props.adfStage);
|
|
@@ -427,7 +433,7 @@ export const RendererFunctionalComponent = props => {
|
|
|
427
433
|
}, jsx(RendererWrapper, {
|
|
428
434
|
allowAnnotations: props.allowAnnotations,
|
|
429
435
|
appearance: props.appearance,
|
|
430
|
-
contentMode: props.contentMode || 'standard',
|
|
436
|
+
contentMode: fg('platform_editor_content_mode_render_context') ? props.contentMode || rendererContext.contentMode || 'standard' : props.contentMode || 'standard',
|
|
431
437
|
allowNestedHeaderLinks: isNestedHeaderLinksEnabled(props.allowHeadingAnchorLinks),
|
|
432
438
|
allowColumnSorting: props.allowColumnSorting,
|
|
433
439
|
allowCopyToClipboard: props.allowCopyToClipboard,
|
|
@@ -464,7 +470,7 @@ export const RendererFunctionalComponent = props => {
|
|
|
464
470
|
return jsx(RendererWrapper, {
|
|
465
471
|
allowAnnotations: props.allowAnnotations,
|
|
466
472
|
appearance: props.appearance,
|
|
467
|
-
contentMode: props.contentMode || 'standard',
|
|
473
|
+
contentMode: fg('platform_editor_content_mode_render_context') ? props.contentMode || rendererContext.contentMode || 'standard' : props.contentMode || 'standard',
|
|
468
474
|
allowCopyToClipboard: props.allowCopyToClipboard,
|
|
469
475
|
allowWrapCodeBlock: props.allowWrapCodeBlock,
|
|
470
476
|
allowPlaceholderText: props.allowPlaceholderText,
|
|
@@ -3,12 +3,16 @@ import { useIntl } from 'react-intl-next';
|
|
|
3
3
|
import CodeBidiWarning from '@atlaskit/code/bidi-warning';
|
|
4
4
|
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import codeBidiWarningDecorator from '@atlaskit/code/bidi-warning-decorator';
|
|
6
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
7
|
export var useBidiWarnings = function useBidiWarnings(_ref) {
|
|
7
8
|
var _ref$enableWarningToo = _ref.enableWarningTooltip,
|
|
8
9
|
enableWarningTooltip = _ref$enableWarningToo === void 0 ? true : _ref$enableWarningToo;
|
|
9
10
|
var intl = useIntl();
|
|
10
11
|
var warningLabel = intl.formatMessage(codeBidiWarningMessages.label);
|
|
11
12
|
var renderBidiWarnings = function renderBidiWarnings(text) {
|
|
13
|
+
if (expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
|
|
14
|
+
return text;
|
|
15
|
+
}
|
|
12
16
|
return codeBidiWarningDecorator(text, function (_ref2) {
|
|
13
17
|
var bidiCharacter = _ref2.bidiCharacter,
|
|
14
18
|
index = _ref2.index;
|
|
@@ -10,6 +10,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
10
10
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
11
11
|
import { CodeBlock as AkCodeBlock } from '@atlaskit/code';
|
|
12
12
|
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
13
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
14
|
import CodeBlockContainer from './components/codeBlockContainer';
|
|
14
15
|
function CodeBlock(props) {
|
|
15
16
|
var text = props.text,
|
|
@@ -42,7 +43,8 @@ function CodeBlock(props) {
|
|
|
42
43
|
text: text,
|
|
43
44
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
44
45
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
45
|
-
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines
|
|
46
|
+
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines,
|
|
47
|
+
hasBidiWarnings: expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
|
|
46
48
|
}));
|
|
47
49
|
}
|
|
48
50
|
export default injectIntl(CodeBlock);
|
|
@@ -9,6 +9,7 @@ import { Fragment, lazy, memo, Suspense, useState } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
11
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
12
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
import { useInViewport } from '../../hooks/use-in-viewport';
|
|
13
14
|
import { useBidiWarnings } from '../../hooks/use-bidi-warnings';
|
|
14
15
|
import LightWeightCodeBlock from './components/lightWeightCodeBlock';
|
|
@@ -80,7 +81,8 @@ var WindowedCodeBlock = function WindowedCodeBlock(_ref2) {
|
|
|
80
81
|
text: text,
|
|
81
82
|
codeBidiWarningLabel: warningLabel,
|
|
82
83
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
|
|
83
|
-
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines
|
|
84
|
+
shouldWrapLongLines: allowWrapCodeBlock && wrapLongLines,
|
|
85
|
+
hasBidiWarnings: expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
|
|
84
86
|
})))) : memoizedLightWeightCodeBlock;
|
|
85
87
|
};
|
|
86
88
|
export default WindowedCodeBlock;
|
|
@@ -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.
|
|
62
|
+
var packageVersion = "124.9.0";
|
|
63
63
|
var setAsQueryContainerStyles = css({
|
|
64
64
|
containerName: 'ak-renderer-wrapper',
|
|
65
65
|
containerType: 'inline-size'
|
|
@@ -180,15 +180,19 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
180
180
|
var providerFactory = useMemo(function () {
|
|
181
181
|
return props.dataProviders || new ProviderFactory();
|
|
182
182
|
}, [props.dataProviders]);
|
|
183
|
+
var _useRendererContext = useRendererContext(),
|
|
184
|
+
parentContextContentMode = _useRendererContext.contentMode;
|
|
183
185
|
var createRendererContext = useMemo(function () {
|
|
184
|
-
return function (featureFlags, isTopLevelRenderer) {
|
|
186
|
+
return function (featureFlags, isTopLevelRenderer, contentMode) {
|
|
185
187
|
var normalizedFeatureFlags = normalizeFeatureFlags(featureFlags);
|
|
186
|
-
return {
|
|
188
|
+
return _objectSpread({
|
|
187
189
|
featureFlags: normalizedFeatureFlags,
|
|
188
190
|
isTopLevelRenderer: isTopLevelRenderer === undefined
|
|
189
|
-
}
|
|
191
|
+
}, fg('platform_editor_content_mode_render_context') && {
|
|
192
|
+
contentMode: contentMode || parentContextContentMode
|
|
193
|
+
});
|
|
190
194
|
};
|
|
191
|
-
}, []);
|
|
195
|
+
}, [parentContextContentMode]);
|
|
192
196
|
var fireAnalyticsEventOld = useCallback(function (event) {
|
|
193
197
|
var createAnalyticsEvent = props.createAnalyticsEvent;
|
|
194
198
|
if (createAnalyticsEvent) {
|
|
@@ -210,7 +214,7 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
210
214
|
var stickyHeaders = props.stickyHeaders ? props.stickyHeaders === true ? {} : props.stickyHeaders : undefined;
|
|
211
215
|
var annotationProvider = props.annotationProvider;
|
|
212
216
|
var allowAnnotationsDraftMode = Boolean(annotationProvider && annotationProvider.inlineComment && annotationProvider.inlineComment.allowDraftMode);
|
|
213
|
-
var _createRendererContex = createRendererContext(props.featureFlags, props.isTopLevelRenderer),
|
|
217
|
+
var _createRendererContex = createRendererContext(props.featureFlags, props.isTopLevelRenderer, props.contentMode),
|
|
214
218
|
featureFlags = _createRendererContex.featureFlags;
|
|
215
219
|
return {
|
|
216
220
|
startPos: (_props$startPos = props.startPos) !== null && _props$startPos !== void 0 ? _props$startPos : 0,
|
|
@@ -404,8 +408,8 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
404
408
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
405
409
|
}, []);
|
|
406
410
|
var rendererContext = useMemo(function () {
|
|
407
|
-
return createRendererContext(props.featureFlags, props.isTopLevelRenderer);
|
|
408
|
-
}, [props.featureFlags, props.isTopLevelRenderer, createRendererContext]);
|
|
411
|
+
return createRendererContext(props.featureFlags, props.isTopLevelRenderer, props.contentMode);
|
|
412
|
+
}, [props.featureFlags, props.isTopLevelRenderer, createRendererContext, props.contentMode]);
|
|
409
413
|
try {
|
|
410
414
|
var _rendererContext$feat, _props$media;
|
|
411
415
|
var schema = getSchema(props.schema, props.adfStage);
|
|
@@ -431,7 +435,7 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
431
435
|
}, jsx(RendererWrapper, {
|
|
432
436
|
allowAnnotations: props.allowAnnotations,
|
|
433
437
|
appearance: props.appearance,
|
|
434
|
-
contentMode: props.contentMode || 'standard',
|
|
438
|
+
contentMode: fg('platform_editor_content_mode_render_context') ? props.contentMode || rendererContext.contentMode || 'standard' : props.contentMode || 'standard',
|
|
435
439
|
allowNestedHeaderLinks: isNestedHeaderLinksEnabled(props.allowHeadingAnchorLinks),
|
|
436
440
|
allowColumnSorting: props.allowColumnSorting,
|
|
437
441
|
allowCopyToClipboard: props.allowCopyToClipboard,
|
|
@@ -470,7 +474,7 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
470
474
|
return jsx(RendererWrapper, {
|
|
471
475
|
allowAnnotations: props.allowAnnotations,
|
|
472
476
|
appearance: props.appearance,
|
|
473
|
-
contentMode: props.contentMode || 'standard',
|
|
477
|
+
contentMode: fg('platform_editor_content_mode_render_context') ? props.contentMode || rendererContext.contentMode || 'standard' : props.contentMode || 'standard',
|
|
474
478
|
allowCopyToClipboard: props.allowCopyToClipboard,
|
|
475
479
|
allowWrapCodeBlock: props.allowWrapCodeBlock,
|
|
476
480
|
allowPlaceholderText: props.allowPlaceholderText,
|
|
@@ -509,8 +513,8 @@ export function Renderer(props) {
|
|
|
509
513
|
var _props$isTopLevelRend;
|
|
510
514
|
var _React$useContext = React.useContext(AnnotationsPositionContext),
|
|
511
515
|
startPos = _React$useContext.startPos;
|
|
512
|
-
var
|
|
513
|
-
isTopLevelRenderer =
|
|
516
|
+
var _useRendererContext2 = useRendererContext(),
|
|
517
|
+
isTopLevelRenderer = _useRendererContext2.isTopLevelRenderer;
|
|
514
518
|
var _ref = useContext(ValidationContext) || {},
|
|
515
519
|
skipValidation = _ref.skipValidation,
|
|
516
520
|
allowNestedTables = _ref.allowNestedTables;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { RendererContentMode } from './ui/Renderer/types';
|
|
3
4
|
export type RendererContextProps = {
|
|
5
|
+
contentMode?: RendererContentMode;
|
|
4
6
|
featureFlags?: FeatureFlags;
|
|
5
7
|
isTopLevelRenderer?: boolean;
|
|
6
8
|
};
|
|
@@ -54,7 +54,7 @@ export interface RendererProps {
|
|
|
54
54
|
* Configures the content mode of the editor.
|
|
55
55
|
*
|
|
56
56
|
* - `"standard"` | `undefined` - normal content mode <- Default
|
|
57
|
-
* - `"
|
|
57
|
+
* - `"compact"` - content in editor has reduced size
|
|
58
58
|
*
|
|
59
59
|
* @private
|
|
60
60
|
* @deprecated this attribute is not supported outside of Confluence Full Page editors
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { RendererContentMode } from './ui/Renderer/types';
|
|
3
4
|
export type RendererContextProps = {
|
|
5
|
+
contentMode?: RendererContentMode;
|
|
4
6
|
featureFlags?: FeatureFlags;
|
|
5
7
|
isTopLevelRenderer?: boolean;
|
|
6
8
|
};
|
|
@@ -54,7 +54,7 @@ export interface RendererProps {
|
|
|
54
54
|
* Configures the content mode of the editor.
|
|
55
55
|
*
|
|
56
56
|
* - `"standard"` | `undefined` - normal content mode <- Default
|
|
57
|
-
* - `"
|
|
57
|
+
* - `"compact"` - content in editor has reduced size
|
|
58
58
|
*
|
|
59
59
|
* @private
|
|
60
60
|
* @deprecated this attribute is not supported outside of Confluence Full Page editors
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.
|
|
3
|
+
"version": "124.9.1",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,7 +57,7 @@
|
|
|
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.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^13.19.0",
|
|
61
61
|
"@atlaskit/tokens": "^7.0.0",
|
|
62
62
|
"@atlaskit/tooltip": "^20.6.0",
|
|
63
63
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
91
91
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
92
92
|
"@atlaskit/mention": "^24.3.0",
|
|
93
|
-
"@atlaskit/modal-dialog": "^14.
|
|
93
|
+
"@atlaskit/modal-dialog": "^14.6.0",
|
|
94
94
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
|
|
95
95
|
"@atlaskit/profilecard": "^24.20.0",
|
|
96
96
|
"@atlaskit/util-data-test": "^18.3.0",
|
|
@@ -242,6 +242,9 @@
|
|
|
242
242
|
"platform_editor_text_highlight_padding": {
|
|
243
243
|
"type": "boolean"
|
|
244
244
|
},
|
|
245
|
+
"platform_editor_content_mode_render_context": {
|
|
246
|
+
"type": "boolean"
|
|
247
|
+
},
|
|
245
248
|
"hot-121622_lazy_load_expand_content": {
|
|
246
249
|
"type": "boolean"
|
|
247
250
|
},
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.entry-points.dev-agents.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"outDir": "../../../../../dev-agents/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-dev-agents/tsconfig.json"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "../../../analytics/analytics-listeners/afm-dev-agents/tsconfig.json"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../../analytics/analytics-namespaced-context/afm-dev-agents/tsconfig.json"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../../../analytics/analytics-next/afm-dev-agents/tsconfig.json"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../../../helpers/browser-apis/afm-dev-agents/tsconfig.json"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "../../../design-system/button/afm-dev-agents/tsconfig.json"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "../../../design-system/code/afm-dev-agents/tsconfig.json"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "../../editor-json-transformer/afm-dev-agents/tsconfig.json"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "../../editor-palette/afm-dev-agents/tsconfig.json"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "../../editor-shared-styles/afm-dev-agents/tsconfig.json"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "../../editor-tables/afm-dev-agents/tsconfig.json"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "../../../elements/emoji/afm-dev-agents/tsconfig.json"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "../../../measurement/feature-gate-js-client/afm-dev-agents/tsconfig.json"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "../../../design-system/icon/afm-dev-agents/tsconfig.json"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "../../../design-system/link/afm-dev-agents/tsconfig.json"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "../../../linking-platform/link-datasource/afm-dev-agents/tsconfig.json"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "../../../linking-platform/link-extractors/afm-dev-agents/tsconfig.json"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"path": "../../../media/media-card/afm-dev-agents/tsconfig.json"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "../../../media/media-client/afm-dev-agents/tsconfig.json"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "../../../media/media-client-react/afm-dev-agents/tsconfig.json"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"path": "../../../media/media-common/afm-dev-agents/tsconfig.json"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"path": "../../../media/media-filmstrip/afm-dev-agents/tsconfig.json"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"path": "../../../media/media-ui/afm-dev-agents/tsconfig.json"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"path": "../../../media/media-viewer/afm-dev-agents/tsconfig.json"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"path": "../../../platform/feature-flags/afm-dev-agents/tsconfig.json"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"path": "../../../platform/feature-flags-react/afm-dev-agents/tsconfig.json"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"path": "../../../react-ufo/atlaskit/afm-dev-agents/tsconfig.json"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"path": "../../../linking-platform/smart-card/afm-dev-agents/tsconfig.json"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"path": "../../../elements/status/afm-dev-agents/tsconfig.json"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"path": "../../../elements/task-decision/afm-dev-agents/tsconfig.json"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"path": "../../../design-system/theme/afm-dev-agents/tsconfig.json"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"path": "../../tmp-editor-statsig/afm-dev-agents/tsconfig.json"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"path": "../../../design-system/tokens/afm-dev-agents/tsconfig.json"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"path": "../../../design-system/tooltip/afm-dev-agents/tsconfig.json"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"path": "../../../design-system/visually-hidden/afm-dev-agents/tsconfig.json"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"path": "../../editor-common/afm-dev-agents/tsconfig.json"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"path": "../../../linking-platform/link-provider/afm-dev-agents/tsconfig.json"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"path": "../../../media/media-core/afm-dev-agents/tsconfig.json"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.entry-points.passionfruit.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"outDir": "../../../../../passionfruit/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-passionfruit/tsconfig.json"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "../../../analytics/analytics-listeners/afm-passionfruit/tsconfig.json"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../../analytics/analytics-namespaced-context/afm-passionfruit/tsconfig.json"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../../../analytics/analytics-next/afm-passionfruit/tsconfig.json"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../../../helpers/browser-apis/afm-passionfruit/tsconfig.json"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "../../../design-system/button/afm-passionfruit/tsconfig.json"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "../../../design-system/code/afm-passionfruit/tsconfig.json"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "../../editor-json-transformer/afm-passionfruit/tsconfig.json"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "../../editor-palette/afm-passionfruit/tsconfig.json"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "../../editor-shared-styles/afm-passionfruit/tsconfig.json"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "../../editor-tables/afm-passionfruit/tsconfig.json"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "../../../elements/emoji/afm-passionfruit/tsconfig.json"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "../../../measurement/feature-gate-js-client/afm-passionfruit/tsconfig.json"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "../../../design-system/icon/afm-passionfruit/tsconfig.json"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "../../../design-system/link/afm-passionfruit/tsconfig.json"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "../../../linking-platform/link-datasource/afm-passionfruit/tsconfig.json"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "../../../linking-platform/link-extractors/afm-passionfruit/tsconfig.json"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"path": "../../../media/media-card/afm-passionfruit/tsconfig.json"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "../../../media/media-client/afm-passionfruit/tsconfig.json"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "../../../media/media-client-react/afm-passionfruit/tsconfig.json"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"path": "../../../media/media-common/afm-passionfruit/tsconfig.json"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"path": "../../../media/media-filmstrip/afm-passionfruit/tsconfig.json"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"path": "../../../media/media-ui/afm-passionfruit/tsconfig.json"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"path": "../../../media/media-viewer/afm-passionfruit/tsconfig.json"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"path": "../../../platform/feature-flags/afm-passionfruit/tsconfig.json"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"path": "../../../platform/feature-flags-react/afm-passionfruit/tsconfig.json"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"path": "../../../react-ufo/atlaskit/afm-passionfruit/tsconfig.json"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"path": "../../../linking-platform/smart-card/afm-passionfruit/tsconfig.json"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"path": "../../../elements/status/afm-passionfruit/tsconfig.json"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"path": "../../../elements/task-decision/afm-passionfruit/tsconfig.json"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"path": "../../../design-system/theme/afm-passionfruit/tsconfig.json"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"path": "../../tmp-editor-statsig/afm-passionfruit/tsconfig.json"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"path": "../../../design-system/tokens/afm-passionfruit/tsconfig.json"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"path": "../../../design-system/tooltip/afm-passionfruit/tsconfig.json"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"path": "../../../design-system/visually-hidden/afm-passionfruit/tsconfig.json"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"path": "../../editor-common/afm-passionfruit/tsconfig.json"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"path": "../../../linking-platform/link-provider/afm-passionfruit/tsconfig.json"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"path": "../../../media/media-core/afm-passionfruit/tsconfig.json"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.entry-points.rovo-extension.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"outDir": "../../../../../rovo-extension/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-rovo-extension/tsconfig.json"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "../../../analytics/analytics-listeners/afm-rovo-extension/tsconfig.json"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../../analytics/analytics-namespaced-context/afm-rovo-extension/tsconfig.json"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../../../analytics/analytics-next/afm-rovo-extension/tsconfig.json"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../../../helpers/browser-apis/afm-rovo-extension/tsconfig.json"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "../../../design-system/button/afm-rovo-extension/tsconfig.json"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "../../../design-system/code/afm-rovo-extension/tsconfig.json"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "../../editor-json-transformer/afm-rovo-extension/tsconfig.json"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "../../editor-palette/afm-rovo-extension/tsconfig.json"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "../../editor-shared-styles/afm-rovo-extension/tsconfig.json"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "../../editor-tables/afm-rovo-extension/tsconfig.json"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "../../../elements/emoji/afm-rovo-extension/tsconfig.json"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "../../../measurement/feature-gate-js-client/afm-rovo-extension/tsconfig.json"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "../../../design-system/icon/afm-rovo-extension/tsconfig.json"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "../../../design-system/link/afm-rovo-extension/tsconfig.json"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "../../../linking-platform/link-datasource/afm-rovo-extension/tsconfig.json"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "../../../linking-platform/link-extractors/afm-rovo-extension/tsconfig.json"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"path": "../../../media/media-card/afm-rovo-extension/tsconfig.json"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "../../../media/media-client/afm-rovo-extension/tsconfig.json"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "../../../media/media-client-react/afm-rovo-extension/tsconfig.json"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"path": "../../../media/media-common/afm-rovo-extension/tsconfig.json"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"path": "../../../media/media-filmstrip/afm-rovo-extension/tsconfig.json"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"path": "../../../media/media-ui/afm-rovo-extension/tsconfig.json"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"path": "../../../media/media-viewer/afm-rovo-extension/tsconfig.json"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"path": "../../../platform/feature-flags/afm-rovo-extension/tsconfig.json"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"path": "../../../platform/feature-flags-react/afm-rovo-extension/tsconfig.json"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"path": "../../../react-ufo/atlaskit/afm-rovo-extension/tsconfig.json"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"path": "../../../linking-platform/smart-card/afm-rovo-extension/tsconfig.json"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"path": "../../../elements/status/afm-rovo-extension/tsconfig.json"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"path": "../../../elements/task-decision/afm-rovo-extension/tsconfig.json"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"path": "../../../design-system/theme/afm-rovo-extension/tsconfig.json"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"path": "../../tmp-editor-statsig/afm-rovo-extension/tsconfig.json"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"path": "../../../design-system/tokens/afm-rovo-extension/tsconfig.json"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"path": "../../../design-system/tooltip/afm-rovo-extension/tsconfig.json"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"path": "../../../design-system/visually-hidden/afm-rovo-extension/tsconfig.json"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"path": "../../editor-common/afm-rovo-extension/tsconfig.json"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"path": "../../../linking-platform/link-provider/afm-rovo-extension/tsconfig.json"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"path": "../../../media/media-core/afm-rovo-extension/tsconfig.json"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
}
|
package/afm-volt/tsconfig.json
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.entry-points.volt.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"outDir": "../../../../../volt/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-volt/tsconfig.json"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "../../../analytics/analytics-listeners/afm-volt/tsconfig.json"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../../analytics/analytics-namespaced-context/afm-volt/tsconfig.json"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../../../analytics/analytics-next/afm-volt/tsconfig.json"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../../../design-system/button/afm-volt/tsconfig.json"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "../../../design-system/code/afm-volt/tsconfig.json"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "../../editor-json-transformer/afm-volt/tsconfig.json"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "../../editor-palette/afm-volt/tsconfig.json"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "../../editor-shared-styles/afm-volt/tsconfig.json"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "../../editor-tables/afm-volt/tsconfig.json"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "../../../elements/emoji/afm-volt/tsconfig.json"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "../../../measurement/feature-gate-js-client/afm-volt/tsconfig.json"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "../../../design-system/icon/afm-volt/tsconfig.json"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "../../../design-system/link/afm-volt/tsconfig.json"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "../../../linking-platform/link-datasource/afm-volt/tsconfig.json"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "../../../media/media-card/afm-volt/tsconfig.json"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "../../../media/media-client/afm-volt/tsconfig.json"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"path": "../../../media/media-client-react/afm-volt/tsconfig.json"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "../../../media/media-common/afm-volt/tsconfig.json"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "../../../media/media-filmstrip/afm-volt/tsconfig.json"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"path": "../../../media/media-ui/afm-volt/tsconfig.json"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"path": "../../../media/media-viewer/afm-volt/tsconfig.json"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"path": "../../../platform/feature-flags/afm-volt/tsconfig.json"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"path": "../../../platform/feature-flags-react/afm-volt/tsconfig.json"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"path": "../../../react-ufo/atlaskit/afm-volt/tsconfig.json"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"path": "../../../linking-platform/smart-card/afm-volt/tsconfig.json"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"path": "../../../elements/status/afm-volt/tsconfig.json"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"path": "../../../elements/task-decision/afm-volt/tsconfig.json"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"path": "../../../design-system/theme/afm-volt/tsconfig.json"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"path": "../../tmp-editor-statsig/afm-volt/tsconfig.json"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"path": "../../../design-system/tokens/afm-volt/tsconfig.json"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"path": "../../../design-system/tooltip/afm-volt/tsconfig.json"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"path": "../../../design-system/visually-hidden/afm-volt/tsconfig.json"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"path": "../../editor-common/afm-volt/tsconfig.json"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"path": "../../../linking-platform/link-provider/afm-volt/tsconfig.json"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"path": "../../../media/media-core/afm-volt/tsconfig.json"
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
}
|