@atlaskit/editor-slack-transformer 3.7.1 → 3.7.3
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 +80 -0
- package/dist/cjs/serializer.js +1 -1
- package/dist/esm/serializer.js +1 -1
- package/example-helpers/ToolsDrawer.tsx +2 -2
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
# @atlaskit/editor-slack-transformer
|
|
2
2
|
|
|
3
|
+
## 3.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#146378](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146378)
|
|
8
|
+
[`134a849673ebd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/134a849673ebd) -
|
|
9
|
+
This change removes the following public API from the @atlaskit/editor-core entry-point.
|
|
10
|
+
|
|
11
|
+
### WHY?
|
|
12
|
+
|
|
13
|
+
We are making the editor-core package smaller to reduce bundle size and make it easier to scale as
|
|
14
|
+
its functionality grows.
|
|
15
|
+
|
|
16
|
+
The long term goal is that the core editor is lightweight and its feature set is enriched by the
|
|
17
|
+
powerful plugin system developed (and used via the `ComposableEditor`).
|
|
18
|
+
|
|
19
|
+
This change is made to reduce how the core editor is coupled to its functionality by removing
|
|
20
|
+
exports that can be imported from other packages and cleanup up props that are unused internally.
|
|
21
|
+
|
|
22
|
+
### WHAT/HOW?
|
|
23
|
+
|
|
24
|
+
The following lists the exports removed as well as where they can now be found if required.
|
|
25
|
+
|
|
26
|
+
Exports removed:
|
|
27
|
+
|
|
28
|
+
- ToolbarFeedback (removed)
|
|
29
|
+
- EmojiResource (moved to -> @atlaskit/emoji/resource)
|
|
30
|
+
- MentionResource (moved to -> @atlaskit/mention/resource)
|
|
31
|
+
- MentionProvider (moved to -> @atlaskit/mention/resource)
|
|
32
|
+
- PresenceProvider (moved to -> @atlaskit/mention/resource)
|
|
33
|
+
- TeamMentionProvider (moved to -> @atlaskit/mention/team-resource)
|
|
34
|
+
- AnnotationUpdateEmitter (moved to -> @atlaskit/editor-common/annotation)
|
|
35
|
+
- UpdateEvent (moved to -> @atlaskit/editor-common/annotation)
|
|
36
|
+
- AnnotationProviders (moved to -> @atlaskit/editor-plugins/annotation)
|
|
37
|
+
- InlineCommentAnnotationProvider (moved to -> @atlaskit/editor-plugins/annotation)
|
|
38
|
+
- InlineCommentCreateComponentProps (moved to -> @atlaskit/editor-plugins/annotation)
|
|
39
|
+
- InlineCommentViewComponentProps (moved to -> @atlaskit/editor-plugins/annotation)
|
|
40
|
+
- AnnotationInfo (moved to -> @atlaskit/editor-plugins/annotation)
|
|
41
|
+
- AnnotationState (moved to -> @atlaskit/editor-plugins/annotation)
|
|
42
|
+
- AnnotationTypeProvider (moved to -> @atlaskit/editor-plugins/annotation)
|
|
43
|
+
- InlineCommentState (moved to -> @atlaskit/editor-plugins/annotation)
|
|
44
|
+
- TypeAheadItem (moved to -> @atlaskit/editor-common/provider-factory)
|
|
45
|
+
- INPUT_METHOD (moved to -> @atlaskit/editor-common/analytics)
|
|
46
|
+
- ACTION (moved to -> @atlaskit/editor-common/analytics)
|
|
47
|
+
- ACTION_SUBJECT (moved to -> @atlaskit/editor-common/analytics)
|
|
48
|
+
- ACTION_SUBJECT_ID (moved to -> @atlaskit/editor-common/analytics)
|
|
49
|
+
- EVENT_TYPE (moved to -> @atlaskit/editor-common/analytics)
|
|
50
|
+
- MacroProvider (moved to -> @atlaskit/editor-common/provider-factory) (except proforma-dc)
|
|
51
|
+
- MacroAttributes (moved to -> @atlaskit/editor-common/provider-factory) (except proforma-dc)
|
|
52
|
+
- ExtensionType (moved to -> @atlaskit/editor-common/provider-factory)
|
|
53
|
+
- CardProvider (moved to -> @atlaskit/editor-common/provider-factory)
|
|
54
|
+
- MediaProvider (moved to -> @atlaskit/editor-common/provider-factory)
|
|
55
|
+
- MediaOptions (moved to -> @atlaskit/editor-plugins/media/types)
|
|
56
|
+
- QuickInsertItem (moved to -> @atlaskit/editor-common/provider-factory)
|
|
57
|
+
- QuickInsertProvider (moved to -> @atlaskit/editor-common/provider-factory)
|
|
58
|
+
|
|
59
|
+
The following lists the editor props removed. Generally these are not used by the editor at all
|
|
60
|
+
and can be safely removed without any change in functionality
|
|
61
|
+
|
|
62
|
+
EditorProps removed:
|
|
63
|
+
|
|
64
|
+
- trackValidTransactions (unused internally, please remove)
|
|
65
|
+
- hideAvatarGroup (unused internally, please remove)
|
|
66
|
+
- placeholder (unused internally for `ComposableEditor` - please pass to the `placeholderPlugin`
|
|
67
|
+
options)
|
|
68
|
+
- placeholderBracketHint (unused internally for `ComposableEditor` - please pass to the
|
|
69
|
+
`placeholderPlugin` options)
|
|
70
|
+
- allowJiraIssue (unused internally, please remove)
|
|
71
|
+
- allowNewInsertionBehaviour (unused internally, please remove)
|
|
72
|
+
- UNSAFE_allowBorderMark (use `allowBorderMark` instead)
|
|
73
|
+
|
|
74
|
+
## 3.7.2
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- [#139334](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/139334)
|
|
79
|
+
[`30793649657c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/30793649657c0) -
|
|
80
|
+
[HOT-111629] We had an incident where the last character disappears when hitting the enter key on
|
|
81
|
+
windows OS for Korean characters. Bumping to prosemirror-view@1.34.2 for the fix.
|
|
82
|
+
|
|
3
83
|
## 3.7.1
|
|
4
84
|
|
|
5
85
|
### Patch Changes
|
package/dist/cjs/serializer.js
CHANGED
|
@@ -15,7 +15,7 @@ var _markdown = require("@atlaskit/editor-prosemirror/markdown");
|
|
|
15
15
|
var _util = require("./util");
|
|
16
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
-
function _createSuper(
|
|
18
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
20
|
var MarkdownSerializerState = exports.MarkdownSerializerState = /*#__PURE__*/function (_PMMarkdownSerializer) {
|
|
21
21
|
(0, _inherits2.default)(MarkdownSerializerState, _PMMarkdownSerializer);
|
package/dist/esm/serializer.js
CHANGED
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import { MarkdownSerializer as PMMarkdownSerializer, MarkdownSerializerState as PMMarkdownSerializerState } from '@atlaskit/editor-prosemirror/markdown';
|
|
12
12
|
import { escapeMarkdown } from './util';
|
|
@@ -11,8 +11,8 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
11
11
|
import type { ActivityProvider } from '@atlaskit/activity';
|
|
12
12
|
// eslint-disable-next-line no-restricted-imports -- Legacy package outside of AFM lacks entry points
|
|
13
13
|
import { MockActivityResource } from '@atlaskit/activity/dist/es5/support';
|
|
14
|
-
import type { MentionProvider } from '@atlaskit/
|
|
15
|
-
import { MentionResource } from '@atlaskit/
|
|
14
|
+
import type { MentionProvider } from '@atlaskit/mention/resource';
|
|
15
|
+
import { MentionResource } from '@atlaskit/mention/resource';
|
|
16
16
|
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
17
17
|
import { getEmojiResource } from '@atlaskit/util-data-test/get-emoji-resource';
|
|
18
18
|
import { mentionResourceProvider } from '@atlaskit/util-data-test/mention-story-data';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-slack-transformer",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.3",
|
|
4
4
|
"description": "Editor Slack transformer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"runReact18": true
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/editor-prosemirror": "
|
|
33
|
+
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -38,11 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@atlaskit/activity": "^1.0.1",
|
|
41
|
-
"@atlaskit/editor-core": "^
|
|
42
|
-
"@atlaskit/editor-test-helpers": "^
|
|
43
|
-
"@atlaskit/emoji": "^67.
|
|
41
|
+
"@atlaskit/editor-core": "^198.0.0",
|
|
42
|
+
"@atlaskit/editor-test-helpers": "^19.0.0",
|
|
43
|
+
"@atlaskit/emoji": "^67.8.0",
|
|
44
|
+
"@atlaskit/mention": "^23.3.0",
|
|
44
45
|
"@atlaskit/theme": "^13.0.0",
|
|
45
|
-
"@atlaskit/tokens": "^
|
|
46
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
46
47
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
47
48
|
"@emotion/react": "^11.7.1",
|
|
48
49
|
"typescript": "~5.4.2"
|