@atlaskit/adf-schema 30.2.3 → 31.0.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,5 +1,16 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 31.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 1731496: Remove unused vars
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [1731496]
12
+ - @atlaskit/editor-prosemirror@2.0.0
13
+
3
14
  ## 30.2.3
4
15
 
5
16
  ### Patch Changes
@@ -16,7 +16,7 @@ var caption = {
16
16
  parseDOM: [{
17
17
  tag: 'figcaption[data-caption]'
18
18
  }],
19
- toDOM: function toDOM(node) {
19
+ toDOM: function toDOM() {
20
20
  var attrs = {
21
21
  'data-caption': 'true'
22
22
  };
@@ -26,23 +26,6 @@ exports.paragraph = void 0;
26
26
  /**
27
27
  * @name paragraph_with_indentation_node
28
28
  */
29
- var isImageNode = function isImageNode(node) {
30
- return Boolean(node && node.nodeName.toLowerCase() === 'img');
31
- };
32
- var hasInlineImage = function hasInlineImage(node) {
33
- if (!node) {
34
- return false;
35
- }
36
- return Array.from(node.childNodes).some(function (child) {
37
- var isImage = isImageNode(child);
38
- if (!isImage && child.childNodes) {
39
- return Array.from(node.childNodes).some(function (node) {
40
- return hasInlineImage(node);
41
- });
42
- }
43
- return isImage;
44
- });
45
- };
46
29
  var pDOM = ['p', 0];
47
30
  var paragraph = {
48
31
  selectable: false,
@@ -53,6 +53,7 @@ var LinkMetaStep = /*#__PURE__*/function (_Step) {
53
53
  /**
54
54
  * Omit sourceEvent in history
55
55
  */
56
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
56
57
  var _this$metadata = this.metadata,
57
58
  sourceEvent = _this$metadata.sourceEvent,
58
59
  metadata = (0, _objectWithoutProperties2.default)(_this$metadata, _excluded);
@@ -99,7 +100,7 @@ var LinkMetaStep = /*#__PURE__*/function (_Step) {
99
100
  }
100
101
  }], [{
101
102
  key: "fromJSON",
102
- value: function fromJSON(_, __) {
103
+ value: function fromJSON() {
103
104
  // This is a "local custom step" once serialized
104
105
  // we need to transform it in a no-operation action
105
106
  return new _transform.ReplaceStep(0, 0, _model.Slice.empty);
@@ -74,7 +74,7 @@ var InsertTypeAheadStep = /*#__PURE__*/function (_Step) {
74
74
  }
75
75
  }, {
76
76
  key: "map",
77
- value: function map(mapping) {
77
+ value: function map() {
78
78
  var config = {
79
79
  stage: this.stage,
80
80
  query: this.query,
@@ -134,147 +134,147 @@ function hexToEditorBackgroundPaletteRawValue(hexColor) {
134
134
  var editorBackgroundPalette = {
135
135
  /** blue - light */
136
136
  '#DEEBFF': {
137
- getValue: function getValue(fallback) {
137
+ getValue: function getValue() {
138
138
  return '#DEEBFF';
139
139
  },
140
140
  token: 'var(--ds-background-accent-blue-subtlest, #DEEBFF)'
141
141
  },
142
142
  /** blue - medium */
143
143
  '#B3D4FF': {
144
- getValue: function getValue(fallback) {
144
+ getValue: function getValue() {
145
145
  return '#B3D4FF';
146
146
  },
147
147
  token: 'var(--ds-background-accent-blue-subtler, #B3D4FF)'
148
148
  },
149
149
  /** blue - strong */
150
150
  '#4C9AFF': {
151
- getValue: function getValue(fallback) {
151
+ getValue: function getValue() {
152
152
  return '#4C9AFF';
153
153
  },
154
154
  token: 'var(--ds-background-accent-blue-subtle, #4C9AFF)'
155
155
  },
156
156
  /** teal - light */
157
157
  '#E6FCFF': {
158
- getValue: function getValue(fallback) {
158
+ getValue: function getValue() {
159
159
  return '#E6FCFF';
160
160
  },
161
161
  token: 'var(--ds-background-accent-teal-subtlest, #E6FCFF)'
162
162
  },
163
163
  /** teal - medium */
164
164
  '#B3F5FF': {
165
- getValue: function getValue(fallback) {
165
+ getValue: function getValue() {
166
166
  return '#B3F5FF';
167
167
  },
168
168
  token: 'var(--ds-background-accent-teal-subtler, #B3F5FF)'
169
169
  },
170
170
  /** teal - strong */
171
171
  '#79E2F2': {
172
- getValue: function getValue(fallback) {
172
+ getValue: function getValue() {
173
173
  return '#79E2F2';
174
174
  },
175
175
  token: 'var(--ds-background-accent-teal-subtle, #79E2F2)'
176
176
  },
177
177
  /** green - light */
178
178
  '#E3FCEF': {
179
- getValue: function getValue(fallback) {
179
+ getValue: function getValue() {
180
180
  return '#E3FCEF';
181
181
  },
182
182
  token: 'var(--ds-background-accent-green-subtlest, #E3FCEF)'
183
183
  },
184
184
  /** green - medium */
185
185
  '#ABF5D1': {
186
- getValue: function getValue(fallback) {
186
+ getValue: function getValue() {
187
187
  return '#ABF5D1';
188
188
  },
189
189
  token: 'var(--ds-background-accent-green-subtler, #ABF5D1)'
190
190
  },
191
191
  /** green - strong */
192
192
  '#57D9A3': {
193
- getValue: function getValue(fallback) {
193
+ getValue: function getValue() {
194
194
  return '#57D9A3';
195
195
  },
196
196
  token: 'var(--ds-background-accent-green-subtle, #57D9A3)'
197
197
  },
198
198
  /** yellowOrange - light */
199
199
  '#FFFAE6': {
200
- getValue: function getValue(fallback) {
200
+ getValue: function getValue() {
201
201
  return '#FFFAE6';
202
202
  },
203
203
  token: 'var(--ds-background-accent-yellow-subtlest, #FFFAE6)'
204
204
  },
205
205
  /** yellowOrange - medium */
206
206
  '#FFF0B3': {
207
- getValue: function getValue(fallback) {
207
+ getValue: function getValue() {
208
208
  return '#FFF0B3';
209
209
  },
210
210
  token: 'var(--ds-background-accent-yellow-subtler, #FFF0B3)'
211
211
  },
212
212
  /** yellowOrange - strong */
213
213
  '#FFC400': {
214
- getValue: function getValue(fallback) {
214
+ getValue: function getValue() {
215
215
  return '#FFC400';
216
216
  },
217
217
  token: 'var(--ds-background-accent-orange-subtle, #FFC400)'
218
218
  },
219
219
  /** red - light */
220
220
  '#FFEBE6': {
221
- getValue: function getValue(fallback) {
221
+ getValue: function getValue() {
222
222
  return '#FFEBE6';
223
223
  },
224
224
  token: 'var(--ds-background-accent-red-subtlest, #FFEBE6)'
225
225
  },
226
226
  /** red - medium */
227
227
  '#FFBDAD': {
228
- getValue: function getValue(fallback) {
228
+ getValue: function getValue() {
229
229
  return '#FFBDAD';
230
230
  },
231
231
  token: 'var(--ds-background-accent-red-subtler, #FFBDAD)'
232
232
  },
233
233
  /** red - strong */
234
234
  '#FF8F73': {
235
- getValue: function getValue(fallback) {
235
+ getValue: function getValue() {
236
236
  return '#FF8F73';
237
237
  },
238
238
  token: 'var(--ds-background-accent-red-subtle, #FF8F73)'
239
239
  },
240
240
  /** purple - light */
241
241
  '#EAE6FF': {
242
- getValue: function getValue(fallback) {
242
+ getValue: function getValue() {
243
243
  return '#EAE6FF';
244
244
  },
245
245
  token: 'var(--ds-background-accent-purple-subtlest, #EAE6FF)'
246
246
  },
247
247
  /** purple - medium */
248
248
  '#C0B6F2': {
249
- getValue: function getValue(fallback) {
249
+ getValue: function getValue() {
250
250
  return '#C0B6F2';
251
251
  },
252
252
  token: 'var(--ds-background-accent-purple-subtler, #C0B6F2)'
253
253
  },
254
254
  /** purple - strong */
255
255
  '#998DD9': {
256
- getValue: function getValue(fallback) {
256
+ getValue: function getValue() {
257
257
  return '#998DD9';
258
258
  },
259
259
  token: 'var(--ds-background-accent-purple-subtle, #998DD9)'
260
260
  },
261
261
  /** whiteGray - light */
262
262
  '#FFFFFF': {
263
- getValue: function getValue(fallback) {
263
+ getValue: function getValue() {
264
264
  return '#FFFFFF';
265
265
  },
266
266
  token: 'var(--ds-surface, #FFFFFF)'
267
267
  },
268
268
  /** whiteGray - medium */
269
269
  '#F4F5F7': {
270
- getValue: function getValue(fallback) {
270
+ getValue: function getValue() {
271
271
  return '#F4F5F7';
272
272
  },
273
273
  token: 'var(--ds-background-accent-gray-subtlest, #F4F5F7)'
274
274
  },
275
275
  /** whiteGray - strong */
276
276
  '#B3BAC5': {
277
- getValue: function getValue(fallback) {
277
+ getValue: function getValue() {
278
278
  return '#B3BAC5';
279
279
  },
280
280
  token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)'
@@ -10,7 +10,7 @@ export const caption = {
10
10
  parseDOM: [{
11
11
  tag: 'figcaption[data-caption]'
12
12
  }],
13
- toDOM(node) {
13
+ toDOM() {
14
14
  const attrs = {
15
15
  'data-caption': 'true'
16
16
  };
@@ -20,21 +20,6 @@
20
20
  /**
21
21
  * @name paragraph_with_indentation_node
22
22
  */
23
- const isImageNode = node => {
24
- return Boolean(node && node.nodeName.toLowerCase() === 'img');
25
- };
26
- const hasInlineImage = node => {
27
- if (!node) {
28
- return false;
29
- }
30
- return Array.from(node.childNodes).some(child => {
31
- const isImage = isImageNode(child);
32
- if (!isImage && child.childNodes) {
33
- return Array.from(node.childNodes).some(node => hasInlineImage(node));
34
- }
35
- return isImage;
36
- });
37
- };
38
23
  const pDOM = ['p', 0];
39
24
  export const paragraph = {
40
25
  selectable: false,
@@ -25,6 +25,7 @@ export class LinkMetaStep extends Step {
25
25
  /**
26
26
  * Omit sourceEvent in history
27
27
  */
28
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
28
29
  const {
29
30
  sourceEvent,
30
31
  ...metadata
@@ -60,7 +61,7 @@ export class LinkMetaStep extends Step {
60
61
  to: 0
61
62
  };
62
63
  }
63
- static fromJSON(_, __) {
64
+ static fromJSON() {
64
65
  // This is a "local custom step" once serialized
65
66
  // we need to transform it in a no-operation action
66
67
  return new ReplaceStep(0, 0, Slice.empty);
@@ -41,7 +41,7 @@ export class InsertTypeAheadStep extends Step {
41
41
  isUndoingStep() {
42
42
  return this.isInvertStep;
43
43
  }
44
- map(mapping) {
44
+ map() {
45
45
  const config = {
46
46
  stage: this.stage,
47
47
  query: this.query,
@@ -123,107 +123,107 @@ export function hexToEditorBackgroundPaletteRawValue(hexColor) {
123
123
  export const editorBackgroundPalette = {
124
124
  /** blue - light */
125
125
  '#DEEBFF': {
126
- getValue: fallback => '#DEEBFF',
126
+ getValue: () => '#DEEBFF',
127
127
  token: 'var(--ds-background-accent-blue-subtlest, #DEEBFF)'
128
128
  },
129
129
  /** blue - medium */
130
130
  '#B3D4FF': {
131
- getValue: fallback => '#B3D4FF',
131
+ getValue: () => '#B3D4FF',
132
132
  token: 'var(--ds-background-accent-blue-subtler, #B3D4FF)'
133
133
  },
134
134
  /** blue - strong */
135
135
  '#4C9AFF': {
136
- getValue: fallback => '#4C9AFF',
136
+ getValue: () => '#4C9AFF',
137
137
  token: 'var(--ds-background-accent-blue-subtle, #4C9AFF)'
138
138
  },
139
139
  /** teal - light */
140
140
  '#E6FCFF': {
141
- getValue: fallback => '#E6FCFF',
141
+ getValue: () => '#E6FCFF',
142
142
  token: 'var(--ds-background-accent-teal-subtlest, #E6FCFF)'
143
143
  },
144
144
  /** teal - medium */
145
145
  '#B3F5FF': {
146
- getValue: fallback => '#B3F5FF',
146
+ getValue: () => '#B3F5FF',
147
147
  token: 'var(--ds-background-accent-teal-subtler, #B3F5FF)'
148
148
  },
149
149
  /** teal - strong */
150
150
  '#79E2F2': {
151
- getValue: fallback => '#79E2F2',
151
+ getValue: () => '#79E2F2',
152
152
  token: 'var(--ds-background-accent-teal-subtle, #79E2F2)'
153
153
  },
154
154
  /** green - light */
155
155
  '#E3FCEF': {
156
- getValue: fallback => '#E3FCEF',
156
+ getValue: () => '#E3FCEF',
157
157
  token: 'var(--ds-background-accent-green-subtlest, #E3FCEF)'
158
158
  },
159
159
  /** green - medium */
160
160
  '#ABF5D1': {
161
- getValue: fallback => '#ABF5D1',
161
+ getValue: () => '#ABF5D1',
162
162
  token: 'var(--ds-background-accent-green-subtler, #ABF5D1)'
163
163
  },
164
164
  /** green - strong */
165
165
  '#57D9A3': {
166
- getValue: fallback => '#57D9A3',
166
+ getValue: () => '#57D9A3',
167
167
  token: 'var(--ds-background-accent-green-subtle, #57D9A3)'
168
168
  },
169
169
  /** yellowOrange - light */
170
170
  '#FFFAE6': {
171
- getValue: fallback => '#FFFAE6',
171
+ getValue: () => '#FFFAE6',
172
172
  token: 'var(--ds-background-accent-yellow-subtlest, #FFFAE6)'
173
173
  },
174
174
  /** yellowOrange - medium */
175
175
  '#FFF0B3': {
176
- getValue: fallback => '#FFF0B3',
176
+ getValue: () => '#FFF0B3',
177
177
  token: 'var(--ds-background-accent-yellow-subtler, #FFF0B3)'
178
178
  },
179
179
  /** yellowOrange - strong */
180
180
  '#FFC400': {
181
- getValue: fallback => '#FFC400',
181
+ getValue: () => '#FFC400',
182
182
  token: 'var(--ds-background-accent-orange-subtle, #FFC400)'
183
183
  },
184
184
  /** red - light */
185
185
  '#FFEBE6': {
186
- getValue: fallback => '#FFEBE6',
186
+ getValue: () => '#FFEBE6',
187
187
  token: 'var(--ds-background-accent-red-subtlest, #FFEBE6)'
188
188
  },
189
189
  /** red - medium */
190
190
  '#FFBDAD': {
191
- getValue: fallback => '#FFBDAD',
191
+ getValue: () => '#FFBDAD',
192
192
  token: 'var(--ds-background-accent-red-subtler, #FFBDAD)'
193
193
  },
194
194
  /** red - strong */
195
195
  '#FF8F73': {
196
- getValue: fallback => '#FF8F73',
196
+ getValue: () => '#FF8F73',
197
197
  token: 'var(--ds-background-accent-red-subtle, #FF8F73)'
198
198
  },
199
199
  /** purple - light */
200
200
  '#EAE6FF': {
201
- getValue: fallback => '#EAE6FF',
201
+ getValue: () => '#EAE6FF',
202
202
  token: 'var(--ds-background-accent-purple-subtlest, #EAE6FF)'
203
203
  },
204
204
  /** purple - medium */
205
205
  '#C0B6F2': {
206
- getValue: fallback => '#C0B6F2',
206
+ getValue: () => '#C0B6F2',
207
207
  token: 'var(--ds-background-accent-purple-subtler, #C0B6F2)'
208
208
  },
209
209
  /** purple - strong */
210
210
  '#998DD9': {
211
- getValue: fallback => '#998DD9',
211
+ getValue: () => '#998DD9',
212
212
  token: 'var(--ds-background-accent-purple-subtle, #998DD9)'
213
213
  },
214
214
  /** whiteGray - light */
215
215
  '#FFFFFF': {
216
- getValue: fallback => '#FFFFFF',
216
+ getValue: () => '#FFFFFF',
217
217
  token: 'var(--ds-surface, #FFFFFF)'
218
218
  },
219
219
  /** whiteGray - medium */
220
220
  '#F4F5F7': {
221
- getValue: fallback => '#F4F5F7',
221
+ getValue: () => '#F4F5F7',
222
222
  token: 'var(--ds-background-accent-gray-subtlest, #F4F5F7)'
223
223
  },
224
224
  /** whiteGray - strong */
225
225
  '#B3BAC5': {
226
- getValue: fallback => '#B3BAC5',
226
+ getValue: () => '#B3BAC5',
227
227
  token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)'
228
228
  }
229
229
  };
@@ -10,7 +10,7 @@ export var caption = {
10
10
  parseDOM: [{
11
11
  tag: 'figcaption[data-caption]'
12
12
  }],
13
- toDOM: function toDOM(node) {
13
+ toDOM: function toDOM() {
14
14
  var attrs = {
15
15
  'data-caption': 'true'
16
16
  };
@@ -20,23 +20,6 @@
20
20
  /**
21
21
  * @name paragraph_with_indentation_node
22
22
  */
23
- var isImageNode = function isImageNode(node) {
24
- return Boolean(node && node.nodeName.toLowerCase() === 'img');
25
- };
26
- var hasInlineImage = function hasInlineImage(node) {
27
- if (!node) {
28
- return false;
29
- }
30
- return Array.from(node.childNodes).some(function (child) {
31
- var isImage = isImageNode(child);
32
- if (!isImage && child.childNodes) {
33
- return Array.from(node.childNodes).some(function (node) {
34
- return hasInlineImage(node);
35
- });
36
- }
37
- return isImage;
38
- });
39
- };
40
23
  var pDOM = ['p', 0];
41
24
  export var paragraph = {
42
25
  selectable: false,
@@ -44,6 +44,7 @@ export var LinkMetaStep = /*#__PURE__*/function (_Step) {
44
44
  /**
45
45
  * Omit sourceEvent in history
46
46
  */
47
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
47
48
  var _this$metadata = this.metadata,
48
49
  sourceEvent = _this$metadata.sourceEvent,
49
50
  metadata = _objectWithoutProperties(_this$metadata, _excluded);
@@ -90,7 +91,7 @@ export var LinkMetaStep = /*#__PURE__*/function (_Step) {
90
91
  }
91
92
  }], [{
92
93
  key: "fromJSON",
93
- value: function fromJSON(_, __) {
94
+ value: function fromJSON() {
94
95
  // This is a "local custom step" once serialized
95
96
  // we need to transform it in a no-operation action
96
97
  return new ReplaceStep(0, 0, Slice.empty);
@@ -65,7 +65,7 @@ export var InsertTypeAheadStep = /*#__PURE__*/function (_Step) {
65
65
  }
66
66
  }, {
67
67
  key: "map",
68
- value: function map(mapping) {
68
+ value: function map() {
69
69
  var config = {
70
70
  stage: this.stage,
71
71
  query: this.query,
@@ -123,147 +123,147 @@ export function hexToEditorBackgroundPaletteRawValue(hexColor) {
123
123
  export var editorBackgroundPalette = {
124
124
  /** blue - light */
125
125
  '#DEEBFF': {
126
- getValue: function getValue(fallback) {
126
+ getValue: function getValue() {
127
127
  return '#DEEBFF';
128
128
  },
129
129
  token: 'var(--ds-background-accent-blue-subtlest, #DEEBFF)'
130
130
  },
131
131
  /** blue - medium */
132
132
  '#B3D4FF': {
133
- getValue: function getValue(fallback) {
133
+ getValue: function getValue() {
134
134
  return '#B3D4FF';
135
135
  },
136
136
  token: 'var(--ds-background-accent-blue-subtler, #B3D4FF)'
137
137
  },
138
138
  /** blue - strong */
139
139
  '#4C9AFF': {
140
- getValue: function getValue(fallback) {
140
+ getValue: function getValue() {
141
141
  return '#4C9AFF';
142
142
  },
143
143
  token: 'var(--ds-background-accent-blue-subtle, #4C9AFF)'
144
144
  },
145
145
  /** teal - light */
146
146
  '#E6FCFF': {
147
- getValue: function getValue(fallback) {
147
+ getValue: function getValue() {
148
148
  return '#E6FCFF';
149
149
  },
150
150
  token: 'var(--ds-background-accent-teal-subtlest, #E6FCFF)'
151
151
  },
152
152
  /** teal - medium */
153
153
  '#B3F5FF': {
154
- getValue: function getValue(fallback) {
154
+ getValue: function getValue() {
155
155
  return '#B3F5FF';
156
156
  },
157
157
  token: 'var(--ds-background-accent-teal-subtler, #B3F5FF)'
158
158
  },
159
159
  /** teal - strong */
160
160
  '#79E2F2': {
161
- getValue: function getValue(fallback) {
161
+ getValue: function getValue() {
162
162
  return '#79E2F2';
163
163
  },
164
164
  token: 'var(--ds-background-accent-teal-subtle, #79E2F2)'
165
165
  },
166
166
  /** green - light */
167
167
  '#E3FCEF': {
168
- getValue: function getValue(fallback) {
168
+ getValue: function getValue() {
169
169
  return '#E3FCEF';
170
170
  },
171
171
  token: 'var(--ds-background-accent-green-subtlest, #E3FCEF)'
172
172
  },
173
173
  /** green - medium */
174
174
  '#ABF5D1': {
175
- getValue: function getValue(fallback) {
175
+ getValue: function getValue() {
176
176
  return '#ABF5D1';
177
177
  },
178
178
  token: 'var(--ds-background-accent-green-subtler, #ABF5D1)'
179
179
  },
180
180
  /** green - strong */
181
181
  '#57D9A3': {
182
- getValue: function getValue(fallback) {
182
+ getValue: function getValue() {
183
183
  return '#57D9A3';
184
184
  },
185
185
  token: 'var(--ds-background-accent-green-subtle, #57D9A3)'
186
186
  },
187
187
  /** yellowOrange - light */
188
188
  '#FFFAE6': {
189
- getValue: function getValue(fallback) {
189
+ getValue: function getValue() {
190
190
  return '#FFFAE6';
191
191
  },
192
192
  token: 'var(--ds-background-accent-yellow-subtlest, #FFFAE6)'
193
193
  },
194
194
  /** yellowOrange - medium */
195
195
  '#FFF0B3': {
196
- getValue: function getValue(fallback) {
196
+ getValue: function getValue() {
197
197
  return '#FFF0B3';
198
198
  },
199
199
  token: 'var(--ds-background-accent-yellow-subtler, #FFF0B3)'
200
200
  },
201
201
  /** yellowOrange - strong */
202
202
  '#FFC400': {
203
- getValue: function getValue(fallback) {
203
+ getValue: function getValue() {
204
204
  return '#FFC400';
205
205
  },
206
206
  token: 'var(--ds-background-accent-orange-subtle, #FFC400)'
207
207
  },
208
208
  /** red - light */
209
209
  '#FFEBE6': {
210
- getValue: function getValue(fallback) {
210
+ getValue: function getValue() {
211
211
  return '#FFEBE6';
212
212
  },
213
213
  token: 'var(--ds-background-accent-red-subtlest, #FFEBE6)'
214
214
  },
215
215
  /** red - medium */
216
216
  '#FFBDAD': {
217
- getValue: function getValue(fallback) {
217
+ getValue: function getValue() {
218
218
  return '#FFBDAD';
219
219
  },
220
220
  token: 'var(--ds-background-accent-red-subtler, #FFBDAD)'
221
221
  },
222
222
  /** red - strong */
223
223
  '#FF8F73': {
224
- getValue: function getValue(fallback) {
224
+ getValue: function getValue() {
225
225
  return '#FF8F73';
226
226
  },
227
227
  token: 'var(--ds-background-accent-red-subtle, #FF8F73)'
228
228
  },
229
229
  /** purple - light */
230
230
  '#EAE6FF': {
231
- getValue: function getValue(fallback) {
231
+ getValue: function getValue() {
232
232
  return '#EAE6FF';
233
233
  },
234
234
  token: 'var(--ds-background-accent-purple-subtlest, #EAE6FF)'
235
235
  },
236
236
  /** purple - medium */
237
237
  '#C0B6F2': {
238
- getValue: function getValue(fallback) {
238
+ getValue: function getValue() {
239
239
  return '#C0B6F2';
240
240
  },
241
241
  token: 'var(--ds-background-accent-purple-subtler, #C0B6F2)'
242
242
  },
243
243
  /** purple - strong */
244
244
  '#998DD9': {
245
- getValue: function getValue(fallback) {
245
+ getValue: function getValue() {
246
246
  return '#998DD9';
247
247
  },
248
248
  token: 'var(--ds-background-accent-purple-subtle, #998DD9)'
249
249
  },
250
250
  /** whiteGray - light */
251
251
  '#FFFFFF': {
252
- getValue: function getValue(fallback) {
252
+ getValue: function getValue() {
253
253
  return '#FFFFFF';
254
254
  },
255
255
  token: 'var(--ds-surface, #FFFFFF)'
256
256
  },
257
257
  /** whiteGray - medium */
258
258
  '#F4F5F7': {
259
- getValue: function getValue(fallback) {
259
+ getValue: function getValue() {
260
260
  return '#F4F5F7';
261
261
  },
262
262
  token: 'var(--ds-background-accent-gray-subtlest, #F4F5F7)'
263
263
  },
264
264
  /** whiteGray - strong */
265
265
  '#B3BAC5': {
266
- getValue: function getValue(fallback) {
266
+ getValue: function getValue() {
267
267
  return '#B3BAC5';
268
268
  },
269
269
  token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)'
@@ -1,4 +1,4 @@
1
- import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
1
+ import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { ReplaceStep, Step, StepMap, StepResult, Mappable } from '@atlaskit/editor-prosemirror/transform';
3
3
  export declare const stepType = "editor-linking-meta";
4
4
  export declare const invertStepType = "editor-linking-meta-invert";
@@ -45,7 +45,5 @@ export declare class LinkMetaStep extends Step {
45
45
  from: number;
46
46
  to: number;
47
47
  };
48
- static fromJSON<S extends Schema = any>(_: S, __: {
49
- [key: string]: any;
50
- }): ReplaceStep;
48
+ static fromJSON(): ReplaceStep;
51
49
  }
@@ -1,5 +1,5 @@
1
1
  import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import { Mappable, ReplaceStep, Step, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
2
+ import { ReplaceStep, Step, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
3
3
  export declare const insertTypeAheadStepType = "atlaskit-insert-type-ahead";
4
4
  export declare enum InsertTypeAheadStages {
5
5
  DELETING_RAW_QUERY = "DELETING_RAW_QUERY",
@@ -23,7 +23,7 @@ export declare class InsertTypeAheadStep extends Step {
23
23
  merge(): null;
24
24
  isInsertionStep(): boolean;
25
25
  isUndoingStep(): boolean;
26
- map(mapping: Mappable): InsertTypeAheadStep;
26
+ map(): InsertTypeAheadStep;
27
27
  getMap(): StepMap;
28
28
  toJSON(): {
29
29
  stepType: string;
@@ -114,107 +114,107 @@ export type EditorBackgroundPaletteKey = keyof EditorBackgroundPalette;
114
114
  export declare const editorBackgroundPalette: {
115
115
  /** blue - light */
116
116
  '#DEEBFF': {
117
- getValue: (fallback: string) => string;
117
+ getValue: () => string;
118
118
  token: string;
119
119
  };
120
120
  /** blue - medium */
121
121
  '#B3D4FF': {
122
- getValue: (fallback: string) => string;
122
+ getValue: () => string;
123
123
  token: string;
124
124
  };
125
125
  /** blue - strong */
126
126
  '#4C9AFF': {
127
- getValue: (fallback: string) => string;
127
+ getValue: () => string;
128
128
  token: string;
129
129
  };
130
130
  /** teal - light */
131
131
  '#E6FCFF': {
132
- getValue: (fallback: string) => string;
132
+ getValue: () => string;
133
133
  token: string;
134
134
  };
135
135
  /** teal - medium */
136
136
  '#B3F5FF': {
137
- getValue: (fallback: string) => string;
137
+ getValue: () => string;
138
138
  token: string;
139
139
  };
140
140
  /** teal - strong */
141
141
  '#79E2F2': {
142
- getValue: (fallback: string) => string;
142
+ getValue: () => string;
143
143
  token: string;
144
144
  };
145
145
  /** green - light */
146
146
  '#E3FCEF': {
147
- getValue: (fallback: string) => string;
147
+ getValue: () => string;
148
148
  token: string;
149
149
  };
150
150
  /** green - medium */
151
151
  '#ABF5D1': {
152
- getValue: (fallback: string) => string;
152
+ getValue: () => string;
153
153
  token: string;
154
154
  };
155
155
  /** green - strong */
156
156
  '#57D9A3': {
157
- getValue: (fallback: string) => string;
157
+ getValue: () => string;
158
158
  token: string;
159
159
  };
160
160
  /** yellowOrange - light */
161
161
  '#FFFAE6': {
162
- getValue: (fallback: string) => string;
162
+ getValue: () => string;
163
163
  token: string;
164
164
  };
165
165
  /** yellowOrange - medium */
166
166
  '#FFF0B3': {
167
- getValue: (fallback: string) => string;
167
+ getValue: () => string;
168
168
  token: string;
169
169
  };
170
170
  /** yellowOrange - strong */
171
171
  '#FFC400': {
172
- getValue: (fallback: string) => string;
172
+ getValue: () => string;
173
173
  token: string;
174
174
  };
175
175
  /** red - light */
176
176
  '#FFEBE6': {
177
- getValue: (fallback: string) => string;
177
+ getValue: () => string;
178
178
  token: string;
179
179
  };
180
180
  /** red - medium */
181
181
  '#FFBDAD': {
182
- getValue: (fallback: string) => string;
182
+ getValue: () => string;
183
183
  token: string;
184
184
  };
185
185
  /** red - strong */
186
186
  '#FF8F73': {
187
- getValue: (fallback: string) => string;
187
+ getValue: () => string;
188
188
  token: string;
189
189
  };
190
190
  /** purple - light */
191
191
  '#EAE6FF': {
192
- getValue: (fallback: string) => string;
192
+ getValue: () => string;
193
193
  token: string;
194
194
  };
195
195
  /** purple - medium */
196
196
  '#C0B6F2': {
197
- getValue: (fallback: string) => string;
197
+ getValue: () => string;
198
198
  token: string;
199
199
  };
200
200
  /** purple - strong */
201
201
  '#998DD9': {
202
- getValue: (fallback: string) => string;
202
+ getValue: () => string;
203
203
  token: string;
204
204
  };
205
205
  /** whiteGray - light */
206
206
  '#FFFFFF': {
207
- getValue: (fallback: string) => string;
207
+ getValue: () => string;
208
208
  token: string;
209
209
  };
210
210
  /** whiteGray - medium */
211
211
  '#F4F5F7': {
212
- getValue: (fallback: string) => string;
212
+ getValue: () => string;
213
213
  token: string;
214
214
  };
215
215
  /** whiteGray - strong */
216
216
  '#B3BAC5': {
217
- getValue: (fallback: string) => string;
217
+ getValue: () => string;
218
218
  token: string;
219
219
  };
220
220
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "30.2.3",
3
+ "version": "31.0.0",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"