@atlaskit/editor-core 207.6.0 → 207.7.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 (47) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +13 -1
  3. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +7 -1
  4. package/dist/cjs/ui/ContentStyles/media.js +1 -1
  5. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +17 -18
  6. package/dist/cjs/ui/EditorContentContainer/styles/codeBlockStyles.js +216 -0
  7. package/dist/cjs/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +39 -0
  8. package/dist/cjs/ui/EditorContentContainer/styles/overflowShadowStyles.js +13 -0
  9. package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +78 -0
  10. package/dist/cjs/version-wrapper.js +1 -1
  11. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +13 -1
  12. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +7 -1
  13. package/dist/es2019/ui/ContentStyles/media.js +1 -0
  14. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +13 -57
  15. package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +266 -0
  16. package/dist/es2019/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +41 -0
  17. package/dist/es2019/ui/EditorContentContainer/styles/overflowShadowStyles.js +47 -0
  18. package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +71 -0
  19. package/dist/es2019/version-wrapper.js +1 -1
  20. package/dist/esm/ui/Appearance/FullPage/FullPage.js +13 -1
  21. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +7 -1
  22. package/dist/esm/ui/ContentStyles/media.js +1 -1
  23. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +16 -17
  24. package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +208 -0
  25. package/dist/esm/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +32 -0
  26. package/dist/esm/ui/EditorContentContainer/styles/overflowShadowStyles.js +6 -0
  27. package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +71 -0
  28. package/dist/esm/version-wrapper.js +1 -1
  29. package/dist/types/create-editor/create-universal-preset.d.ts +3 -12
  30. package/dist/types/presets/universal.d.ts +3 -12
  31. package/dist/types/presets/useUniversalPreset.d.ts +3 -12
  32. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
  33. package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -1
  34. package/dist/types/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +14 -0
  35. package/dist/types/ui/EditorContentContainer/styles/firstBlockNodeStyles.d.ts +2 -0
  36. package/dist/types/ui/EditorContentContainer/styles/overflowShadowStyles.d.ts +1 -0
  37. package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +5 -0
  38. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +3 -12
  39. package/dist/types-ts4.5/presets/universal.d.ts +3 -12
  40. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +3 -12
  41. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
  42. package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -1
  43. package/dist/types-ts4.5/ui/EditorContentContainer/styles/codeBlockStyles.d.ts +14 -0
  44. package/dist/types-ts4.5/ui/EditorContentContainer/styles/firstBlockNodeStyles.d.ts +2 -0
  45. package/dist/types-ts4.5/ui/EditorContentContainer/styles/overflowShadowStyles.d.ts +1 -0
  46. package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionStyles.d.ts +5 -0
  47. package/package.json +5 -5
@@ -351,10 +351,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
351
351
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
352
352
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
353
353
  }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
354
- sharedState: {
355
- hasHadInteraction: boolean;
356
- interactionState: "hasNotHadInteraction" | null;
357
- };
354
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
358
355
  commands: {
359
356
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
360
357
  };
@@ -369,10 +366,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
369
366
  pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
370
367
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
371
368
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
372
- sharedState: {
373
- hasHadInteraction: boolean;
374
- interactionState: "hasNotHadInteraction" | null;
375
- };
369
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
376
370
  commands: {
377
371
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
378
372
  };
@@ -1144,10 +1138,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1144
1138
  }, import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
1145
1139
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
1146
1140
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
1147
- sharedState: {
1148
- hasHadInteraction: boolean;
1149
- interactionState: "hasNotHadInteraction" | null;
1150
- };
1141
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
1151
1142
  commands: {
1152
1143
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
1153
1144
  };
@@ -33,7 +33,7 @@ interface FullPageEditorContentAreaProps {
33
33
  popupsScrollableElement: HTMLElement | undefined;
34
34
  providerFactory: ProviderFactory;
35
35
  wrapperElement: HTMLElement | null;
36
- hasHadInteraction: boolean;
36
+ hasHadInteraction?: boolean;
37
37
  featureFlags?: FeatureFlags;
38
38
  viewMode: ViewMode | undefined;
39
39
  isEditorToolbarHidden?: boolean;
@@ -5,7 +5,6 @@
5
5
  import React from 'react';
6
6
  import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  export declare const placeholderStyles: import("@emotion/react").SerializedStyles;
8
- export declare const fixBlockControlStylesSSR: () => import("@emotion/react").SerializedStyles;
9
8
  export type EditorContentContainerProps = {
10
9
  className?: string;
11
10
  children?: React.ReactNode;
@@ -0,0 +1,14 @@
1
+ export declare const CodeBlockSharedCssClassName: {
2
+ CODEBLOCK_CONTAINER: string;
3
+ CODEBLOCK_START: string;
4
+ CODEBLOCK_END: string;
5
+ CODEBLOCK_CONTENT_WRAPPER: string;
6
+ CODEBLOCK_LINE_NUMBER_GUTTER: string;
7
+ CODEBLOCK_CONTENT: string;
8
+ DS_CODEBLOCK: string;
9
+ CODEBLOCK_CONTENT_WRAPPED: string;
10
+ CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: string;
11
+ };
12
+ export declare const codeBlockStyles: import("@emotion/react").SerializedStyles;
13
+ export declare const firstCodeBlockWithNoMargin: import("@emotion/react").SerializedStyles;
14
+ export declare const firstCodeBlockWithNoMarginOld: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,2 @@
1
+ export declare const firstBlockNodeStylesOld: import("@emotion/react").SerializedStyles;
2
+ export declare const firstBlockNodeStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1 @@
1
+ export declare const overflowShadowStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,5 @@
1
+ export declare const hideNativeBrowserTextSelectionStyles: import("@emotion/react").SerializedStyles;
2
+ export declare const borderSelectionStyles: import("@emotion/react").SerializedStyles;
3
+ export declare const boxShadowSelectionStyles: import("@emotion/react").SerializedStyles;
4
+ export declare const backgroundSelectionStyles: import("@emotion/react").SerializedStyles;
5
+ export declare const blanketSelectionStyles: import("@emotion/react").SerializedStyles;
@@ -496,10 +496,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
496
496
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
497
497
  }, import("@atlaskit/editor-common/types").FeatureFlags>>,
498
498
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
499
- sharedState: {
500
- hasHadInteraction: boolean;
501
- interactionState: "hasNotHadInteraction" | null;
502
- };
499
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
503
500
  commands: {
504
501
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
505
502
  };
@@ -517,10 +514,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
517
514
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
518
515
  dependencies: [
519
516
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
520
- sharedState: {
521
- hasHadInteraction: boolean;
522
- interactionState: "hasNotHadInteraction" | null;
523
- };
517
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
524
518
  commands: {
525
519
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
526
520
  };
@@ -1431,10 +1425,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1431
1425
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
1432
1426
  }, undefined>,
1433
1427
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
1434
- sharedState: {
1435
- hasHadInteraction: boolean;
1436
- interactionState: "hasNotHadInteraction" | null;
1437
- };
1428
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
1438
1429
  commands: {
1439
1430
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
1440
1431
  };
@@ -548,10 +548,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
548
548
  sharedState: FeatureFlags;
549
549
  }, FeatureFlags>>,
550
550
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
551
- sharedState: {
552
- hasHadInteraction: boolean;
553
- interactionState: "hasNotHadInteraction" | null;
554
- };
551
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
555
552
  commands: {
556
553
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
557
554
  };
@@ -569,10 +566,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
569
566
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
570
567
  dependencies: [
571
568
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
572
- sharedState: {
573
- hasHadInteraction: boolean;
574
- interactionState: "hasNotHadInteraction" | null;
575
- };
569
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
576
570
  commands: {
577
571
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
578
572
  };
@@ -1483,10 +1477,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1483
1477
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
1484
1478
  }, undefined>,
1485
1479
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
1486
- sharedState: {
1487
- hasHadInteraction: boolean;
1488
- interactionState: "hasNotHadInteraction" | null;
1489
- };
1480
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
1490
1481
  commands: {
1491
1482
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
1492
1483
  };
@@ -496,10 +496,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
496
496
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
497
497
  }, import("@atlaskit/editor-common/types").FeatureFlags>>,
498
498
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
499
- sharedState: {
500
- hasHadInteraction: boolean;
501
- interactionState: "hasNotHadInteraction" | null;
502
- };
499
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
503
500
  commands: {
504
501
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
505
502
  };
@@ -517,10 +514,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
517
514
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
518
515
  dependencies: [
519
516
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
520
- sharedState: {
521
- hasHadInteraction: boolean;
522
- interactionState: "hasNotHadInteraction" | null;
523
- };
517
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
524
518
  commands: {
525
519
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
526
520
  };
@@ -1431,10 +1425,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1431
1425
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
1432
1426
  }, undefined>,
1433
1427
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
1434
- sharedState: {
1435
- hasHadInteraction: boolean;
1436
- interactionState: "hasNotHadInteraction" | null;
1437
- };
1428
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
1438
1429
  commands: {
1439
1430
  handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
1440
1431
  };
@@ -35,7 +35,7 @@ interface FullPageEditorContentAreaProps {
35
35
  popupsScrollableElement: HTMLElement | undefined;
36
36
  providerFactory: ProviderFactory;
37
37
  wrapperElement: HTMLElement | null;
38
- hasHadInteraction: boolean;
38
+ hasHadInteraction?: boolean;
39
39
  featureFlags?: FeatureFlags;
40
40
  viewMode: ViewMode | undefined;
41
41
  isEditorToolbarHidden?: boolean;
@@ -5,7 +5,6 @@
5
5
  import React from 'react';
6
6
  import type { EditorAppearance, FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  export declare const placeholderStyles: import("@emotion/react").SerializedStyles;
8
- export declare const fixBlockControlStylesSSR: () => import("@emotion/react").SerializedStyles;
9
8
  export type EditorContentContainerProps = {
10
9
  className?: string;
11
10
  children?: React.ReactNode;
@@ -0,0 +1,14 @@
1
+ export declare const CodeBlockSharedCssClassName: {
2
+ CODEBLOCK_CONTAINER: string;
3
+ CODEBLOCK_START: string;
4
+ CODEBLOCK_END: string;
5
+ CODEBLOCK_CONTENT_WRAPPER: string;
6
+ CODEBLOCK_LINE_NUMBER_GUTTER: string;
7
+ CODEBLOCK_CONTENT: string;
8
+ DS_CODEBLOCK: string;
9
+ CODEBLOCK_CONTENT_WRAPPED: string;
10
+ CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: string;
11
+ };
12
+ export declare const codeBlockStyles: import("@emotion/react").SerializedStyles;
13
+ export declare const firstCodeBlockWithNoMargin: import("@emotion/react").SerializedStyles;
14
+ export declare const firstCodeBlockWithNoMarginOld: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,2 @@
1
+ export declare const firstBlockNodeStylesOld: import("@emotion/react").SerializedStyles;
2
+ export declare const firstBlockNodeStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1 @@
1
+ export declare const overflowShadowStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,5 @@
1
+ export declare const hideNativeBrowserTextSelectionStyles: import("@emotion/react").SerializedStyles;
2
+ export declare const borderSelectionStyles: import("@emotion/react").SerializedStyles;
3
+ export declare const boxShadowSelectionStyles: import("@emotion/react").SerializedStyles;
4
+ export declare const backgroundSelectionStyles: import("@emotion/react").SerializedStyles;
5
+ export declare const blanketSelectionStyles: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "207.6.0",
3
+ "version": "207.7.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^23.2.0",
48
48
  "@atlaskit/css": "^0.10.0",
49
- "@atlaskit/editor-common": "^105.8.0",
49
+ "@atlaskit/editor-common": "^105.9.0",
50
50
  "@atlaskit/editor-json-transformer": "^8.24.0",
51
51
  "@atlaskit/editor-performance-metrics": "^2.1.0",
52
52
  "@atlaskit/editor-plugin-quick-insert": "^2.5.0",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/editor-prosemirror": "7.0.0",
55
55
  "@atlaskit/editor-shared-styles": "^3.4.0",
56
56
  "@atlaskit/emoji": "^69.2.0",
57
- "@atlaskit/icon": "^26.1.0",
57
+ "@atlaskit/icon": "^26.2.0",
58
58
  "@atlaskit/link": "^3.2.0",
59
59
  "@atlaskit/media-card": "^79.3.0",
60
60
  "@atlaskit/mention": "^24.2.0",
@@ -88,7 +88,7 @@
88
88
  "devDependencies": {
89
89
  "@af/editor-libra": "workspace:^",
90
90
  "@af/visual-regression": "workspace:^",
91
- "@atlaskit/adf-utils": "^19.19.0",
91
+ "@atlaskit/adf-utils": "^19.20.0",
92
92
  "@atlaskit/analytics-listeners": "^9.0.0",
93
93
  "@atlaskit/collab-provider": "^10.16.0",
94
94
  "@atlaskit/editor-plugin-annotation": "^2.8.0",
@@ -102,7 +102,7 @@
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
- "@atlaskit/renderer": "^118.2.0",
105
+ "@atlaskit/renderer": "^118.3.0",
106
106
  "@atlaskit/smart-card": "^38.5.0",
107
107
  "@atlaskit/synchrony-test-helpers": "workspace:^",
108
108
  "@atlaskit/toggle": "^15.0.0",