@atlaskit/editor-plugin-guideline 1.1.4 → 1.1.5
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 +121 -117
- package/LICENSE.md +6 -8
- package/dist/cjs/guideline.js +3 -1
- package/dist/cjs/guidelineContainer.js +3 -1
- package/dist/es2019/guideline.js +5 -1
- package/dist/es2019/guidelineContainer.js +3 -1
- package/dist/esm/guideline.js +3 -1
- package/dist/esm/guidelineContainer.js +3 -1
- package/package.json +4 -6
- package/report.api.md +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,296 +1,300 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-guideline
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.1.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
13
|
+
- Updated dependencies
|
|
8
14
|
|
|
9
15
|
## 1.1.3
|
|
10
16
|
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
13
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
14
20
|
|
|
15
21
|
## 1.1.2
|
|
16
22
|
|
|
17
23
|
### Patch Changes
|
|
18
24
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
26
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
27
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
28
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
29
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
24
30
|
|
|
25
31
|
## 1.1.1
|
|
26
32
|
|
|
27
33
|
### Patch Changes
|
|
28
34
|
|
|
29
|
-
-
|
|
35
|
+
- Updated dependencies
|
|
30
36
|
|
|
31
37
|
## 1.1.0
|
|
32
38
|
|
|
33
39
|
### Minor Changes
|
|
34
40
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
42
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
43
|
+
bumped editor-prosemirror version to 4.0.0
|
|
38
44
|
|
|
39
45
|
### Patch Changes
|
|
40
46
|
|
|
41
|
-
-
|
|
47
|
+
- Updated dependencies
|
|
42
48
|
|
|
43
49
|
## 1.0.2
|
|
44
50
|
|
|
45
51
|
### Patch Changes
|
|
46
52
|
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
54
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
55
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
50
56
|
|
|
51
57
|
## 1.0.1
|
|
52
58
|
|
|
53
59
|
### Patch Changes
|
|
54
60
|
|
|
55
|
-
-
|
|
61
|
+
- Updated dependencies
|
|
56
62
|
|
|
57
63
|
## 1.0.0
|
|
58
64
|
|
|
59
65
|
### Major Changes
|
|
60
66
|
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
68
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
69
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
70
|
+
is to address an issue with Jira plugin consumption.
|
|
65
71
|
|
|
66
72
|
### Patch Changes
|
|
67
73
|
|
|
68
|
-
-
|
|
74
|
+
- Updated dependencies
|
|
69
75
|
|
|
70
76
|
## 0.5.4
|
|
71
77
|
|
|
72
78
|
### Patch Changes
|
|
73
79
|
|
|
74
|
-
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
81
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
82
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
77
83
|
|
|
78
84
|
## 0.5.3
|
|
79
85
|
|
|
80
86
|
### Patch Changes
|
|
81
87
|
|
|
82
|
-
-
|
|
88
|
+
- Updated dependencies
|
|
83
89
|
|
|
84
90
|
## 0.5.2
|
|
85
91
|
|
|
86
92
|
### Patch Changes
|
|
87
93
|
|
|
88
|
-
-
|
|
94
|
+
- Updated dependencies
|
|
89
95
|
|
|
90
96
|
## 0.5.1
|
|
91
97
|
|
|
92
98
|
### Patch Changes
|
|
93
99
|
|
|
94
|
-
-
|
|
100
|
+
- Updated dependencies
|
|
95
101
|
|
|
96
102
|
## 0.5.0
|
|
97
103
|
|
|
98
104
|
### Minor Changes
|
|
99
105
|
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
- [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
|
|
107
|
+
[`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
|
|
108
|
+
all plugins with minor version to correct issue with semver.
|
|
103
109
|
|
|
104
110
|
### Patch Changes
|
|
105
111
|
|
|
106
|
-
-
|
|
112
|
+
- Updated dependencies
|
|
107
113
|
|
|
108
114
|
## 0.4.2
|
|
109
115
|
|
|
110
116
|
### Patch Changes
|
|
111
117
|
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
`NextEditorPlugin`.
|
|
118
|
+
- [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
|
|
119
|
+
[`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing
|
|
120
|
+
`dependencies` prop from PluginInjectionAPI and changing signature of `NextEditorPlugin`.
|
|
116
121
|
|
|
117
|
-
|
|
122
|
+
Previously a `NextEditorPlugin` would be consumed as so:
|
|
118
123
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
```ts
|
|
125
|
+
const plugin: NextEditorPlugin< ... > = (config, api) => {
|
|
126
|
+
// Can use api like so:
|
|
127
|
+
api.dependencies.core.actions.execute( ... )
|
|
128
|
+
return { ... }
|
|
129
|
+
}
|
|
130
|
+
```
|
|
126
131
|
|
|
127
|
-
|
|
128
|
-
|
|
132
|
+
Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
|
|
133
|
+
`dependencies` prop:
|
|
129
134
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
```ts
|
|
136
|
+
const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
|
|
137
|
+
// Can use api like so:
|
|
138
|
+
api.core.actions.execute( ... )
|
|
139
|
+
return { ... }
|
|
140
|
+
}
|
|
141
|
+
```
|
|
137
142
|
|
|
138
|
-
-
|
|
143
|
+
- Updated dependencies
|
|
139
144
|
|
|
140
145
|
## 0.4.1
|
|
141
146
|
|
|
142
147
|
### Patch Changes
|
|
143
148
|
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
- [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
|
|
150
|
+
[`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
|
|
151
|
+
atlaskit docs to all existing plugins.
|
|
147
152
|
|
|
148
153
|
## 0.4.0
|
|
149
154
|
|
|
150
155
|
### Minor Changes
|
|
151
156
|
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
- [#38980](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38980)
|
|
158
|
+
[`7f45581d141`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f45581d141) - ED-19630
|
|
159
|
+
fixed guideline alignment issue.
|
|
155
160
|
|
|
156
161
|
### Patch Changes
|
|
157
162
|
|
|
158
|
-
-
|
|
163
|
+
- Updated dependencies
|
|
159
164
|
|
|
160
165
|
## 0.3.13
|
|
161
166
|
|
|
162
167
|
### Patch Changes
|
|
163
168
|
|
|
164
|
-
-
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
- [#38672](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38672)
|
|
170
|
+
[`51e6a0128eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51e6a0128eb) - ED-18969
|
|
171
|
+
Implemented relative guideline
|
|
167
172
|
|
|
168
173
|
## 0.3.12
|
|
169
174
|
|
|
170
175
|
### Patch Changes
|
|
171
176
|
|
|
172
|
-
-
|
|
177
|
+
- Updated dependencies
|
|
173
178
|
|
|
174
179
|
## 0.3.11
|
|
175
180
|
|
|
176
181
|
### Patch Changes
|
|
177
182
|
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
-
|
|
183
|
+
- [#38341](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38341)
|
|
184
|
+
[`c46821ab461`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c46821ab461) - Update
|
|
185
|
+
guideline colour to color.border.disabled to provide more contrast against table borders
|
|
186
|
+
- Updated dependencies
|
|
182
187
|
|
|
183
188
|
## 0.3.10
|
|
184
189
|
|
|
185
190
|
### Patch Changes
|
|
186
191
|
|
|
187
|
-
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
-
|
|
192
|
+
- [#38130](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38130)
|
|
193
|
+
[`8b9fec4c803`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8b9fec4c803) - [ux]
|
|
194
|
+
improve guidelines styles left position
|
|
195
|
+
- Updated dependencies
|
|
191
196
|
|
|
192
197
|
## 0.3.9
|
|
193
198
|
|
|
194
199
|
### Patch Changes
|
|
195
200
|
|
|
196
|
-
-
|
|
197
|
-
|
|
198
|
-
|
|
201
|
+
- [#38063](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38063)
|
|
202
|
+
[`75fe8860154`](https://bitbucket.org/atlassian/atlassian-frontend/commits/75fe8860154) - Update
|
|
203
|
+
styles of guidelines so they align correctly
|
|
199
204
|
|
|
200
205
|
## 0.3.8
|
|
201
206
|
|
|
202
207
|
### Patch Changes
|
|
203
208
|
|
|
204
|
-
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
-
|
|
209
|
+
- [#32787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32787)
|
|
210
|
+
[`936c30f8dc9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/936c30f8dc9) - support
|
|
211
|
+
new image resize experience under feature flag
|
|
212
|
+
- Updated dependencies
|
|
208
213
|
|
|
209
214
|
## 0.3.7
|
|
210
215
|
|
|
211
216
|
### Patch Changes
|
|
212
217
|
|
|
213
|
-
-
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
- [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785)
|
|
219
|
+
[`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) -
|
|
220
|
+
[ED-19233] Import prosemirror libraries from internal facade package
|
|
216
221
|
|
|
217
222
|
## 0.3.6
|
|
218
223
|
|
|
219
224
|
### Patch Changes
|
|
220
225
|
|
|
221
|
-
-
|
|
222
|
-
|
|
223
|
-
|
|
226
|
+
- [#37398](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37398)
|
|
227
|
+
[`3d065399b07`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d065399b07) - ED-18969
|
|
228
|
+
refactor guideline plugin interface.
|
|
224
229
|
|
|
225
230
|
## 0.3.5
|
|
226
231
|
|
|
227
232
|
### Patch Changes
|
|
228
233
|
|
|
229
|
-
-
|
|
230
|
-
|
|
231
|
-
|
|
234
|
+
- [#37348](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37348)
|
|
235
|
+
[`e8885f55db6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e8885f55db6) - ED-18969
|
|
236
|
+
implement relative guides support
|
|
232
237
|
|
|
233
238
|
## 0.3.4
|
|
234
239
|
|
|
235
240
|
### Patch Changes
|
|
236
241
|
|
|
237
|
-
-
|
|
238
|
-
|
|
239
|
-
|
|
242
|
+
- [#36241](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36241)
|
|
243
|
+
[`5f5ba16de66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f5ba16de66) -
|
|
244
|
+
[ED-13910] Fix prosemirror types
|
|
240
245
|
|
|
241
246
|
## 0.3.3
|
|
242
247
|
|
|
243
248
|
### Patch Changes
|
|
244
249
|
|
|
245
|
-
-
|
|
246
|
-
|
|
247
|
-
|
|
250
|
+
- [#36310](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36310)
|
|
251
|
+
[`e118dc7562b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e118dc7562b) - ED-18897
|
|
252
|
+
guideline interface to use css tokens.
|
|
248
253
|
|
|
249
254
|
## 0.3.2
|
|
250
255
|
|
|
251
256
|
### Patch Changes
|
|
252
257
|
|
|
253
|
-
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
-
|
|
258
|
+
- [#35782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35782)
|
|
259
|
+
[`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) -
|
|
260
|
+
[ED-17082] Mark package as a singleton one
|
|
261
|
+
- Updated dependencies
|
|
257
262
|
|
|
258
263
|
## 0.3.1
|
|
259
264
|
|
|
260
265
|
### Patch Changes
|
|
261
266
|
|
|
262
|
-
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
- Updated dependencies
|
|
267
|
+
- [#34938](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34938)
|
|
268
|
+
[`7cd4abcdc0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cd4abcdc0d) - Fix
|
|
269
|
+
workaround in `editor-plugin-width`. This involved removing `WidthEmitter` in `editor-core`,
|
|
270
|
+
removing `containerWidth` from `WidthPluginState`. This change also introduces `usePluginHook` for
|
|
271
|
+
an `EditorPlugin` - this enables a react hook to be mounted for plugins (in all appearances).
|
|
272
|
+
- Updated dependencies
|
|
269
273
|
|
|
270
274
|
## 0.3.0
|
|
271
275
|
|
|
272
276
|
### Minor Changes
|
|
273
277
|
|
|
274
|
-
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
-
|
|
278
|
-
|
|
278
|
+
- [#34887](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34887)
|
|
279
|
+
[`d7aa08972c6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7aa08972c6) - add
|
|
280
|
+
style handler for the editor guideline plugin
|
|
281
|
+
- [`1dadcae5b09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1dadcae5b09) -
|
|
282
|
+
COLLAB-2623 Updated API to newest interface and added utils to create default gridlines
|
|
279
283
|
|
|
280
284
|
### Patch Changes
|
|
281
285
|
|
|
282
|
-
-
|
|
286
|
+
- Updated dependencies
|
|
283
287
|
|
|
284
288
|
## 0.2.0
|
|
285
289
|
|
|
286
290
|
### Minor Changes
|
|
287
291
|
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
292
|
+
- [#34644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34644)
|
|
293
|
+
[`d8f19b90c43`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d8f19b90c43) -
|
|
294
|
+
COLLAB-2622 Update editor-plugin-guideline to support position config.
|
|
291
295
|
|
|
292
296
|
### Patch Changes
|
|
293
297
|
|
|
294
|
-
-
|
|
295
|
-
|
|
296
|
-
-
|
|
298
|
+
- [`2625e4baea0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2625e4baea0) -
|
|
299
|
+
COLLAB-2622 Setup React components for future works.
|
|
300
|
+
- 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
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
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/dist/cjs/guideline.js
CHANGED
|
@@ -83,7 +83,9 @@ var Guideline = exports.Guideline = function Guideline(props) {
|
|
|
83
83
|
css: [basicGuidelineStyles, isVerticalPos ? verticalStyles : horizontalStyles, capStyle === 'line' && (isVerticalPos ? horizontalCapStyles : verticalCapStyles), active && activeGuidelineStyles, !show && hiddenGuidelineStyles, lineStyle === 'dashed' && dashedGuidelineStyles],
|
|
84
84
|
style: _objectSpread(_objectSpread({}, color && {
|
|
85
85
|
borderColor: "".concat(color)
|
|
86
|
-
}), (0, _positionStyles.getPositionStyles)(position))
|
|
86
|
+
}), (0, _positionStyles.getPositionStyles)(position))
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
88
|
+
,
|
|
87
89
|
className: "guideline"
|
|
88
90
|
});
|
|
89
91
|
};
|
|
@@ -54,7 +54,9 @@ var GuidelineContainer = exports.GuidelineContainer = function GuidelineContaine
|
|
|
54
54
|
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
55
|
return (0, _react2.jsx)("div", {
|
|
56
56
|
ref: ref,
|
|
57
|
-
css: guidelineContainerStyles
|
|
57
|
+
css: guidelineContainerStyles
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
59
|
+
,
|
|
58
60
|
style: style,
|
|
59
61
|
"data-testid": "guidelineContainer"
|
|
60
62
|
}, guidelines.map(function (guideline) {
|
package/dist/es2019/guideline.js
CHANGED
|
@@ -75,11 +75,15 @@ export const Guideline = props => {
|
|
|
75
75
|
return jsx("div", {
|
|
76
76
|
css: [basicGuidelineStyles, isVerticalPos ? verticalStyles : horizontalStyles, capStyle === 'line' && (isVerticalPos ? horizontalCapStyles : verticalCapStyles), active && activeGuidelineStyles, !show && hiddenGuidelineStyles, lineStyle === 'dashed' && dashedGuidelineStyles],
|
|
77
77
|
style: {
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
78
79
|
...(color && {
|
|
79
80
|
borderColor: `${color}`
|
|
80
81
|
}),
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
81
83
|
...getPositionStyles(position)
|
|
82
|
-
}
|
|
84
|
+
}
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
86
|
+
,
|
|
83
87
|
className: "guideline"
|
|
84
88
|
});
|
|
85
89
|
};
|
|
@@ -45,7 +45,9 @@ export const GuidelineContainer = props => {
|
|
|
45
45
|
};
|
|
46
46
|
return jsx("div", {
|
|
47
47
|
ref: ref,
|
|
48
|
-
css: guidelineContainerStyles
|
|
48
|
+
css: guidelineContainerStyles
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
50
|
+
,
|
|
49
51
|
style: style,
|
|
50
52
|
"data-testid": "guidelineContainer"
|
|
51
53
|
}, guidelines.map(guideline => {
|
package/dist/esm/guideline.js
CHANGED
|
@@ -77,7 +77,9 @@ export var Guideline = function Guideline(props) {
|
|
|
77
77
|
css: [basicGuidelineStyles, isVerticalPos ? verticalStyles : horizontalStyles, capStyle === 'line' && (isVerticalPos ? horizontalCapStyles : verticalCapStyles), active && activeGuidelineStyles, !show && hiddenGuidelineStyles, lineStyle === 'dashed' && dashedGuidelineStyles],
|
|
78
78
|
style: _objectSpread(_objectSpread({}, color && {
|
|
79
79
|
borderColor: "".concat(color)
|
|
80
|
-
}), getPositionStyles(position))
|
|
80
|
+
}), getPositionStyles(position))
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
82
|
+
,
|
|
81
83
|
className: "guideline"
|
|
82
84
|
});
|
|
83
85
|
};
|
|
@@ -47,7 +47,9 @@ export var GuidelineContainer = function GuidelineContainer(props) {
|
|
|
47
47
|
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
48
|
return jsx("div", {
|
|
49
49
|
ref: ref,
|
|
50
|
-
css: guidelineContainerStyles
|
|
50
|
+
css: guidelineContainerStyles
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
52
|
+
,
|
|
51
53
|
style: style,
|
|
52
54
|
"data-testid": "guidelineContainer"
|
|
53
55
|
}, guidelines.map(function (guideline) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-guideline",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "guideline plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
".": "./src/index.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/editor-common": "^
|
|
27
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
28
28
|
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
29
29
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
30
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
30
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
31
31
|
"@atlaskit/theme": "^12.8.0",
|
|
32
32
|
"@atlaskit/tokens": "^1.49.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@af/visual-regression": "*",
|
|
41
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
42
41
|
"@testing-library/react": "^12.1.5",
|
|
43
42
|
"react-dom": "^16.8.0",
|
|
44
43
|
"typescript": "~5.4.2",
|
|
@@ -73,6 +72,5 @@
|
|
|
73
72
|
"emotion"
|
|
74
73
|
]
|
|
75
74
|
}
|
|
76
|
-
}
|
|
77
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
75
|
+
}
|
|
78
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
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
50
|
+
"react": "^16.8.0"
|
|
50
51
|
}
|
|
51
52
|
```
|
|
52
53
|
|