@atlaskit/editor-plugin-placeholder 2.0.2 → 2.0.4
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 2.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#122838](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122838)
|
|
14
|
+
[`ebcf63371e09c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ebcf63371e09c) -
|
|
15
|
+
ED-26952 Update placeholder text to remove quotes around /
|
|
16
|
+
|
|
3
17
|
## 2.0.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -20,8 +20,8 @@ var placeholderTestId = exports.placeholderTestId = 'placeholder-test-id';
|
|
|
20
20
|
|
|
21
21
|
// TODO: Use i18n for new placeholders
|
|
22
22
|
var SHORT_NODE_PLACEHOLDER_TEXT = exports.SHORT_NODE_PLACEHOLDER_TEXT = '/ to insert';
|
|
23
|
-
var NODE_PLACEHOLDER_TEXT = exports.NODE_PLACEHOLDER_TEXT = 'Type
|
|
24
|
-
var EMPTY_LINE_PLACEHOLDER_TEXT = exports.EMPTY_LINE_PLACEHOLDER_TEXT = 'Select + or type
|
|
23
|
+
var NODE_PLACEHOLDER_TEXT = exports.NODE_PLACEHOLDER_TEXT = 'Type / to insert elements';
|
|
24
|
+
var EMPTY_LINE_PLACEHOLDER_TEXT = exports.EMPTY_LINE_PLACEHOLDER_TEXT = 'Select + or type / to insert elements';
|
|
25
25
|
var nodeTypesWithLongPlaceholderText = exports.nodeTypesWithLongPlaceholderText = ['expand', 'panel'];
|
|
26
26
|
var nodeTypesWithShortPlaceholderText = exports.nodeTypesWithShortPlaceholderText = ['tableCell', 'tableHeader'];
|
|
27
27
|
function createPlaceholderDecoration(editorState, placeholderText) {
|
|
@@ -11,8 +11,8 @@ export const placeholderTestId = 'placeholder-test-id';
|
|
|
11
11
|
|
|
12
12
|
// TODO: Use i18n for new placeholders
|
|
13
13
|
export const SHORT_NODE_PLACEHOLDER_TEXT = '/ to insert';
|
|
14
|
-
export const NODE_PLACEHOLDER_TEXT = 'Type
|
|
15
|
-
export const EMPTY_LINE_PLACEHOLDER_TEXT = 'Select + or type
|
|
14
|
+
export const NODE_PLACEHOLDER_TEXT = 'Type / to insert elements';
|
|
15
|
+
export const EMPTY_LINE_PLACEHOLDER_TEXT = 'Select + or type / to insert elements';
|
|
16
16
|
export const nodeTypesWithLongPlaceholderText = ['expand', 'panel'];
|
|
17
17
|
export const nodeTypesWithShortPlaceholderText = ['tableCell', 'tableHeader'];
|
|
18
18
|
export function createPlaceholderDecoration(editorState, placeholderText, pos = 1) {
|
|
@@ -11,8 +11,8 @@ export var placeholderTestId = 'placeholder-test-id';
|
|
|
11
11
|
|
|
12
12
|
// TODO: Use i18n for new placeholders
|
|
13
13
|
export var SHORT_NODE_PLACEHOLDER_TEXT = '/ to insert';
|
|
14
|
-
export var NODE_PLACEHOLDER_TEXT = 'Type
|
|
15
|
-
export var EMPTY_LINE_PLACEHOLDER_TEXT = 'Select + or type
|
|
14
|
+
export var NODE_PLACEHOLDER_TEXT = 'Type / to insert elements';
|
|
15
|
+
export var EMPTY_LINE_PLACEHOLDER_TEXT = 'Select + or type / to insert elements';
|
|
16
16
|
export var nodeTypesWithLongPlaceholderText = ['expand', 'panel'];
|
|
17
17
|
export var nodeTypesWithShortPlaceholderText = ['tableCell', 'tableHeader'];
|
|
18
18
|
export function createPlaceholderDecoration(editorState, placeholderText) {
|
|
@@ -7,8 +7,8 @@ import type { PlaceholderPlugin } from './placeholderPluginType';
|
|
|
7
7
|
export declare const pluginKey: PluginKey<any>;
|
|
8
8
|
export declare const placeholderTestId = "placeholder-test-id";
|
|
9
9
|
export declare const SHORT_NODE_PLACEHOLDER_TEXT = "/ to insert";
|
|
10
|
-
export declare const NODE_PLACEHOLDER_TEXT = "Type
|
|
11
|
-
export declare const EMPTY_LINE_PLACEHOLDER_TEXT = "Select + or type
|
|
10
|
+
export declare const NODE_PLACEHOLDER_TEXT = "Type / to insert elements";
|
|
11
|
+
export declare const EMPTY_LINE_PLACEHOLDER_TEXT = "Select + or type / to insert elements";
|
|
12
12
|
export declare const nodeTypesWithLongPlaceholderText: string[];
|
|
13
13
|
export declare const nodeTypesWithShortPlaceholderText: string[];
|
|
14
14
|
export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, pos?: number): DecorationSet;
|
|
@@ -7,8 +7,8 @@ import type { PlaceholderPlugin } from './placeholderPluginType';
|
|
|
7
7
|
export declare const pluginKey: PluginKey<any>;
|
|
8
8
|
export declare const placeholderTestId = "placeholder-test-id";
|
|
9
9
|
export declare const SHORT_NODE_PLACEHOLDER_TEXT = "/ to insert";
|
|
10
|
-
export declare const NODE_PLACEHOLDER_TEXT = "Type
|
|
11
|
-
export declare const EMPTY_LINE_PLACEHOLDER_TEXT = "Select + or type
|
|
10
|
+
export declare const NODE_PLACEHOLDER_TEXT = "Type / to insert elements";
|
|
11
|
+
export declare const EMPTY_LINE_PLACEHOLDER_TEXT = "Select + or type / to insert elements";
|
|
12
12
|
export declare const nodeTypesWithLongPlaceholderText: string[];
|
|
13
13
|
export declare const nodeTypesWithShortPlaceholderText: string[];
|
|
14
14
|
export declare function createPlaceholderDecoration(editorState: EditorState, placeholderText: string, pos?: number): DecorationSet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^102.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-composition": "^1.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-focus": "^1.5.0",
|
|
37
37
|
"@atlaskit/editor-plugin-type-ahead": "^2.1.0",
|