@atlaskit/editor-plugin-placeholder 6.6.4 → 6.6.6

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-placeholder
2
2
 
3
+ ## 6.6.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`58e8dc3afa08d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/58e8dc3afa08d) -
8
+ [ux] [EDITOR-2469] add fade in animation to placeholder on empty paragraph
9
+
10
+ ## 6.6.5
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 6.6.4
4
17
 
5
18
  ### Patch Changes
@@ -8,6 +8,7 @@ var _processRawValue = require("@atlaskit/editor-common/process-raw-value");
8
8
  var _utils = require("@atlaskit/editor-common/utils");
9
9
  var _model = require("@atlaskit/editor-prosemirror/model");
10
10
  var _view = require("@atlaskit/editor-prosemirror/view");
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
12
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
12
13
  var _animation = require("./animation");
13
14
  var _constants = require("./constants");
@@ -15,10 +16,12 @@ function createPlaceholderDecoration(editorState, placeholderText, placeholderPr
15
16
  var pos = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
16
17
  var initialDelayWhenUserTypedAndDeleted = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
17
18
  var placeholderADF = arguments.length > 6 ? arguments[6] : undefined;
19
+ var showOnEmptyParagraph = arguments.length > 7 ? arguments[7] : undefined;
18
20
  var placeholderDecoration = document.createElement('span');
19
21
  var placeholderNodeWithText = placeholderDecoration;
20
22
  placeholderDecoration.setAttribute('data-testid', _constants.placeholderTestId);
21
- placeholderDecoration.className = 'placeholder-decoration';
23
+ var shouldFadeIn = showOnEmptyParagraph && (0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_ga_blockers');
24
+ placeholderDecoration.className = shouldFadeIn ? 'placeholder-decoration placeholder-decoration-fade-in' : 'placeholder-decoration';
22
25
  placeholderDecoration.setAttribute('aria-hidden', 'true');
23
26
 
24
27
  // PM sets contenteditable to false on Decorations so Firefox doesn't display the flashing cursor
@@ -97,7 +97,8 @@ function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderText, empt
97
97
  placeholderText = _getPlaceholderState.placeholderText,
98
98
  pos = _getPlaceholderState.pos,
99
99
  typedAndDeleted = _getPlaceholderState.typedAndDeleted,
100
- contextPlaceholderADF = _getPlaceholderState.contextPlaceholderADF;
100
+ contextPlaceholderADF = _getPlaceholderState.contextPlaceholderADF,
101
+ showOnEmptyParagraph = _getPlaceholderState.showOnEmptyParagraph;
101
102
 
102
103
  // Decorations is still called after plugin is destroyed
103
104
  // So we need to make sure decorations is not called if plugin has been destroyed to prevent the placeholder animations' setTimeouts called infinitely
@@ -110,7 +111,7 @@ function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderText, empt
110
111
  var initialDelayWhenUserTypedAndDeleted = typedAndDeleted ? _constants.TYPEWRITER_TYPED_AND_DELETED_DELAY : 0;
111
112
  // contextPlaceholderADF takes precedence over the global placeholderADF
112
113
  var placeholderAdfToUse = contextPlaceholderADF || placeholderADF;
113
- return (0, _decorations.createPlaceholderDecoration)(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse);
114
+ return (0, _decorations.createPlaceholderDecoration)(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse, showOnEmptyParagraph);
114
115
  }
115
116
  return;
116
117
  }
@@ -116,10 +116,12 @@ function createPlaceholderDecoration(editorState, placeholderText, placeholderPr
116
116
  var pos = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
117
117
  var initialDelayWhenUserTypedAndDeleted = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
118
118
  var placeholderADF = arguments.length > 6 ? arguments[6] : undefined;
119
+ var showOnEmptyParagraph = arguments.length > 7 ? arguments[7] : undefined;
119
120
  var placeholderDecoration = document.createElement('span');
120
121
  var placeholderNodeWithText = placeholderDecoration;
121
122
  placeholderDecoration.setAttribute('data-testid', placeholderTestId);
122
- placeholderDecoration.className = 'placeholder-decoration';
123
+ var shouldFadeIn = showOnEmptyParagraph && (0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_ga_blockers');
124
+ placeholderDecoration.className = shouldFadeIn ? 'placeholder-decoration placeholder-decoration-fade-in' : 'placeholder-decoration';
123
125
  placeholderDecoration.setAttribute('aria-hidden', 'true');
124
126
 
125
127
  // PM sets contenteditable to false on Decorations so Firefox doesn't display the flashing cursor
@@ -500,7 +502,8 @@ function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderText, empt
500
502
  placeholderText = _getPlaceholderState.placeholderText,
501
503
  pos = _getPlaceholderState.pos,
502
504
  typedAndDeleted = _getPlaceholderState.typedAndDeleted,
503
- contextPlaceholderADF = _getPlaceholderState.contextPlaceholderADF;
505
+ contextPlaceholderADF = _getPlaceholderState.contextPlaceholderADF,
506
+ showOnEmptyParagraph = _getPlaceholderState.showOnEmptyParagraph;
504
507
 
505
508
  // Decorations is still called after plugin is destroyed
506
509
  // So we need to make sure decorations is not called if plugin has been destroyed to prevent the placeholder animations' setTimeouts called infinitely
@@ -513,7 +516,7 @@ function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderText, empt
513
516
  var initialDelayWhenUserTypedAndDeleted = typedAndDeleted ? TYPEWRITER_TYPED_AND_DELETED_DELAY : 0;
514
517
  // contextPlaceholderADF takes precedence over the global placeholderADF
515
518
  var placeholderAdfToUse = contextPlaceholderADF || placeholderADF;
516
- return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse);
519
+ return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse, showOnEmptyParagraph);
517
520
  }
518
521
  return;
519
522
  }
@@ -2,14 +2,16 @@ import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
2
2
  import { browser } from '@atlaskit/editor-common/utils';
3
3
  import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
4
4
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
7
  import { cycleThroughPlaceholderPrompts } from './animation';
7
8
  import { placeholderTestId } from './constants';
8
- export function createPlaceholderDecoration(editorState, placeholderText, placeholderPrompts, activeTypewriterTimeouts, pos = 1, initialDelayWhenUserTypedAndDeleted = 0, placeholderADF) {
9
+ export function createPlaceholderDecoration(editorState, placeholderText, placeholderPrompts, activeTypewriterTimeouts, pos = 1, initialDelayWhenUserTypedAndDeleted = 0, placeholderADF, showOnEmptyParagraph) {
9
10
  const placeholderDecoration = document.createElement('span');
10
11
  let placeholderNodeWithText = placeholderDecoration;
11
12
  placeholderDecoration.setAttribute('data-testid', placeholderTestId);
12
- placeholderDecoration.className = 'placeholder-decoration';
13
+ const shouldFadeIn = showOnEmptyParagraph && fg('platform_editor_ai_aifc_patch_ga_blockers');
14
+ placeholderDecoration.className = shouldFadeIn ? 'placeholder-decoration placeholder-decoration-fade-in' : 'placeholder-decoration';
13
15
  placeholderDecoration.setAttribute('aria-hidden', 'true');
14
16
 
15
17
  // PM sets contenteditable to false on Decorations so Firefox doesn't display the flashing cursor
@@ -90,7 +90,8 @@ export default function createPlugin(intl, defaultPlaceholderText, bracketPlaceh
90
90
  placeholderText,
91
91
  pos,
92
92
  typedAndDeleted,
93
- contextPlaceholderADF
93
+ contextPlaceholderADF,
94
+ showOnEmptyParagraph
94
95
  } = getPlaceholderState(editorState);
95
96
 
96
97
  // Decorations is still called after plugin is destroyed
@@ -104,7 +105,7 @@ export default function createPlugin(intl, defaultPlaceholderText, bracketPlaceh
104
105
  const initialDelayWhenUserTypedAndDeleted = typedAndDeleted ? TYPEWRITER_TYPED_AND_DELETED_DELAY : 0;
105
106
  // contextPlaceholderADF takes precedence over the global placeholderADF
106
107
  const placeholderAdfToUse = contextPlaceholderADF || placeholderADF;
107
- return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse);
108
+ return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse, showOnEmptyParagraph);
108
109
  }
109
110
  return;
110
111
  }
@@ -94,11 +94,12 @@ const cycleThroughPlaceholderPrompts = (placeholderPrompts, activeTypewriterTime
94
94
  startAnimationCycle();
95
95
  }
96
96
  };
97
- export function createPlaceholderDecoration(editorState, placeholderText, placeholderPrompts, activeTypewriterTimeouts, pos = 1, initialDelayWhenUserTypedAndDeleted = 0, placeholderADF) {
97
+ export function createPlaceholderDecoration(editorState, placeholderText, placeholderPrompts, activeTypewriterTimeouts, pos = 1, initialDelayWhenUserTypedAndDeleted = 0, placeholderADF, showOnEmptyParagraph) {
98
98
  const placeholderDecoration = document.createElement('span');
99
99
  let placeholderNodeWithText = placeholderDecoration;
100
100
  placeholderDecoration.setAttribute('data-testid', placeholderTestId);
101
- placeholderDecoration.className = 'placeholder-decoration';
101
+ const shouldFadeIn = showOnEmptyParagraph && fg('platform_editor_ai_aifc_patch_ga_blockers');
102
+ placeholderDecoration.className = shouldFadeIn ? 'placeholder-decoration placeholder-decoration-fade-in' : 'placeholder-decoration';
102
103
  placeholderDecoration.setAttribute('aria-hidden', 'true');
103
104
 
104
105
  // PM sets contenteditable to false on Decorations so Firefox doesn't display the flashing cursor
@@ -483,7 +484,8 @@ export function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderTex
483
484
  placeholderText,
484
485
  pos,
485
486
  typedAndDeleted,
486
- contextPlaceholderADF
487
+ contextPlaceholderADF,
488
+ showOnEmptyParagraph
487
489
  } = getPlaceholderState(editorState);
488
490
 
489
491
  // Decorations is still called after plugin is destroyed
@@ -497,7 +499,7 @@ export function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderTex
497
499
  const initialDelayWhenUserTypedAndDeleted = typedAndDeleted ? TYPEWRITER_TYPED_AND_DELETED_DELAY : 0;
498
500
  // contextPlaceholderADF takes precedence over the global placeholderADF
499
501
  const placeholderAdfToUse = contextPlaceholderADF || placeholderADF;
500
- return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse);
502
+ return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse, showOnEmptyParagraph);
501
503
  }
502
504
  return;
503
505
  }
@@ -2,6 +2,7 @@ import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
2
2
  import { browser } from '@atlaskit/editor-common/utils';
3
3
  import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
4
4
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
7
  import { cycleThroughPlaceholderPrompts } from './animation';
7
8
  import { placeholderTestId } from './constants';
@@ -9,10 +10,12 @@ export function createPlaceholderDecoration(editorState, placeholderText, placeh
9
10
  var pos = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
10
11
  var initialDelayWhenUserTypedAndDeleted = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
11
12
  var placeholderADF = arguments.length > 6 ? arguments[6] : undefined;
13
+ var showOnEmptyParagraph = arguments.length > 7 ? arguments[7] : undefined;
12
14
  var placeholderDecoration = document.createElement('span');
13
15
  var placeholderNodeWithText = placeholderDecoration;
14
16
  placeholderDecoration.setAttribute('data-testid', placeholderTestId);
15
- placeholderDecoration.className = 'placeholder-decoration';
17
+ var shouldFadeIn = showOnEmptyParagraph && fg('platform_editor_ai_aifc_patch_ga_blockers');
18
+ placeholderDecoration.className = shouldFadeIn ? 'placeholder-decoration placeholder-decoration-fade-in' : 'placeholder-decoration';
16
19
  placeholderDecoration.setAttribute('aria-hidden', 'true');
17
20
 
18
21
  // PM sets contenteditable to false on Decorations so Firefox doesn't display the flashing cursor
@@ -91,7 +91,8 @@ export default function createPlugin(intl, defaultPlaceholderText, bracketPlaceh
91
91
  placeholderText = _getPlaceholderState.placeholderText,
92
92
  pos = _getPlaceholderState.pos,
93
93
  typedAndDeleted = _getPlaceholderState.typedAndDeleted,
94
- contextPlaceholderADF = _getPlaceholderState.contextPlaceholderADF;
94
+ contextPlaceholderADF = _getPlaceholderState.contextPlaceholderADF,
95
+ showOnEmptyParagraph = _getPlaceholderState.showOnEmptyParagraph;
95
96
 
96
97
  // Decorations is still called after plugin is destroyed
97
98
  // So we need to make sure decorations is not called if plugin has been destroyed to prevent the placeholder animations' setTimeouts called infinitely
@@ -104,7 +105,7 @@ export default function createPlugin(intl, defaultPlaceholderText, bracketPlaceh
104
105
  var initialDelayWhenUserTypedAndDeleted = typedAndDeleted ? TYPEWRITER_TYPED_AND_DELETED_DELAY : 0;
105
106
  // contextPlaceholderADF takes precedence over the global placeholderADF
106
107
  var placeholderAdfToUse = contextPlaceholderADF || placeholderADF;
107
- return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse);
108
+ return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse, showOnEmptyParagraph);
108
109
  }
109
110
  return;
110
111
  }
@@ -106,10 +106,12 @@ export function createPlaceholderDecoration(editorState, placeholderText, placeh
106
106
  var pos = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
107
107
  var initialDelayWhenUserTypedAndDeleted = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
108
108
  var placeholderADF = arguments.length > 6 ? arguments[6] : undefined;
109
+ var showOnEmptyParagraph = arguments.length > 7 ? arguments[7] : undefined;
109
110
  var placeholderDecoration = document.createElement('span');
110
111
  var placeholderNodeWithText = placeholderDecoration;
111
112
  placeholderDecoration.setAttribute('data-testid', placeholderTestId);
112
- placeholderDecoration.className = 'placeholder-decoration';
113
+ var shouldFadeIn = showOnEmptyParagraph && fg('platform_editor_ai_aifc_patch_ga_blockers');
114
+ placeholderDecoration.className = shouldFadeIn ? 'placeholder-decoration placeholder-decoration-fade-in' : 'placeholder-decoration';
113
115
  placeholderDecoration.setAttribute('aria-hidden', 'true');
114
116
 
115
117
  // PM sets contenteditable to false on Decorations so Firefox doesn't display the flashing cursor
@@ -490,7 +492,8 @@ export function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderTex
490
492
  placeholderText = _getPlaceholderState.placeholderText,
491
493
  pos = _getPlaceholderState.pos,
492
494
  typedAndDeleted = _getPlaceholderState.typedAndDeleted,
493
- contextPlaceholderADF = _getPlaceholderState.contextPlaceholderADF;
495
+ contextPlaceholderADF = _getPlaceholderState.contextPlaceholderADF,
496
+ showOnEmptyParagraph = _getPlaceholderState.showOnEmptyParagraph;
494
497
 
495
498
  // Decorations is still called after plugin is destroyed
496
499
  // So we need to make sure decorations is not called if plugin has been destroyed to prevent the placeholder animations' setTimeouts called infinitely
@@ -503,7 +506,7 @@ export function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderTex
503
506
  var initialDelayWhenUserTypedAndDeleted = typedAndDeleted ? TYPEWRITER_TYPED_AND_DELETED_DELAY : 0;
504
507
  // contextPlaceholderADF takes precedence over the global placeholderADF
505
508
  var placeholderAdfToUse = contextPlaceholderADF || placeholderADF;
506
- return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse);
509
+ return createPlaceholderDecoration(editorState, placeholderText !== null && placeholderText !== void 0 ? placeholderText : '', placeholderPrompts, activeTypewriterTimeouts, pos, initialDelayWhenUserTypedAndDeleted, placeholderAdfToUse, showOnEmptyParagraph);
507
510
  }
508
511
  return;
509
512
  }
@@ -1,4 +1,4 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, placeholderPrompts?: string[], activeTypewriterTimeouts?: (() => void)[], pos?: number, initialDelayWhenUserTypedAndDeleted?: number, placeholderADF?: DocNode): DecorationSet;
4
+ export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, placeholderPrompts?: string[], activeTypewriterTimeouts?: (() => void)[], pos?: number, initialDelayWhenUserTypedAndDeleted?: number, placeholderADF?: DocNode, showOnEmptyParagraph?: boolean): DecorationSet;
@@ -8,6 +8,6 @@ import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
8
8
  import type { PlaceholderPlugin } from '../placeholderPluginType';
9
9
  export declare const EMPTY_PARAGRAPH_TIMEOUT_DELAY = 2000;
10
10
  export declare const pluginKey: PluginKey<any>;
11
- export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, placeholderPrompts?: string[], activeTypewriterTimeouts?: (() => void)[], pos?: number, initialDelayWhenUserTypedAndDeleted?: number, placeholderADF?: DocNode): DecorationSet;
11
+ export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, placeholderPrompts?: string[], activeTypewriterTimeouts?: (() => void)[], pos?: number, initialDelayWhenUserTypedAndDeleted?: number, placeholderADF?: DocNode, showOnEmptyParagraph?: boolean): DecorationSet;
12
12
  export declare function createPlugin(intl: IntlShape, defaultPlaceholderText?: string, bracketPlaceholderText?: string, emptyLinePlaceholder?: string, placeholderPrompts?: string[], withEmptyParagraph?: boolean, placeholderADF?: DocNode, api?: ExtractInjectionAPI<PlaceholderPlugin>): SafePlugin | undefined;
13
13
  export declare const placeholderPluginLegacy: PlaceholderPlugin;
@@ -1,4 +1,4 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, placeholderPrompts?: string[], activeTypewriterTimeouts?: (() => void)[], pos?: number, initialDelayWhenUserTypedAndDeleted?: number, placeholderADF?: DocNode): DecorationSet;
4
+ export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, placeholderPrompts?: string[], activeTypewriterTimeouts?: (() => void)[], pos?: number, initialDelayWhenUserTypedAndDeleted?: number, placeholderADF?: DocNode, showOnEmptyParagraph?: boolean): DecorationSet;
@@ -8,6 +8,6 @@ import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
8
8
  import type { PlaceholderPlugin } from '../placeholderPluginType';
9
9
  export declare const EMPTY_PARAGRAPH_TIMEOUT_DELAY = 2000;
10
10
  export declare const pluginKey: PluginKey<any>;
11
- export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, placeholderPrompts?: string[], activeTypewriterTimeouts?: (() => void)[], pos?: number, initialDelayWhenUserTypedAndDeleted?: number, placeholderADF?: DocNode): DecorationSet;
11
+ export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, placeholderPrompts?: string[], activeTypewriterTimeouts?: (() => void)[], pos?: number, initialDelayWhenUserTypedAndDeleted?: number, placeholderADF?: DocNode, showOnEmptyParagraph?: boolean): DecorationSet;
12
12
  export declare function createPlugin(intl: IntlShape, defaultPlaceholderText?: string, bracketPlaceholderText?: string, emptyLinePlaceholder?: string, placeholderPrompts?: string[], withEmptyParagraph?: boolean, placeholderADF?: DocNode, api?: ExtractInjectionAPI<PlaceholderPlugin>): SafePlugin | undefined;
13
13
  export declare const placeholderPluginLegacy: PlaceholderPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder",
3
- "version": "6.6.4",
3
+ "version": "6.6.6",
4
4
  "description": "Placeholder plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,15 +31,15 @@
31
31
  "@atlaskit/editor-plugin-composition": "^5.0.0",
32
32
  "@atlaskit/editor-plugin-focus": "^5.0.0",
33
33
  "@atlaskit/editor-plugin-show-diff": "^3.3.0",
34
- "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
34
+ "@atlaskit/editor-plugin-type-ahead": "^6.6.0",
35
35
  "@atlaskit/editor-prosemirror": "^7.2.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/tmp-editor-statsig": "^16.0.0",
38
- "@atlaskit/tokens": "^8.6.0",
37
+ "@atlaskit/tmp-editor-statsig": "^16.2.0",
38
+ "@atlaskit/tokens": "^9.0.0",
39
39
  "@babel/runtime": "^7.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@atlaskit/editor-common": "^110.46.0",
42
+ "@atlaskit/editor-common": "^110.49.0",
43
43
  "react": "^18.2.0",
44
44
  "react-dom": "^18.2.0",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"