@atlaskit/editor-plugin-placeholder 1.1.4 → 1.1.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/.eslintrc.js CHANGED
@@ -1,14 +1,14 @@
1
1
  module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- },
6
- overrides: [
7
- {
8
- files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
9
- rules: {
10
- '@typescript-eslint/no-explicit-any': 'off',
11
- },
12
- },
13
- ],
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ },
6
+ overrides: [
7
+ {
8
+ files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
9
+ rules: {
10
+ '@typescript-eslint/no-explicit-any': 'off',
11
+ },
12
+ },
13
+ ],
14
14
  };
package/CHANGELOG.md CHANGED
@@ -1,154 +1,166 @@
1
1
  # @atlaskit/editor-plugin-placeholder
2
2
 
3
+ ## 1.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.1.4
4
16
 
5
17
  ### Patch Changes
6
18
 
7
- - Updated dependencies
19
+ - Updated dependencies
8
20
 
9
21
  ## 1.1.3
10
22
 
11
23
  ### Patch Changes
12
24
 
13
- - Updated dependencies
25
+ - Updated dependencies
14
26
 
15
27
  ## 1.1.2
16
28
 
17
29
  ### Patch Changes
18
30
 
19
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
20
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
21
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
22
- language triggering composition on an empty line.This was fixed in a patch bump of
23
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
31
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
32
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
33
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
34
+ language triggering composition on an empty line.This was fixed in a patch bump of
35
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
24
36
 
25
37
  ## 1.1.1
26
38
 
27
39
  ### Patch Changes
28
40
 
29
- - Updated dependencies
41
+ - Updated dependencies
30
42
 
31
43
  ## 1.1.0
32
44
 
33
45
  ### Minor Changes
34
46
 
35
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
36
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
37
- bumped editor-prosemirror version to 4.0.0
47
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
48
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
49
+ bumped editor-prosemirror version to 4.0.0
38
50
 
39
51
  ### Patch Changes
40
52
 
41
- - Updated dependencies
53
+ - Updated dependencies
42
54
 
43
55
  ## 1.0.3
44
56
 
45
57
  ### Patch Changes
46
58
 
47
- - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
48
- [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
49
- The internal composition of this package has changed. There is no expected change in behavior.
59
+ - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
60
+ [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
61
+ The internal composition of this package has changed. There is no expected change in behavior.
50
62
 
51
63
  ## 1.0.2
52
64
 
53
65
  ### Patch Changes
54
66
 
55
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
56
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
57
- Upgrade Typescript from `4.9.5` to `5.4.2`
67
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
68
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
69
+ Upgrade Typescript from `4.9.5` to `5.4.2`
58
70
 
59
71
  ## 1.0.1
60
72
 
61
73
  ### Patch Changes
62
74
 
63
- - Updated dependencies
75
+ - Updated dependencies
64
76
 
65
77
  ## 1.0.0
66
78
 
67
79
  ### Major Changes
68
80
 
69
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
70
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
71
- This changeset exists to bump all editor plugins that currently don't have a major version. This
72
- is to address an issue with Jira plugin consumption.
81
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
82
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
83
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
84
+ is to address an issue with Jira plugin consumption.
73
85
 
74
86
  ### Patch Changes
75
87
 
76
- - Updated dependencies
88
+ - Updated dependencies
77
89
 
78
90
  ## 0.1.12
79
91
 
80
92
  ### Patch Changes
81
93
 
82
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
83
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
84
- Upgrading @atlaskit/editor-prosemirror dependency
94
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
95
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
96
+ Upgrading @atlaskit/editor-prosemirror dependency
85
97
 
86
98
  ## 0.1.11
87
99
 
88
100
  ### Patch Changes
89
101
 
90
- - Updated dependencies
102
+ - Updated dependencies
91
103
 
92
104
  ## 0.1.10
93
105
 
94
106
  ### Patch Changes
95
107
 
96
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
97
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
98
- [ED-21835] Change EditorAPI type to always union with undefined
108
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
109
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
110
+ [ED-21835] Change EditorAPI type to always union with undefined
99
111
 
100
112
  ## 0.1.9
101
113
 
102
114
  ### Patch Changes
103
115
 
104
- - Updated dependencies
116
+ - Updated dependencies
105
117
 
106
118
  ## 0.1.8
107
119
 
108
120
  ### Patch Changes
109
121
 
110
- - Updated dependencies
122
+ - Updated dependencies
111
123
 
112
124
  ## 0.1.7
113
125
 
114
126
  ### Patch Changes
115
127
 
116
- - [#41637](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41637)
117
- [`76579fdc832`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76579fdc832) - Move
118
- placeholder tests into placeholder package from editor-core
128
+ - [#41637](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41637)
129
+ [`76579fdc832`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76579fdc832) - Move
130
+ placeholder tests into placeholder package from editor-core
119
131
 
120
132
  ## 0.1.6
121
133
 
122
134
  ### Patch Changes
123
135
 
124
- - Updated dependencies
136
+ - Updated dependencies
125
137
 
126
138
  ## 0.1.5
127
139
 
128
140
  ### Patch Changes
129
141
 
130
- - Updated dependencies
142
+ - Updated dependencies
131
143
 
132
144
  ## 0.1.4
133
145
 
134
146
  ### Patch Changes
135
147
 
136
- - Updated dependencies
148
+ - Updated dependencies
137
149
 
138
150
  ## 0.1.3
139
151
 
140
152
  ### Patch Changes
141
153
 
142
- - Updated dependencies
154
+ - Updated dependencies
143
155
 
144
156
  ## 0.1.2
145
157
 
146
158
  ### Patch Changes
147
159
 
148
- - Updated dependencies
160
+ - Updated dependencies
149
161
 
150
162
  ## 0.1.1
151
163
 
152
164
  ### Patch Changes
153
165
 
154
- - Updated dependencies
166
+ - Updated dependencies
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
package/package.json CHANGED
@@ -1,85 +1,83 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-placeholder",
3
- "version": "1.1.4",
4
- "description": "Placeholder plugin for @atlaskit/editor-core.",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: Scarlet",
12
- "singleton": true,
13
- "releaseModel": "continuous",
14
- "runReact18": false
15
- },
16
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
- "main": "dist/cjs/index.js",
18
- "module": "dist/esm/index.js",
19
- "module:es2019": "dist/es2019/index.js",
20
- "types": "dist/types/index.d.ts",
21
- "typesVersions": {
22
- ">=4.5 <4.9": {
23
- "*": [
24
- "dist/types-ts4.5/*",
25
- "dist/types-ts4.5/index.d.ts"
26
- ]
27
- }
28
- },
29
- "sideEffects": false,
30
- "atlaskit:src": "src/index.ts",
31
- "af:exports": {
32
- ".": "./src/index.ts"
33
- },
34
- "dependencies": {
35
- "@atlaskit/editor-common": "^81.0.0",
36
- "@atlaskit/editor-plugin-composition": "^1.1.0",
37
- "@atlaskit/editor-plugin-focus": "^1.2.0",
38
- "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
39
- "@atlaskit/editor-prosemirror": "4.0.1",
40
- "@babel/runtime": "^7.0.0"
41
- },
42
- "peerDependencies": {
43
- "react": "^16.8.0"
44
- },
45
- "devDependencies": {
46
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
47
- "@testing-library/react": "^12.1.5",
48
- "react-dom": "^16.8.0",
49
- "typescript": "~5.4.2"
50
- },
51
- "techstack": {
52
- "@atlassian/frontend": {
53
- "import-structure": [
54
- "atlassian-conventions"
55
- ],
56
- "circular-dependencies": [
57
- "file-and-folder-level"
58
- ]
59
- },
60
- "@repo/internal": {
61
- "dom-events": "use-bind-event-listener",
62
- "analytics": [
63
- "analytics-next"
64
- ],
65
- "design-tokens": [
66
- "color"
67
- ],
68
- "theming": [
69
- "react-context"
70
- ],
71
- "ui-components": [
72
- "lite-mode"
73
- ],
74
- "deprecation": "no-deprecated-imports",
75
- "styling": [
76
- "emotion",
77
- "emotion"
78
- ],
79
- "imports": [
80
- "import-no-extraneous-disable-for-examples-and-docs"
81
- ]
82
- }
83
- },
84
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
85
- }
2
+ "name": "@atlaskit/editor-plugin-placeholder",
3
+ "version": "1.1.6",
4
+ "description": "Placeholder plugin for @atlaskit/editor-core.",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: Scarlet",
12
+ "singleton": true,
13
+ "releaseModel": "continuous",
14
+ "runReact18": false
15
+ },
16
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
+ "main": "dist/cjs/index.js",
18
+ "module": "dist/esm/index.js",
19
+ "module:es2019": "dist/es2019/index.js",
20
+ "types": "dist/types/index.d.ts",
21
+ "typesVersions": {
22
+ ">=4.5 <4.9": {
23
+ "*": [
24
+ "dist/types-ts4.5/*",
25
+ "dist/types-ts4.5/index.d.ts"
26
+ ]
27
+ }
28
+ },
29
+ "sideEffects": false,
30
+ "atlaskit:src": "src/index.ts",
31
+ "af:exports": {
32
+ ".": "./src/index.ts"
33
+ },
34
+ "dependencies": {
35
+ "@atlaskit/editor-common": "^83.0.0",
36
+ "@atlaskit/editor-plugin-composition": "^1.1.0",
37
+ "@atlaskit/editor-plugin-focus": "^1.2.0",
38
+ "@atlaskit/editor-plugin-type-ahead": "^1.3.0",
39
+ "@atlaskit/editor-prosemirror": "4.0.1",
40
+ "@babel/runtime": "^7.0.0"
41
+ },
42
+ "peerDependencies": {
43
+ "react": "^16.8.0"
44
+ },
45
+ "devDependencies": {
46
+ "@testing-library/react": "^12.1.5",
47
+ "react-dom": "^16.8.0",
48
+ "typescript": "~5.4.2"
49
+ },
50
+ "techstack": {
51
+ "@atlassian/frontend": {
52
+ "import-structure": [
53
+ "atlassian-conventions"
54
+ ],
55
+ "circular-dependencies": [
56
+ "file-and-folder-level"
57
+ ]
58
+ },
59
+ "@repo/internal": {
60
+ "dom-events": "use-bind-event-listener",
61
+ "analytics": [
62
+ "analytics-next"
63
+ ],
64
+ "design-tokens": [
65
+ "color"
66
+ ],
67
+ "theming": [
68
+ "react-context"
69
+ ],
70
+ "ui-components": [
71
+ "lite-mode"
72
+ ],
73
+ "deprecation": "no-deprecated-imports",
74
+ "styling": [
75
+ "emotion",
76
+ "emotion"
77
+ ],
78
+ "imports": [
79
+ "import-no-extraneous-disable-for-examples-and-docs"
80
+ ]
81
+ }
82
+ }
83
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-placeholder"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -22,11 +23,11 @@ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
22
23
 
23
24
  // @public (undocumented)
24
25
  export type PlaceholderPlugin = NextEditorPlugin<
25
- 'placeholder',
26
- {
27
- pluginConfiguration: PlaceholderPluginOptions | undefined;
28
- dependencies: [FocusPlugin, CompositionPlugin, TypeAheadPlugin];
29
- }
26
+ 'placeholder',
27
+ {
28
+ pluginConfiguration: PlaceholderPluginOptions | undefined;
29
+ dependencies: [FocusPlugin, CompositionPlugin, TypeAheadPlugin];
30
+ }
30
31
  >;
31
32
 
32
33
  // @public (undocumented)
@@ -34,10 +35,10 @@ export const placeholderPlugin: PlaceholderPlugin;
34
35
 
35
36
  // @public (undocumented)
36
37
  export interface PlaceholderPluginOptions {
37
- // (undocumented)
38
- placeholder?: string;
39
- // (undocumented)
40
- placeholderBracketHint?: string;
38
+ // (undocumented)
39
+ placeholder?: string;
40
+ // (undocumented)
41
+ placeholderBracketHint?: string;
41
42
  }
42
43
 
43
44
  // (No @packageDocumentation comment for this package)
@@ -51,7 +52,7 @@ export interface PlaceholderPluginOptions {
51
52
 
52
53
  ```json
53
54
  {
54
- "react": "^16.8.0"
55
+ "react": "^16.8.0"
55
56
  }
56
57
  ```
57
58