@atlaskit/editor-plugin-emoji 3.3.0 → 3.4.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 +13 -0
- package/dist/cjs/emojiPlugin.js +14 -12
- package/dist/es2019/emojiPlugin.js +15 -11
- package/dist/esm/emojiPlugin.js +14 -12
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#135822](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135822)
|
|
8
|
+
[`020b063194651`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/020b063194651) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-27424](ED-27424) - add exposure point to
|
|
10
|
+
`platform_editor_vanilla_dom` Statsig experiment into `editor-plugin-emoji` plugin
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 3.3.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/cjs/emojiPlugin.js
CHANGED
|
@@ -543,20 +543,22 @@ function createEmojiPlugin(pmPluginFactoryParams, options, api) {
|
|
|
543
543
|
},
|
|
544
544
|
props: {
|
|
545
545
|
nodeViews: {
|
|
546
|
-
emoji: (
|
|
547
|
-
return
|
|
546
|
+
emoji: function emoji(node, view, getPos, decorations) {
|
|
547
|
+
return (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
548
|
+
exposure: true
|
|
549
|
+
}) ? new _EmojiNodeView.EmojiNodeView(node, {
|
|
548
550
|
intl: pmPluginFactoryParams.getIntl(),
|
|
549
551
|
api: api
|
|
550
|
-
})
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
}
|
|
559
|
-
}
|
|
552
|
+
}) : (0, _reactNodeView.getInlineNodeViewProducer)({
|
|
553
|
+
pmPluginFactoryParams: pmPluginFactoryParams,
|
|
554
|
+
Component: _emoji3.EmojiNodeView,
|
|
555
|
+
extraComponentProps: {
|
|
556
|
+
providerFactory: pmPluginFactoryParams.providerFactory,
|
|
557
|
+
options: options,
|
|
558
|
+
api: api
|
|
559
|
+
}
|
|
560
|
+
})(node, view, getPos, decorations);
|
|
561
|
+
}
|
|
560
562
|
}
|
|
561
563
|
},
|
|
562
564
|
view: function view(editorView) {
|
|
@@ -497,18 +497,22 @@ export function createEmojiPlugin(pmPluginFactoryParams, options, api) {
|
|
|
497
497
|
},
|
|
498
498
|
props: {
|
|
499
499
|
nodeViews: {
|
|
500
|
-
emoji:
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
Component: EmojiNodeViewReact,
|
|
506
|
-
extraComponentProps: {
|
|
507
|
-
providerFactory: pmPluginFactoryParams.providerFactory,
|
|
508
|
-
options,
|
|
500
|
+
emoji: (node, view, getPos, decorations) => {
|
|
501
|
+
return editorExperiment('platform_editor_vanilla_dom', true, {
|
|
502
|
+
exposure: true
|
|
503
|
+
}) ? new EmojiNodeView(node, {
|
|
504
|
+
intl: pmPluginFactoryParams.getIntl(),
|
|
509
505
|
api
|
|
510
|
-
}
|
|
511
|
-
|
|
506
|
+
}) : getInlineNodeViewProducer({
|
|
507
|
+
pmPluginFactoryParams,
|
|
508
|
+
Component: EmojiNodeViewReact,
|
|
509
|
+
extraComponentProps: {
|
|
510
|
+
providerFactory: pmPluginFactoryParams.providerFactory,
|
|
511
|
+
options,
|
|
512
|
+
api
|
|
513
|
+
}
|
|
514
|
+
})(node, view, getPos, decorations);
|
|
515
|
+
}
|
|
512
516
|
}
|
|
513
517
|
},
|
|
514
518
|
view(editorView) {
|
package/dist/esm/emojiPlugin.js
CHANGED
|
@@ -528,20 +528,22 @@ export function createEmojiPlugin(pmPluginFactoryParams, options, api) {
|
|
|
528
528
|
},
|
|
529
529
|
props: {
|
|
530
530
|
nodeViews: {
|
|
531
|
-
emoji:
|
|
532
|
-
return
|
|
531
|
+
emoji: function emoji(node, view, getPos, decorations) {
|
|
532
|
+
return editorExperiment('platform_editor_vanilla_dom', true, {
|
|
533
|
+
exposure: true
|
|
534
|
+
}) ? new EmojiNodeView(node, {
|
|
533
535
|
intl: pmPluginFactoryParams.getIntl(),
|
|
534
536
|
api: api
|
|
535
|
-
})
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}
|
|
544
|
-
}
|
|
537
|
+
}) : getInlineNodeViewProducer({
|
|
538
|
+
pmPluginFactoryParams: pmPluginFactoryParams,
|
|
539
|
+
Component: EmojiNodeViewReact,
|
|
540
|
+
extraComponentProps: {
|
|
541
|
+
providerFactory: pmPluginFactoryParams.providerFactory,
|
|
542
|
+
options: options,
|
|
543
|
+
api: api
|
|
544
|
+
}
|
|
545
|
+
})(node, view, getPos, decorations);
|
|
546
|
+
}
|
|
545
547
|
}
|
|
546
548
|
},
|
|
547
549
|
view: function view(editorView) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,22 +23,22 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
26
|
-
"@atlaskit/editor-common": "^102.
|
|
26
|
+
"@atlaskit/editor-common": "^102.18.0",
|
|
27
27
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
28
28
|
"@atlaskit/editor-plugin-annotation": "^2.2.0",
|
|
29
29
|
"@atlaskit/editor-plugin-base": "^2.3.0",
|
|
30
30
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
31
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.
|
|
31
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.3.0",
|
|
32
32
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
33
33
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
34
34
|
"@atlaskit/emoji": "^69.0.0",
|
|
35
|
-
"@atlaskit/icon": "^25.
|
|
35
|
+
"@atlaskit/icon": "^25.5.0",
|
|
36
36
|
"@atlaskit/node-data-provider": "^4.1.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
39
39
|
"@atlaskit/theme": "^18.0.0",
|
|
40
40
|
"@atlaskit/tmp-editor-statsig": "^4.6.0",
|
|
41
|
-
"@atlaskit/tokens": "^4.
|
|
41
|
+
"@atlaskit/tokens": "^4.6.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@emotion/react": "^11.7.1",
|
|
44
44
|
"react-intl-next": "npm:react-intl@^5.18.1",
|