@atlaskit/editor-core 209.0.0 → 209.0.1

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 (50) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/create-editor/ReactEditorView.js +2 -10
  3. package/dist/cjs/version-wrapper.js +1 -1
  4. package/dist/es2019/create-editor/ReactEditorView.js +2 -10
  5. package/dist/es2019/version-wrapper.js +1 -1
  6. package/dist/esm/create-editor/ReactEditorView.js +2 -10
  7. package/dist/esm/version-wrapper.js +1 -1
  8. package/dist/types/composable-editor/editor-internal.d.ts +0 -1
  9. package/dist/types/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
  10. package/dist/types/create-editor/create-universal-preset.d.ts +79 -920
  11. package/dist/types/create-editor/editorStateNotificationPlugin.d.ts +2 -2
  12. package/dist/types/create-editor/get-ui-component.d.ts +0 -1
  13. package/dist/types/presets/universal.d.ts +79 -925
  14. package/dist/types/presets/useUniversalPreset.d.ts +79 -920
  15. package/dist/types/test-utils.d.ts +1 -1
  16. package/dist/types/types/with-appearance-component.d.ts +0 -1
  17. package/dist/types/ui/Addon/types.d.ts +0 -1
  18. package/dist/types/ui/Appearance/Chromeless.d.ts +7 -7
  19. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +7 -7
  20. package/dist/types/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +1 -1
  21. package/dist/types/ui/CollapsedEditor/index.d.ts +1 -1
  22. package/dist/types/ui/ContentStyles/ai-panels.d.ts +1 -1
  23. package/dist/types/ui/ContentStyles/layout.d.ts +1 -1
  24. package/dist/types/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -1
  25. package/dist/types/ui/Toolbar/Toolbar.d.ts +0 -1
  26. package/dist/types/utils/is-full-page.d.ts +1 -1
  27. package/dist/types/utils/prepare-extension-provider.d.ts +1 -1
  28. package/dist/types/utils/prepare-quick-insert-provider.d.ts +0 -1
  29. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +0 -1
  30. package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
  31. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +104 -1073
  32. package/dist/types-ts4.5/create-editor/editorStateNotificationPlugin.d.ts +2 -2
  33. package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +0 -1
  34. package/dist/types-ts4.5/presets/universal.d.ts +104 -1078
  35. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +104 -1073
  36. package/dist/types-ts4.5/test-utils.d.ts +1 -1
  37. package/dist/types-ts4.5/types/with-appearance-component.d.ts +0 -1
  38. package/dist/types-ts4.5/ui/Addon/types.d.ts +0 -1
  39. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +7 -7
  40. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +7 -7
  41. package/dist/types-ts4.5/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +1 -1
  42. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +1 -1
  43. package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +1 -1
  44. package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +1 -1
  45. package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -1
  46. package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +0 -1
  47. package/dist/types-ts4.5/utils/is-full-page.d.ts +1 -1
  48. package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +1 -1
  49. package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +0 -1
  50. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 209.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#172541](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172541)
8
+ [`6da45cbd2c77f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6da45cbd2c77f) -
9
+ clean up FF for batch media update attributes
10
+ - Updated dependencies
11
+
3
12
  ## 209.0.0
4
13
 
5
14
  ### Major Changes
@@ -30,7 +30,6 @@ var _view = require("@atlaskit/editor-prosemirror/view");
30
30
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
31
31
  var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
32
32
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
33
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
34
33
  var _useProviders = require("../composable-editor/hooks/useProviders");
35
34
  var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
36
35
  var _getNodesCount = require("../utils/getNodesCount");
@@ -581,12 +580,7 @@ function ReactEditorView(props) {
581
580
  }
582
581
  }
583
582
  if (!viewRef.current && node) {
584
- // make sure this doesn't expose the experiment
585
- if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', true, {
586
- exposure: false
587
- })) {
588
- (0, _nodeVisibility.nodeVisibilityManager)(node).initialiseNodeObserver();
589
- }
583
+ (0, _nodeVisibility.nodeVisibilityManager)(node).initialiseNodeObserver();
590
584
  var view = createEditorView(node);
591
585
  if ((0, _platformFeatureFlags.fg)('platform_editor_reduce_scroll_jump_on_editor_start')) {
592
586
  if (mitigateScrollJump) {
@@ -662,9 +656,7 @@ function ReactEditorView(props) {
662
656
  } else {
663
657
  viewRef.current.destroy(); // Destroys the dom node & all node views
664
658
  }
665
- if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', true)) {
666
- (0, _nodeVisibility.nodeVisibilityManager)(viewRef.current.dom).disconnect();
667
- }
659
+ (0, _nodeVisibility.nodeVisibilityManager)(viewRef.current.dom).disconnect();
668
660
  viewRef.current = undefined;
669
661
  }
670
662
  }, [createEditorView, onEditorCreated, eventDispatcher, shouldFocus, __livePage, onEditorDestroyed, handleAnalyticsEvent, mitigateScrollJump]);
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "208.8.0";
8
+ var version = exports.version = "209.0.0";
@@ -18,7 +18,6 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
18
18
  import { fg } from '@atlaskit/platform-feature-flags';
19
19
  import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
20
20
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
22
21
  import { useProviders } from '../composable-editor/hooks/useProviders';
23
22
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
24
23
  import { getNodesCount } from '../utils/getNodesCount';
@@ -530,12 +529,7 @@ export function ReactEditorView(props) {
530
529
  }
531
530
  }
532
531
  if (!viewRef.current && node) {
533
- // make sure this doesn't expose the experiment
534
- if (editorExperiment('platform_editor_nodevisibility', true, {
535
- exposure: false
536
- })) {
537
- nodeVisibilityManager(node).initialiseNodeObserver();
538
- }
532
+ nodeVisibilityManager(node).initialiseNodeObserver();
539
533
  const view = createEditorView(node);
540
534
  if (fg('platform_editor_reduce_scroll_jump_on_editor_start')) {
541
535
  if (mitigateScrollJump) {
@@ -609,9 +603,7 @@ export function ReactEditorView(props) {
609
603
  } else {
610
604
  viewRef.current.destroy(); // Destroys the dom node & all node views
611
605
  }
612
- if (editorExperiment('platform_editor_nodevisibility', true)) {
613
- nodeVisibilityManager(viewRef.current.dom).disconnect();
614
- }
606
+ nodeVisibilityManager(viewRef.current.dom).disconnect();
615
607
  viewRef.current = undefined;
616
608
  }
617
609
  }, [createEditorView, onEditorCreated, eventDispatcher, shouldFocus, __livePage, onEditorDestroyed, handleAnalyticsEvent, mitigateScrollJump]);
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "208.8.0";
2
+ export const version = "209.0.0";
@@ -26,7 +26,6 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
26
26
  import { fg } from '@atlaskit/platform-feature-flags';
27
27
  import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
28
28
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
29
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
30
29
  import { useProviders } from '../composable-editor/hooks/useProviders';
31
30
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
32
31
  import { getNodesCount } from '../utils/getNodesCount';
@@ -571,12 +570,7 @@ export function ReactEditorView(props) {
571
570
  }
572
571
  }
573
572
  if (!viewRef.current && node) {
574
- // make sure this doesn't expose the experiment
575
- if (editorExperiment('platform_editor_nodevisibility', true, {
576
- exposure: false
577
- })) {
578
- nodeVisibilityManager(node).initialiseNodeObserver();
579
- }
573
+ nodeVisibilityManager(node).initialiseNodeObserver();
580
574
  var view = createEditorView(node);
581
575
  if (fg('platform_editor_reduce_scroll_jump_on_editor_start')) {
582
576
  if (mitigateScrollJump) {
@@ -652,9 +646,7 @@ export function ReactEditorView(props) {
652
646
  } else {
653
647
  viewRef.current.destroy(); // Destroys the dom node & all node views
654
648
  }
655
- if (editorExperiment('platform_editor_nodevisibility', true)) {
656
- nodeVisibilityManager(viewRef.current.dom).disconnect();
657
- }
649
+ nodeVisibilityManager(viewRef.current.dom).disconnect();
658
650
  viewRef.current = undefined;
659
651
  }
660
652
  }, [createEditorView, onEditorCreated, eventDispatcher, shouldFocus, __livePage, onEditorDestroyed, handleAnalyticsEvent, mitigateScrollJump]);
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "208.8.0";
2
+ export var version = "209.0.0";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { jsx } from '@emotion/react';
3
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
4
3
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
@@ -8,6 +8,6 @@ export declare const useDispatchTransaction: ({ onChange, dispatchAnalyticsEvent
8
8
  onChange: EditorOnChangeHandler | undefined;
9
9
  dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
10
10
  onEditorViewUpdated: (params: EditorViewStateUpdatedCallbackProps) => void;
11
- isRemoteReplaceDocumentTransaction?: ((tr: Transaction) => boolean) | undefined;
11
+ isRemoteReplaceDocumentTransaction?: (tr: Transaction) => boolean;
12
12
  }) => DispatchTransaction;
13
13
  export {};