@atlaskit/prosemirror-input-rules 3.1.0 → 3.2.0

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,16 +1,38 @@
1
1
  # @atlaskit/prosemirror-input-rules
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#124209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124209)
8
+ [`8aa1792f12ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8aa1792f12ed3) -
9
+ bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0
10
+
11
+ ## 3.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
16
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
17
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
18
+ language triggering composition on an empty line.This was fixed in a patch bump of
19
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
20
+
3
21
  ## 3.1.0
4
22
 
5
23
  ### Minor Changes
6
24
 
7
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934) [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) - bumped editor-prosemirror version to 4.0.0
25
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
26
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
27
+ bumped editor-prosemirror version to 4.0.0
8
28
 
9
29
  ## 3.0.0
10
30
 
11
31
  ### Major Changes
12
32
 
13
- - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482) [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - # MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
33
+ - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
34
+ [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
35
+ MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
14
36
 
15
37
  ## WHY?
16
38
 
@@ -20,14 +42,16 @@
20
42
 
21
43
  ## WHAT and HOW?
22
44
 
23
- These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from `@atlaskit/editor-common/types`:
45
+ These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
46
+ `@atlaskit/editor-common/types`:
24
47
 
25
48
  - InputRuleWrapper
26
49
  - InputRuleHandler
27
50
  - OnHandlerApply
28
51
  - createRule
29
52
 
30
- These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
53
+ These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
54
+ need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
31
55
 
32
56
  `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
33
57
 
@@ -44,7 +68,9 @@
44
68
 
45
69
  ### Patch Changes
46
70
 
47
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
71
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
72
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
73
+ Upgrading @atlaskit/editor-prosemirror dependency
48
74
 
49
75
  ## 2.4.4
50
76
 
@@ -74,7 +100,9 @@
74
100
 
75
101
  ### Minor Changes
76
102
 
77
- - [#37964](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37964) [`1944b35b538`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1944b35b538) - move common utilities to editor-common, to help with decoupling block-type plugin
103
+ - [#37964](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37964)
104
+ [`1944b35b538`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1944b35b538) - move
105
+ common utilities to editor-common, to help with decoupling block-type plugin
78
106
 
79
107
  ### Patch Changes
80
108
 
@@ -84,20 +112,30 @@
84
112
 
85
113
  ### Patch Changes
86
114
 
87
- - [#37821](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37821) [`d2ecb6bf1a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2ecb6bf1a3) - [ED-19203] Moved input rule types to editor-common to avoid circular dependencies
115
+ - [#37821](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37821)
116
+ [`d2ecb6bf1a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2ecb6bf1a3) -
117
+ [ED-19203] Moved input rule types to editor-common to avoid circular dependencies
88
118
  - Updated dependencies
89
119
 
90
120
  ## 2.3.1
91
121
 
92
122
  ### Patch Changes
93
123
 
94
- - [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785) [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
124
+ - [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785)
125
+ [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) -
126
+ [ED-19233] Import prosemirror libraries from internal facade package
95
127
 
96
128
  ## 2.3.0
97
129
 
98
130
  ### Minor Changes
99
131
 
100
- - [#36631](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36631) [`8b891bf3590`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8b891bf3590) - This change introduces `editor-plugin-hyperlink` which separates the hyperlink plugin from `editor-core`. In order to enable this change there are now new entry points on `editor-common` (such as `/link`, `/quick-insert`) in order to separate common code. Further `prosemirror-input-rules` now has new exports of `createPlugin` and `createRule` which are used in many plugins in `editor-core`.
132
+ - [#36631](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36631)
133
+ [`8b891bf3590`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8b891bf3590) - This
134
+ change introduces `editor-plugin-hyperlink` which separates the hyperlink plugin from
135
+ `editor-core`. In order to enable this change there are now new entry points on `editor-common`
136
+ (such as `/link`, `/quick-insert`) in order to separate common code. Further
137
+ `prosemirror-input-rules` now has new exports of `createPlugin` and `createRule` which are used in
138
+ many plugins in `editor-core`.
101
139
 
102
140
  ### Patch Changes
103
141
 
@@ -107,39 +145,52 @@
107
145
 
108
146
  ### Patch Changes
109
147
 
110
- - [#36241](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36241) [`5f5ba16de66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f5ba16de66) - [ED-13910] Fix prosemirror types
148
+ - [#36241](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36241)
149
+ [`5f5ba16de66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f5ba16de66) -
150
+ [ED-13910] Fix prosemirror types
111
151
 
112
152
  ## 2.2.4
113
153
 
114
154
  ### Patch Changes
115
155
 
116
- - [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782) [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) - [ED-17082] Mark package as a singleton one
156
+ - [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782)
157
+ [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) -
158
+ [ED-17082] Mark package as a singleton one
117
159
  - Updated dependencies
118
160
 
119
161
  ## 2.2.3
120
162
 
121
163
  ### Patch Changes
122
164
 
123
- - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
165
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
166
+ [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
167
+ legacy types are published for TS 4.5-4.8
124
168
 
125
169
  ## 2.2.2
126
170
 
127
171
  ### Patch Changes
128
172
 
129
- - [#33771](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33771) [`a142ba1aa28`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a142ba1aa28) - [ED17172] Bump prosemirror-model to 1.16.0 and prosemirror-view to 1.23.7 and removed work-arounds for fixed issues
173
+ - [#33771](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33771)
174
+ [`a142ba1aa28`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a142ba1aa28) -
175
+ [ED17172] Bump prosemirror-model to 1.16.0 and prosemirror-view to 1.23.7 and removed work-arounds
176
+ for fixed issues
130
177
  - Updated dependencies
131
178
 
132
179
  ## 2.2.1
133
180
 
134
181
  ### Patch Changes
135
182
 
136
- - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
183
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
184
+ [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
185
+ Typescript from `4.5.5` to `4.9.5`
137
186
 
138
187
  ## 2.2.0
139
188
 
140
189
  ### Minor Changes
141
190
 
142
- - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
191
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
192
+ [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
193
+ minor dependency bump
143
194
 
144
195
  ### Patch Changes
145
196
 
@@ -149,14 +200,19 @@
149
200
 
150
201
  ### Patch Changes
151
202
 
152
- - [#33004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33004) [`0ffb55018c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ffb55018c9) - Revert "[ED-17172] Bumped prosemirror-view from 1.23.2 to 1.23.7 and removed work-around for fixed issues"
203
+ - [#33004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33004)
204
+ [`0ffb55018c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ffb55018c9) - Revert
205
+ "[ED-17172] Bumped prosemirror-view from 1.23.2 to 1.23.7 and removed work-around for fixed
206
+ issues"
153
207
  - Updated dependencies
154
208
 
155
209
  ## 2.1.11
156
210
 
157
211
  ### Patch Changes
158
212
 
159
- - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
213
+ - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424)
214
+ [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY
215
+ remove before merging to master; dupe adf-schema via adf-utils
160
216
  - Updated dependencies
161
217
 
162
218
  ## 2.1.10
@@ -169,7 +225,12 @@
169
225
 
170
226
  ### Patch Changes
171
227
 
172
- - [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`0606572f9b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0606572f9b8) - [ux] ED-15348 docs(changeset): ED-15348 Fix a bug preventing typeahead actions to be fired from a gap cursor. Typing a typeahead trigger key (/, : or @) should pop-up a typeahead menu. However, if the current selection is inside a gap cursor, the trigger character is inserted and the pop-up menu doesn't open. This changeset fixes that.
228
+ - [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712)
229
+ [`0606572f9b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0606572f9b8) - [ux]
230
+ ED-15348 docs(changeset): ED-15348 Fix a bug preventing typeahead actions to be fired from a gap
231
+ cursor. Typing a typeahead trigger key (/, : or @) should pop-up a typeahead menu. However, if the
232
+ current selection is inside a gap cursor, the trigger character is inserted and the pop-up menu
233
+ doesn't open. This changeset fixes that.
173
234
  - Updated dependencies
174
235
 
175
236
  ## 2.1.8
@@ -212,11 +273,12 @@
212
273
 
213
274
  ### Patch Changes
214
275
 
215
- - [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`4e6fbaf5898`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6fbaf5898) - ED-14117 Change EditorState.apply type to receive readonly transaction
276
+ - [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526)
277
+ [`4e6fbaf5898`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6fbaf5898) - ED-14117
278
+ Change EditorState.apply type to receive readonly transaction
216
279
 
217
- Transactions should not be mutated after being dispatched as it can lead to
218
- unexpected behaviour. This change patches the relevant types declared in
219
- prosemirror-state as a compile-time safeguard.
280
+ Transactions should not be mutated after being dispatched as it can lead to unexpected behaviour.
281
+ This change patches the relevant types declared in prosemirror-state as a compile-time safeguard.
220
282
 
221
283
  - Updated dependencies
222
284
 
@@ -224,17 +286,22 @@
224
286
 
225
287
  ### Patch Changes
226
288
 
227
- - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - ED-13025 Bump prosemirror-view 1.23.1 -> 1.23.2
289
+ - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
290
+ [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - ED-13025
291
+ Bump prosemirror-view 1.23.1 -> 1.23.2
228
292
 
229
293
  ## 2.1.0
230
294
 
231
295
  ### Minor Changes
232
296
 
233
- - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`b230f366971`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b230f366971) - [ED-14008] Bump prosemirror-view from 1.20.2 to 1.23.1
297
+ - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998)
298
+ [`b230f366971`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b230f366971) -
299
+ [ED-14008] Bump prosemirror-view from 1.20.2 to 1.23.1
234
300
 
235
301
  ### Patch Changes
236
302
 
237
- - [`c6feed82071`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6feed82071) - ED-11632: Bump prosemirror packages;
303
+ - [`c6feed82071`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6feed82071) -
304
+ ED-11632: Bump prosemirror packages;
238
305
 
239
306
  - prosmirror-commands 1.1.4 -> 1.1.11,
240
307
  - prosemirror-model 1.11.0 -> 1.14.3,
@@ -246,14 +313,19 @@
246
313
 
247
314
  ### Patch Changes
248
315
 
249
- - [#10943](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10943) [`312a2810b0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/312a2810b0b) - [ux] ED-12931 Fix input rules replacing text outside of matched word in a long paragraph
316
+ - [#10943](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10943)
317
+ [`312a2810b0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/312a2810b0b) - [ux]
318
+ ED-12931 Fix input rules replacing text outside of matched word in a long paragraph
250
319
 
251
320
  ## 2.0.0
252
321
 
253
322
  ### Major Changes
254
323
 
255
- - [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`d989a24dd88`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d989a24dd88) - [ED-11915] New package to manage auto formatting rules without a undoInputRules
324
+ - [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230)
325
+ [`d989a24dd88`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d989a24dd88) -
326
+ [ED-11915] New package to manage auto formatting rules without a undoInputRules
256
327
 
257
328
  ### Minor Changes
258
329
 
259
- - [`54ec986ebff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54ec986ebff) - [ED-11915] Export editor/input-rules OnHandlerApply type
330
+ - [`54ec986ebff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54ec986ebff) -
331
+ [ED-11915] Export editor/input-rules OnHandlerApply type
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.jira.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__prosemirror-input-rules/app",
7
+ "composite": true,
8
+ "rootDir": "../"
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": []
20
+ }
@@ -1,7 +1,7 @@
1
1
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import type { InputRuleWrapper } from './editor-common';
4
- export type { InputRuleHandler, InputRuleWrapper, OnHandlerApply, } from './editor-common';
4
+ export type { InputRuleHandler, InputRuleWrapper, OnHandlerApply } from './editor-common';
5
5
  export type HandleInputEvent = (props: {
6
6
  view: EditorView;
7
7
  from: number;
@@ -1,7 +1,7 @@
1
1
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import type { InputRuleWrapper } from './editor-common';
4
- export type { InputRuleHandler, InputRuleWrapper, OnHandlerApply, } from './editor-common';
4
+ export type { InputRuleHandler, InputRuleWrapper, OnHandlerApply } from './editor-common';
5
5
  export type HandleInputEvent = (props: {
6
6
  view: EditorView;
7
7
  from: number;
package/package.json CHANGED
@@ -1,56 +1,54 @@
1
1
  {
2
- "name": "@atlaskit/prosemirror-input-rules",
3
- "version": "3.1.0",
4
- "description": "A package that contains helpers to create autoformatting rules for ProseMirror",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
- "sideEffects": false,
24
- "atlaskit:src": "src/index.ts",
25
- "atlassian": {
26
- "team": "Editor: Lego",
27
- "singleton": true,
28
- "releaseModel": "continuous"
29
- },
30
- "dependencies": {
31
- "@atlaskit/editor-prosemirror": "4.0.0",
32
- "@babel/runtime": "^7.0.0"
33
- },
34
- "devDependencies": {
35
- "@atlaskit/editor-common": "^78.31.0",
36
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1"
37
- },
38
- "techstack": {
39
- "@atlassian/frontend": {
40
- "circular-dependencies": [
41
- "file-level"
42
- ],
43
- "import-structure": "atlassian-conventions"
44
- },
45
- "@repo/internal": {
46
- "deprecation": "no-deprecated-imports",
47
- "styling": [
48
- "emotion"
49
- ]
50
- }
51
- },
52
- "af:exports": {
53
- ".": "./src/index.ts"
54
- },
55
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
56
- }
2
+ "name": "@atlaskit/prosemirror-input-rules",
3
+ "version": "3.2.0",
4
+ "description": "A package that contains helpers to create autoformatting rules for ProseMirror",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
23
+ "sideEffects": false,
24
+ "atlaskit:src": "src/index.ts",
25
+ "atlassian": {
26
+ "team": "Editor: Lego",
27
+ "singleton": true,
28
+ "releaseModel": "continuous"
29
+ },
30
+ "dependencies": {
31
+ "@atlaskit/editor-prosemirror": "5.0.1",
32
+ "@babel/runtime": "^7.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@atlaskit/editor-common": "^86.8.0"
36
+ },
37
+ "techstack": {
38
+ "@atlassian/frontend": {
39
+ "circular-dependencies": [
40
+ "file-level"
41
+ ],
42
+ "import-structure": "atlassian-conventions"
43
+ },
44
+ "@repo/internal": {
45
+ "deprecation": "no-deprecated-imports",
46
+ "styling": [
47
+ "emotion"
48
+ ]
49
+ }
50
+ },
51
+ "af:exports": {
52
+ ".": "./src/index.ts"
53
+ }
54
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/prosemirror-input-rules"
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
@@ -25,16 +26,16 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
25
26
 
26
27
  // @public (undocumented)
27
28
  export function createInputRulePlugin(
28
- pluginName: string,
29
- rules: InputRuleWrapper[],
30
- options?: Options,
29
+ pluginName: string,
30
+ rules: InputRuleWrapper[],
31
+ options?: Options,
31
32
  ): SafePlugin;
32
33
 
33
34
  // @public (undocumented)
34
35
  export const createPlugin: (
35
- pluginName: string,
36
- rules: Array<InputRuleWrapper>,
37
- options?: Options_2,
36
+ pluginName: string,
37
+ rules: Array<InputRuleWrapper>,
38
+ options?: Options_2,
38
39
  ) => SafePlugin;
39
40
 
40
41
  export { createRule };
@@ -55,23 +56,19 @@ type OnBeforeRegexMatch = (tr: Transaction) => void;
55
56
  export { OnHandlerApply };
56
57
 
57
58
  // @public (undocumented)
58
- export type OnInputEvent = (props: {
59
- state: EditorState;
60
- from: number;
61
- to: number;
62
- }) => boolean;
59
+ export type OnInputEvent = (props: { state: EditorState; from: number; to: number }) => boolean;
63
60
 
64
61
  // @public (undocumented)
65
62
  type Options = {
66
- allowInsertTextOnDocument?: boolean;
67
- onInputEvent?: OnInputEvent;
68
- onBeforeRegexMatch?: OnBeforeRegexMatch;
63
+ allowInsertTextOnDocument?: boolean;
64
+ onInputEvent?: OnInputEvent;
65
+ onBeforeRegexMatch?: OnBeforeRegexMatch;
69
66
  };
70
67
 
71
68
  // @public (undocumented)
72
69
  type Options_2 = {
73
- isBlockNodeRule?: boolean;
74
- allowInsertTextOnDocument?: boolean;
70
+ isBlockNodeRule?: boolean;
71
+ allowInsertTextOnDocument?: boolean;
75
72
  };
76
73
 
77
74
  // @public (undocumented)