@atlaskit/adf-schema 57.7.43 → 57.7.44

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,13 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 57.7.44
4
+
5
+ ### Patch Changes
6
+
7
+ - [`aab32042c5630`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aab32042c5630) -
8
+ [EDITOR-8341] allow fontSize small-text paragraph inside the existing stage-0 bodiedRule schema.
9
+ - Updated dependencies
10
+
3
11
  ## 57.7.43
4
12
 
5
13
  ### Patch Changes
@@ -158,6 +158,7 @@ var bodiedExtensionWithMarks = exports.bodiedExtensionWithMarks = (0, _createPMS
158
158
  });
159
159
  var bodiedRuleRootOnlyStage0 = exports.bodiedRuleRootOnlyStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
160
160
  content: '(paragraph | heading){1,1}',
161
+ marks: 'fontSize unsupportedMark unsupportedNodeAttribute',
161
162
  attrs: {
162
163
  localId: {
163
164
  default: ''
@@ -178,6 +179,7 @@ var bodiedRuleRootOnlyStage0 = exports.bodiedRuleRootOnlyStage0 = (0, _createPMS
178
179
  });
179
180
  var bodiedRuleStage0 = exports.bodiedRuleStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
180
181
  content: '(paragraph | heading){1,1}',
182
+ marks: 'fontSize unsupportedMark unsupportedNodeAttribute',
181
183
  group: 'block',
182
184
  attrs: {
183
185
  localId: {
@@ -47,7 +47,7 @@ var bodiedRuleAttributes = {
47
47
  var bodiedRule = exports.bodiedRule = (0, _adfNode.adfNode)('bodiedRule').define({
48
48
  stage0: true,
49
49
  attrs: bodiedRuleAttributes,
50
- content: [(0, _$range.$range)(1, 1, (0, _$or.$or)(_paragraph.paragraph.use('with_no_marks'), _heading.heading.use('with_no_marks')))],
50
+ content: [(0, _$range.$range)(1, 1, (0, _$or.$or)(_paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_font_size'), _heading.heading.use('with_no_marks')))],
51
51
  marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute]
52
52
  })
53
53
  // this variant is used to support breakout resizing for bodiedRule nodes at the document root
@@ -53,5 +53,5 @@ var bodiedRule = exports.bodiedRule = (0, _nodeTypes.bodiedRuleStage0)({
53
53
  }
54
54
  });
55
55
  var bodiedRuleRootOnlyStage0 = exports.bodiedRuleRootOnlyStage0 = _objectSpread(_objectSpread({}, bodiedRule), {}, {
56
- marks: 'breakout unsupportedMark unsupportedNodeAttribute'
56
+ marks: 'breakout fontSize unsupportedMark unsupportedNodeAttribute'
57
57
  });
@@ -288,7 +288,7 @@ var bodiedRule = exports.bodiedRule = {
288
288
  }
289
289
  },
290
290
  content: {
291
- items: [['paragraph_with_no_marks', 'heading_with_no_marks']],
291
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks']],
292
292
  maxItems: 1,
293
293
  minItems: 1,
294
294
  type: 'array'
@@ -152,6 +152,7 @@ export const bodiedExtensionWithMarks = createPMNodeSpecFactory({
152
152
  });
153
153
  export const bodiedRuleRootOnlyStage0 = createPMNodeSpecFactory({
154
154
  content: '(paragraph | heading){1,1}',
155
+ marks: 'fontSize unsupportedMark unsupportedNodeAttribute',
155
156
  attrs: {
156
157
  localId: {
157
158
  default: ''
@@ -172,6 +173,7 @@ export const bodiedRuleRootOnlyStage0 = createPMNodeSpecFactory({
172
173
  });
173
174
  export const bodiedRuleStage0 = createPMNodeSpecFactory({
174
175
  content: '(paragraph | heading){1,1}',
176
+ marks: 'fontSize unsupportedMark unsupportedNodeAttribute',
175
177
  group: 'block',
176
178
  attrs: {
177
179
  localId: {
@@ -41,7 +41,7 @@ const bodiedRuleAttributes = {
41
41
  export const bodiedRule = adfNode('bodiedRule').define({
42
42
  stage0: true,
43
43
  attrs: bodiedRuleAttributes,
44
- content: [$range(1, 1, $or(paragraph.use('with_no_marks'), heading.use('with_no_marks')))],
44
+ content: [$range(1, 1, $or(paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks')))],
45
45
  marks: [unsupportedMark, unsupportedNodeAttribute]
46
46
  })
47
47
  // this variant is used to support breakout resizing for bodiedRule nodes at the document root
@@ -46,5 +46,5 @@ export const bodiedRule = bodiedRuleFactory({
46
46
  });
47
47
  export const bodiedRuleRootOnlyStage0 = {
48
48
  ...bodiedRule,
49
- marks: 'breakout unsupportedMark unsupportedNodeAttribute'
49
+ marks: 'breakout fontSize unsupportedMark unsupportedNodeAttribute'
50
50
  };
@@ -281,7 +281,7 @@ export const bodiedRule = {
281
281
  }
282
282
  },
283
283
  content: {
284
- items: [['paragraph_with_no_marks', 'heading_with_no_marks']],
284
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks']],
285
285
  maxItems: 1,
286
286
  minItems: 1,
287
287
  type: 'array'
@@ -152,6 +152,7 @@ export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
152
152
  });
153
153
  export var bodiedRuleRootOnlyStage0 = createPMNodeSpecFactory({
154
154
  content: '(paragraph | heading){1,1}',
155
+ marks: 'fontSize unsupportedMark unsupportedNodeAttribute',
155
156
  attrs: {
156
157
  localId: {
157
158
  default: ''
@@ -172,6 +173,7 @@ export var bodiedRuleRootOnlyStage0 = createPMNodeSpecFactory({
172
173
  });
173
174
  export var bodiedRuleStage0 = createPMNodeSpecFactory({
174
175
  content: '(paragraph | heading){1,1}',
176
+ marks: 'fontSize unsupportedMark unsupportedNodeAttribute',
175
177
  group: 'block',
176
178
  attrs: {
177
179
  localId: {
@@ -41,7 +41,7 @@ var bodiedRuleAttributes = {
41
41
  export var bodiedRule = adfNode('bodiedRule').define({
42
42
  stage0: true,
43
43
  attrs: bodiedRuleAttributes,
44
- content: [$range(1, 1, $or(paragraph.use('with_no_marks'), heading.use('with_no_marks')))],
44
+ content: [$range(1, 1, $or(paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks')))],
45
45
  marks: [unsupportedMark, unsupportedNodeAttribute]
46
46
  })
47
47
  // this variant is used to support breakout resizing for bodiedRule nodes at the document root
@@ -47,5 +47,5 @@ export var bodiedRule = bodiedRuleFactory({
47
47
  }
48
48
  });
49
49
  export var bodiedRuleRootOnlyStage0 = _objectSpread(_objectSpread({}, bodiedRule), {}, {
50
- marks: 'breakout unsupportedMark unsupportedNodeAttribute'
50
+ marks: 'breakout fontSize unsupportedMark unsupportedNodeAttribute'
51
51
  });
@@ -281,7 +281,7 @@ export var bodiedRule = {
281
281
  }
282
282
  },
283
283
  content: {
284
- items: [['paragraph_with_no_marks', 'heading_with_no_marks']],
284
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks']],
285
285
  maxItems: 1,
286
286
  minItems: 1,
287
287
  type: 'array'
@@ -503,6 +503,9 @@
503
503
  {
504
504
  "$ref": "#/definitions/paragraph_with_no_marks_node"
505
505
  },
506
+ {
507
+ "$ref": "#/definitions/paragraph_with_font_size_node"
508
+ },
506
509
  {
507
510
  "$ref": "#/definitions/heading_with_no_marks_node"
508
511
  }
@@ -560,6 +563,9 @@
560
563
  {
561
564
  "$ref": "#/definitions/paragraph_with_no_marks_node"
562
565
  },
566
+ {
567
+ "$ref": "#/definitions/paragraph_with_font_size_node"
568
+ },
563
569
  {
564
570
  "$ref": "#/definitions/heading_with_no_marks_node"
565
571
  }
@@ -106,7 +106,7 @@ export type BodiedExtensionWithMarksNode = PMNode & BodiedExtensionWithMarksDefi
106
106
  export declare const bodiedExtensionWithMarks: PMNodeSpecFactoryInstance<BodiedExtensionWithMarksNode>;
107
107
  export interface BodiedRuleRootOnlyStage0Definition {
108
108
  type: 'bodiedRule';
109
- content: Array<HeadingWithNoMarksDefinition | ParagraphWithNoMarksDefinition>;
109
+ content: Array<HeadingWithNoMarksDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition>;
110
110
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
111
111
  attrs: {
112
112
  localId: string;
@@ -120,7 +120,7 @@ export type BodiedRuleRootOnlyStage0Node = PMNode & BodiedRuleRootOnlyStage0Defi
120
120
  export declare const bodiedRuleRootOnlyStage0: PMNodeSpecFactoryInstance<BodiedRuleRootOnlyStage0Node>;
121
121
  export interface BodiedRuleStage0Definition {
122
122
  type: 'bodiedRule';
123
- content: Array<HeadingWithNoMarksDefinition | ParagraphWithNoMarksDefinition>;
123
+ content: Array<HeadingWithNoMarksDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition>;
124
124
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
125
125
  attrs: {
126
126
  localId: string;
@@ -1,7 +1,8 @@
1
1
  import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { BreakoutMarkDefinition } from '../marks';
3
+ import type { FontSizeMarkDefinition } from '../marks/font-size';
3
4
  import type { HeadingDefinition } from './heading';
4
- import type { ParagraphDefinition } from './paragraph';
5
+ import type { ParagraphBaseDefinition, ParagraphDefinition } from './paragraph';
5
6
  import type { MarksObject } from './types/mark';
6
7
  export type BodiedRuleAlignment = 'start' | 'center' | 'end';
7
8
  export type BodiedRuleStyle = 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
@@ -23,7 +24,7 @@ export interface BodiedRuleDefinition {
23
24
  // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
24
25
  * @maxItems 1
25
26
  */
26
- content: Array<HeadingDefinition | ParagraphDefinition>;
27
+ content: Array<HeadingDefinition | ParagraphDefinition | (ParagraphBaseDefinition & MarksObject<FontSizeMarkDefinition>)>;
27
28
  type: 'bodiedRule';
28
29
  }
29
30
  /**
@@ -503,6 +503,9 @@
503
503
  {
504
504
  "$ref": "#/definitions/paragraph_with_no_marks_node"
505
505
  },
506
+ {
507
+ "$ref": "#/definitions/paragraph_with_font_size_node"
508
+ },
506
509
  {
507
510
  "$ref": "#/definitions/heading_with_no_marks_node"
508
511
  }
@@ -560,6 +563,9 @@
560
563
  {
561
564
  "$ref": "#/definitions/paragraph_with_no_marks_node"
562
565
  },
566
+ {
567
+ "$ref": "#/definitions/paragraph_with_font_size_node"
568
+ },
563
569
  {
564
570
  "$ref": "#/definitions/heading_with_no_marks_node"
565
571
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "57.7.43",
3
+ "version": "57.7.44",
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/"