@atlaskit/editor-core 207.3.0 → 207.5.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 (39) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/presets/default.js +8 -0
  3. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
  4. package/dist/cjs/ui/ContentStyles/layout.js +1 -1
  5. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +7 -4
  6. package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +230 -0
  7. package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +211 -0
  8. package/dist/cjs/version-wrapper.js +1 -1
  9. package/dist/es2019/presets/default.js +8 -0
  10. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
  11. package/dist/es2019/ui/ContentStyles/layout.js +1 -2
  12. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +8 -8
  13. package/dist/es2019/ui/EditorContentContainer/styles/ai-panel.js +1 -1
  14. package/dist/es2019/ui/EditorContentContainer/styles/layout.js +7 -7
  15. package/dist/es2019/ui/EditorContentContainer/styles/link.js +1 -1
  16. package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +357 -0
  17. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +256 -0
  18. package/dist/es2019/ui/EditorContentContainer/styles/rule.js +2 -2
  19. package/dist/es2019/version-wrapper.js +1 -1
  20. package/dist/esm/presets/default.js +8 -0
  21. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
  22. package/dist/esm/ui/ContentStyles/layout.js +1 -1
  23. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +8 -5
  24. package/dist/esm/ui/EditorContentContainer/styles/ai-panel.js +1 -1
  25. package/dist/esm/ui/EditorContentContainer/styles/layout.js +7 -7
  26. package/dist/esm/ui/EditorContentContainer/styles/link.js +1 -1
  27. package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +224 -0
  28. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +203 -0
  29. package/dist/esm/ui/EditorContentContainer/styles/rule.js +2 -2
  30. package/dist/esm/version-wrapper.js +1 -1
  31. package/dist/types/presets/default.d.ts +14 -4
  32. package/dist/types/types/editor-props.d.ts +11 -10
  33. package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +1 -0
  34. package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +10 -0
  35. package/dist/types-ts4.5/presets/default.d.ts +14 -4
  36. package/dist/types-ts4.5/types/editor-props.d.ts +11 -10
  37. package/dist/types-ts4.5/ui/EditorContentContainer/styles/mediaStyles.d.ts +1 -0
  38. package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +10 -0
  39. package/package.json +9 -5
@@ -6,21 +6,22 @@ import type { ErrorReportingHandler } from '@atlaskit/editor-common/error-report
6
6
  import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
7
7
  import type { AllEditorPresetPluginTypes, AllPluginNames, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
8
8
  import type { ContextIdentifierProvider, Providers, SearchProvider } from '@atlaskit/editor-common/provider-factory';
9
- import type { EditorAppearance, EmptyStateHandler, FeedbackInfo, LinkingOptions, PerformanceTracking, QuickInsertOptions, TextFormattingOptions, Transformer } from '@atlaskit/editor-common/types';
9
+ import type { EditorAppearance, EmptyStateHandler, FeedbackInfo, LinkingOptions, PerformanceTracking, QuickInsertOptions, Transformer } from '@atlaskit/editor-common/types';
10
10
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
11
11
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
12
12
  import type { AnnotationProviders } from '@atlaskit/editor-plugins/annotation';
13
13
  import type { BlockTypePluginOptions } from '@atlaskit/editor-plugins/block-type';
14
- import type { CodeBlockOptions } from '@atlaskit/editor-plugins/code-block';
14
+ import type { CodeBlockPluginOptions } from '@atlaskit/editor-plugins/code-block';
15
15
  import type { DatePluginOptions } from '@atlaskit/editor-plugins/date';
16
16
  import type { FindReplaceOptions } from '@atlaskit/editor-plugins/find-replace';
17
17
  import type { LayoutPluginOptions } from '@atlaskit/editor-plugins/layout';
18
- import type { MediaOptions, MediaState } from '@atlaskit/editor-plugins/media/types';
18
+ import type { MediaPluginOptions, MediaState } from '@atlaskit/editor-plugins/media/types';
19
19
  import type { MentionPluginConfig } from '@atlaskit/editor-plugins/mentions';
20
20
  import type { PanelPluginConfig } from '@atlaskit/editor-plugins/panel';
21
- import type { PlaceholderTextOptions } from '@atlaskit/editor-plugins/placeholder-text';
21
+ import type { PlaceholderTextPluginOptions } from '@atlaskit/editor-plugins/placeholder-text';
22
22
  import type { PluginConfig as TablesPluginConfig } from '@atlaskit/editor-plugins/table/types';
23
23
  import type { TextColorPluginConfig } from '@atlaskit/editor-plugins/text-color';
24
+ import type { TextFormattingPluginOptions } from '@atlaskit/editor-plugins/text-formatting';
24
25
  import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
25
26
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
26
27
  import type { MentionProvider } from '@atlaskit/mention/resource';
@@ -160,7 +161,7 @@ export interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithP
160
161
  * Example:
161
162
  * ```ts
162
163
  * // In preset creation you can pass the props passed to the editor like this:
163
- * preset.add([mediaPlugin, mediaOptions])
164
+ * preset.add([mediaPlugin, MediaPluginOptions])
164
165
  * ```
165
166
  *
166
167
  * Note: Props you pass to the media plugin via the preset do not re-render like in React.
@@ -173,7 +174,7 @@ export interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithP
173
174
  * editorApi?.media.actions.setProvider(mediaProvider);
174
175
  * ```
175
176
  */
176
- media?: MediaOptions;
177
+ media?: MediaPluginOptions;
177
178
  assistiveDescribedBy?: string;
178
179
  emojiProvider?: Providers['emojiProvider'];
179
180
  taskDecisionProvider?: Promise<TaskDecisionProvider>;
@@ -207,7 +208,7 @@ export interface EditorPluginFeatureProps {
207
208
  allowPanel?: boolean | PanelPluginConfig;
208
209
  allowExtension?: boolean | ExtensionConfig;
209
210
  allowConfluenceInlineComment?: boolean;
210
- allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
211
+ allowTemplatePlaceholders?: boolean | PlaceholderTextPluginOptions;
211
212
  allowDate?: boolean | DatePluginOptions;
212
213
  allowLayouts?: boolean | LayoutPluginOptions;
213
214
  allowStatus?: boolean | {
@@ -259,14 +260,14 @@ export interface EditorPluginFeatureProps {
259
260
  /** @deprecated Use linking.smartLinks prop instead. */
260
261
  smartLinks?: CardOptions;
261
262
  allowAnalyticsGASV3?: boolean;
262
- codeBlock?: CodeBlockOptions;
263
- textFormatting?: TextFormattingOptions;
263
+ codeBlock?: CodeBlockPluginOptions;
264
+ textFormatting?: TextFormattingPluginOptions;
264
265
  placeholder?: string;
265
266
  placeholderBracketHint?: string;
266
267
  /**
267
268
  * Configure and extend editor linking behaviour
268
269
  */
269
270
  linking?: LinkingOptions;
270
- media?: MediaOptions;
271
+ media?: MediaPluginOptions;
271
272
  }
272
273
  export {};
@@ -0,0 +1 @@
1
+ export declare const mediaStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,10 @@
1
+ export declare const resizerItemClassName = "resizer-item";
2
+ export declare const resizerHoverZoneClassName = "resizer-hover-zone";
3
+ export declare const resizerExtendedZone = "resizer-is-extended";
4
+ export declare const resizerHandleClassName = "resizer-handle";
5
+ export declare const resizerHandleTrackClassName = "resizer-handle-track";
6
+ export declare const resizerHandleThumbClassName = "resizer-handle-thumb";
7
+ export declare const resizerDangerClassName = "resizer-handle-danger";
8
+ export declare const handleWrapperClass = "resizer-handle-wrapper";
9
+ export declare const resizerStyles: import("@emotion/react").SerializedStyles;
10
+ export declare const pragmaticResizerStyles: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "207.3.0",
3
+ "version": "207.5.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -79,7 +79,7 @@
79
79
  "uuid": "^3.1.0"
80
80
  },
81
81
  "peerDependencies": {
82
- "@atlaskit/link-provider": "^3.0.0",
82
+ "@atlaskit/link-provider": "^3.1.0",
83
83
  "@atlaskit/media-core": "^36.1.0",
84
84
  "react": "^18.2.0",
85
85
  "react-dom": "^18.2.0",
@@ -95,15 +95,15 @@
95
95
  "@atlaskit/editor-plugin-card": "^6.3.0",
96
96
  "@atlaskit/editor-plugin-list": "^4.2.0",
97
97
  "@atlaskit/editor-plugin-paste": "^3.3.0",
98
- "@atlaskit/link-provider": "^3.0.0",
99
- "@atlaskit/logo": "^18.0.0",
98
+ "@atlaskit/link-provider": "^3.1.0",
99
+ "@atlaskit/logo": "^18.1.0",
100
100
  "@atlaskit/media-core": "^36.1.0",
101
101
  "@atlaskit/media-integration-test-helpers": "workspace:^",
102
102
  "@atlaskit/media-test-helpers": "^36.0.0",
103
103
  "@atlaskit/modal-dialog": "^14.2.0",
104
104
  "@atlaskit/primitives": "^14.8.0",
105
105
  "@atlaskit/renderer": "^118.2.0",
106
- "@atlaskit/smart-card": "^38.4.0",
106
+ "@atlaskit/smart-card": "^38.5.0",
107
107
  "@atlaskit/synchrony-test-helpers": "workspace:^",
108
108
  "@atlaskit/toggle": "^15.0.0",
109
109
  "@atlaskit/util-data-test": "^18.0.0",
@@ -205,6 +205,10 @@
205
205
  "type": "boolean",
206
206
  "referenceOnly": true
207
207
  },
208
+ "platform_editor_offline_banner_toolbar_position": {
209
+ "type": "boolean",
210
+ "referenceOnly": true
211
+ },
208
212
  "platform_editor_disable_instrumented_plugin": {
209
213
  "type": "boolean"
210
214
  },