@atlaskit/editor-plugin-guideline 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/CHANGELOG.md CHANGED
@@ -1,296 +1,306 @@
1
1
  # @atlaskit/editor-plugin-guideline
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.2
44
56
 
45
57
  ### Patch Changes
46
58
 
47
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
48
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
49
- Upgrade Typescript from `4.9.5` to `5.4.2`
59
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
60
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
61
+ Upgrade Typescript from `4.9.5` to `5.4.2`
50
62
 
51
63
  ## 1.0.1
52
64
 
53
65
  ### Patch Changes
54
66
 
55
- - Updated dependencies
67
+ - Updated dependencies
56
68
 
57
69
  ## 1.0.0
58
70
 
59
71
  ### Major Changes
60
72
 
61
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
62
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
63
- This changeset exists to bump all editor plugins that currently don't have a major version. This
64
- is to address an issue with Jira plugin consumption.
73
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
74
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
75
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
76
+ is to address an issue with Jira plugin consumption.
65
77
 
66
78
  ### Patch Changes
67
79
 
68
- - Updated dependencies
80
+ - Updated dependencies
69
81
 
70
82
  ## 0.5.4
71
83
 
72
84
  ### Patch Changes
73
85
 
74
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
75
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
76
- Upgrading @atlaskit/editor-prosemirror dependency
86
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
87
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
88
+ Upgrading @atlaskit/editor-prosemirror dependency
77
89
 
78
90
  ## 0.5.3
79
91
 
80
92
  ### Patch Changes
81
93
 
82
- - Updated dependencies
94
+ - Updated dependencies
83
95
 
84
96
  ## 0.5.2
85
97
 
86
98
  ### Patch Changes
87
99
 
88
- - Updated dependencies
100
+ - Updated dependencies
89
101
 
90
102
  ## 0.5.1
91
103
 
92
104
  ### Patch Changes
93
105
 
94
- - Updated dependencies
106
+ - Updated dependencies
95
107
 
96
108
  ## 0.5.0
97
109
 
98
110
  ### Minor Changes
99
111
 
100
- - [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
101
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) -
102
- Updating all plugins with minor version to correct issue with semver.
112
+ - [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
113
+ [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
114
+ all plugins with minor version to correct issue with semver.
103
115
 
104
116
  ### Patch Changes
105
117
 
106
- - Updated dependencies
118
+ - Updated dependencies
107
119
 
108
120
  ## 0.4.2
109
121
 
110
122
  ### Patch Changes
111
123
 
112
- - [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
113
- [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) -
114
- Removing `dependencies` prop from PluginInjectionAPI and changing signature of
115
- `NextEditorPlugin`.
124
+ - [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
125
+ [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing
126
+ `dependencies` prop from PluginInjectionAPI and changing signature of `NextEditorPlugin`.
116
127
 
117
- Previously a `NextEditorPlugin` would be consumed as so:
128
+ Previously a `NextEditorPlugin` would be consumed as so:
118
129
 
119
- ```ts
120
- const plugin: NextEditorPlugin< ... > = (config, api) => {
121
- // Can use api like so:
122
- api.dependencies.core.actions.execute( ... )
123
- return { ... }
124
- }
125
- ```
130
+ ```ts
131
+ const plugin: NextEditorPlugin< ... > = (config, api) => {
132
+ // Can use api like so:
133
+ api.dependencies.core.actions.execute( ... )
134
+ return { ... }
135
+ }
136
+ ```
126
137
 
127
- Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
128
- `dependencies` prop:
138
+ Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
139
+ `dependencies` prop:
129
140
 
130
- ```ts
131
- const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
132
- // Can use api like so:
133
- api.core.actions.execute( ... )
134
- return { ... }
135
- }
136
- ```
141
+ ```ts
142
+ const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
143
+ // Can use api like so:
144
+ api.core.actions.execute( ... )
145
+ return { ... }
146
+ }
147
+ ```
137
148
 
138
- - Updated dependencies
149
+ - Updated dependencies
139
150
 
140
151
  ## 0.4.1
141
152
 
142
153
  ### Patch Changes
143
154
 
144
- - [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
145
- [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
146
- atlaskit docs to all existing plugins.
155
+ - [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
156
+ [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
157
+ atlaskit docs to all existing plugins.
147
158
 
148
159
  ## 0.4.0
149
160
 
150
161
  ### Minor Changes
151
162
 
152
- - [#38980](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38980)
153
- [`7f45581d141`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f45581d141) -
154
- ED-19630 fixed guideline alignment issue.
163
+ - [#38980](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38980)
164
+ [`7f45581d141`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f45581d141) - ED-19630
165
+ fixed guideline alignment issue.
155
166
 
156
167
  ### Patch Changes
157
168
 
158
- - Updated dependencies
169
+ - Updated dependencies
159
170
 
160
171
  ## 0.3.13
161
172
 
162
173
  ### Patch Changes
163
174
 
164
- - [#38672](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38672)
165
- [`51e6a0128eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51e6a0128eb) -
166
- ED-18969 Implemented relative guideline
175
+ - [#38672](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38672)
176
+ [`51e6a0128eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51e6a0128eb) - ED-18969
177
+ Implemented relative guideline
167
178
 
168
179
  ## 0.3.12
169
180
 
170
181
  ### Patch Changes
171
182
 
172
- - Updated dependencies
183
+ - Updated dependencies
173
184
 
174
185
  ## 0.3.11
175
186
 
176
187
  ### Patch Changes
177
188
 
178
- - [#38341](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38341)
179
- [`c46821ab461`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c46821ab461) - Update
180
- guideline colour to color.border.disabled to provide more contrast against table borders
181
- - Updated dependencies
189
+ - [#38341](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38341)
190
+ [`c46821ab461`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c46821ab461) - Update
191
+ guideline colour to color.border.disabled to provide more contrast against table borders
192
+ - Updated dependencies
182
193
 
183
194
  ## 0.3.10
184
195
 
185
196
  ### Patch Changes
186
197
 
187
- - [#38130](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38130)
188
- [`8b9fec4c803`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8b9fec4c803) - [ux]
189
- improve guidelines styles left position
190
- - Updated dependencies
198
+ - [#38130](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38130)
199
+ [`8b9fec4c803`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8b9fec4c803) - [ux]
200
+ improve guidelines styles left position
201
+ - Updated dependencies
191
202
 
192
203
  ## 0.3.9
193
204
 
194
205
  ### Patch Changes
195
206
 
196
- - [#38063](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38063)
197
- [`75fe8860154`](https://bitbucket.org/atlassian/atlassian-frontend/commits/75fe8860154) - Update
198
- styles of guidelines so they align correctly
207
+ - [#38063](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38063)
208
+ [`75fe8860154`](https://bitbucket.org/atlassian/atlassian-frontend/commits/75fe8860154) - Update
209
+ styles of guidelines so they align correctly
199
210
 
200
211
  ## 0.3.8
201
212
 
202
213
  ### Patch Changes
203
214
 
204
- - [#32787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32787)
205
- [`936c30f8dc9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/936c30f8dc9) -
206
- support new image resize experience under feature flag
207
- - Updated dependencies
215
+ - [#32787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32787)
216
+ [`936c30f8dc9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/936c30f8dc9) - support
217
+ new image resize experience under feature flag
218
+ - Updated dependencies
208
219
 
209
220
  ## 0.3.7
210
221
 
211
222
  ### Patch Changes
212
223
 
213
- - [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785)
214
- [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) -
215
- [ED-19233] Import prosemirror libraries from internal facade package
224
+ - [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785)
225
+ [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) -
226
+ [ED-19233] Import prosemirror libraries from internal facade package
216
227
 
217
228
  ## 0.3.6
218
229
 
219
230
  ### Patch Changes
220
231
 
221
- - [#37398](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37398)
222
- [`3d065399b07`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d065399b07) -
223
- ED-18969 refactor guideline plugin interface.
232
+ - [#37398](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37398)
233
+ [`3d065399b07`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d065399b07) - ED-18969
234
+ refactor guideline plugin interface.
224
235
 
225
236
  ## 0.3.5
226
237
 
227
238
  ### Patch Changes
228
239
 
229
- - [#37348](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37348)
230
- [`e8885f55db6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e8885f55db6) -
231
- ED-18969 implement relative guides support
240
+ - [#37348](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37348)
241
+ [`e8885f55db6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e8885f55db6) - ED-18969
242
+ implement relative guides support
232
243
 
233
244
  ## 0.3.4
234
245
 
235
246
  ### Patch Changes
236
247
 
237
- - [#36241](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36241)
238
- [`5f5ba16de66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f5ba16de66) -
239
- [ED-13910] Fix prosemirror types
248
+ - [#36241](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36241)
249
+ [`5f5ba16de66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f5ba16de66) -
250
+ [ED-13910] Fix prosemirror types
240
251
 
241
252
  ## 0.3.3
242
253
 
243
254
  ### Patch Changes
244
255
 
245
- - [#36310](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36310)
246
- [`e118dc7562b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e118dc7562b) -
247
- ED-18897 guideline interface to use css tokens.
256
+ - [#36310](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36310)
257
+ [`e118dc7562b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e118dc7562b) - ED-18897
258
+ guideline interface to use css tokens.
248
259
 
249
260
  ## 0.3.2
250
261
 
251
262
  ### Patch Changes
252
263
 
253
- - [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782)
254
- [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) -
255
- [ED-17082] Mark package as a singleton one
256
- - Updated dependencies
264
+ - [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782)
265
+ [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) -
266
+ [ED-17082] Mark package as a singleton one
267
+ - Updated dependencies
257
268
 
258
269
  ## 0.3.1
259
270
 
260
271
  ### Patch Changes
261
272
 
262
- - [#34938](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34938)
263
- [`7cd4abcdc0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cd4abcdc0d) - Fix
264
- workaround in `editor-plugin-width`. This involved removing `WidthEmitter` in `editor-core`,
265
- removing `containerWidth` from `WidthPluginState`. This change also introduces `usePluginHook`
266
- for an `EditorPlugin` - this enables a react hook to be mounted for plugins (in all
267
- appearances).
268
- - Updated dependencies
273
+ - [#34938](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34938)
274
+ [`7cd4abcdc0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cd4abcdc0d) - Fix
275
+ workaround in `editor-plugin-width`. This involved removing `WidthEmitter` in `editor-core`,
276
+ removing `containerWidth` from `WidthPluginState`. This change also introduces `usePluginHook` for
277
+ an `EditorPlugin` - this enables a react hook to be mounted for plugins (in all appearances).
278
+ - Updated dependencies
269
279
 
270
280
  ## 0.3.0
271
281
 
272
282
  ### Minor Changes
273
283
 
274
- - [#34887](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34887)
275
- [`d7aa08972c6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7aa08972c6) - add
276
- style handler for the editor guideline plugin
277
- - [`1dadcae5b09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1dadcae5b09) -
278
- COLLAB-2623 Updated API to newest interface and added utils to create default gridlines
284
+ - [#34887](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34887)
285
+ [`d7aa08972c6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7aa08972c6) - add
286
+ style handler for the editor guideline plugin
287
+ - [`1dadcae5b09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1dadcae5b09) -
288
+ COLLAB-2623 Updated API to newest interface and added utils to create default gridlines
279
289
 
280
290
  ### Patch Changes
281
291
 
282
- - Updated dependencies
292
+ - Updated dependencies
283
293
 
284
294
  ## 0.2.0
285
295
 
286
296
  ### Minor Changes
287
297
 
288
- - [#34644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34644)
289
- [`d8f19b90c43`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d8f19b90c43) -
290
- COLLAB-2622 Update editor-plugin-guideline to support position config.
298
+ - [#34644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34644)
299
+ [`d8f19b90c43`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d8f19b90c43) -
300
+ COLLAB-2622 Update editor-plugin-guideline to support position config.
291
301
 
292
302
  ### Patch Changes
293
303
 
294
- - [`2625e4baea0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2625e4baea0) -
295
- COLLAB-2622 Setup React components for future works.
296
- - Updated dependencies
304
+ - [`2625e4baea0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2625e4baea0) -
305
+ COLLAB-2622 Setup React components for future works.
306
+ - 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.
@@ -11,7 +11,7 @@ var _guideline = require("@atlaskit/editor-common/guideline");
11
11
  var _colors = require("@atlaskit/theme/colors");
12
12
  var _positionStyles = require("./positionStyles");
13
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
14
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
15
  var basicGuidelineStyles = (0, _react.css)({
16
16
  position: 'absolute',
17
17
  zIndex: 0,
@@ -32,6 +32,7 @@ var horizontalStyles = (0, _react.css)({
32
32
  });
33
33
  var activeGuidelineStyles = (0, _react.css)({
34
34
  borderColor: "var(--ds-border-focused, ".concat(_colors.B200, ")"),
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
35
36
  '&:before, &:after': {
36
37
  backgroundColor: "var(--ds-border-focused, ".concat(_colors.B200, ")")
37
38
  }
@@ -43,6 +44,7 @@ var dashedGuidelineStyles = (0, _react.css)({
43
44
  borderStyle: 'dashed'
44
45
  });
45
46
  var verticalCapStyles = (0, _react.css)({
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
46
48
  '&:before, &:after': {
47
49
  backgroundColor: "var(--ds-border-disabled, ".concat(_colors.N30A, ")"),
48
50
  content: '""',
@@ -51,11 +53,13 @@ var verticalCapStyles = (0, _react.css)({
51
53
  width: '1px',
52
54
  transform: 'translateY(-50%)'
53
55
  },
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
54
57
  '&:after': {
55
58
  right: 0
56
59
  }
57
60
  });
58
61
  var horizontalCapStyles = (0, _react.css)({
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
59
63
  '&:before, &:after': {
60
64
  backgroundColor: "".concat("var(--ds-border-disabled, ".concat(_colors.N30A, ")")),
61
65
  content: '""',
@@ -64,6 +68,7 @@ var horizontalCapStyles = (0, _react.css)({
64
68
  width: '5px',
65
69
  transform: 'translateX(-50%)'
66
70
  },
71
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
67
72
  '&:after': {
68
73
  bottom: 0
69
74
  }
@@ -83,7 +88,9 @@ var Guideline = exports.Guideline = function Guideline(props) {
83
88
  css: [basicGuidelineStyles, isVerticalPos ? verticalStyles : horizontalStyles, capStyle === 'line' && (isVerticalPos ? horizontalCapStyles : verticalCapStyles), active && activeGuidelineStyles, !show && hiddenGuidelineStyles, lineStyle === 'dashed' && dashedGuidelineStyles],
84
89
  style: _objectSpread(_objectSpread({}, color && {
85
90
  borderColor: "".concat(color)
86
- }), (0, _positionStyles.getPositionStyles)(position)),
91
+ }), (0, _positionStyles.getPositionStyles)(position))
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
93
+ ,
87
94
  className: "guideline"
88
95
  });
89
96
  };
@@ -16,6 +16,7 @@ var _constants = require("./constants");
16
16
  var _guideline = require("./guideline");
17
17
  var _excluded = ["key"];
18
18
  /** @jsx jsx */
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
20
  var guidelineContainerStyles = (0, _react2.css)({
20
21
  position: 'fixed',
21
22
  height: '100vh',
@@ -23,6 +24,7 @@ var guidelineContainerStyles = (0, _react2.css)({
23
24
  display: 'grid',
24
25
  pointerEvents: 'none',
25
26
  border: 'none',
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
26
28
  maxWidth: "".concat(_editorSharedStyles.akEditorFullWidthLayoutWidth, "px")
27
29
  });
28
30
  var GuidelineContainer = exports.GuidelineContainer = function GuidelineContainer(props) {
@@ -54,7 +56,9 @@ var GuidelineContainer = exports.GuidelineContainer = function GuidelineContaine
54
56
  var style = (_style = {}, (0, _defineProperty2.default)(_style, _constants.VAR_POSITION_OFFSET_X, "".concat(offset, "px")), (0, _defineProperty2.default)(_style, _constants.VAR_POSITION_OFFSET_Y, "0px"), (0, _defineProperty2.default)(_style, "height", height), _style);
55
57
  return (0, _react2.jsx)("div", {
56
58
  ref: ref,
57
- css: guidelineContainerStyles,
59
+ css: guidelineContainerStyles
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
61
+ ,
58
62
  style: style,
59
63
  "data-testid": "guidelineContainer"
60
64
  }, guidelines.map(function (guideline) {
@@ -13,13 +13,14 @@ var _state = require("@atlaskit/editor-prosemirror/state");
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
14
  var _guidelineContainer = require("./guidelineContainer");
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
16
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
17
  var guidelineStyles = (0, _react.css)({
18
18
  position: 'absolute',
19
19
  width: '100%',
20
20
  left: 0,
21
21
  right: 0,
22
22
  transform: "scale(1)",
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
24
  zIndex: "".concat(_editorSharedStyles.akEditorGridLineZIndex, ";"),
24
25
  display: 'flex',
25
26
  justifyContent: 'center'
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { css, jsx } from '@emotion/react';
3
4
  import { isVerticalPosition } from '@atlaskit/editor-common/guideline';
4
5
  import { B200, N30A } from '@atlaskit/theme/colors';
@@ -23,6 +24,7 @@ const horizontalStyles = css({
23
24
  });
24
25
  const activeGuidelineStyles = css({
25
26
  borderColor: `var(--ds-border-focused, ${B200})`,
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
26
28
  '&:before, &:after': {
27
29
  backgroundColor: `var(--ds-border-focused, ${B200})`
28
30
  }
@@ -34,6 +36,7 @@ const dashedGuidelineStyles = css({
34
36
  borderStyle: 'dashed'
35
37
  });
36
38
  const verticalCapStyles = css({
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
37
40
  '&:before, &:after': {
38
41
  backgroundColor: `var(--ds-border-disabled, ${N30A})`,
39
42
  content: '""',
@@ -42,11 +45,13 @@ const verticalCapStyles = css({
42
45
  width: '1px',
43
46
  transform: 'translateY(-50%)'
44
47
  },
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
45
49
  '&:after': {
46
50
  right: 0
47
51
  }
48
52
  });
49
53
  const horizontalCapStyles = css({
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
50
55
  '&:before, &:after': {
51
56
  backgroundColor: `${`var(--ds-border-disabled, ${N30A})`}`,
52
57
  content: '""',
@@ -55,6 +60,7 @@ const horizontalCapStyles = css({
55
60
  width: '5px',
56
61
  transform: 'translateX(-50%)'
57
62
  },
63
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
58
64
  '&:after': {
59
65
  bottom: 0
60
66
  }
@@ -75,11 +81,15 @@ export const Guideline = props => {
75
81
  return jsx("div", {
76
82
  css: [basicGuidelineStyles, isVerticalPos ? verticalStyles : horizontalStyles, capStyle === 'line' && (isVerticalPos ? horizontalCapStyles : verticalCapStyles), active && activeGuidelineStyles, !show && hiddenGuidelineStyles, lineStyle === 'dashed' && dashedGuidelineStyles],
77
83
  style: {
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
78
85
  ...(color && {
79
86
  borderColor: `${color}`
80
87
  }),
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
81
89
  ...getPositionStyles(position)
82
- },
90
+ }
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
92
+ ,
83
93
  className: "guideline"
84
94
  });
85
95
  };
@@ -1,6 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
  import { useLayoutEffect, useRef, useState } from 'react';
4
+
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
6
  import { css, jsx } from '@emotion/react';
5
7
  import { akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
6
8
  import { VAR_POSITION_OFFSET_X, VAR_POSITION_OFFSET_Y } from './constants';
@@ -12,6 +14,7 @@ const guidelineContainerStyles = css({
12
14
  display: 'grid',
13
15
  pointerEvents: 'none',
14
16
  border: 'none',
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
15
18
  maxWidth: `${akEditorFullWidthLayoutWidth}px`
16
19
  });
17
20
  export const GuidelineContainer = props => {
@@ -45,7 +48,9 @@ export const GuidelineContainer = props => {
45
48
  };
46
49
  return jsx("div", {
47
50
  ref: ref,
48
- css: guidelineContainerStyles,
51
+ css: guidelineContainerStyles
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
53
+ ,
49
54
  style: style,
50
55
  "data-testid": "guidelineContainer"
51
56
  }, guidelines.map(guideline => {
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { css, jsx } from '@emotion/react';
3
4
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
4
5
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
@@ -11,6 +12,7 @@ const guidelineStyles = css({
11
12
  left: 0,
12
13
  right: 0,
13
14
  transform: `scale(1)`,
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
14
16
  zIndex: `${akEditorGridLineZIndex};`,
15
17
  display: 'flex',
16
18
  justifyContent: 'center'
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { isVerticalPosition } from '@atlaskit/editor-common/guideline';
7
8
  import { B200, N30A } from '@atlaskit/theme/colors';
@@ -26,6 +27,7 @@ var horizontalStyles = css({
26
27
  });
27
28
  var activeGuidelineStyles = css({
28
29
  borderColor: "var(--ds-border-focused, ".concat(B200, ")"),
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
29
31
  '&:before, &:after': {
30
32
  backgroundColor: "var(--ds-border-focused, ".concat(B200, ")")
31
33
  }
@@ -37,6 +39,7 @@ var dashedGuidelineStyles = css({
37
39
  borderStyle: 'dashed'
38
40
  });
39
41
  var verticalCapStyles = css({
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
40
43
  '&:before, &:after': {
41
44
  backgroundColor: "var(--ds-border-disabled, ".concat(N30A, ")"),
42
45
  content: '""',
@@ -45,11 +48,13 @@ var verticalCapStyles = css({
45
48
  width: '1px',
46
49
  transform: 'translateY(-50%)'
47
50
  },
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
48
52
  '&:after': {
49
53
  right: 0
50
54
  }
51
55
  });
52
56
  var horizontalCapStyles = css({
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
53
58
  '&:before, &:after': {
54
59
  backgroundColor: "".concat("var(--ds-border-disabled, ".concat(N30A, ")")),
55
60
  content: '""',
@@ -58,6 +63,7 @@ var horizontalCapStyles = css({
58
63
  width: '5px',
59
64
  transform: 'translateX(-50%)'
60
65
  },
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
61
67
  '&:after': {
62
68
  bottom: 0
63
69
  }
@@ -77,7 +83,9 @@ export var Guideline = function Guideline(props) {
77
83
  css: [basicGuidelineStyles, isVerticalPos ? verticalStyles : horizontalStyles, capStyle === 'line' && (isVerticalPos ? horizontalCapStyles : verticalCapStyles), active && activeGuidelineStyles, !show && hiddenGuidelineStyles, lineStyle === 'dashed' && dashedGuidelineStyles],
78
84
  style: _objectSpread(_objectSpread({}, color && {
79
85
  borderColor: "".concat(color)
80
- }), getPositionStyles(position)),
86
+ }), getPositionStyles(position))
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
88
+ ,
81
89
  className: "guideline"
82
90
  });
83
91
  };
@@ -5,6 +5,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  var _excluded = ["key"];
6
6
  /** @jsx jsx */
7
7
  import { useLayoutEffect, useRef, useState } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
10
  import { css, jsx } from '@emotion/react';
9
11
  import { akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
10
12
  import { VAR_POSITION_OFFSET_X, VAR_POSITION_OFFSET_Y } from './constants';
@@ -16,6 +18,7 @@ var guidelineContainerStyles = css({
16
18
  display: 'grid',
17
19
  pointerEvents: 'none',
18
20
  border: 'none',
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
19
22
  maxWidth: "".concat(akEditorFullWidthLayoutWidth, "px")
20
23
  });
21
24
  export var GuidelineContainer = function GuidelineContainer(props) {
@@ -47,7 +50,9 @@ export var GuidelineContainer = function GuidelineContainer(props) {
47
50
  var style = (_style = {}, _defineProperty(_style, VAR_POSITION_OFFSET_X, "".concat(offset, "px")), _defineProperty(_style, VAR_POSITION_OFFSET_Y, "0px"), _defineProperty(_style, "height", height), _style);
48
51
  return jsx("div", {
49
52
  ref: ref,
50
- css: guidelineContainerStyles,
53
+ css: guidelineContainerStyles
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
55
+ ,
51
56
  style: style,
52
57
  "data-testid": "guidelineContainer"
53
58
  }, guidelines.map(function (guideline) {
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
7
8
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
@@ -14,6 +15,7 @@ var guidelineStyles = css({
14
15
  left: 0,
15
16
  right: 0,
16
17
  transform: "scale(1)",
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
17
19
  zIndex: "".concat(akEditorGridLineZIndex, ";"),
18
20
  display: 'flex',
19
21
  justifyContent: 'center'
package/package.json CHANGED
@@ -1,78 +1,76 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-guideline",
3
- "version": "1.1.4",
4
- "description": "guideline 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: Media Experience Porygon",
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
- "sideEffects": false,
22
- "atlaskit:src": "src/index.ts",
23
- "af:exports": {
24
- ".": "./src/index.ts"
25
- },
26
- "dependencies": {
27
- "@atlaskit/editor-common": "^81.0.0",
28
- "@atlaskit/editor-plugin-width": "^1.1.0",
29
- "@atlaskit/editor-prosemirror": "4.0.1",
30
- "@atlaskit/editor-shared-styles": "^2.11.0",
31
- "@atlaskit/theme": "^12.8.0",
32
- "@atlaskit/tokens": "^1.49.0",
33
- "@babel/runtime": "^7.0.0",
34
- "@emotion/react": "^11.7.1"
35
- },
36
- "peerDependencies": {
37
- "react": "^16.8.0"
38
- },
39
- "devDependencies": {
40
- "@af/visual-regression": "*",
41
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
42
- "@testing-library/react": "^12.1.5",
43
- "react-dom": "^16.8.0",
44
- "typescript": "~5.4.2",
45
- "wait-for-expect": "^1.2.0"
46
- },
47
- "techstack": {
48
- "@atlassian/frontend": {
49
- "import-structure": [
50
- "atlassian-conventions"
51
- ],
52
- "circular-dependencies": [
53
- "file-and-folder-level"
54
- ]
55
- },
56
- "@repo/internal": {
57
- "dom-events": "use-bind-event-listener",
58
- "analytics": [
59
- "analytics-next"
60
- ],
61
- "design-tokens": [
62
- "color"
63
- ],
64
- "theming": [
65
- "react-context"
66
- ],
67
- "ui-components": [
68
- "lite-mode"
69
- ],
70
- "deprecation": "no-deprecated-imports",
71
- "styling": [
72
- "emotion",
73
- "emotion"
74
- ]
75
- }
76
- },
77
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
78
- }
2
+ "name": "@atlaskit/editor-plugin-guideline",
3
+ "version": "1.1.6",
4
+ "description": "guideline 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: Media Experience Porygon",
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
+ "sideEffects": false,
22
+ "atlaskit:src": "src/index.ts",
23
+ "af:exports": {
24
+ ".": "./src/index.ts"
25
+ },
26
+ "dependencies": {
27
+ "@atlaskit/editor-common": "^83.0.0",
28
+ "@atlaskit/editor-plugin-width": "^1.1.0",
29
+ "@atlaskit/editor-prosemirror": "4.0.1",
30
+ "@atlaskit/editor-shared-styles": "^2.12.0",
31
+ "@atlaskit/theme": "^12.11.0",
32
+ "@atlaskit/tokens": "^1.53.0",
33
+ "@babel/runtime": "^7.0.0",
34
+ "@emotion/react": "^11.7.1"
35
+ },
36
+ "peerDependencies": {
37
+ "react": "^16.8.0"
38
+ },
39
+ "devDependencies": {
40
+ "@af/visual-regression": "*",
41
+ "@testing-library/react": "^12.1.5",
42
+ "react-dom": "^16.8.0",
43
+ "typescript": "~5.4.2",
44
+ "wait-for-expect": "^1.2.0"
45
+ },
46
+ "techstack": {
47
+ "@atlassian/frontend": {
48
+ "import-structure": [
49
+ "atlassian-conventions"
50
+ ],
51
+ "circular-dependencies": [
52
+ "file-and-folder-level"
53
+ ]
54
+ },
55
+ "@repo/internal": {
56
+ "dom-events": "use-bind-event-listener",
57
+ "analytics": [
58
+ "analytics-next"
59
+ ],
60
+ "design-tokens": [
61
+ "color"
62
+ ],
63
+ "theming": [
64
+ "react-context"
65
+ ],
66
+ "ui-components": [
67
+ "lite-mode"
68
+ ],
69
+ "deprecation": "no-deprecated-imports",
70
+ "styling": [
71
+ "emotion",
72
+ "emotion"
73
+ ]
74
+ }
75
+ }
76
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-guideline"
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,14 +23,14 @@ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
22
23
 
23
24
  // @public (undocumented)
24
25
  export type GuidelinePlugin = NextEditorPlugin<
25
- 'guideline',
26
- {
27
- dependencies: [WidthPlugin];
28
- sharedState: GuidelinePluginState | null;
29
- actions: {
30
- displayGuideline: DisplayGuideline;
31
- };
32
- }
26
+ 'guideline',
27
+ {
28
+ dependencies: [WidthPlugin];
29
+ sharedState: GuidelinePluginState | null;
30
+ actions: {
31
+ displayGuideline: DisplayGuideline;
32
+ };
33
+ }
33
34
  >;
34
35
 
35
36
  // @public
@@ -46,7 +47,7 @@ export const guidelinePlugin: GuidelinePlugin;
46
47
 
47
48
  ```json
48
49
  {
49
- "react": "^16.8.0"
50
+ "react": "^16.8.0"
50
51
  }
51
52
  ```
52
53