@atlaskit/editor-core 189.3.13 → 189.3.15

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 (167) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/create-editor/ErrorBoundary.js +1 -1
  3. package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
  4. package/dist/cjs/plugins/analytics/index.js +0 -6
  5. package/dist/cjs/plugins/analytics/utils.js +0 -29
  6. package/dist/cjs/plugins/breakout/index.js +3 -3
  7. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +4 -4
  8. package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +32 -30
  9. package/dist/cjs/plugins/find-replace/commands-with-analytics.js +85 -71
  10. package/dist/cjs/plugins/find-replace/index.js +5 -2
  11. package/dist/cjs/plugins/find-replace/keymap.js +4 -4
  12. package/dist/cjs/plugins/index.js +1 -24
  13. package/dist/cjs/plugins/mobile-dimensions/index.js +6 -0
  14. package/dist/cjs/presets/context.js +5 -3
  15. package/dist/cjs/presets/universal.js +14 -4
  16. package/dist/cjs/ui/Appearance/Chromeless.js +18 -9
  17. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
  18. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -2
  19. package/dist/cjs/ui/AppearanceComponents/Mobile.js +7 -9
  20. package/dist/cjs/{plugins/expand/ui/styles.js → ui/ContentStyles/expand.js} +11 -8
  21. package/dist/cjs/ui/ContentStyles/index.js +4 -4
  22. package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
  23. package/dist/cjs/use-preset.js +0 -1
  24. package/dist/cjs/version-wrapper.js +1 -1
  25. package/dist/es2019/create-editor/ErrorBoundary.js +0 -2
  26. package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
  27. package/dist/es2019/plugins/analytics/index.js +1 -1
  28. package/dist/es2019/plugins/analytics/utils.js +0 -24
  29. package/dist/es2019/plugins/breakout/index.js +1 -1
  30. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +1 -1
  31. package/dist/es2019/plugins/find-replace/FindReplaceToolbarButtonWithState.js +20 -19
  32. package/dist/es2019/plugins/find-replace/commands-with-analytics.js +15 -15
  33. package/dist/es2019/plugins/find-replace/index.js +7 -2
  34. package/dist/es2019/plugins/find-replace/keymap.js +4 -4
  35. package/dist/es2019/plugins/index.js +0 -2
  36. package/dist/es2019/plugins/mobile-dimensions/index.js +6 -0
  37. package/dist/es2019/presets/context.js +2 -2
  38. package/dist/es2019/presets/universal.js +11 -1
  39. package/dist/es2019/ui/Appearance/Chromeless.js +17 -9
  40. package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
  41. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -2
  42. package/dist/es2019/ui/AppearanceComponents/Mobile.js +8 -9
  43. package/dist/es2019/{plugins/expand/ui/styles.js → ui/ContentStyles/expand.js} +9 -4
  44. package/dist/es2019/ui/ContentStyles/index.js +1 -1
  45. package/dist/es2019/ui/ToolbarFeedback/index.js +2 -2
  46. package/dist/es2019/use-preset.js +0 -1
  47. package/dist/es2019/version-wrapper.js +1 -1
  48. package/dist/esm/create-editor/ErrorBoundary.js +0 -2
  49. package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
  50. package/dist/esm/plugins/analytics/index.js +1 -1
  51. package/dist/esm/plugins/analytics/utils.js +0 -28
  52. package/dist/esm/plugins/breakout/index.js +1 -1
  53. package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -1
  54. package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +32 -30
  55. package/dist/esm/plugins/find-replace/commands-with-analytics.js +84 -70
  56. package/dist/esm/plugins/find-replace/index.js +5 -2
  57. package/dist/esm/plugins/find-replace/keymap.js +4 -4
  58. package/dist/esm/plugins/index.js +0 -2
  59. package/dist/esm/plugins/mobile-dimensions/index.js +6 -0
  60. package/dist/esm/presets/context.js +2 -2
  61. package/dist/esm/presets/universal.js +10 -1
  62. package/dist/esm/ui/Appearance/Chromeless.js +15 -9
  63. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
  64. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -2
  65. package/dist/esm/ui/AppearanceComponents/Mobile.js +7 -9
  66. package/dist/esm/{plugins/expand/ui/styles.js → ui/ContentStyles/expand.js} +9 -4
  67. package/dist/esm/ui/ContentStyles/index.js +1 -1
  68. package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
  69. package/dist/esm/use-preset.js +0 -1
  70. package/dist/esm/version-wrapper.js +1 -1
  71. package/dist/types/plugins/analytics/index.d.ts +1 -1
  72. package/dist/types/plugins/analytics/utils.d.ts +0 -11
  73. package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +4 -2
  74. package/dist/types/plugins/find-replace/commands-with-analytics.d.ts +9 -9
  75. package/dist/types/plugins/find-replace/index.d.ts +5 -3
  76. package/dist/types/plugins/find-replace/keymap.d.ts +2 -1
  77. package/dist/types/plugins/index.d.ts +0 -2
  78. package/dist/types/plugins/insert-block/types.d.ts +1 -1
  79. package/dist/types/plugins/mobile-dimensions/index.d.ts +5 -1
  80. package/dist/types/presets/context.d.ts +2 -2
  81. package/dist/types/presets/universal.d.ts +5 -0
  82. package/dist/types/ui/Appearance/Chromeless.d.ts +1 -1
  83. package/dist/types/{plugins/expand/ui/styles.d.ts → ui/ContentStyles/expand.d.ts} +1 -1
  84. package/dist/types-ts4.5/plugins/analytics/index.d.ts +1 -1
  85. package/dist/types-ts4.5/plugins/analytics/utils.d.ts +0 -11
  86. package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +4 -2
  87. package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +9 -9
  88. package/dist/types-ts4.5/plugins/find-replace/index.d.ts +6 -3
  89. package/dist/types-ts4.5/plugins/find-replace/keymap.d.ts +2 -1
  90. package/dist/types-ts4.5/plugins/index.d.ts +0 -2
  91. package/dist/types-ts4.5/plugins/insert-block/types.d.ts +1 -1
  92. package/dist/types-ts4.5/plugins/mobile-dimensions/index.d.ts +5 -1
  93. package/dist/types-ts4.5/presets/context.d.ts +2 -2
  94. package/dist/types-ts4.5/presets/universal.d.ts +5 -0
  95. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +1 -1
  96. package/dist/types-ts4.5/{plugins/expand/ui/styles.d.ts → ui/ContentStyles/expand.d.ts} +1 -1
  97. package/package.json +6 -9
  98. package/dist/cjs/plugins/breakout/constants.js +0 -10
  99. package/dist/cjs/plugins/expand/commands.js +0 -184
  100. package/dist/cjs/plugins/expand/index.js +0 -111
  101. package/dist/cjs/plugins/expand/nodeviews/index.js +0 -485
  102. package/dist/cjs/plugins/expand/pm-plugins/keymap.js +0 -171
  103. package/dist/cjs/plugins/expand/pm-plugins/main.js +0 -85
  104. package/dist/cjs/plugins/expand/pm-plugins/plugin-factory.js +0 -15
  105. package/dist/cjs/plugins/expand/reducer.js +0 -20
  106. package/dist/cjs/plugins/expand/toolbar.js +0 -59
  107. package/dist/cjs/plugins/expand/types.js +0 -5
  108. package/dist/cjs/plugins/expand/ui/ExpandIconButton.js +0 -104
  109. package/dist/cjs/plugins/expand/ui/class-names.js +0 -20
  110. package/dist/cjs/plugins/expand/utils.js +0 -24
  111. package/dist/cjs/plugins/max-content-size/index.js +0 -44
  112. package/dist/es2019/plugins/breakout/constants.js +0 -4
  113. package/dist/es2019/plugins/expand/commands.js +0 -161
  114. package/dist/es2019/plugins/expand/index.js +0 -95
  115. package/dist/es2019/plugins/expand/nodeviews/index.js +0 -475
  116. package/dist/es2019/plugins/expand/pm-plugins/keymap.js +0 -197
  117. package/dist/es2019/plugins/expand/pm-plugins/main.js +0 -73
  118. package/dist/es2019/plugins/expand/pm-plugins/plugin-factory.js +0 -9
  119. package/dist/es2019/plugins/expand/reducer.js +0 -11
  120. package/dist/es2019/plugins/expand/toolbar.js +0 -52
  121. package/dist/es2019/plugins/expand/types.js +0 -1
  122. package/dist/es2019/plugins/expand/ui/ExpandIconButton.js +0 -85
  123. package/dist/es2019/plugins/expand/ui/class-names.js +0 -12
  124. package/dist/es2019/plugins/expand/utils.js +0 -1
  125. package/dist/es2019/plugins/max-content-size/index.js +0 -35
  126. package/dist/esm/plugins/breakout/constants.js +0 -4
  127. package/dist/esm/plugins/expand/commands.js +0 -177
  128. package/dist/esm/plugins/expand/index.js +0 -97
  129. package/dist/esm/plugins/expand/nodeviews/index.js +0 -477
  130. package/dist/esm/plugins/expand/pm-plugins/keymap.js +0 -165
  131. package/dist/esm/plugins/expand/pm-plugins/main.js +0 -77
  132. package/dist/esm/plugins/expand/pm-plugins/plugin-factory.js +0 -9
  133. package/dist/esm/plugins/expand/reducer.js +0 -13
  134. package/dist/esm/plugins/expand/toolbar.js +0 -52
  135. package/dist/esm/plugins/expand/types.js +0 -1
  136. package/dist/esm/plugins/expand/ui/ExpandIconButton.js +0 -95
  137. package/dist/esm/plugins/expand/ui/class-names.js +0 -14
  138. package/dist/esm/plugins/expand/utils.js +0 -1
  139. package/dist/esm/plugins/max-content-size/index.js +0 -37
  140. package/dist/types/plugins/breakout/constants.d.ts +0 -4
  141. package/dist/types/plugins/expand/commands.d.ts +0 -13
  142. package/dist/types/plugins/expand/index.d.ts +0 -31
  143. package/dist/types/plugins/expand/nodeviews/index.d.ts +0 -55
  144. package/dist/types/plugins/expand/pm-plugins/keymap.d.ts +0 -4
  145. package/dist/types/plugins/expand/pm-plugins/main.d.ts +0 -8
  146. package/dist/types/plugins/expand/pm-plugins/plugin-factory.d.ts +0 -3
  147. package/dist/types/plugins/expand/reducer.d.ts +0 -3
  148. package/dist/types/plugins/expand/toolbar.d.ts +0 -3
  149. package/dist/types/plugins/expand/types.d.ts +0 -9
  150. package/dist/types/plugins/expand/ui/ExpandIconButton.d.ts +0 -43
  151. package/dist/types/plugins/expand/ui/class-names.d.ts +0 -11
  152. package/dist/types/plugins/expand/utils.d.ts +0 -1
  153. package/dist/types/plugins/max-content-size/index.d.ts +0 -13
  154. package/dist/types-ts4.5/plugins/breakout/constants.d.ts +0 -4
  155. package/dist/types-ts4.5/plugins/expand/commands.d.ts +0 -13
  156. package/dist/types-ts4.5/plugins/expand/index.d.ts +0 -31
  157. package/dist/types-ts4.5/plugins/expand/nodeviews/index.d.ts +0 -55
  158. package/dist/types-ts4.5/plugins/expand/pm-plugins/keymap.d.ts +0 -4
  159. package/dist/types-ts4.5/plugins/expand/pm-plugins/main.d.ts +0 -8
  160. package/dist/types-ts4.5/plugins/expand/pm-plugins/plugin-factory.d.ts +0 -3
  161. package/dist/types-ts4.5/plugins/expand/reducer.d.ts +0 -3
  162. package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +0 -3
  163. package/dist/types-ts4.5/plugins/expand/types.d.ts +0 -9
  164. package/dist/types-ts4.5/plugins/expand/ui/ExpandIconButton.d.ts +0 -43
  165. package/dist/types-ts4.5/plugins/expand/ui/class-names.d.ts +0 -11
  166. package/dist/types-ts4.5/plugins/expand/utils.d.ts +0 -1
  167. package/dist/types-ts4.5/plugins/max-content-size/index.d.ts +0 -13
@@ -1,4 +0,0 @@
1
- import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type expandPlugin from '../index';
4
- export declare function expandKeymap(api: ExtractInjectionAPI<typeof expandPlugin> | undefined): SafePlugin;
@@ -1,8 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { Dispatch } from '../../../event-dispatcher';
3
- import type { EditorAppearance } from '@atlaskit/editor-common/types';
4
- import type { IntlShape } from 'react-intl-next';
5
- import type { FeatureFlags, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
- import type expandPlugin from '../index';
7
- export declare function containsClass(element: Element | null, className: string): boolean;
8
- export declare const createPlugin: (dispatch: Dispatch, getIntl: () => IntlShape, appearance: EditorAppearance | undefined, useLongPressSelection: boolean | undefined, featureFlags: FeatureFlags, api: ExtractInjectionAPI<typeof expandPlugin> | undefined) => SafePlugin<import("../types").ExpandPluginState>;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const pluginKey: PluginKey<any>;
3
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("..").ExpandPluginState | ((state: import("prosemirror-state").EditorState) => import("..").ExpandPluginState)) => import("prosemirror-state").SafeStateField<import("..").ExpandPluginState>, createCommand: <A = import("../types").ExpandPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("..").ExpandPluginState;
@@ -1,3 +0,0 @@
1
- import { ExpandPluginState, ExpandPluginAction } from './types';
2
- declare const _default: (pluginState: ExpandPluginState, action: ExpandPluginAction) => ExpandPluginState;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import type { FloatingToolbarHandler, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import type { ExpandPlugin } from '.';
3
- export declare const getToolbarConfig: (api: ExtractInjectionAPI<ExpandPlugin> | undefined) => FloatingToolbarHandler;
@@ -1,9 +0,0 @@
1
- export interface ExpandPluginState {
2
- expandRef?: HTMLDivElement | null;
3
- }
4
- export type ExpandPluginAction = {
5
- type: 'SET_EXPAND_REF';
6
- data: {
7
- ref?: HTMLDivElement | null;
8
- };
9
- };
@@ -1,43 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { jsx } from '@emotion/react';
4
- import { IntlShape } from 'react-intl-next';
5
- interface ExpandIconButtonProps {
6
- allowInteractiveExpand: boolean;
7
- expanded: boolean;
8
- intl?: IntlShape;
9
- }
10
- interface ExpandIconButtonWithLabelProps extends ExpandIconButtonProps {
11
- label: string;
12
- }
13
- export declare const withTooltip: (WrapperComponent: React.ElementType) => {
14
- new (props: ExpandIconButtonWithLabelProps): {
15
- render(): jsx.JSX.Element;
16
- context: any;
17
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<ExpandIconButtonWithLabelProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
18
- forceUpdate(callback?: (() => void) | undefined): void;
19
- readonly props: Readonly<ExpandIconButtonWithLabelProps> & Readonly<{
20
- children?: React.ReactNode;
21
- }>;
22
- state: Readonly<{}>;
23
- refs: {
24
- [key: string]: React.ReactInstance;
25
- };
26
- componentDidMount?(): void;
27
- shouldComponentUpdate?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextState: Readonly<{}>, nextContext: any): boolean;
28
- componentWillUnmount?(): void;
29
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
30
- getSnapshotBeforeUpdate?(prevProps: Readonly<ExpandIconButtonWithLabelProps>, prevState: Readonly<{}>): any;
31
- componentDidUpdate?(prevProps: Readonly<ExpandIconButtonWithLabelProps>, prevState: Readonly<{}>, snapshot?: any): void;
32
- componentWillMount?(): void;
33
- UNSAFE_componentWillMount?(): void;
34
- componentWillReceiveProps?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextContext: any): void;
35
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextContext: any): void;
36
- componentWillUpdate?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextState: Readonly<{}>, nextContext: any): void;
37
- UNSAFE_componentWillUpdate?(nextProps: Readonly<ExpandIconButtonWithLabelProps>, nextState: Readonly<{}>, nextContext: any): void;
38
- };
39
- contextType?: React.Context<any> | undefined;
40
- };
41
- export declare const CustomButton: (props: ExpandIconButtonWithLabelProps) => jsx.JSX.Element;
42
- export declare const ExpandIconButton: (props: ExpandIconButtonProps) => jsx.JSX.Element;
43
- export {};
@@ -1,11 +0,0 @@
1
- export declare const expandClassNames: {
2
- prefix: string;
3
- expanded: string;
4
- titleContainer: string;
5
- inputContainer: string;
6
- iconContainer: string;
7
- icon: string;
8
- titleInput: string;
9
- content: string;
10
- type: (type: string) => string;
11
- };
@@ -1 +0,0 @@
1
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceNestedExpandToExpand, } from '@atlaskit/editor-common/transforms';
@@ -1,13 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
4
- import type { Dispatch } from '../../event-dispatcher';
5
- export declare const pluginKey: PluginKey<MaxContentSizePluginState>;
6
- export type MaxContentSizePluginState = {
7
- maxContentSizeReached: boolean;
8
- };
9
- export declare function createPlugin(dispatch: Dispatch, maxContentSize?: number): SafePlugin | undefined;
10
- declare const maxContentSizePlugin: NextEditorPlugin<'maxContentSize', {
11
- pluginConfiguration: number | undefined;
12
- }>;
13
- export default maxContentSizePlugin;