@atlaskit/adf-schema 22.0.2 → 22.1.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,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 22.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`fd5028f6751`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd5028f6751) - EDM-2873: Promote MediaInline to full schema
8
+
3
9
  ## 22.0.2
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "22.0.2",
3
+ "version": "22.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "22.0.2",
3
+ "version": "22.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "22.0.2",
3
+ "version": "22.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -897,6 +897,58 @@
897
897
  ],
898
898
  "additionalProperties": false
899
899
  },
900
+ "mediaInline_node": {
901
+ "type": "object",
902
+ "properties": {
903
+ "type": {
904
+ "enum": [
905
+ "mediaInline"
906
+ ]
907
+ },
908
+ "attrs": {
909
+ "type": "object",
910
+ "properties": {
911
+ "data": {},
912
+ "id": {
913
+ "type": "string",
914
+ "minLength": 1
915
+ },
916
+ "collection": {
917
+ "type": "string"
918
+ },
919
+ "height": {
920
+ "type": "number"
921
+ },
922
+ "width": {
923
+ "type": "number"
924
+ },
925
+ "occurrenceKey": {
926
+ "type": "string",
927
+ "minLength": 1
928
+ },
929
+ "alt": {
930
+ "type": "string"
931
+ }
932
+ },
933
+ "additionalProperties": false,
934
+ "required": [
935
+ "id",
936
+ "collection"
937
+ ]
938
+ },
939
+ "marks": {
940
+ "type": "array",
941
+ "items": {
942
+ "$ref": "#/definitions/link_mark"
943
+ }
944
+ }
945
+ },
946
+ "required": [
947
+ "type",
948
+ "attrs"
949
+ ],
950
+ "additionalProperties": false
951
+ },
900
952
  "formatted_text_inline_node": {
901
953
  "allOf": [
902
954
  {
@@ -996,6 +1048,9 @@
996
1048
  {
997
1049
  "$ref": "#/definitions/status_node"
998
1050
  },
1051
+ {
1052
+ "$ref": "#/definitions/mediaInline_node"
1053
+ },
999
1054
  {
1000
1055
  "$ref": "#/definitions/formatted_text_inline_node"
1001
1056
  },
@@ -5,7 +5,6 @@ export interface MediaInlineAttributes extends MediaBaseAttributes {
5
5
  data?: object;
6
6
  }
7
7
  /**
8
- * @stage 0
9
8
  * @name mediaInline_node
10
9
  */
11
10
  export interface MediaInlineDefinition {
@@ -897,6 +897,58 @@
897
897
  ],
898
898
  "additionalProperties": false
899
899
  },
900
+ "mediaInline_node": {
901
+ "type": "object",
902
+ "properties": {
903
+ "type": {
904
+ "enum": [
905
+ "mediaInline"
906
+ ]
907
+ },
908
+ "attrs": {
909
+ "type": "object",
910
+ "properties": {
911
+ "data": {},
912
+ "id": {
913
+ "type": "string",
914
+ "minLength": 1
915
+ },
916
+ "collection": {
917
+ "type": "string"
918
+ },
919
+ "height": {
920
+ "type": "number"
921
+ },
922
+ "width": {
923
+ "type": "number"
924
+ },
925
+ "occurrenceKey": {
926
+ "type": "string",
927
+ "minLength": 1
928
+ },
929
+ "alt": {
930
+ "type": "string"
931
+ }
932
+ },
933
+ "additionalProperties": false,
934
+ "required": [
935
+ "id",
936
+ "collection"
937
+ ]
938
+ },
939
+ "marks": {
940
+ "type": "array",
941
+ "items": {
942
+ "$ref": "#/definitions/link_mark"
943
+ }
944
+ }
945
+ },
946
+ "required": [
947
+ "type",
948
+ "attrs"
949
+ ],
950
+ "additionalProperties": false
951
+ },
900
952
  "formatted_text_inline_node": {
901
953
  "allOf": [
902
954
  {
@@ -996,6 +1048,9 @@
996
1048
  {
997
1049
  "$ref": "#/definitions/status_node"
998
1050
  },
1051
+ {
1052
+ "$ref": "#/definitions/mediaInline_node"
1053
+ },
999
1054
  {
1000
1055
  "$ref": "#/definitions/formatted_text_inline_node"
1001
1056
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "22.0.2",
3
+ "version": "22.1.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/"
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@atlaskit/adf-utils": "^16.0.0",
50
50
  "@atlaskit/editor-json-transformer": "^8.7.0",
51
- "@atlaskit/editor-test-helpers": "^16.1.0",
51
+ "@atlaskit/editor-test-helpers": "^17.0.0",
52
52
  "@atlaskit/json-schema-generator": "^3.2.0",
53
53
  "@atlassian/adf-sample": "^1.0.0",
54
54
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",