@atlaskit/editor-plugin-insert-block 8.7.9 → 8.7.11
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 8.7.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.7.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`f623524e57d49`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f623524e57d49) -
|
|
14
|
+
Add portalRoot type to ExperienceCheckPopupMutation
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.7.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -69,14 +69,14 @@ var getToolbarActionExperiencesPlugin = exports.getToolbarActionExperiencesPlugi
|
|
|
69
69
|
})]
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
var buildPopupMutationConfig = function buildPopupMutationConfig(popupSelector, type
|
|
72
|
+
var buildPopupMutationConfig = function buildPopupMutationConfig(popupSelector, type) {
|
|
73
73
|
switch (type) {
|
|
74
74
|
case 'inline':
|
|
75
75
|
return {
|
|
76
76
|
type: type,
|
|
77
77
|
nestedElementQuery: popupSelector,
|
|
78
78
|
getTarget: getInlinePopupTarget,
|
|
79
|
-
subtree:
|
|
79
|
+
subtree: true
|
|
80
80
|
};
|
|
81
81
|
case 'editorRoot':
|
|
82
82
|
return {
|
|
@@ -86,14 +86,14 @@ var getToolbarActionExperiencesPlugin = exports.getToolbarActionExperiencesPlugi
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
var createPopupExperience = function createPopupExperience(action, popupSelector, type
|
|
89
|
+
var createPopupExperience = function createPopupExperience(action, popupSelector, type) {
|
|
90
90
|
return new _experiences.Experience(_experiences.EXPERIENCE_ID.TOOLBAR_ACTION, {
|
|
91
91
|
action: action,
|
|
92
92
|
actionSubjectId: PRIMARY_TOOLBAR,
|
|
93
93
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
94
94
|
checks: [new _experiences.ExperienceCheckTimeout({
|
|
95
95
|
durationMs: TIMEOUT_DURATION
|
|
96
|
-
}), new _experiences.ExperienceCheckPopupMutation(buildPopupMutationConfig(popupSelector, type
|
|
96
|
+
}), new _experiences.ExperienceCheckPopupMutation(buildPopupMutationConfig(popupSelector, type))]
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
99
|
var experienceButtonMappings = [{
|
|
@@ -103,7 +103,7 @@ var getToolbarActionExperiencesPlugin = exports.getToolbarActionExperiencesPlugi
|
|
|
103
103
|
experience: createPopupExperience('emoji', '[data-emoji-picker-container], [data-emoji-picker-container="true"], [data-testid="popup-wrapper"]', 'inline'),
|
|
104
104
|
buttonTestId: _toolbar.TOOLBAR_BUTTON_TEST_ID.EMOJI
|
|
105
105
|
}, {
|
|
106
|
-
experience: createPopupExperience('media', '[data-testid="popup-wrapper"]', 'inline'
|
|
106
|
+
experience: createPopupExperience('media', '[data-testid="popup-wrapper"]', 'inline'),
|
|
107
107
|
buttonTestId: _toolbar.TOOLBAR_BUTTON_TEST_ID.MEDIA
|
|
108
108
|
}, {
|
|
109
109
|
experience: createPopupExperience('mention', '[data-testid="popup-wrapper"], [data-type-ahead="typeaheadDecoration"]', 'editorRoot'),
|
|
@@ -112,7 +112,7 @@ var getToolbarActionExperiencesPlugin = exports.getToolbarActionExperiencesPlugi
|
|
|
112
112
|
experience: createNodeInsertExperience('table'),
|
|
113
113
|
buttonTestId: _toolbar.TOOLBAR_BUTTON_TEST_ID.TABLE
|
|
114
114
|
}, {
|
|
115
|
-
experience: createPopupExperience('tableSelector', '[data-testid="popup-wrapper"]', 'inline'
|
|
115
|
+
experience: createPopupExperience('tableSelector', '[data-testid="popup-wrapper"]', 'inline'),
|
|
116
116
|
buttonTestId: _toolbar.TOOLBAR_BUTTON_TEST_ID.TABLE_SELECTOR
|
|
117
117
|
}, {
|
|
118
118
|
experience: createNodeInsertExperience('layout'),
|
|
@@ -60,14 +60,14 @@ export const getToolbarActionExperiencesPlugin = ({
|
|
|
60
60
|
observeConfig: rootObserveConfig
|
|
61
61
|
})]
|
|
62
62
|
});
|
|
63
|
-
const buildPopupMutationConfig = (popupSelector, type
|
|
63
|
+
const buildPopupMutationConfig = (popupSelector, type) => {
|
|
64
64
|
switch (type) {
|
|
65
65
|
case 'inline':
|
|
66
66
|
return {
|
|
67
67
|
type,
|
|
68
68
|
nestedElementQuery: popupSelector,
|
|
69
69
|
getTarget: getInlinePopupTarget,
|
|
70
|
-
subtree
|
|
70
|
+
subtree: true
|
|
71
71
|
};
|
|
72
72
|
case 'editorRoot':
|
|
73
73
|
return {
|
|
@@ -77,13 +77,13 @@ export const getToolbarActionExperiencesPlugin = ({
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
const createPopupExperience = (action, popupSelector, type
|
|
80
|
+
const createPopupExperience = (action, popupSelector, type) => new Experience(EXPERIENCE_ID.TOOLBAR_ACTION, {
|
|
81
81
|
action,
|
|
82
82
|
actionSubjectId: PRIMARY_TOOLBAR,
|
|
83
83
|
dispatchAnalyticsEvent,
|
|
84
84
|
checks: [new ExperienceCheckTimeout({
|
|
85
85
|
durationMs: TIMEOUT_DURATION
|
|
86
|
-
}), new ExperienceCheckPopupMutation(buildPopupMutationConfig(popupSelector, type
|
|
86
|
+
}), new ExperienceCheckPopupMutation(buildPopupMutationConfig(popupSelector, type))]
|
|
87
87
|
});
|
|
88
88
|
const experienceButtonMappings = [{
|
|
89
89
|
experience: createPopupExperience('insert', '[data-testid="popup-wrapper"]', 'inline'),
|
|
@@ -92,7 +92,7 @@ export const getToolbarActionExperiencesPlugin = ({
|
|
|
92
92
|
experience: createPopupExperience('emoji', '[data-emoji-picker-container], [data-emoji-picker-container="true"], [data-testid="popup-wrapper"]', 'inline'),
|
|
93
93
|
buttonTestId: TOOLBAR_BUTTON_TEST_ID.EMOJI
|
|
94
94
|
}, {
|
|
95
|
-
experience: createPopupExperience('media', '[data-testid="popup-wrapper"]', 'inline'
|
|
95
|
+
experience: createPopupExperience('media', '[data-testid="popup-wrapper"]', 'inline'),
|
|
96
96
|
buttonTestId: TOOLBAR_BUTTON_TEST_ID.MEDIA
|
|
97
97
|
}, {
|
|
98
98
|
experience: createPopupExperience('mention', '[data-testid="popup-wrapper"], [data-type-ahead="typeaheadDecoration"]', 'editorRoot'),
|
|
@@ -101,7 +101,7 @@ export const getToolbarActionExperiencesPlugin = ({
|
|
|
101
101
|
experience: createNodeInsertExperience('table'),
|
|
102
102
|
buttonTestId: TOOLBAR_BUTTON_TEST_ID.TABLE
|
|
103
103
|
}, {
|
|
104
|
-
experience: createPopupExperience('tableSelector', '[data-testid="popup-wrapper"]', 'inline'
|
|
104
|
+
experience: createPopupExperience('tableSelector', '[data-testid="popup-wrapper"]', 'inline'),
|
|
105
105
|
buttonTestId: TOOLBAR_BUTTON_TEST_ID.TABLE_SELECTOR
|
|
106
106
|
}, {
|
|
107
107
|
experience: createNodeInsertExperience('layout'),
|
|
@@ -63,14 +63,14 @@ export var getToolbarActionExperiencesPlugin = function getToolbarActionExperien
|
|
|
63
63
|
})]
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
-
var buildPopupMutationConfig = function buildPopupMutationConfig(popupSelector, type
|
|
66
|
+
var buildPopupMutationConfig = function buildPopupMutationConfig(popupSelector, type) {
|
|
67
67
|
switch (type) {
|
|
68
68
|
case 'inline':
|
|
69
69
|
return {
|
|
70
70
|
type: type,
|
|
71
71
|
nestedElementQuery: popupSelector,
|
|
72
72
|
getTarget: getInlinePopupTarget,
|
|
73
|
-
subtree:
|
|
73
|
+
subtree: true
|
|
74
74
|
};
|
|
75
75
|
case 'editorRoot':
|
|
76
76
|
return {
|
|
@@ -80,14 +80,14 @@ export var getToolbarActionExperiencesPlugin = function getToolbarActionExperien
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
|
-
var createPopupExperience = function createPopupExperience(action, popupSelector, type
|
|
83
|
+
var createPopupExperience = function createPopupExperience(action, popupSelector, type) {
|
|
84
84
|
return new Experience(EXPERIENCE_ID.TOOLBAR_ACTION, {
|
|
85
85
|
action: action,
|
|
86
86
|
actionSubjectId: PRIMARY_TOOLBAR,
|
|
87
87
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
88
88
|
checks: [new ExperienceCheckTimeout({
|
|
89
89
|
durationMs: TIMEOUT_DURATION
|
|
90
|
-
}), new ExperienceCheckPopupMutation(buildPopupMutationConfig(popupSelector, type
|
|
90
|
+
}), new ExperienceCheckPopupMutation(buildPopupMutationConfig(popupSelector, type))]
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
93
|
var experienceButtonMappings = [{
|
|
@@ -97,7 +97,7 @@ export var getToolbarActionExperiencesPlugin = function getToolbarActionExperien
|
|
|
97
97
|
experience: createPopupExperience('emoji', '[data-emoji-picker-container], [data-emoji-picker-container="true"], [data-testid="popup-wrapper"]', 'inline'),
|
|
98
98
|
buttonTestId: TOOLBAR_BUTTON_TEST_ID.EMOJI
|
|
99
99
|
}, {
|
|
100
|
-
experience: createPopupExperience('media', '[data-testid="popup-wrapper"]', 'inline'
|
|
100
|
+
experience: createPopupExperience('media', '[data-testid="popup-wrapper"]', 'inline'),
|
|
101
101
|
buttonTestId: TOOLBAR_BUTTON_TEST_ID.MEDIA
|
|
102
102
|
}, {
|
|
103
103
|
experience: createPopupExperience('mention', '[data-testid="popup-wrapper"], [data-type-ahead="typeaheadDecoration"]', 'editorRoot'),
|
|
@@ -106,7 +106,7 @@ export var getToolbarActionExperiencesPlugin = function getToolbarActionExperien
|
|
|
106
106
|
experience: createNodeInsertExperience('table'),
|
|
107
107
|
buttonTestId: TOOLBAR_BUTTON_TEST_ID.TABLE
|
|
108
108
|
}, {
|
|
109
|
-
experience: createPopupExperience('tableSelector', '[data-testid="popup-wrapper"]', 'inline'
|
|
109
|
+
experience: createPopupExperience('tableSelector', '[data-testid="popup-wrapper"]', 'inline'),
|
|
110
110
|
buttonTestId: TOOLBAR_BUTTON_TEST_ID.TABLE_SELECTOR
|
|
111
111
|
}, {
|
|
112
112
|
experience: createNodeInsertExperience('layout'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.11",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-connectivity": "^7.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-date": "^9.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-emoji": "^8.1.0",
|
|
39
|
-
"@atlaskit/editor-plugin-expand": "^8.
|
|
39
|
+
"@atlaskit/editor-plugin-expand": "^8.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-extension": "^10.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-feature-flags": "^6.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-hyperlink": "^9.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-image-upload": "^7.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-layout": "^7.0.0",
|
|
45
|
-
"@atlaskit/editor-plugin-media": "^9.
|
|
45
|
+
"@atlaskit/editor-plugin-media": "^9.7.0",
|
|
46
46
|
"@atlaskit/editor-plugin-media-insert": "^18.0.0",
|
|
47
|
-
"@atlaskit/editor-plugin-mentions": "^9.
|
|
47
|
+
"@atlaskit/editor-plugin-mentions": "^9.4.0",
|
|
48
48
|
"@atlaskit/editor-plugin-metrics": "^8.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-panel": "^9.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-placeholder-text": "^8.0.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^7.4.0",
|
|
53
53
|
"@atlaskit/editor-plugin-rule": "^7.0.0",
|
|
54
54
|
"@atlaskit/editor-plugin-status": "^8.1.0",
|
|
55
|
-
"@atlaskit/editor-plugin-table": "^17.
|
|
56
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^10.
|
|
55
|
+
"@atlaskit/editor-plugin-table": "^17.4.0",
|
|
56
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^10.2.0",
|
|
57
57
|
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
58
58
|
"@atlaskit/editor-plugin-type-ahead": "^7.0.0",
|
|
59
59
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@atlaskit/icon": "^32.0.0",
|
|
65
65
|
"@atlaskit/icon-lab": "^5.17.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
67
|
-
"@atlaskit/theme": "^
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^32.
|
|
67
|
+
"@atlaskit/theme": "^22.0.0",
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^32.6.0",
|
|
69
69
|
"@atlaskit/tokens": "^11.0.0",
|
|
70
70
|
"@babel/runtime": "^7.0.0",
|
|
71
71
|
"@emotion/react": "^11.7.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"react-virtualized": "^9.22.6"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@atlaskit/editor-common": "^111.
|
|
78
|
+
"@atlaskit/editor-common": "^111.23.0",
|
|
79
79
|
"react": "^18.2.0",
|
|
80
80
|
"react-dom": "^18.2.0",
|
|
81
81
|
"react-intl-next": "npm:react-intl@^5.18.1"
|