@atlaskit/editor-plugin-placeholder-text 7.1.8 → 7.1.9
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder-text
|
|
2
2
|
|
|
3
|
+
## 7.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
|
|
8
|
+
tsignores added for help-center local consumpton removed
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.1.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -54,8 +54,6 @@ function createPlugin(dispatch, options, api) {
|
|
|
54
54
|
return newState;
|
|
55
55
|
} else if (state.showInsertPanelAt) {
|
|
56
56
|
var _newState = {
|
|
57
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
58
|
-
|
|
59
57
|
showInsertPanelAt: tr.mapping.map(state.showInsertPanelAt),
|
|
60
58
|
allowInserting: allowInserting
|
|
61
59
|
};
|
|
@@ -65,10 +63,7 @@ function createPlugin(dispatch, options, api) {
|
|
|
65
63
|
return state;
|
|
66
64
|
}
|
|
67
65
|
},
|
|
68
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
69
66
|
appendTransaction: function appendTransaction(transactions, oldState, newState) {
|
|
70
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
71
|
-
|
|
72
67
|
if (transactions.some(function (txn) {
|
|
73
68
|
return txn.docChanged;
|
|
74
69
|
})) {
|
|
@@ -108,11 +103,7 @@ function createPlugin(dispatch, options, api) {
|
|
|
108
103
|
},
|
|
109
104
|
props: {
|
|
110
105
|
decorations: _cursor.drawFakeTextCursor,
|
|
111
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
112
|
-
|
|
113
106
|
handleDOMEvents: {
|
|
114
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
115
|
-
|
|
116
107
|
beforeinput: function beforeinput(view, event) {
|
|
117
108
|
var state = view.state;
|
|
118
109
|
if (event instanceof InputEvent && !event.isComposing && event.inputType === 'insertText' && (0, _selectionUtils.isSelectionAtPlaceholder)(view.state.selection)) {
|
|
@@ -134,8 +125,6 @@ function createPlugin(dispatch, options, api) {
|
|
|
134
125
|
return false;
|
|
135
126
|
}
|
|
136
127
|
},
|
|
137
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
138
|
-
|
|
139
128
|
nodeViews: {
|
|
140
129
|
placeholder: function placeholder(node, view, getPos) {
|
|
141
130
|
return new _placeholderTextNodeview.PlaceholderTextNodeView(node, view, getPos);
|
|
@@ -44,8 +44,6 @@ export function createPlugin(dispatch, options, api) {
|
|
|
44
44
|
return newState;
|
|
45
45
|
} else if (state.showInsertPanelAt) {
|
|
46
46
|
const newState = {
|
|
47
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
48
|
-
|
|
49
47
|
showInsertPanelAt: tr.mapping.map(state.showInsertPanelAt),
|
|
50
48
|
allowInserting
|
|
51
49
|
};
|
|
@@ -55,11 +53,7 @@ export function createPlugin(dispatch, options, api) {
|
|
|
55
53
|
return state;
|
|
56
54
|
}
|
|
57
55
|
},
|
|
58
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
59
|
-
|
|
60
56
|
appendTransaction(transactions, oldState, newState) {
|
|
61
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
62
|
-
|
|
63
57
|
if (transactions.some(txn => txn.docChanged)) {
|
|
64
58
|
const didPlaceholderExistBeforeTxn = oldState.selection.$head.nodeAfter === newState.selection.$head.nodeAfter;
|
|
65
59
|
const adjacentNode = newState.selection.$head.nodeAfter;
|
|
@@ -102,11 +96,7 @@ export function createPlugin(dispatch, options, api) {
|
|
|
102
96
|
},
|
|
103
97
|
props: {
|
|
104
98
|
decorations: drawFakeTextCursor,
|
|
105
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
106
|
-
|
|
107
99
|
handleDOMEvents: {
|
|
108
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
109
|
-
|
|
110
100
|
beforeinput: (view, event) => {
|
|
111
101
|
const {
|
|
112
102
|
state
|
|
@@ -130,8 +120,6 @@ export function createPlugin(dispatch, options, api) {
|
|
|
130
120
|
return false;
|
|
131
121
|
}
|
|
132
122
|
},
|
|
133
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
134
|
-
|
|
135
123
|
nodeViews: {
|
|
136
124
|
placeholder: (node, view, getPos) => new PlaceholderTextNodeView(node, view, getPos)
|
|
137
125
|
}
|
|
@@ -46,8 +46,6 @@ export function createPlugin(dispatch, options, api) {
|
|
|
46
46
|
return newState;
|
|
47
47
|
} else if (state.showInsertPanelAt) {
|
|
48
48
|
var _newState = {
|
|
49
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
50
|
-
|
|
51
49
|
showInsertPanelAt: tr.mapping.map(state.showInsertPanelAt),
|
|
52
50
|
allowInserting: allowInserting
|
|
53
51
|
};
|
|
@@ -57,10 +55,7 @@ export function createPlugin(dispatch, options, api) {
|
|
|
57
55
|
return state;
|
|
58
56
|
}
|
|
59
57
|
},
|
|
60
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
61
58
|
appendTransaction: function appendTransaction(transactions, oldState, newState) {
|
|
62
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
63
|
-
|
|
64
59
|
if (transactions.some(function (txn) {
|
|
65
60
|
return txn.docChanged;
|
|
66
61
|
})) {
|
|
@@ -100,11 +95,7 @@ export function createPlugin(dispatch, options, api) {
|
|
|
100
95
|
},
|
|
101
96
|
props: {
|
|
102
97
|
decorations: drawFakeTextCursor,
|
|
103
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
104
|
-
|
|
105
98
|
handleDOMEvents: {
|
|
106
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
107
|
-
|
|
108
99
|
beforeinput: function beforeinput(view, event) {
|
|
109
100
|
var state = view.state;
|
|
110
101
|
if (event instanceof InputEvent && !event.isComposing && event.inputType === 'insertText' && isSelectionAtPlaceholder(view.state.selection)) {
|
|
@@ -126,8 +117,6 @@ export function createPlugin(dispatch, options, api) {
|
|
|
126
117
|
return false;
|
|
127
118
|
}
|
|
128
119
|
},
|
|
129
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
130
|
-
|
|
131
120
|
nodeViews: {
|
|
132
121
|
placeholder: function placeholder(node, view, getPos) {
|
|
133
122
|
return new PlaceholderTextNodeView(node, view, getPos);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder-text",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.9",
|
|
4
4
|
"description": "placeholder text plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
34
34
|
"@atlaskit/icon": "^29.0.0",
|
|
35
35
|
"@atlaskit/theme": "^21.0.0",
|
|
36
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
36
|
+
"@atlaskit/tmp-editor-statsig": "^14.2.0",
|
|
37
37
|
"@atlaskit/tokens": "^8.4.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"@emotion/react": "^11.7.1"
|