@atlaskit/editor-core 186.0.0 → 187.0.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.
Files changed (112) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/labs-next.js +0 -65
  3. package/dist/cjs/plugins/expand/commands.js +2 -0
  4. package/dist/cjs/plugins/expand/index.js +1 -1
  5. package/dist/cjs/version-wrapper.js +1 -1
  6. package/dist/cjs/version.json +1 -1
  7. package/dist/es2019/labs-next.js +0 -4
  8. package/dist/es2019/plugins/expand/commands.js +2 -0
  9. package/dist/es2019/plugins/expand/index.js +1 -1
  10. package/dist/es2019/version-wrapper.js +1 -1
  11. package/dist/es2019/version.json +1 -1
  12. package/dist/esm/labs-next.js +0 -4
  13. package/dist/esm/plugins/expand/commands.js +2 -0
  14. package/dist/esm/plugins/expand/index.js +1 -1
  15. package/dist/esm/version-wrapper.js +1 -1
  16. package/dist/esm/version.json +1 -1
  17. package/dist/types/labs/next/presets/default.d.ts +2 -3
  18. package/dist/types/labs-next.d.ts +0 -7
  19. package/dist/types/plugins/expand/commands.d.ts +3 -3
  20. package/dist/types/plugins/expand/index.d.ts +2 -2
  21. package/dist/types-ts4.5/labs/next/presets/default.d.ts +2 -3
  22. package/dist/types-ts4.5/labs-next.d.ts +0 -7
  23. package/dist/types-ts4.5/plugins/expand/commands.d.ts +3 -3
  24. package/dist/types-ts4.5/plugins/expand/index.d.ts +2 -2
  25. package/package.json +5 -5
  26. package/report.api.md +2 -26
  27. package/dist/cjs/labs/next/ContentComponents.js +0 -43
  28. package/dist/cjs/labs/next/Editor.js +0 -76
  29. package/dist/cjs/labs/next/Toolbar.js +0 -39
  30. package/dist/cjs/labs/next/full-page.js +0 -127
  31. package/dist/cjs/labs/next/internal/components/EditorContent.js +0 -25
  32. package/dist/cjs/labs/next/internal/components/EditorInternal.js +0 -81
  33. package/dist/cjs/labs/next/internal/context/preset-context.js +0 -15
  34. package/dist/cjs/labs/next/internal/context/shared-config.js +0 -77
  35. package/dist/cjs/labs/next/internal/editor-props-type.js +0 -5
  36. package/dist/cjs/labs/next/internal/hooks/use-analytics/index.js +0 -41
  37. package/dist/cjs/labs/next/internal/hooks/use-editor/create-dispatch-transaction.js +0 -62
  38. package/dist/cjs/labs/next/internal/hooks/use-editor/create-editor.js +0 -94
  39. package/dist/cjs/labs/next/internal/hooks/use-editor/index.js +0 -193
  40. package/dist/cjs/labs/next/mobile.js +0 -37
  41. package/dist/cjs/labs/next/presets/cxhtml.js +0 -117
  42. package/dist/cjs/labs/next/presets/mobile.js +0 -130
  43. package/dist/cjs/labs/next/presets/utils.js +0 -30
  44. package/dist/es2019/labs/next/ContentComponents.js +0 -38
  45. package/dist/es2019/labs/next/Editor.js +0 -46
  46. package/dist/es2019/labs/next/Toolbar.js +0 -34
  47. package/dist/es2019/labs/next/full-page.js +0 -192
  48. package/dist/es2019/labs/next/internal/components/EditorContent.js +0 -17
  49. package/dist/es2019/labs/next/internal/components/EditorInternal.js +0 -66
  50. package/dist/es2019/labs/next/internal/context/preset-context.js +0 -5
  51. package/dist/es2019/labs/next/internal/context/shared-config.js +0 -34
  52. package/dist/es2019/labs/next/internal/editor-props-type.js +0 -1
  53. package/dist/es2019/labs/next/internal/hooks/use-analytics/index.js +0 -32
  54. package/dist/es2019/labs/next/internal/hooks/use-editor/create-dispatch-transaction.js +0 -51
  55. package/dist/es2019/labs/next/internal/hooks/use-editor/create-editor.js +0 -85
  56. package/dist/es2019/labs/next/internal/hooks/use-editor/index.js +0 -179
  57. package/dist/es2019/labs/next/mobile.js +0 -27
  58. package/dist/es2019/labs/next/presets/cxhtml.js +0 -106
  59. package/dist/es2019/labs/next/presets/mobile.js +0 -118
  60. package/dist/es2019/labs/next/presets/utils.js +0 -22
  61. package/dist/esm/labs/next/ContentComponents.js +0 -36
  62. package/dist/esm/labs/next/Editor.js +0 -48
  63. package/dist/esm/labs/next/Toolbar.js +0 -32
  64. package/dist/esm/labs/next/full-page.js +0 -121
  65. package/dist/esm/labs/next/internal/components/EditorContent.js +0 -17
  66. package/dist/esm/labs/next/internal/components/EditorInternal.js +0 -73
  67. package/dist/esm/labs/next/internal/context/preset-context.js +0 -7
  68. package/dist/esm/labs/next/internal/context/shared-config.js +0 -68
  69. package/dist/esm/labs/next/internal/editor-props-type.js +0 -1
  70. package/dist/esm/labs/next/internal/hooks/use-analytics/index.js +0 -34
  71. package/dist/esm/labs/next/internal/hooks/use-editor/create-dispatch-transaction.js +0 -55
  72. package/dist/esm/labs/next/internal/hooks/use-editor/create-editor.js +0 -88
  73. package/dist/esm/labs/next/internal/hooks/use-editor/index.js +0 -185
  74. package/dist/esm/labs/next/mobile.js +0 -25
  75. package/dist/esm/labs/next/presets/cxhtml.js +0 -108
  76. package/dist/esm/labs/next/presets/mobile.js +0 -120
  77. package/dist/esm/labs/next/presets/utils.js +0 -23
  78. package/dist/types/labs/next/ContentComponents.d.ts +0 -8
  79. package/dist/types/labs/next/Editor.d.ts +0 -27
  80. package/dist/types/labs/next/Toolbar.d.ts +0 -6
  81. package/dist/types/labs/next/full-page.d.ts +0 -9
  82. package/dist/types/labs/next/internal/components/EditorContent.d.ts +0 -7
  83. package/dist/types/labs/next/internal/components/EditorInternal.d.ts +0 -9
  84. package/dist/types/labs/next/internal/context/preset-context.d.ts +0 -5
  85. package/dist/types/labs/next/internal/context/shared-config.d.ts +0 -50
  86. package/dist/types/labs/next/internal/editor-props-type.d.ts +0 -29
  87. package/dist/types/labs/next/internal/hooks/use-analytics/index.d.ts +0 -8
  88. package/dist/types/labs/next/internal/hooks/use-editor/create-dispatch-transaction.d.ts +0 -6
  89. package/dist/types/labs/next/internal/hooks/use-editor/create-editor.d.ts +0 -19
  90. package/dist/types/labs/next/internal/hooks/use-editor/index.d.ts +0 -11
  91. package/dist/types/labs/next/mobile.d.ts +0 -12
  92. package/dist/types/labs/next/presets/cxhtml.d.ts +0 -338
  93. package/dist/types/labs/next/presets/mobile.d.ts +0 -343
  94. package/dist/types/labs/next/presets/utils.d.ts +0 -3
  95. package/dist/types-ts4.5/labs/next/ContentComponents.d.ts +0 -8
  96. package/dist/types-ts4.5/labs/next/Editor.d.ts +0 -27
  97. package/dist/types-ts4.5/labs/next/Toolbar.d.ts +0 -6
  98. package/dist/types-ts4.5/labs/next/full-page.d.ts +0 -9
  99. package/dist/types-ts4.5/labs/next/internal/components/EditorContent.d.ts +0 -7
  100. package/dist/types-ts4.5/labs/next/internal/components/EditorInternal.d.ts +0 -9
  101. package/dist/types-ts4.5/labs/next/internal/context/preset-context.d.ts +0 -5
  102. package/dist/types-ts4.5/labs/next/internal/context/shared-config.d.ts +0 -50
  103. package/dist/types-ts4.5/labs/next/internal/editor-props-type.d.ts +0 -29
  104. package/dist/types-ts4.5/labs/next/internal/hooks/use-analytics/index.d.ts +0 -8
  105. package/dist/types-ts4.5/labs/next/internal/hooks/use-editor/create-dispatch-transaction.d.ts +0 -6
  106. package/dist/types-ts4.5/labs/next/internal/hooks/use-editor/create-editor.d.ts +0 -19
  107. package/dist/types-ts4.5/labs/next/internal/hooks/use-editor/index.d.ts +0 -14
  108. package/dist/types-ts4.5/labs/next/mobile.d.ts +0 -12
  109. package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +0 -414
  110. package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +0 -419
  111. package/dist/types-ts4.5/labs/next/presets/utils.d.ts +0 -3
  112. package/tmp/api-report-tmp.d.ts +0 -2278
@@ -1,343 +0,0 @@
1
- /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
- /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
- import React from 'react';
4
- import { CustomMediaPicker } from '../../../plugins/media';
5
- import { EditorPresetProps } from './types';
6
- type EditorPresetMobileProps = {
7
- children?: React.ReactNode;
8
- placeholder?: string;
9
- maxContentSize?: number;
10
- createAnalyticsEvent?: any;
11
- media?: {
12
- picker?: CustomMediaPicker;
13
- allowMediaSingle?: boolean;
14
- };
15
- } & EditorPresetProps;
16
- export declare function useMobilePreset({ media, placeholder, maxContentSize, createAnalyticsEvent, featureFlags, }: EditorPresetMobileProps & EditorPresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[...string[], "hyperlink", "textFormatting", "width", "quickInsert", "typeAhead", "unsupportedContent", "editorDisabled", "submitEditor", "fakeTextCursor", "floatingToolbar", "selection", "codeBlock"], [(config: import("../../../plugins/code-block/types").CodeBlockOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"codeBlock", {
17
- pluginConfiguration: import("../../../plugins/code-block/types").CodeBlockOptions;
18
- dependencies: [(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
19
- sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
20
- actions: {
21
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
22
- removeDecoration: import("@atlaskit/editor-common/types").Command;
23
- };
24
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
25
- sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
26
- actions: {
27
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
28
- removeDecoration: import("@atlaskit/editor-common/types").Command;
29
- };
30
- }>, import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
31
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
32
- sharedState: {
33
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
34
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
35
- };
36
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
37
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
38
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
39
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
40
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
41
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
42
- }>];
43
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
44
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
45
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
46
- sharedState: {
47
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
48
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
49
- };
50
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
51
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
52
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
53
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
54
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
55
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
56
- }>];
57
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
58
- }>>];
59
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"codeBlock", {
60
- pluginConfiguration: import("../../../plugins/code-block/types").CodeBlockOptions;
61
- dependencies: [(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
62
- sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
63
- actions: {
64
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
65
- removeDecoration: import("@atlaskit/editor-common/types").Command;
66
- };
67
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
68
- sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
69
- actions: {
70
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
71
- removeDecoration: import("@atlaskit/editor-common/types").Command;
72
- };
73
- }>, import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
74
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
75
- sharedState: {
76
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
77
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
78
- };
79
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
80
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
81
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
82
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
83
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
84
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
85
- }>];
86
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
87
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
88
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
89
- sharedState: {
90
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
91
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
92
- };
93
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
94
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
95
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
96
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
97
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
98
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
99
- }>];
100
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
101
- }>>];
102
- }>, (config?: import("../../../plugins/selection/types").SelectionPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"selection", {
103
- pluginConfiguration: import("../../../plugins/selection/types").SelectionPluginOptions | undefined;
104
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"selection", {
105
- pluginConfiguration: import("../../../plugins/selection/types").SelectionPluginOptions | undefined;
106
- }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"floatingToolbar", {
107
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
108
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
109
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
110
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
111
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
112
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
113
- }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
114
- sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
115
- actions: {
116
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
117
- removeDecoration: import("@atlaskit/editor-common/types").Command;
118
- };
119
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
120
- sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
121
- actions: {
122
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
123
- removeDecoration: import("@atlaskit/editor-common/types").Command;
124
- };
125
- }>, import("@atlaskit/editor-common/types").OptionalPlugin<(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"contextPanel", {
126
- actions: {
127
- applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
128
- };
129
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"contextPanel", {
130
- actions: {
131
- applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
132
- };
133
- }>>];
134
- actions: {
135
- forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
136
- };
137
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
138
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
139
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
140
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
141
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
142
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
143
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
144
- }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
145
- sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
146
- actions: {
147
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
148
- removeDecoration: import("@atlaskit/editor-common/types").Command;
149
- };
150
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
151
- sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
152
- actions: {
153
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
154
- removeDecoration: import("@atlaskit/editor-common/types").Command;
155
- };
156
- }>, import("@atlaskit/editor-common/types").OptionalPlugin<(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"contextPanel", {
157
- actions: {
158
- applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
159
- };
160
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"contextPanel", {
161
- actions: {
162
- applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
163
- };
164
- }>>];
165
- actions: {
166
- forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
167
- };
168
- }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"fakeTextCursor", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"fakeTextCursor", {}>, (config?: ((editorView: import("prosemirror-view").EditorView) => void) | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"submitEditor", {
169
- pluginConfiguration: ((editorView: import("prosemirror-view").EditorView) => void) | undefined;
170
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"submitEditor", {
171
- pluginConfiguration: ((editorView: import("prosemirror-view").EditorView) => void) | undefined;
172
- }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
173
- sharedState: import("../../../plugins/editor-disabled").EditorDisabledPluginState;
174
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
175
- sharedState: import("../../../plugins/editor-disabled").EditorDisabledPluginState;
176
- }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"unsupportedContent", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"unsupportedContent", {}>, (config?: import("../../../plugins/type-ahead").TypeAheadPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"typeAhead", {
177
- pluginConfiguration: import("../../../plugins/type-ahead").TypeAheadPluginOptions | undefined;
178
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"typeAhead", {
179
- pluginConfiguration: import("../../../plugins/type-ahead").TypeAheadPluginOptions | undefined;
180
- }>, (config?: import("../../../plugins/quick-insert").QuickInsertPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"quickInsert", {
181
- pluginConfiguration: import("../../../plugins/quick-insert").QuickInsertPluginOptions | undefined;
182
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"quickInsert", {
183
- pluginConfiguration: import("../../../plugins/quick-insert").QuickInsertPluginOptions | undefined;
184
- }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"width", {
185
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
186
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"width", {
187
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
188
- }>, (config?: import("../../../plugins/text-formatting/types").TextFormattingOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"textFormatting", {
189
- pluginConfiguration: import("../../../plugins/text-formatting/types").TextFormattingOptions | undefined;
190
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
191
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
192
- sharedState: {
193
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
194
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
195
- };
196
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
197
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
198
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
199
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
200
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
201
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
202
- }>];
203
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
204
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
205
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
206
- sharedState: {
207
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
208
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
209
- };
210
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
211
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
212
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
213
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
214
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
215
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
216
- }>];
217
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
218
- }>>];
219
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
220
- pluginConfiguration: import("../../../plugins/text-formatting/types").TextFormattingOptions | undefined;
221
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
222
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
223
- sharedState: {
224
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
225
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
226
- };
227
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
228
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
229
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
230
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
231
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
232
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
233
- }>];
234
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
235
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
236
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
237
- sharedState: {
238
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
239
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
240
- };
241
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
242
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
243
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
244
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
245
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
246
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
247
- }>];
248
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
249
- }>>];
250
- }>, (config?: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
251
- pluginConfiguration: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined;
252
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
253
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
254
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
255
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
256
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
257
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
258
- }>, import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
259
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
260
- sharedState: {
261
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
262
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
263
- };
264
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
265
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
266
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
267
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
268
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
269
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
270
- }>];
271
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
272
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
273
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
274
- sharedState: {
275
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
276
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
277
- };
278
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
279
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
280
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
281
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
282
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
283
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
284
- }>];
285
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
286
- }>>];
287
- actions: {
288
- prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
289
- showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
290
- hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
291
- insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
292
- updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
293
- };
294
- sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
295
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
296
- pluginConfiguration: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined;
297
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
298
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
299
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
300
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
301
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
302
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
303
- }>, import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
304
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
305
- sharedState: {
306
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
307
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
308
- };
309
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
310
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
311
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
312
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
313
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
314
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
315
- }>];
316
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
317
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
318
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
319
- sharedState: {
320
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
321
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
322
- };
323
- dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
324
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
325
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
326
- }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
327
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
328
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
329
- }>];
330
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
331
- }>>];
332
- actions: {
333
- prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
334
- showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
335
- hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
336
- insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
337
- updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
338
- };
339
- sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
340
- }>, ...import("@atlaskit/editor-common/types").AllEditorPresetPluginTypes[]]>[];
341
- export type MobilePresetProps = EditorPresetMobileProps & EditorPresetProps;
342
- export declare function EditorPresetMobile(props: MobilePresetProps): JSX.Element;
343
- export {};
@@ -1,3 +0,0 @@
1
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
2
- import { EditorPresetProps } from './types';
3
- export declare const addExcludesFromProviderFactory: (providerFactory: ProviderFactory, excludes?: EditorPresetProps['excludes']) => Set<string>;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- type ContentComponentsProps = {
3
- disabled?: any;
4
- wrapperElement: HTMLElement | null;
5
- containerElement: HTMLElement | null;
6
- };
7
- export declare function ContentComponents({ disabled, wrapperElement, containerElement, }: ContentComponentsProps): JSX.Element | null;
8
- export {};
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import { PresetProvider } from './internal/context/preset-context';
3
- import { EditorSharedConfig, EditorSharedConfigConsumer, useEditorSharedConfig } from './internal/context/shared-config';
4
- import { EditorContent } from './internal/components/EditorContent';
5
- import { EditorProps } from './internal/editor-props-type';
6
- /**
7
- * Main Editor component. Use in combination with `EditorContent` and a `Preset`.
8
- * Internally it constructs `ProseMirror View` and mounts it to `EditorContent`.
9
- *
10
- * `EditorContent` can be wrapped to implement any layout/design requirements.
11
- *
12
- * ```js
13
- * <Preset>
14
- * <Editor>
15
- * <EditorContent/>
16
- * </Editor>
17
- * </Preset>
18
- * ```
19
- */
20
- declare function Editor(props: EditorProps): JSX.Element;
21
- /**
22
- *
23
- * Public API Exports.
24
- *
25
- */
26
- export { PresetProvider, Editor, EditorContent, EditorSharedConfigConsumer, useEditorSharedConfig, };
27
- export type { EditorProps, EditorSharedConfig, };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- containerElement: HTMLElement | null;
4
- }
5
- export declare function Toolbar({ containerElement }: Props): JSX.Element | null;
6
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { EditorProps } from '../../types';
4
- import EditorActions from '../../actions';
5
- export type FullPageProps = EditorProps & {
6
- onMount?: (actions: EditorActions) => void;
7
- } & WithAnalyticsEventsProps;
8
- declare const FullPageWithAnalytics: React.ForwardRefExoticComponent<Omit<FullPageProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
9
- export { FullPageWithAnalytics as FullPage };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare const EditorContentProvider: React.Provider<(ref: HTMLDivElement) => void>;
3
- /**
4
- * ProseMirror View mount point.
5
- */
6
- declare const EditorContent: React.MemoExoticComponent<() => JSX.Element>;
7
- export { EditorContentProvider, EditorContent };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- export declare const EditorInternal: React.FC<import("react-intl-next").WithIntlProps<import("../editor-props-type").EditorProps & {
4
- portalProviderAPI: import("@atlaskit/editor-common/portal-provider").PortalProviderAPI;
5
- } & WrappedComponentProps<"intl">>> & {
6
- WrappedComponent: React.ComponentType<import("../editor-props-type").EditorProps & {
7
- portalProviderAPI: import("@atlaskit/editor-common/portal-provider").PortalProviderAPI;
8
- } & WrappedComponentProps<"intl">>;
9
- };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { EditorPlugin } from '../../../../types';
3
- declare const PresetProvider: React.Provider<EditorPlugin[]>;
4
- declare const usePresetContext: () => EditorPlugin[];
5
- export { PresetProvider, usePresetContext };
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { EditorView } from 'prosemirror-view';
4
- import { Transformer } from '@atlaskit/editor-common/types';
5
- import { EventDispatcher, Dispatch } from '../../../../event-dispatcher';
6
- import { EditorAppearanceComponentProps } from '../../../../types';
7
- import { FireAnalyticsCallback } from '../../../../plugins/analytics';
8
- import EditorActions from '../../../../actions';
9
- import { EditorProps } from '../editor-props-type';
10
- /**
11
- * Provides access to most commonly used configurations and instances of classes,
12
- * that most editor components rely on.
13
- */
14
- export type EditorSharedConfig = {
15
- editorView: EditorView;
16
- eventDispatcher: EventDispatcher;
17
- dispatch: Dispatch;
18
- transformer?: Transformer<any>;
19
- dispatchAnalyticsEvent?: FireAnalyticsCallback;
20
- primaryToolbarComponents: EditorAppearanceComponentProps['primaryToolbarComponents'];
21
- contentComponents: EditorAppearanceComponentProps['contentComponents'];
22
- popupsMountPoint: EditorProps['popupsMountPoint'];
23
- popupsBoundariesElement: EditorProps['popupsBoundariesElement'];
24
- popupsScrollableElement: EditorProps['popupsScrollableElement'];
25
- providerFactory: EditorAppearanceComponentProps['providerFactory'];
26
- editorActions: EditorActions;
27
- onChange?: EditorProps['onChange'];
28
- onDestroy?: EditorProps['onDestroy'];
29
- onMount?: EditorProps['onMount'];
30
- };
31
- export declare class EditorSharedConfigProvider extends React.Component<{
32
- value: EditorSharedConfig | null;
33
- }, any> {
34
- static childContextTypes: {
35
- editorSharedConfig: PropTypes.Requireable<object>;
36
- };
37
- getChildContext(): {
38
- editorSharedConfig: EditorSharedConfig | null;
39
- };
40
- render(): JSX.Element;
41
- }
42
- export declare class EditorSharedConfigConsumer extends React.Component<{
43
- children: (value: EditorSharedConfig | null) => React.ReactNode | null;
44
- }> {
45
- static contextTypes: {
46
- editorSharedConfig: PropTypes.Requireable<object>;
47
- };
48
- render(): JSX.Element;
49
- }
50
- export declare const useEditorSharedConfig: () => EditorSharedConfig | null;
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- import { Schema } from 'prosemirror-model';
3
- import EditorActions from '../../../actions';
4
- import { Transformer } from '@atlaskit/editor-common/types';
5
- import { EditorPlugin } from '../../../types';
6
- import { FireAnalyticsCallback } from '../../../plugins/analytics';
7
- import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
8
- export type EditorProps = {
9
- plugins?: Array<EditorPlugin>;
10
- transformer?: (schema: Schema) => Transformer<any>;
11
- children?: React.ReactChild;
12
- defaultValue?: string | object;
13
- popupsMountPoint?: HTMLElement;
14
- popupsBoundariesElement?: HTMLElement;
15
- popupsScrollableElement?: HTMLElement;
16
- disabled?: boolean;
17
- placeholder?: string;
18
- onAnalyticsEvent?: FireAnalyticsCallback;
19
- onChange?: (value: any, meta: {
20
- source: 'remote' | 'local';
21
- }) => void;
22
- onSave?: (value: any) => void;
23
- onCancel?: (value: any) => void;
24
- onMount?: (actions: EditorActions) => void;
25
- onDestroy?: () => void;
26
- };
27
- export type EditorPropsExtended = EditorProps & {
28
- portalProviderAPI: PortalProviderAPI;
29
- };
@@ -1,8 +0,0 @@
1
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { EditorSharedConfig } from '../../../internal/context/shared-config';
3
- /**
4
- * Subscribes to analytics events fired from editor components
5
- * and passes them through to `fireAnalyticsEvent`.
6
- */
7
- export declare function useAnalyticsHandler(editorSharedConfig: EditorSharedConfig | null): void;
8
- export declare function useCreateAnalyticsHandler(createAnalyticsEvent?: CreateUIAnalyticsEvent): import("@atlaskit/editor-common/analytics").FireAnalyticsCallback;
@@ -1,6 +0,0 @@
1
- import { EditorView } from 'prosemirror-view';
2
- import { Transaction } from 'prosemirror-state';
3
- import { Transformer } from '@atlaskit/editor-common/types';
4
- import { EditorSharedConfig } from '../../context/shared-config';
5
- export declare function createDispatchTransaction(editorSharedConfig: EditorSharedConfig): (transaction: Transaction) => void;
6
- export declare function getEditorValue(editorView: EditorView, transformer?: Transformer<any>): any;
@@ -1,19 +0,0 @@
1
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
- import EditorActions from '../../../../../actions';
4
- import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
5
- import { EditorSharedConfig } from '../../context/shared-config';
6
- import { EditorPropsExtended } from '../../editor-props-type';
7
- import { FeatureFlags } from '../../../../../types/feature-flags';
8
- import { IntlShape } from 'react-intl-next';
9
- export declare function createEditor({ context, onAnalyticsEvent, transformer, providerFactory, plugins, portalProviderAPI, defaultValue, ref, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorActions, disabled, onChange, onDestroy, onMount, featureFlags, getIntl, }: CreateEditorParams): EditorSharedConfig | null;
10
- export type CreateEditorParams = Pick<EditorPropsExtended, 'defaultValue' | 'plugins' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'onChange' | 'disabled' | 'transformer' | 'onAnalyticsEvent' | 'onDestroy' | 'onMount'> & {
11
- context: any;
12
- ref?: HTMLDivElement | null;
13
- providerFactory: ProviderFactory;
14
- portalProviderAPI: PortalProviderAPI;
15
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
16
- editorActions: EditorActions;
17
- featureFlags: FeatureFlags;
18
- getIntl: () => IntlShape;
19
- };
@@ -1,14 +0,0 @@
1
- import EditorActions from '../../../../../actions';
2
- import { EditorSharedConfig } from '../../context/shared-config';
3
- import { CreateEditorParams } from './create-editor';
4
- import { FeatureFlags } from '@atlaskit/editor-common/types';
5
- export declare function useEditor(config: CreateEditorParams & {
6
- editorActions?: EditorActions;
7
- }): [
8
- EditorSharedConfig | null,
9
- (ref: HTMLDivElement | null) => void
10
- ];
11
- /**
12
- * Handles editor component unmount
13
- */
14
- export declare function useHandleEditorLifecycle(editorSharedConfig: EditorSharedConfig | null, featureFlags: FeatureFlags): void;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { EditorProps } from './internal/editor-props-type';
4
- export interface MobileEditorProps extends EditorProps {
5
- isMaxContentSizeReached?: boolean;
6
- maxHeight?: number;
7
- }
8
- export declare function MobileEditor(props: MobileEditorProps & WithAnalyticsEventsProps): JSX.Element;
9
- export declare namespace MobileEditor {
10
- var displayName: string;
11
- }
12
- export declare const Mobile: React.ForwardRefExoticComponent<Omit<MobileEditorProps & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;