@atlaskit/editor-core 189.5.1 → 189.5.6
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 +15 -0
- package/afm-cc/tsconfig.json +335 -0
- package/dist/cjs/composable-editor/editor-internal.js +11 -11
- package/dist/cjs/composable-editor/editor.js +8 -7
- package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
- package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +2 -0
- package/dist/cjs/editor.js +4 -3
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +11 -10
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +3 -2
- package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +2 -1
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +6 -5
- package/dist/cjs/plugins/collab-edit/ui/avatars.js +5 -2
- package/dist/cjs/plugins/collab-edit/ui/colored-avatar-item.js +4 -1
- package/dist/cjs/plugins/collab-edit/ui/invite-to-edit.js +7 -4
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +13 -11
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +5 -4
- package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +9 -8
- package/dist/cjs/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +4 -4
- package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +7 -6
- package/dist/cjs/plugins/find-replace/ui/Find.js +14 -13
- package/dist/cjs/plugins/find-replace/ui/FindReplace.js +6 -5
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +8 -7
- package/dist/cjs/plugins/find-replace/ui/Replace.js +6 -5
- package/dist/cjs/plugins/find-replace/ui/styles.js +1 -0
- package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +5 -4
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +11 -8
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -1
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +2 -1
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +2 -1
- package/dist/cjs/ui/Addon/Dropdown/index.js +3 -2
- package/dist/cjs/ui/Addon/DropdownItem/index.js +5 -2
- package/dist/cjs/ui/Alignment/index.js +7 -6
- package/dist/cjs/ui/Appearance/Chromeless.js +7 -6
- package/dist/cjs/ui/Appearance/Comment/Comment.js +17 -16
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +5 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -3
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +12 -10
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +6 -5
- package/dist/cjs/ui/ChromeCollapsed/index.js +3 -2
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +16 -15
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +12 -11
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +7 -6
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +8 -8
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +18 -17
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +9 -8
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +10 -9
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +6 -5
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +7 -6
- package/dist/cjs/ui/ConfigPanel/Header.js +14 -13
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +3 -2
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +5 -4
- package/dist/cjs/ui/ContentStyles/index.js +2 -1
- package/dist/cjs/ui/ContextPanel/index.js +11 -10
- package/dist/cjs/ui/PluginSlot/index.js +4 -3
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +5 -4
- package/dist/cjs/ui/ToolbarFeedback/index.js +16 -15
- package/dist/cjs/ui/WithFlash/index.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +12 -11
- package/dist/es2019/composable-editor/editor.js +8 -6
- package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
- package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +1 -0
- package/dist/es2019/editor.js +4 -2
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +11 -9
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +4 -3
- package/dist/es2019/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +3 -2
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +7 -6
- package/dist/es2019/plugins/collab-edit/ui/avatars.js +4 -2
- package/dist/es2019/plugins/collab-edit/ui/colored-avatar-item.js +3 -1
- package/dist/es2019/plugins/collab-edit/ui/invite-to-edit.js +6 -4
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +14 -11
- package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/index.js +5 -3
- package/dist/es2019/plugins/extension/ui/Extension/Lozenge.js +7 -5
- package/dist/es2019/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +6 -4
- package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +8 -7
- package/dist/es2019/plugins/find-replace/ui/Find.js +14 -12
- package/dist/es2019/plugins/find-replace/ui/FindReplace.js +6 -4
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +9 -8
- package/dist/es2019/plugins/find-replace/ui/Replace.js +6 -4
- package/dist/es2019/plugins/find-replace/ui/styles.js +1 -0
- package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +6 -5
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -8
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +3 -2
- package/dist/es2019/ui/Addon/ClickAreaInline/index.js +3 -2
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +3 -2
- package/dist/es2019/ui/Addon/Dropdown/index.js +3 -1
- package/dist/es2019/ui/Addon/DropdownItem/index.js +4 -2
- package/dist/es2019/ui/Alignment/index.js +5 -3
- package/dist/es2019/ui/Appearance/Chromeless.js +8 -7
- package/dist/es2019/ui/Appearance/Comment/Comment.js +18 -17
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +7 -5
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +5 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +12 -11
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +7 -6
- package/dist/es2019/ui/ChromeCollapsed/index.js +3 -1
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +13 -12
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +8 -7
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +9 -8
- package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +19 -18
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +10 -9
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +11 -10
- package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +7 -6
- package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +8 -7
- package/dist/es2019/ui/ConfigPanel/Header.js +15 -14
- package/dist/es2019/ui/ConfigPanel/LoadingState.js +4 -3
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +6 -5
- package/dist/es2019/ui/ContentStyles/index.js +3 -2
- package/dist/es2019/ui/ContextPanel/index.js +12 -11
- package/dist/es2019/ui/PluginSlot/index.js +5 -4
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +3 -2
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +6 -5
- package/dist/es2019/ui/ToolbarFeedback/index.js +14 -12
- package/dist/es2019/ui/WithFlash/index.js +3 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +12 -11
- package/dist/esm/composable-editor/editor.js +8 -6
- package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
- package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +1 -0
- package/dist/esm/editor.js +4 -2
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +11 -9
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +4 -3
- package/dist/esm/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +3 -2
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +7 -6
- package/dist/esm/plugins/collab-edit/ui/avatars.js +4 -2
- package/dist/esm/plugins/collab-edit/ui/colored-avatar-item.js +3 -1
- package/dist/esm/plugins/collab-edit/ui/invite-to-edit.js +6 -4
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +14 -11
- package/dist/esm/plugins/extension/ui/Extension/InlineExtension/index.js +5 -3
- package/dist/esm/plugins/extension/ui/Extension/Lozenge.js +7 -5
- package/dist/esm/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +6 -4
- package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +8 -7
- package/dist/esm/plugins/find-replace/ui/Find.js +14 -12
- package/dist/esm/plugins/find-replace/ui/FindReplace.js +6 -4
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +9 -8
- package/dist/esm/plugins/find-replace/ui/Replace.js +6 -4
- package/dist/esm/plugins/find-replace/ui/styles.js +1 -0
- package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +6 -5
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -8
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +3 -2
- package/dist/esm/ui/Addon/ClickAreaInline/index.js +3 -2
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +3 -2
- package/dist/esm/ui/Addon/Dropdown/index.js +3 -1
- package/dist/esm/ui/Addon/DropdownItem/index.js +4 -2
- package/dist/esm/ui/Alignment/index.js +5 -3
- package/dist/esm/ui/Appearance/Chromeless.js +8 -7
- package/dist/esm/ui/Appearance/Comment/Comment.js +18 -17
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +7 -5
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +5 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +12 -11
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
- package/dist/esm/ui/AppearanceComponents/Mobile.js +7 -6
- package/dist/esm/ui/ChromeCollapsed/index.js +3 -1
- package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +13 -12
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +8 -7
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +9 -8
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +19 -18
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +10 -9
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +11 -10
- package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +7 -6
- package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +8 -7
- package/dist/esm/ui/ConfigPanel/Header.js +15 -14
- package/dist/esm/ui/ConfigPanel/LoadingState.js +4 -3
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +6 -5
- package/dist/esm/ui/ContentStyles/index.js +3 -2
- package/dist/esm/ui/ContextPanel/index.js +12 -11
- package/dist/esm/ui/PluginSlot/index.js +5 -4
- package/dist/esm/ui/Toolbar/ToolbarInner.js +3 -2
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +6 -5
- package/dist/esm/ui/ToolbarFeedback/index.js +14 -12
- package/dist/esm/ui/WithFlash/index.js +3 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 189.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#56827](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/56827) [`9966463429c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9966463429c6) - ECA11Y-86: Added ability to resize media via keyboard and added announcer
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 189.5.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
15
|
+
- [#56822](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/56822) [`77f4fbf44e93`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77f4fbf44e93) - ECA11Y-78: Added announce for the selected file
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 189.5.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.confluence.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"composite": true,
|
|
7
|
+
"outDir": "../dist",
|
|
8
|
+
"rootDir": "../",
|
|
9
|
+
"baseUrl": "../"
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"../src/**/*.ts",
|
|
13
|
+
"../src/**/*.tsx"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"../src/**/__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*",
|
|
19
|
+
"../src/stories/*"
|
|
20
|
+
],
|
|
21
|
+
"references": [
|
|
22
|
+
{
|
|
23
|
+
"path": "../../activity-provider/afm-cc/tsconfig.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "../../adf-utils/afm-cc/tsconfig.json"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-cc/tsconfig.json"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "../../../analytics/analytics-next/afm-cc/tsconfig.json"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"path": "../../../design-system/avatar/afm-cc/tsconfig.json"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "../../../design-system/avatar-group/afm-cc/tsconfig.json"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"path": "../../../design-system/button/afm-cc/tsconfig.json"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "../../../design-system/checkbox/afm-cc/tsconfig.json"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "../../../elements/date/afm-cc/tsconfig.json"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"path": "../../../design-system/datetime-picker/afm-cc/tsconfig.json"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"path": "../../editor-common/afm-cc/tsconfig.json"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"path": "../../editor-json-transformer/afm-cc/tsconfig.json"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"path": "../../editor-markdown-transformer/afm-cc/tsconfig.json"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"path": "../../editor-plugin-analytics/afm-cc/tsconfig.json"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"path": "../../editor-plugin-base/afm-cc/tsconfig.json"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"path": "../../editor-plugin-better-type-history/afm-cc/tsconfig.json"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "../../editor-plugin-block-type/afm-cc/tsconfig.json"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"path": "../../editor-plugin-border/afm-cc/tsconfig.json"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"path": "../../editor-plugin-caption/afm-cc/tsconfig.json"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"path": "../../editor-plugin-card/afm-cc/tsconfig.json"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"path": "../../editor-plugin-clear-marks-on-empty-doc/afm-cc/tsconfig.json"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"path": "../../editor-plugin-clipboard/afm-cc/tsconfig.json"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"path": "../../editor-plugin-code-bidi-warning/afm-cc/tsconfig.json"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"path": "../../editor-plugin-code-block/afm-cc/tsconfig.json"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"path": "../../editor-plugin-composition/afm-cc/tsconfig.json"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"path": "../../editor-plugin-content-insertion/afm-cc/tsconfig.json"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"path": "../../editor-plugin-context-panel/afm-cc/tsconfig.json"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"path": "../../editor-plugin-copy-button/afm-cc/tsconfig.json"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"path": "../../editor-plugin-date/afm-cc/tsconfig.json"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"path": "../../editor-plugin-decorations/afm-cc/tsconfig.json"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"path": "../../editor-plugin-editor-disabled/afm-cc/tsconfig.json"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"path": "../../editor-plugin-emoji/afm-cc/tsconfig.json"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"path": "../../editor-plugin-expand/afm-cc/tsconfig.json"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"path": "../../editor-plugin-extension/afm-cc/tsconfig.json"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"path": "../../editor-plugin-feature-flags/afm-cc/tsconfig.json"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"path": "../../editor-plugin-floating-toolbar/afm-cc/tsconfig.json"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"path": "../../editor-plugin-focus/afm-cc/tsconfig.json"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"path": "../../editor-plugin-fragment/afm-cc/tsconfig.json"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"path": "../../editor-plugin-grid/afm-cc/tsconfig.json"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"path": "../../editor-plugin-guideline/afm-cc/tsconfig.json"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"path": "../../editor-plugin-help-dialog/afm-cc/tsconfig.json"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"path": "../../editor-plugin-history/afm-cc/tsconfig.json"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"path": "../../editor-plugin-hyperlink/afm-cc/tsconfig.json"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"path": "../../editor-plugin-image-upload/afm-cc/tsconfig.json"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"path": "../../editor-plugin-indentation/afm-cc/tsconfig.json"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"path": "../../editor-plugin-insert-block/afm-cc/tsconfig.json"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"path": "../../editor-plugin-layout/afm-cc/tsconfig.json"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"path": "../../editor-plugin-list/afm-cc/tsconfig.json"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"path": "../../editor-plugin-loom/afm-cc/tsconfig.json"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"path": "../../editor-plugin-max-content-size/afm-cc/tsconfig.json"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"path": "../../editor-plugin-media/afm-cc/tsconfig.json"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"path": "../../editor-plugin-mentions/afm-cc/tsconfig.json"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"path": "../../editor-plugin-panel/afm-cc/tsconfig.json"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"path": "../../editor-plugin-paste/afm-cc/tsconfig.json"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"path": "../../editor-plugin-paste-options-toolbar/afm-cc/tsconfig.json"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"path": "../../editor-plugin-placeholder/afm-cc/tsconfig.json"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"path": "../../editor-plugin-placeholder-text/afm-cc/tsconfig.json"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"path": "../../editor-plugin-quick-insert/afm-cc/tsconfig.json"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"path": "../../editor-plugin-rule/afm-cc/tsconfig.json"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"path": "../../editor-plugin-save-on-enter/afm-cc/tsconfig.json"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"path": "../../editor-plugin-scroll-into-view/afm-cc/tsconfig.json"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"path": "../../editor-plugin-selection/afm-cc/tsconfig.json"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"path": "../../editor-plugin-selection-toolbar/afm-cc/tsconfig.json"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"path": "../../editor-plugin-status/afm-cc/tsconfig.json"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"path": "../../editor-plugin-submit-editor/afm-cc/tsconfig.json"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"path": "../../editor-plugin-table/afm-cc/tsconfig.json"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"path": "../../editor-plugin-tasks-and-decisions/afm-cc/tsconfig.json"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"path": "../../editor-plugin-text-color/afm-cc/tsconfig.json"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"path": "../../editor-plugin-text-formatting/afm-cc/tsconfig.json"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"path": "../../editor-plugin-toolbar-lists-indentation/afm-cc/tsconfig.json"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"path": "../../editor-plugin-type-ahead/afm-cc/tsconfig.json"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"path": "../../editor-plugin-unsupported-content/afm-cc/tsconfig.json"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"path": "../../editor-plugin-width/afm-cc/tsconfig.json"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"path": "../../editor-shared-styles/afm-cc/tsconfig.json"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"path": "../../editor-tables/afm-cc/tsconfig.json"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"path": "../../../elements/emoji/afm-cc/tsconfig.json"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"path": "../../../design-system/empty-state/afm-cc/tsconfig.json"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"path": "../../../design-system/form/afm-cc/tsconfig.json"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"path": "../../../design-system/icon/afm-cc/tsconfig.json"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"path": "../../../design-system/logo/afm-cc/tsconfig.json"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"path": "../../../media/media-card/afm-cc/tsconfig.json"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"path": "../../../media/media-client/afm-cc/tsconfig.json"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"path": "../../../media/media-common/afm-cc/tsconfig.json"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"path": "../../../elements/mention/afm-cc/tsconfig.json"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"path": "../../prosemirror-collab/afm-cc/tsconfig.json"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"path": "../../../design-system/radio/afm-cc/tsconfig.json"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"path": "../../../design-system/section-message/afm-cc/tsconfig.json"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"path": "../../../design-system/select/afm-cc/tsconfig.json"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"path": "../../../linking-platform/smart-card/afm-cc/tsconfig.json"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"path": "../../../smart-experiences/smart-user-picker/afm-cc/tsconfig.json"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"path": "../../../design-system/spinner/afm-cc/tsconfig.json"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"path": "../../../design-system/tabs/afm-cc/tsconfig.json"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"path": "../../../elements/task-decision/afm-cc/tsconfig.json"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"path": "../../../design-system/textarea/afm-cc/tsconfig.json"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"path": "../../../design-system/textfield/afm-cc/tsconfig.json"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"path": "../../../design-system/theme/afm-cc/tsconfig.json"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"path": "../../../design-system/toggle/afm-cc/tsconfig.json"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"path": "../../../design-system/tokens/afm-cc/tsconfig.json"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"path": "../../../design-system/tooltip/afm-cc/tsconfig.json"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"path": "../../../data/ufo-external/afm-cc/tsconfig.json"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"path": "../../../design-system/width-detector/afm-cc/tsconfig.json"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"path": "../../../linking-platform/link-provider/afm-cc/tsconfig.json"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"path": "../../../media/media-core/afm-cc/tsconfig.json"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
}
|
|
@@ -22,7 +22,7 @@ var _context = require("../presets/context");
|
|
|
22
22
|
var _RenderTracking = require("../utils/performance/components/RenderTracking");
|
|
23
23
|
var _getBaseFontSize = require("./utils/getBaseFontSize");
|
|
24
24
|
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; }
|
|
25
|
-
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; }
|
|
25
|
+
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; } /** @jsx jsx */
|
|
26
26
|
/**
|
|
27
27
|
* EditorInternalComponent is used to capture the common component
|
|
28
28
|
* from the `render` method of `Editor` and share it with `EditorNext`.
|
|
@@ -53,29 +53,29 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
|
|
|
53
53
|
// it will still be enabled as it currently is. Then we can
|
|
54
54
|
// progressively opt out synthetic tenants.
|
|
55
55
|
var isErrorTrackingExplicitlyDisabled = ((_props$performanceTra2 = props.performanceTracking) === null || _props$performanceTra2 === void 0 || (_props$performanceTra2 = _props$performanceTra2.errorTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.enabled) === false;
|
|
56
|
-
return
|
|
56
|
+
return (0, _react2.jsx)(_react.Fragment, null, renderTrackingEnabled && (0, _react2.jsx)(_RenderTracking.RenderTracking, {
|
|
57
57
|
componentProps: props,
|
|
58
58
|
action: _analytics.ACTION.RE_RENDERED,
|
|
59
59
|
actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
|
|
60
60
|
handleAnalyticsEvent: handleAnalyticsEvent,
|
|
61
61
|
propsToIgnore: ['defaultValue'],
|
|
62
62
|
useShallow: useShallow
|
|
63
|
-
}),
|
|
63
|
+
}), (0, _react2.jsx)(_ErrorBoundary.default, {
|
|
64
64
|
errorTracking: !isErrorTrackingExplicitlyDisabled,
|
|
65
65
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
66
66
|
contextIdentifierProvider: props.contextIdentifierProvider,
|
|
67
67
|
featureFlags: featureFlags
|
|
68
|
-
},
|
|
68
|
+
}, (0, _react2.jsx)(_ui.WidthProvider, {
|
|
69
69
|
css: (0, _react2.css)({
|
|
70
70
|
height: '100%'
|
|
71
71
|
})
|
|
72
|
-
},
|
|
72
|
+
}, (0, _react2.jsx)(_EditorContext.default, {
|
|
73
73
|
editorActions: editorActions
|
|
74
|
-
},
|
|
74
|
+
}, (0, _react2.jsx)(_contextAdapter.ContextAdapter, null, (0, _react2.jsx)(_portalProvider.PortalProviderWithThemeProviders, {
|
|
75
75
|
onAnalyticsEvent: handleAnalyticsEvent,
|
|
76
76
|
useAnalyticsContext: props.UNSAFE_useAnalyticsContext,
|
|
77
77
|
render: function render(portalProviderAPI) {
|
|
78
|
-
return
|
|
78
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(ReactEditorViewContextWrapper, {
|
|
79
79
|
editorProps: overriddenEditorProps,
|
|
80
80
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
81
81
|
portalProviderAPI: portalProviderAPI,
|
|
@@ -93,9 +93,9 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
|
|
|
93
93
|
config = _ref2.config,
|
|
94
94
|
dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
|
|
95
95
|
editorRef = _ref2.editorRef;
|
|
96
|
-
return
|
|
96
|
+
return (0, _react2.jsx)(_ui.BaseTheme, {
|
|
97
97
|
baseFontSize: (0, _getBaseFontSize.getBaseFontSize)(props.appearance)
|
|
98
|
-
},
|
|
98
|
+
}, (0, _react2.jsx)(Component, {
|
|
99
99
|
innerRef: editorRef,
|
|
100
100
|
appearance: props.appearance,
|
|
101
101
|
disabled: props.disabled,
|
|
@@ -129,7 +129,7 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
|
|
|
129
129
|
hideAvatarGroup: props.hideAvatarGroup
|
|
130
130
|
}));
|
|
131
131
|
}
|
|
132
|
-
}),
|
|
132
|
+
}), (0, _react2.jsx)(_portalProvider.PortalRenderer, {
|
|
133
133
|
portalProviderAPI: portalProviderAPI
|
|
134
134
|
}));
|
|
135
135
|
}
|
|
@@ -151,7 +151,7 @@ function ReactEditorViewContextWrapper(props) {
|
|
|
151
151
|
setInternalEditorAPI === null || setInternalEditorAPI === void 0 || setInternalEditorAPI(api);
|
|
152
152
|
setExternalEditorAPI === null || setExternalEditorAPI === void 0 || setExternalEditorAPI(api);
|
|
153
153
|
}, [setInternalEditorAPI, setExternalEditorAPI]);
|
|
154
|
-
return
|
|
154
|
+
return (0, _react2.jsx)(_ReactEditorView.default, (0, _extends2.default)({}, props, {
|
|
155
155
|
setEditorApi: setEditorAPI
|
|
156
156
|
}));
|
|
157
157
|
}
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ComposableEditor = ComposableEditor;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
10
11
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
11
12
|
var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
|
|
12
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
@@ -27,7 +28,7 @@ var _trackEditorActions = _interopRequireDefault(require("./utils/trackEditorAct
|
|
|
27
28
|
var _useMeasureEditorMountTime = _interopRequireDefault(require("./hooks/useMeasureEditorMountTime"));
|
|
28
29
|
var _useProviderFactory = _interopRequireDefault(require("./hooks/useProviderFactory"));
|
|
29
30
|
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; }
|
|
30
|
-
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; }
|
|
31
|
+
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; } /** @jsx jsx */
|
|
31
32
|
/**
|
|
32
33
|
* Editor wrapper that deals with the lifecycle logic of the editor
|
|
33
34
|
*/
|
|
@@ -81,7 +82,7 @@ function Editor(passedProps) {
|
|
|
81
82
|
};
|
|
82
83
|
(0, _useMeasureEditorMountTime.default)(props, getExperienceStore, createAnalyticsEvent);
|
|
83
84
|
var providerFactory = (0, _useProviderFactory.default)(props, editorActions.current, createAnalyticsEvent);
|
|
84
|
-
return
|
|
85
|
+
return (0, _react2.jsx)(_editorInternal.EditorInternal, {
|
|
85
86
|
props: props,
|
|
86
87
|
handleAnalyticsEvent: handleAnalyticsEvent,
|
|
87
88
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
@@ -270,7 +271,7 @@ function EditorButBetter(passedProps) {
|
|
|
270
271
|
onSaveFromProps(view);
|
|
271
272
|
}
|
|
272
273
|
}, [onSaveFromProps]);
|
|
273
|
-
return
|
|
274
|
+
return (0, _react2.jsx)(_editorInternal.EditorInternal, {
|
|
274
275
|
props: props,
|
|
275
276
|
handleAnalyticsEvent: handleAnalyticsEvent,
|
|
276
277
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
@@ -294,17 +295,17 @@ function ComposableEditor(props) {
|
|
|
294
295
|
};
|
|
295
296
|
}, [props.appearance]);
|
|
296
297
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.less-editor-props-rerendering')) {
|
|
297
|
-
return
|
|
298
|
+
return (0, _react2.jsx)(_analyticsNamespacedContext.FabricEditorAnalyticsContext
|
|
298
299
|
// @ts-expect-error Type 'string' is not assignable to type '"editorCore" | "renderer"'.
|
|
299
300
|
, {
|
|
300
301
|
data: data
|
|
301
|
-
},
|
|
302
|
+
}, (0, _react2.jsx)(EditorButBetter, props));
|
|
302
303
|
}
|
|
303
|
-
return
|
|
304
|
+
return (0, _react2.jsx)(_analyticsNamespacedContext.FabricEditorAnalyticsContext
|
|
304
305
|
// @ts-expect-error Type 'string' is not assignable to type '"editorCore" | "renderer"'.
|
|
305
306
|
, {
|
|
306
307
|
data: data
|
|
307
|
-
},
|
|
308
|
+
}, (0, _react2.jsx)(Editor, props));
|
|
308
309
|
}
|
|
309
310
|
ComposableEditor.propTypes = {
|
|
310
311
|
minHeight: function minHeight(_ref) {
|
|
@@ -9,6 +9,8 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
9
9
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
10
10
|
var _measureEnum = _interopRequireDefault(require("../../utils/performance/measure-enum"));
|
|
11
11
|
var _editorMeasureTTICallback = _interopRequireDefault(require("../utils/editorMeasureTTICallback"));
|
|
12
|
+
/** @jsx jsx */
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* Hook to be used for running analytics on mounting the editor.
|
|
@@ -11,6 +11,8 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
11
11
|
var _measureEnum = _interopRequireDefault(require("../../utils/performance/measure-enum"));
|
|
12
12
|
var _sendDurationAnalytics = _interopRequireDefault(require("../utils/sendDurationAnalytics"));
|
|
13
13
|
var _useEditorMeasuresConstructor = _interopRequireDefault(require("./useEditorMeasuresConstructor"));
|
|
14
|
+
/** @jsx jsx */
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
16
18
|
* Hook to run the analytics for the Editor component.
|
package/dist/cjs/editor.js
CHANGED
|
@@ -13,17 +13,18 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
16
17
|
var _editorDeprecationWarnings = _interopRequireDefault(require("./utils/editorDeprecationWarnings"));
|
|
17
18
|
var _composableEditor = require("./composable-editor");
|
|
18
19
|
var _useUniversalPreset = _interopRequireDefault(require("./presets/useUniversalPreset"));
|
|
19
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
20
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
21
22
|
var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
|
|
22
23
|
var props = _ref.props;
|
|
23
24
|
var preset = (0, _useUniversalPreset.default)({
|
|
24
25
|
props: props
|
|
25
26
|
});
|
|
26
|
-
return
|
|
27
|
+
return (0, _react2.jsx)(_composableEditor.ComposableEditor, (0, _extends2.default)({
|
|
27
28
|
preset: preset
|
|
28
29
|
}, props));
|
|
29
30
|
};
|
|
@@ -40,7 +41,7 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
40
41
|
(0, _createClass2.default)(Editor, [{
|
|
41
42
|
key: "render",
|
|
42
43
|
value: function render() {
|
|
43
|
-
return
|
|
44
|
+
return (0, _react2.jsx)(ComposableEditorWrapper, {
|
|
44
45
|
props: this.props
|
|
45
46
|
});
|
|
46
47
|
}
|
|
@@ -13,6 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
16
17
|
var _reactIntlNext = require("react-intl-next");
|
|
17
18
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
18
19
|
var _ToolbarButton = _interopRequireDefault(require("../../../../ui/ToolbarButton"));
|
|
@@ -23,7 +24,7 @@ var _styles2 = require("@atlaskit/editor-common/styles");
|
|
|
23
24
|
var _iconMap = require("./icon-map");
|
|
24
25
|
var _messages = require("./messages");
|
|
25
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
26
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
27
28
|
var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
28
29
|
(0, _inherits2.default)(AlignmentToolbar, _React$Component);
|
|
29
30
|
var _super = _createSuper(AlignmentToolbar);
|
|
@@ -89,9 +90,9 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
89
90
|
disabled = _this$props.disabled,
|
|
90
91
|
intl = _this$props.intl;
|
|
91
92
|
var title = intl.formatMessage(_messages.messages.alignment);
|
|
92
|
-
return
|
|
93
|
+
return (0, _react2.jsx)("span", {
|
|
93
94
|
css: _styles.wrapper
|
|
94
|
-
},
|
|
95
|
+
}, (0, _react2.jsx)(_uiMenu.DropdownContainer, {
|
|
95
96
|
mountTo: popupsMountPoint,
|
|
96
97
|
boundariesElement: popupsBoundariesElement,
|
|
97
98
|
scrollableElement: popupsScrollableElement,
|
|
@@ -117,7 +118,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
117
118
|
fitWidth: 112,
|
|
118
119
|
fitHeight: 80,
|
|
119
120
|
closeOnTab: true,
|
|
120
|
-
trigger:
|
|
121
|
+
trigger: (0, _react2.jsx)(_ToolbarButton.default, {
|
|
121
122
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
122
123
|
disabled: disabled,
|
|
123
124
|
selected: isOpen,
|
|
@@ -128,23 +129,23 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
128
129
|
"aria-haspopup": true,
|
|
129
130
|
onClick: this.toggleOpen,
|
|
130
131
|
onKeyDown: this.toggleOpenByKeyboard,
|
|
131
|
-
iconBefore:
|
|
132
|
+
iconBefore: (0, _react2.jsx)("div", {
|
|
132
133
|
css: _styles.triggerWrapper
|
|
133
|
-
},
|
|
134
|
+
}, (0, _react2.jsx)(_iconMap.IconMap, {
|
|
134
135
|
alignment: pluginState.align
|
|
135
|
-
}),
|
|
136
|
+
}), (0, _react2.jsx)("span", {
|
|
136
137
|
css: _styles.expandIconWrapper
|
|
137
|
-
},
|
|
138
|
+
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
138
139
|
label: ""
|
|
139
140
|
}))),
|
|
140
141
|
ref: this.toolbarItemRef
|
|
141
142
|
})
|
|
142
|
-
},
|
|
143
|
+
}, (0, _react2.jsx)(_Alignment.default, {
|
|
143
144
|
onClick: function onClick(align) {
|
|
144
145
|
return _this2.changeAlignment(align, false);
|
|
145
146
|
},
|
|
146
147
|
selectedAlignment: pluginState.align
|
|
147
|
-
})),
|
|
148
|
+
})), (0, _react2.jsx)("span", {
|
|
148
149
|
css: _styles2.separatorStyles
|
|
149
150
|
}));
|
|
150
151
|
}
|
|
@@ -13,6 +13,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
13
13
|
var _messages = require("../messages");
|
|
14
14
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
15
15
|
var _templateObject, _templateObject2;
|
|
16
|
+
/** @jsx jsx */
|
|
16
17
|
var toolbarButtonWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: flex-end;\n flex-grow: 0;\n align-items: center;\n & > div {\n margin-right: 0;\n }\n"])));
|
|
17
18
|
var toolbarButtonWrapperFullWidth = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n flex-grow: 1;\n"])), toolbarButtonWrapper);
|
|
18
19
|
var AvatarGroupPluginWrapper = function AvatarGroupPluginWrapper(props) {
|
|
@@ -30,11 +31,11 @@ var AvatarGroupPluginWrapper = function AvatarGroupPluginWrapper(props) {
|
|
|
30
31
|
eventType: _analytics.EVENT_TYPE.UI
|
|
31
32
|
});
|
|
32
33
|
}, [dispatchAnalyticsEvent]);
|
|
33
|
-
return
|
|
34
|
+
return (0, _react2.jsx)("div", {
|
|
34
35
|
"aria-label": intl.formatMessage(_messages.avatarGroupMessages.editors),
|
|
35
36
|
"data-testid": 'avatar-group-in-plugin',
|
|
36
37
|
css: props.takeFullWidth ? toolbarButtonWrapperFullWidth : toolbarButtonWrapper
|
|
37
|
-
},
|
|
38
|
+
}, (0, _react2.jsx)(_avatarsWithPluginState.default, {
|
|
38
39
|
editorView: props.editorView,
|
|
39
40
|
eventDispatcher: props.eventDispatcher,
|
|
40
41
|
inviteToEditComponent: props.collabEdit && props.collabEdit.inviteToEditComponent,
|
|
@@ -8,9 +8,10 @@ exports.BeforePrimaryToolbarWrapper = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _templateObject;
|
|
11
|
+
/** @jsx jsx */
|
|
11
12
|
var beforePrimaryToolbarPluginWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-right: 8px;\n flex-grow: 1;\n justify-content: flex-end;\n align-items: center;\n"])));
|
|
12
13
|
var BeforePrimaryToolbarWrapper = exports.BeforePrimaryToolbarWrapper = function BeforePrimaryToolbarWrapper(props) {
|
|
13
|
-
return
|
|
14
|
+
return (0, _react.jsx)("div", {
|
|
14
15
|
css: beforePrimaryToolbarPluginWrapper,
|
|
15
16
|
"data-testid": 'before-primary-toolbar-components-plugin'
|
|
16
17
|
}, props.beforePrimaryToolbarComponents);
|