@atlaskit/editor-plugin-guideline 1.1.3 → 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 +126 -116
- 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/dist/types/positionStyles.d.ts +1 -1
- package/dist/types-ts4.5/positionStyles.d.ts +1 -1
- package/package.json +5 -7
- package/report.api.md +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,290 +1,300 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-guideline
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.1.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
8
20
|
|
|
9
21
|
## 1.1.2
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
18
30
|
|
|
19
31
|
## 1.1.1
|
|
20
32
|
|
|
21
33
|
### Patch Changes
|
|
22
34
|
|
|
23
|
-
-
|
|
35
|
+
- Updated dependencies
|
|
24
36
|
|
|
25
37
|
## 1.1.0
|
|
26
38
|
|
|
27
39
|
### Minor Changes
|
|
28
40
|
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
32
44
|
|
|
33
45
|
### Patch Changes
|
|
34
46
|
|
|
35
|
-
-
|
|
47
|
+
- Updated dependencies
|
|
36
48
|
|
|
37
49
|
## 1.0.2
|
|
38
50
|
|
|
39
51
|
### Patch Changes
|
|
40
52
|
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
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`
|
|
44
56
|
|
|
45
57
|
## 1.0.1
|
|
46
58
|
|
|
47
59
|
### Patch Changes
|
|
48
60
|
|
|
49
|
-
-
|
|
61
|
+
- Updated dependencies
|
|
50
62
|
|
|
51
63
|
## 1.0.0
|
|
52
64
|
|
|
53
65
|
### Major Changes
|
|
54
66
|
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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.
|
|
59
71
|
|
|
60
72
|
### Patch Changes
|
|
61
73
|
|
|
62
|
-
-
|
|
74
|
+
- Updated dependencies
|
|
63
75
|
|
|
64
76
|
## 0.5.4
|
|
65
77
|
|
|
66
78
|
### Patch Changes
|
|
67
79
|
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
|
71
83
|
|
|
72
84
|
## 0.5.3
|
|
73
85
|
|
|
74
86
|
### Patch Changes
|
|
75
87
|
|
|
76
|
-
-
|
|
88
|
+
- Updated dependencies
|
|
77
89
|
|
|
78
90
|
## 0.5.2
|
|
79
91
|
|
|
80
92
|
### Patch Changes
|
|
81
93
|
|
|
82
|
-
-
|
|
94
|
+
- Updated dependencies
|
|
83
95
|
|
|
84
96
|
## 0.5.1
|
|
85
97
|
|
|
86
98
|
### Patch Changes
|
|
87
99
|
|
|
88
|
-
-
|
|
100
|
+
- Updated dependencies
|
|
89
101
|
|
|
90
102
|
## 0.5.0
|
|
91
103
|
|
|
92
104
|
### Minor Changes
|
|
93
105
|
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
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.
|
|
97
109
|
|
|
98
110
|
### Patch Changes
|
|
99
111
|
|
|
100
|
-
-
|
|
112
|
+
- Updated dependencies
|
|
101
113
|
|
|
102
114
|
## 0.4.2
|
|
103
115
|
|
|
104
116
|
### Patch Changes
|
|
105
117
|
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
`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`.
|
|
110
121
|
|
|
111
|
-
|
|
122
|
+
Previously a `NextEditorPlugin` would be consumed as so:
|
|
112
123
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
```ts
|
|
125
|
+
const plugin: NextEditorPlugin< ... > = (config, api) => {
|
|
126
|
+
// Can use api like so:
|
|
127
|
+
api.dependencies.core.actions.execute( ... )
|
|
128
|
+
return { ... }
|
|
129
|
+
}
|
|
130
|
+
```
|
|
120
131
|
|
|
121
|
-
|
|
122
|
-
|
|
132
|
+
Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
|
|
133
|
+
`dependencies` prop:
|
|
123
134
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
135
|
+
```ts
|
|
136
|
+
const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
|
|
137
|
+
// Can use api like so:
|
|
138
|
+
api.core.actions.execute( ... )
|
|
139
|
+
return { ... }
|
|
140
|
+
}
|
|
141
|
+
```
|
|
131
142
|
|
|
132
|
-
-
|
|
143
|
+
- Updated dependencies
|
|
133
144
|
|
|
134
145
|
## 0.4.1
|
|
135
146
|
|
|
136
147
|
### Patch Changes
|
|
137
148
|
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
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.
|
|
141
152
|
|
|
142
153
|
## 0.4.0
|
|
143
154
|
|
|
144
155
|
### Minor Changes
|
|
145
156
|
|
|
146
|
-
-
|
|
147
|
-
|
|
148
|
-
|
|
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.
|
|
149
160
|
|
|
150
161
|
### Patch Changes
|
|
151
162
|
|
|
152
|
-
-
|
|
163
|
+
- Updated dependencies
|
|
153
164
|
|
|
154
165
|
## 0.3.13
|
|
155
166
|
|
|
156
167
|
### Patch Changes
|
|
157
168
|
|
|
158
|
-
-
|
|
159
|
-
|
|
160
|
-
|
|
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
|
|
161
172
|
|
|
162
173
|
## 0.3.12
|
|
163
174
|
|
|
164
175
|
### Patch Changes
|
|
165
176
|
|
|
166
|
-
-
|
|
177
|
+
- Updated dependencies
|
|
167
178
|
|
|
168
179
|
## 0.3.11
|
|
169
180
|
|
|
170
181
|
### Patch Changes
|
|
171
182
|
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
-
|
|
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
|
|
176
187
|
|
|
177
188
|
## 0.3.10
|
|
178
189
|
|
|
179
190
|
### Patch Changes
|
|
180
191
|
|
|
181
|
-
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
-
|
|
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
|
|
185
196
|
|
|
186
197
|
## 0.3.9
|
|
187
198
|
|
|
188
199
|
### Patch Changes
|
|
189
200
|
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
|
193
204
|
|
|
194
205
|
## 0.3.8
|
|
195
206
|
|
|
196
207
|
### Patch Changes
|
|
197
208
|
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
-
|
|
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
|
|
202
213
|
|
|
203
214
|
## 0.3.7
|
|
204
215
|
|
|
205
216
|
### Patch Changes
|
|
206
217
|
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
|
210
221
|
|
|
211
222
|
## 0.3.6
|
|
212
223
|
|
|
213
224
|
### Patch Changes
|
|
214
225
|
|
|
215
|
-
-
|
|
216
|
-
|
|
217
|
-
|
|
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.
|
|
218
229
|
|
|
219
230
|
## 0.3.5
|
|
220
231
|
|
|
221
232
|
### Patch Changes
|
|
222
233
|
|
|
223
|
-
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
|
226
237
|
|
|
227
238
|
## 0.3.4
|
|
228
239
|
|
|
229
240
|
### Patch Changes
|
|
230
241
|
|
|
231
|
-
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
|
234
245
|
|
|
235
246
|
## 0.3.3
|
|
236
247
|
|
|
237
248
|
### Patch Changes
|
|
238
249
|
|
|
239
|
-
-
|
|
240
|
-
|
|
241
|
-
|
|
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.
|
|
242
253
|
|
|
243
254
|
## 0.3.2
|
|
244
255
|
|
|
245
256
|
### Patch Changes
|
|
246
257
|
|
|
247
|
-
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
-
|
|
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
|
|
251
262
|
|
|
252
263
|
## 0.3.1
|
|
253
264
|
|
|
254
265
|
### Patch Changes
|
|
255
266
|
|
|
256
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
- 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
|
|
263
273
|
|
|
264
274
|
## 0.3.0
|
|
265
275
|
|
|
266
276
|
### Minor Changes
|
|
267
277
|
|
|
268
|
-
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
-
|
|
272
|
-
|
|
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
|
|
273
283
|
|
|
274
284
|
### Patch Changes
|
|
275
285
|
|
|
276
|
-
-
|
|
286
|
+
- Updated dependencies
|
|
277
287
|
|
|
278
288
|
## 0.2.0
|
|
279
289
|
|
|
280
290
|
### Minor Changes
|
|
281
291
|
|
|
282
|
-
-
|
|
283
|
-
|
|
284
|
-
|
|
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.
|
|
285
295
|
|
|
286
296
|
### Patch Changes
|
|
287
297
|
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
-
|
|
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,12 +24,12 @@
|
|
|
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
|
-
"@atlaskit/tokens": "^1.
|
|
32
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@emotion/react": "^11.7.1"
|
|
35
35
|
},
|
|
@@ -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
|
|