@atlaskit/renderer 128.0.0 → 128.0.2
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 +14 -0
- package/dist/cjs/react/index.js +0 -15
- package/dist/cjs/react/nodes/blockCard.js +1 -1
- package/dist/cjs/react/nodes/embedCard.js +1 -1
- package/dist/cjs/react/nodes/inlineCard.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/index.js +0 -13
- package/dist/es2019/react/nodes/blockCard.js +2 -2
- package/dist/es2019/react/nodes/embedCard.js +2 -2
- package/dist/es2019/react/nodes/inlineCard.js +2 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/index.js +0 -15
- package/dist/esm/react/nodes/blockCard.js +2 -2
- package/dist/esm/react/nodes/embedCard.js +2 -2
- package/dist/esm/react/nodes/inlineCard.js +2 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/index.d.ts +0 -1
- package/dist/types-ts4.5/react/index.d.ts +0 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 128.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`77e8559d882d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/77e8559d882d3) -
|
|
8
|
+
cleanup platform_editor_remove_reactserializer_fromschema removing ReactSerializer.fromSchema
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 128.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 128.0.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -818,20 +818,5 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
818
818
|
}, node);
|
|
819
819
|
}));
|
|
820
820
|
}
|
|
821
|
-
|
|
822
|
-
// TODO: ED-9004 - Remove unused ReactSerializer.fromSchema in renderer
|
|
823
|
-
// https://sourcegraph-frontend.internal.shared-prod.us-west-2.kitt-inf.net/search?q=ReactSerializer.fromSchema&patternType=literal
|
|
824
|
-
}, {
|
|
825
|
-
key: "fromSchema",
|
|
826
|
-
value: function fromSchema(_, init) {
|
|
827
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_remove_reactserializer_fromschema', 'isEnabled', true)) {
|
|
828
|
-
throw new Error('ReactSerializer.fromSchema has been removed. Please use the constructor instead: new ReactSerializer()');
|
|
829
|
-
}
|
|
830
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
831
|
-
// eslint-disable-next-line no-console
|
|
832
|
-
console.warn('ReactSerializer.fromSchema is deprecated. Please use the constructor instead via new ReactSerializer()');
|
|
833
|
-
}
|
|
834
|
-
return new ReactSerializer(init);
|
|
835
|
-
}
|
|
836
821
|
}]);
|
|
837
822
|
}();
|
|
@@ -192,7 +192,7 @@ function BlockCard(props) {
|
|
|
192
192
|
}
|
|
193
193
|
return (0, _react.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
194
194
|
url: url || '',
|
|
195
|
-
appearance: _editorSmartLinkDraggable.
|
|
195
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPEARANCE.BLOCK,
|
|
196
196
|
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
197
197
|
}, (0, _react.jsx)(_analyticsNext.AnalyticsContext, {
|
|
198
198
|
data: analyticsData
|
|
@@ -204,7 +204,7 @@ function EmbedCardInternal(props) {
|
|
|
204
204
|
// Ignored via go/ees005
|
|
205
205
|
(0, _react.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
206
206
|
url: url || '',
|
|
207
|
-
appearance: _editorSmartLinkDraggable.
|
|
207
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPEARANCE.EMBED,
|
|
208
208
|
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
209
209
|
}, (0, _react.jsx)(_fallback.CardErrorBoundary, (0, _extends2.default)({
|
|
210
210
|
unsupportedComponent: _ui.UnsupportedBlock,
|
|
@@ -301,7 +301,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
301
301
|
}
|
|
302
302
|
return (0, _react2.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
303
303
|
url: url || '',
|
|
304
|
-
appearance: _editorSmartLinkDraggable.
|
|
304
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPEARANCE.INLINE,
|
|
305
305
|
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
306
306
|
}, (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
307
307
|
data: analyticsData
|
|
@@ -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 = "128.0.1";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -729,17 +729,4 @@ export default class ReactSerializer {
|
|
|
729
729
|
}, node);
|
|
730
730
|
}));
|
|
731
731
|
}
|
|
732
|
-
|
|
733
|
-
// TODO: ED-9004 - Remove unused ReactSerializer.fromSchema in renderer
|
|
734
|
-
// https://sourcegraph-frontend.internal.shared-prod.us-west-2.kitt-inf.net/search?q=ReactSerializer.fromSchema&patternType=literal
|
|
735
|
-
static fromSchema(_, init) {
|
|
736
|
-
if (expValEquals('platform_editor_remove_reactserializer_fromschema', 'isEnabled', true)) {
|
|
737
|
-
throw new Error('ReactSerializer.fromSchema has been removed. Please use the constructor instead: new ReactSerializer()');
|
|
738
|
-
}
|
|
739
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
740
|
-
// eslint-disable-next-line no-console
|
|
741
|
-
console.warn('ReactSerializer.fromSchema is deprecated. Please use the constructor instead via new ReactSerializer()');
|
|
742
|
-
}
|
|
743
|
-
return new ReactSerializer(init);
|
|
744
|
-
}
|
|
745
732
|
}
|
|
@@ -8,7 +8,7 @@ import { css, jsx } 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';
|
|
11
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
11
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
12
12
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
13
13
|
import InlineCard from './inlineCard';
|
|
14
14
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -181,7 +181,7 @@ export default function BlockCard(props) {
|
|
|
181
181
|
}
|
|
182
182
|
return jsx(SmartLinkDraggable, {
|
|
183
183
|
url: url || '',
|
|
184
|
-
appearance:
|
|
184
|
+
appearance: SMART_LINK_APPEARANCE.BLOCK,
|
|
185
185
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
186
186
|
}, jsx(AnalyticsContext, {
|
|
187
187
|
data: analyticsData
|
|
@@ -17,7 +17,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
19
|
import { CardErrorBoundary } from './fallback';
|
|
20
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
20
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
21
21
|
import { RendererCssClassName } from '../../consts';
|
|
22
22
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
23
23
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -192,7 +192,7 @@ function EmbedCardInternal(props) {
|
|
|
192
192
|
// Ignored via go/ees005
|
|
193
193
|
jsx(SmartLinkDraggable, {
|
|
194
194
|
url: url || '',
|
|
195
|
-
appearance:
|
|
195
|
+
appearance: SMART_LINK_APPEARANCE.EMBED,
|
|
196
196
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
197
197
|
}, jsx(CardErrorBoundary, _extends({
|
|
198
198
|
unsupportedComponent: UnsupportedBlock,
|
|
@@ -19,7 +19,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
21
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
22
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
22
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
23
23
|
import { CardErrorBoundary } from './fallback';
|
|
24
24
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
25
25
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -286,7 +286,7 @@ const InlineCard = props => {
|
|
|
286
286
|
}
|
|
287
287
|
return jsx(SmartLinkDraggable, {
|
|
288
288
|
url: url || '',
|
|
289
|
-
appearance:
|
|
289
|
+
appearance: SMART_LINK_APPEARANCE.INLINE,
|
|
290
290
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
291
291
|
}, jsx(AnalyticsContext, {
|
|
292
292
|
data: analyticsData
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "
|
|
60
|
+
const packageVersion = "128.0.1";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
package/dist/esm/react/index.js
CHANGED
|
@@ -811,21 +811,6 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
811
811
|
}, node);
|
|
812
812
|
}));
|
|
813
813
|
}
|
|
814
|
-
|
|
815
|
-
// TODO: ED-9004 - Remove unused ReactSerializer.fromSchema in renderer
|
|
816
|
-
// https://sourcegraph-frontend.internal.shared-prod.us-west-2.kitt-inf.net/search?q=ReactSerializer.fromSchema&patternType=literal
|
|
817
|
-
}, {
|
|
818
|
-
key: "fromSchema",
|
|
819
|
-
value: function fromSchema(_, init) {
|
|
820
|
-
if (expValEquals('platform_editor_remove_reactserializer_fromschema', 'isEnabled', true)) {
|
|
821
|
-
throw new Error('ReactSerializer.fromSchema has been removed. Please use the constructor instead: new ReactSerializer()');
|
|
822
|
-
}
|
|
823
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
824
|
-
// eslint-disable-next-line no-console
|
|
825
|
-
console.warn('ReactSerializer.fromSchema is deprecated. Please use the constructor instead via new ReactSerializer()');
|
|
826
|
-
}
|
|
827
|
-
return new ReactSerializer(init);
|
|
828
|
-
}
|
|
829
814
|
}]);
|
|
830
815
|
}();
|
|
831
816
|
export { ReactSerializer as default };
|
|
@@ -8,7 +8,7 @@ import { css, jsx } 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';
|
|
11
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
11
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
12
12
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
13
13
|
import InlineCard from './inlineCard';
|
|
14
14
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -184,7 +184,7 @@ export default function BlockCard(props) {
|
|
|
184
184
|
}
|
|
185
185
|
return jsx(SmartLinkDraggable, {
|
|
186
186
|
url: url || '',
|
|
187
|
-
appearance:
|
|
187
|
+
appearance: SMART_LINK_APPEARANCE.BLOCK,
|
|
188
188
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
189
189
|
}, jsx(AnalyticsContext, {
|
|
190
190
|
data: analyticsData
|
|
@@ -18,7 +18,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
20
|
import { CardErrorBoundary } from './fallback';
|
|
21
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
21
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
22
22
|
import { RendererCssClassName } from '../../consts';
|
|
23
23
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
24
24
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -196,7 +196,7 @@ function EmbedCardInternal(props) {
|
|
|
196
196
|
// Ignored via go/ees005
|
|
197
197
|
jsx(SmartLinkDraggable, {
|
|
198
198
|
url: url || '',
|
|
199
|
-
appearance:
|
|
199
|
+
appearance: SMART_LINK_APPEARANCE.EMBED,
|
|
200
200
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
201
201
|
}, jsx(CardErrorBoundary, _extends({
|
|
202
202
|
unsupportedComponent: UnsupportedBlock,
|
|
@@ -20,7 +20,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
20
20
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
21
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
22
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
23
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
23
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
24
24
|
import { CardErrorBoundary } from './fallback';
|
|
25
25
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
26
26
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -292,7 +292,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
292
292
|
}
|
|
293
293
|
return jsx(SmartLinkDraggable, {
|
|
294
294
|
url: url || '',
|
|
295
|
-
appearance:
|
|
295
|
+
appearance: SMART_LINK_APPEARANCE.INLINE,
|
|
296
296
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
297
297
|
}, jsx(AnalyticsContext, {
|
|
298
298
|
data: analyticsData
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "
|
|
65
|
+
var packageVersion = "128.0.1";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
|
@@ -154,6 +154,5 @@ export default class ReactSerializer implements Serializer<JSX.Element> {
|
|
|
154
154
|
private getChildNodes;
|
|
155
155
|
static getMarks(node: Node): Mark[];
|
|
156
156
|
static buildMarkStructure(content: Node[]): Mark[];
|
|
157
|
-
static fromSchema(_: unknown, init: ReactSerializerInit): ReactSerializer;
|
|
158
157
|
}
|
|
159
158
|
export {};
|
|
@@ -154,6 +154,5 @@ export default class ReactSerializer implements Serializer<JSX.Element> {
|
|
|
154
154
|
private getChildNodes;
|
|
155
155
|
static getMarks(node: Node): Mark[];
|
|
156
156
|
static buildMarkStructure(content: Node[]): Mark[];
|
|
157
|
-
static fromSchema(_: unknown, init: ReactSerializerInit): ReactSerializer;
|
|
158
157
|
}
|
|
159
158
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "128.0.
|
|
3
|
+
"version": "128.0.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/status": "^3.1.0",
|
|
60
60
|
"@atlaskit/task-decision": "^19.3.0",
|
|
61
61
|
"@atlaskit/theme": "^22.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
63
63
|
"@atlaskit/tokens": "^11.1.0",
|
|
64
64
|
"@atlaskit/tooltip": "^20.14.0",
|
|
65
65
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^112.
|
|
76
|
+
"@atlaskit/editor-common": "^112.1.0",
|
|
77
77
|
"@atlaskit/link-provider": "^4.2.0",
|
|
78
78
|
"@atlaskit/media-core": "^37.0.0",
|
|
79
79
|
"react": "^18.2.0",
|