@atlaskit/renderer 118.6.15 → 118.7.0
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/i18n/sl.js +25 -0
- package/dist/cjs/i18n/sr_RS.js +25 -0
- package/dist/cjs/react/nodes/blockCard.js +2 -1
- package/dist/cjs/react/nodes/inlineCard.js +6 -1
- package/dist/cjs/render-document.js +23 -24
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/i18n/sl.js +19 -0
- package/dist/es2019/i18n/sr_RS.js +19 -0
- package/dist/es2019/react/nodes/blockCard.js +2 -1
- package/dist/es2019/react/nodes/inlineCard.js +6 -1
- package/dist/es2019/render-document.js +24 -25
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/i18n/sl.js +19 -0
- package/dist/esm/i18n/sr_RS.js +19 -0
- package/dist/esm/react/nodes/blockCard.js +2 -1
- package/dist/esm/react/nodes/inlineCard.js +6 -1
- package/dist/esm/render-document.js +23 -24
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/i18n/sl.d.ts +18 -0
- package/dist/types/i18n/sr_RS.d.ts +18 -0
- package/dist/types/types/smartLinksOptions.d.ts +8 -0
- package/dist/types-ts4.5/i18n/sl.d.ts +18 -0
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +18 -0
- package/dist/types-ts4.5/types/smartLinksOptions.d.ts +8 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 118.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#167885](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167885)
|
|
8
|
+
[`c02ae038fca4f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c02ae038fca4f) -
|
|
9
|
+
[ux] Add optional CompetitorPrompt component to renderer for experiment
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 118.6.16
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#169039](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169039)
|
|
20
|
+
[`d2488752fcad8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2488752fcad8) -
|
|
21
|
+
EDITOR-508 Part 1 of cleaning up `platform_editor_use_nested_table_pm_nodes`
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 118.6.15
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
//Slovenian (Slovenia) [sl-SI]
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'fabric.editor.headingLink.ascSortingLabel': 'naraščajoče',
|
|
17
|
+
'fabric.editor.headingLink.copied': 'Kopirano!',
|
|
18
|
+
'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj povezavo do naslova',
|
|
19
|
+
'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
|
|
20
|
+
'fabric.editor.headingLink.descSortingLabel': 'padajoče',
|
|
21
|
+
'fabric.editor.headingLink.failedToCopy': 'Kopiranje ni uspelo',
|
|
22
|
+
'fabric.editor.headingLink.noneSortingLabel': 'brez',
|
|
23
|
+
'fabric.editor.inlineComment.marker.end': 'konec komentarja v vrstici',
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'začetek komentarja v vrstici'
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
//Serbian (Serbia) [sr-RS]
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'fabric.editor.headingLink.ascSortingLabel': 'rastući',
|
|
17
|
+
'fabric.editor.headingLink.copied': 'Kopirano!',
|
|
18
|
+
'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj link naslova',
|
|
19
|
+
'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
|
|
20
|
+
'fabric.editor.headingLink.descSortingLabel': 'opadajući',
|
|
21
|
+
'fabric.editor.headingLink.failedToCopy': 'Kopiranje nije uspelo',
|
|
22
|
+
'fabric.editor.headingLink.noneSortingLabel': 'nijedno',
|
|
23
|
+
'fabric.editor.inlineComment.marker.end': 'kraj umetnutog komentara',
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'početak umetnutog komentara'
|
|
25
|
+
};
|
|
@@ -51,7 +51,8 @@ function BlockCard(props) {
|
|
|
51
51
|
onClick: onClick,
|
|
52
52
|
container: portal,
|
|
53
53
|
isDatasource: !!props.datasource,
|
|
54
|
-
actionOptions: actionOptions
|
|
54
|
+
actionOptions: actionOptions,
|
|
55
|
+
CompetitorPrompt: smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt
|
|
55
56
|
};
|
|
56
57
|
var analyticsData = {
|
|
57
58
|
attributes: {
|
|
@@ -48,6 +48,11 @@ var InlineCard = function InlineCard(props) {
|
|
|
48
48
|
location: 'renderer'
|
|
49
49
|
};
|
|
50
50
|
var inlineAnnotationProps = (0, _useInlineAnnotationProps.useInlineAnnotationProps)(props);
|
|
51
|
+
var CompetitorPrompt = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt;
|
|
52
|
+
var CompetitorPromptComponent = CompetitorPrompt && url && (0, _platformFeatureFlags.fg)('prompt_whiteboard_competitor_link_gate') ? (0, _react.jsx)(CompetitorPrompt, {
|
|
53
|
+
sourceUrl: url,
|
|
54
|
+
linkType: "inline"
|
|
55
|
+
}) : null;
|
|
51
56
|
if (ssr && url) {
|
|
52
57
|
if (
|
|
53
58
|
// eslint-disable-next-line @atlaskit/platform/no-invalid-feature-flag-usage
|
|
@@ -110,6 +115,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
110
115
|
props.smartCardStorage.set(data.url, data.title);
|
|
111
116
|
},
|
|
112
117
|
onError: onError
|
|
113
|
-
})))));
|
|
118
|
+
})), CompetitorPromptComponent)));
|
|
114
119
|
};
|
|
115
120
|
var _default = exports.default = (0, _SmartCardStorage.withSmartCardStorage)(InlineCard);
|
|
@@ -67,34 +67,33 @@ var _validation = function _validation(doc, schema, adfStage, useSpecBasedValida
|
|
|
67
67
|
result.version = 1;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
|
|
81
|
-
action: _analytics.ACTION.NESTED_TABLE_TRANSFORMED,
|
|
82
|
-
actionSubject: _analytics.ACTION_SUBJECT.RENDERER,
|
|
83
|
-
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
84
|
-
});
|
|
85
|
-
result = _transformedAdf;
|
|
86
|
-
}
|
|
87
|
-
} catch (e) {
|
|
70
|
+
|
|
71
|
+
// Convert nested-table extensions into nested tables
|
|
72
|
+
try {
|
|
73
|
+
var _transformNestedTable = (0, _transforms.transformNestedTablesIncomingDocument)(result, {
|
|
74
|
+
environment: 'renderer',
|
|
75
|
+
disableNestedRendererTreatment: (0, _platformFeatureFlags.fg)('platform_editor_nested_table_extension_comment_fix')
|
|
76
|
+
}),
|
|
77
|
+
_transformedAdf = _transformNestedTable.transformedAdf,
|
|
78
|
+
_isTransformed = _transformNestedTable.isTransformed;
|
|
79
|
+
if (_isTransformed) {
|
|
88
80
|
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
|
|
89
|
-
action: _analytics.ACTION.
|
|
81
|
+
action: _analytics.ACTION.NESTED_TABLE_TRANSFORMED,
|
|
90
82
|
actionSubject: _analytics.ACTION_SUBJECT.RENDERER,
|
|
91
|
-
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
92
|
-
attributes: {
|
|
93
|
-
platform: _events.PLATFORM.WEB,
|
|
94
|
-
errorStack: "".concat(e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined)
|
|
95
|
-
}
|
|
83
|
+
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
96
84
|
});
|
|
85
|
+
result = _transformedAdf;
|
|
97
86
|
}
|
|
87
|
+
} catch (e) {
|
|
88
|
+
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
|
|
89
|
+
action: _analytics.ACTION.INVALID_PROSEMIRROR_DOCUMENT,
|
|
90
|
+
actionSubject: _analytics.ACTION_SUBJECT.RENDERER,
|
|
91
|
+
eventType: _analytics.EVENT_TYPE.OPERATIONAL,
|
|
92
|
+
attributes: {
|
|
93
|
+
platform: _events.PLATFORM.WEB,
|
|
94
|
+
errorStack: "".concat(e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined)
|
|
95
|
+
}
|
|
96
|
+
});
|
|
98
97
|
}
|
|
99
98
|
return result;
|
|
100
99
|
};
|
|
@@ -62,7 +62,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
62
62
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
63
63
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "118.
|
|
65
|
+
var packageVersion = "118.7.0";
|
|
66
66
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
/**
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
6
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
|
+
*/
|
|
8
|
+
//Slovenian (Slovenia) [sl-SI]
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.editor.headingLink.ascSortingLabel': 'naraščajoče',
|
|
11
|
+
'fabric.editor.headingLink.copied': 'Kopirano!',
|
|
12
|
+
'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj povezavo do naslova',
|
|
13
|
+
'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
|
|
14
|
+
'fabric.editor.headingLink.descSortingLabel': 'padajoče',
|
|
15
|
+
'fabric.editor.headingLink.failedToCopy': 'Kopiranje ni uspelo',
|
|
16
|
+
'fabric.editor.headingLink.noneSortingLabel': 'brez',
|
|
17
|
+
'fabric.editor.inlineComment.marker.end': 'konec komentarja v vrstici',
|
|
18
|
+
'fabric.editor.inlineComment.marker.start': 'začetek komentarja v vrstici'
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
/**
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
6
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
|
+
*/
|
|
8
|
+
//Serbian (Serbia) [sr-RS]
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.editor.headingLink.ascSortingLabel': 'rastući',
|
|
11
|
+
'fabric.editor.headingLink.copied': 'Kopirano!',
|
|
12
|
+
'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj link naslova',
|
|
13
|
+
'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
|
|
14
|
+
'fabric.editor.headingLink.descSortingLabel': 'opadajući',
|
|
15
|
+
'fabric.editor.headingLink.failedToCopy': 'Kopiranje nije uspelo',
|
|
16
|
+
'fabric.editor.headingLink.noneSortingLabel': 'nijedno',
|
|
17
|
+
'fabric.editor.inlineComment.marker.end': 'kraj umetnutog komentara',
|
|
18
|
+
'fabric.editor.inlineComment.marker.start': 'početak umetnutog komentara'
|
|
19
|
+
};
|
|
@@ -46,7 +46,8 @@ export default function BlockCard(props) {
|
|
|
46
46
|
onClick,
|
|
47
47
|
container: portal,
|
|
48
48
|
isDatasource: !!props.datasource,
|
|
49
|
-
actionOptions
|
|
49
|
+
actionOptions,
|
|
50
|
+
CompetitorPrompt: smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt
|
|
50
51
|
};
|
|
51
52
|
const analyticsData = {
|
|
52
53
|
attributes: {
|
|
@@ -43,6 +43,11 @@ const InlineCard = props => {
|
|
|
43
43
|
location: 'renderer'
|
|
44
44
|
};
|
|
45
45
|
const inlineAnnotationProps = useInlineAnnotationProps(props);
|
|
46
|
+
const CompetitorPrompt = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt;
|
|
47
|
+
const CompetitorPromptComponent = CompetitorPrompt && url && fg('prompt_whiteboard_competitor_link_gate') ? jsx(CompetitorPrompt, {
|
|
48
|
+
sourceUrl: url,
|
|
49
|
+
linkType: "inline"
|
|
50
|
+
}) : null;
|
|
46
51
|
if (ssr && url) {
|
|
47
52
|
if (
|
|
48
53
|
// eslint-disable-next-line @atlaskit/platform/no-invalid-feature-flag-usage
|
|
@@ -106,6 +111,6 @@ const InlineCard = props => {
|
|
|
106
111
|
props.smartCardStorage.set(data.url, data.title);
|
|
107
112
|
},
|
|
108
113
|
onError: onError
|
|
109
|
-
})))));
|
|
114
|
+
})), CompetitorPromptComponent)));
|
|
110
115
|
};
|
|
111
116
|
export default withSmartCardStorage(InlineCard);
|
|
@@ -60,35 +60,34 @@ const _validation = (doc, schema, adfStage, useSpecBasedValidator, dispatchAnaly
|
|
|
60
60
|
result.version = 1;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 ? void 0 : dispatchAnalyticsEvent({
|
|
75
|
-
action: ACTION.NESTED_TABLE_TRANSFORMED,
|
|
76
|
-
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
77
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
78
|
-
});
|
|
79
|
-
result = transformedAdf;
|
|
80
|
-
}
|
|
81
|
-
} catch (e) {
|
|
63
|
+
|
|
64
|
+
// Convert nested-table extensions into nested tables
|
|
65
|
+
try {
|
|
66
|
+
const {
|
|
67
|
+
transformedAdf,
|
|
68
|
+
isTransformed
|
|
69
|
+
} = transformNestedTablesIncomingDocument(result, {
|
|
70
|
+
environment: 'renderer',
|
|
71
|
+
disableNestedRendererTreatment: fg('platform_editor_nested_table_extension_comment_fix')
|
|
72
|
+
});
|
|
73
|
+
if (isTransformed) {
|
|
82
74
|
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 ? void 0 : dispatchAnalyticsEvent({
|
|
83
|
-
action: ACTION.
|
|
75
|
+
action: ACTION.NESTED_TABLE_TRANSFORMED,
|
|
84
76
|
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
85
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
86
|
-
attributes: {
|
|
87
|
-
platform: PLATFORM.WEB,
|
|
88
|
-
errorStack: `${e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined}`
|
|
89
|
-
}
|
|
77
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
90
78
|
});
|
|
79
|
+
result = transformedAdf;
|
|
91
80
|
}
|
|
81
|
+
} catch (e) {
|
|
82
|
+
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 ? void 0 : dispatchAnalyticsEvent({
|
|
83
|
+
action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
|
|
84
|
+
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
85
|
+
eventType: EVENT_TYPE.OPERATIONAL,
|
|
86
|
+
attributes: {
|
|
87
|
+
platform: PLATFORM.WEB,
|
|
88
|
+
errorStack: `${e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined}`
|
|
89
|
+
}
|
|
90
|
+
});
|
|
92
91
|
}
|
|
93
92
|
return result;
|
|
94
93
|
};
|
|
@@ -48,7 +48,7 @@ import { PortalContext } from './PortalContext';
|
|
|
48
48
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
49
49
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
50
50
|
const packageName = "@atlaskit/renderer";
|
|
51
|
-
const packageVersion = "118.
|
|
51
|
+
const packageVersion = "118.7.0";
|
|
52
52
|
const setAsQueryContainerStyles = css({
|
|
53
53
|
containerName: 'ak-renderer-wrapper',
|
|
54
54
|
containerType: 'inline-size'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
/**
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
6
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
|
+
*/
|
|
8
|
+
//Slovenian (Slovenia) [sl-SI]
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.editor.headingLink.ascSortingLabel': 'naraščajoče',
|
|
11
|
+
'fabric.editor.headingLink.copied': 'Kopirano!',
|
|
12
|
+
'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj povezavo do naslova',
|
|
13
|
+
'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
|
|
14
|
+
'fabric.editor.headingLink.descSortingLabel': 'padajoče',
|
|
15
|
+
'fabric.editor.headingLink.failedToCopy': 'Kopiranje ni uspelo',
|
|
16
|
+
'fabric.editor.headingLink.noneSortingLabel': 'brez',
|
|
17
|
+
'fabric.editor.inlineComment.marker.end': 'konec komentarja v vrstici',
|
|
18
|
+
'fabric.editor.inlineComment.marker.start': 'začetek komentarja v vrstici'
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
/**
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
6
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
|
+
*/
|
|
8
|
+
//Serbian (Serbia) [sr-RS]
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.editor.headingLink.ascSortingLabel': 'rastući',
|
|
11
|
+
'fabric.editor.headingLink.copied': 'Kopirano!',
|
|
12
|
+
'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj link naslova',
|
|
13
|
+
'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
|
|
14
|
+
'fabric.editor.headingLink.descSortingLabel': 'opadajući',
|
|
15
|
+
'fabric.editor.headingLink.failedToCopy': 'Kopiranje nije uspelo',
|
|
16
|
+
'fabric.editor.headingLink.noneSortingLabel': 'nijedno',
|
|
17
|
+
'fabric.editor.inlineComment.marker.end': 'kraj umetnutog komentara',
|
|
18
|
+
'fabric.editor.inlineComment.marker.start': 'početak umetnutog komentara'
|
|
19
|
+
};
|
|
@@ -43,7 +43,8 @@ export default function BlockCard(props) {
|
|
|
43
43
|
onClick: onClick,
|
|
44
44
|
container: portal,
|
|
45
45
|
isDatasource: !!props.datasource,
|
|
46
|
-
actionOptions: actionOptions
|
|
46
|
+
actionOptions: actionOptions,
|
|
47
|
+
CompetitorPrompt: smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt
|
|
47
48
|
};
|
|
48
49
|
var analyticsData = {
|
|
49
50
|
attributes: {
|
|
@@ -40,6 +40,11 @@ var InlineCard = function InlineCard(props) {
|
|
|
40
40
|
location: 'renderer'
|
|
41
41
|
};
|
|
42
42
|
var inlineAnnotationProps = useInlineAnnotationProps(props);
|
|
43
|
+
var CompetitorPrompt = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.CompetitorPrompt;
|
|
44
|
+
var CompetitorPromptComponent = CompetitorPrompt && url && fg('prompt_whiteboard_competitor_link_gate') ? jsx(CompetitorPrompt, {
|
|
45
|
+
sourceUrl: url,
|
|
46
|
+
linkType: "inline"
|
|
47
|
+
}) : null;
|
|
43
48
|
if (ssr && url) {
|
|
44
49
|
if (
|
|
45
50
|
// eslint-disable-next-line @atlaskit/platform/no-invalid-feature-flag-usage
|
|
@@ -102,6 +107,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
102
107
|
props.smartCardStorage.set(data.url, data.title);
|
|
103
108
|
},
|
|
104
109
|
onError: onError
|
|
105
|
-
})))));
|
|
110
|
+
})), CompetitorPromptComponent)));
|
|
106
111
|
};
|
|
107
112
|
export default withSmartCardStorage(InlineCard);
|
|
@@ -60,34 +60,33 @@ var _validation = function _validation(doc, schema, adfStage, useSpecBasedValida
|
|
|
60
60
|
result.version = 1;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
|
|
74
|
-
action: ACTION.NESTED_TABLE_TRANSFORMED,
|
|
75
|
-
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
76
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
77
|
-
});
|
|
78
|
-
result = _transformedAdf;
|
|
79
|
-
}
|
|
80
|
-
} catch (e) {
|
|
63
|
+
|
|
64
|
+
// Convert nested-table extensions into nested tables
|
|
65
|
+
try {
|
|
66
|
+
var _transformNestedTable = transformNestedTablesIncomingDocument(result, {
|
|
67
|
+
environment: 'renderer',
|
|
68
|
+
disableNestedRendererTreatment: fg('platform_editor_nested_table_extension_comment_fix')
|
|
69
|
+
}),
|
|
70
|
+
_transformedAdf = _transformNestedTable.transformedAdf,
|
|
71
|
+
_isTransformed = _transformNestedTable.isTransformed;
|
|
72
|
+
if (_isTransformed) {
|
|
81
73
|
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
|
|
82
|
-
action: ACTION.
|
|
74
|
+
action: ACTION.NESTED_TABLE_TRANSFORMED,
|
|
83
75
|
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
84
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
85
|
-
attributes: {
|
|
86
|
-
platform: PLATFORM.WEB,
|
|
87
|
-
errorStack: "".concat(e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined)
|
|
88
|
-
}
|
|
76
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
89
77
|
});
|
|
78
|
+
result = _transformedAdf;
|
|
90
79
|
}
|
|
80
|
+
} catch (e) {
|
|
81
|
+
dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
|
|
82
|
+
action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
|
|
83
|
+
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
84
|
+
eventType: EVENT_TYPE.OPERATIONAL,
|
|
85
|
+
attributes: {
|
|
86
|
+
platform: PLATFORM.WEB,
|
|
87
|
+
errorStack: "".concat(e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined)
|
|
88
|
+
}
|
|
89
|
+
});
|
|
91
90
|
}
|
|
92
91
|
return result;
|
|
93
92
|
};
|
|
@@ -53,7 +53,7 @@ import { PortalContext } from './PortalContext';
|
|
|
53
53
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
54
54
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
55
55
|
var packageName = "@atlaskit/renderer";
|
|
56
|
-
var packageVersion = "118.
|
|
56
|
+
var packageVersion = "118.7.0";
|
|
57
57
|
var setAsQueryContainerStyles = css({
|
|
58
58
|
containerName: 'ak-renderer-wrapper',
|
|
59
59
|
containerType: 'inline-size'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.copied': string;
|
|
10
|
+
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
+
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
+
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
+
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.copied': string;
|
|
10
|
+
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
+
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
+
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
+
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type React from 'react';
|
|
1
2
|
import type { CardProps } from '@atlaskit/smart-card';
|
|
2
3
|
export interface SmartLinksOptions {
|
|
3
4
|
/**
|
|
@@ -31,4 +32,11 @@ export interface SmartLinksOptions {
|
|
|
31
32
|
* Component: embed
|
|
32
33
|
*/
|
|
33
34
|
frameStyle?: CardProps['frameStyle'];
|
|
35
|
+
/**
|
|
36
|
+
* Competitor Prompt Component for Competitor link
|
|
37
|
+
*/
|
|
38
|
+
CompetitorPrompt?: React.ComponentType<{
|
|
39
|
+
sourceUrl: string;
|
|
40
|
+
linkType?: string;
|
|
41
|
+
}>;
|
|
34
42
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.copied': string;
|
|
10
|
+
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
+
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
+
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
+
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.copied': string;
|
|
10
|
+
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
11
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.descSortingLabel': string;
|
|
13
|
+
'fabric.editor.headingLink.failedToCopy': string;
|
|
14
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
15
|
+
'fabric.editor.inlineComment.marker.end': string;
|
|
16
|
+
'fabric.editor.inlineComment.marker.start': string;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type React from 'react';
|
|
1
2
|
import type { CardProps } from '@atlaskit/smart-card';
|
|
2
3
|
export interface SmartLinksOptions {
|
|
3
4
|
/**
|
|
@@ -31,4 +32,11 @@ export interface SmartLinksOptions {
|
|
|
31
32
|
* Component: embed
|
|
32
33
|
*/
|
|
33
34
|
frameStyle?: CardProps['frameStyle'];
|
|
35
|
+
/**
|
|
36
|
+
* Competitor Prompt Component for Competitor link
|
|
37
|
+
*/
|
|
38
|
+
CompetitorPrompt?: React.ComponentType<{
|
|
39
|
+
sourceUrl: string;
|
|
40
|
+
linkType?: string;
|
|
41
|
+
}>;
|
|
34
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "118.
|
|
3
|
+
"version": "118.7.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
32
32
|
"@atlaskit/button": "^23.2.0",
|
|
33
33
|
"@atlaskit/code": "^17.2.0",
|
|
34
|
-
"@atlaskit/editor-common": "^106.
|
|
34
|
+
"@atlaskit/editor-common": "^106.9.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@atlaskit/media-card": "^79.3.0",
|
|
46
46
|
"@atlaskit/media-client": "^33.4.0",
|
|
47
47
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
48
|
-
"@atlaskit/media-common": "^12.
|
|
48
|
+
"@atlaskit/media-common": "^12.2.0",
|
|
49
49
|
"@atlaskit/media-filmstrip": "^50.1.0",
|
|
50
|
-
"@atlaskit/media-ui": "^28.
|
|
50
|
+
"@atlaskit/media-ui": "^28.3.0",
|
|
51
51
|
"@atlaskit/media-viewer": "^52.2.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@atlaskit/status": "^3.0.0",
|
|
57
57
|
"@atlaskit/task-decision": "^19.2.0",
|
|
58
58
|
"@atlaskit/theme": "^18.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^7.
|
|
60
|
-
"@atlaskit/tokens": "^5.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^7.1.0",
|
|
60
|
+
"@atlaskit/tokens": "^5.2.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.3.0",
|
|
62
62
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
@@ -166,9 +166,6 @@
|
|
|
166
166
|
"platform-component-visual-refresh": {
|
|
167
167
|
"type": "boolean"
|
|
168
168
|
},
|
|
169
|
-
"platform_editor_use_nested_table_pm_nodes": {
|
|
170
|
-
"type": "boolean"
|
|
171
|
-
},
|
|
172
169
|
"platform_editor_hyperlink_underline": {
|
|
173
170
|
"type": "boolean"
|
|
174
171
|
},
|
|
@@ -268,6 +265,9 @@
|
|
|
268
265
|
},
|
|
269
266
|
"platform_fix_block_card_img_icon_vc": {
|
|
270
267
|
"type": "boolean"
|
|
268
|
+
},
|
|
269
|
+
"prompt_whiteboard_competitor_link_gate": {
|
|
270
|
+
"type": "boolean"
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
"af:exports": {
|