@atlaskit/adf-schema 23.1.0 → 23.2.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
+ ## 23.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`4d8c675bd2a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d8c675bd2a) - EDM-3779 Hotfix: Extend Media Inline ADF Schema to have type attribute
8
+
3
9
  ## 23.1.0
4
10
 
5
11
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "23.1.0",
3
+ "version": "23.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "23.1.0",
3
+ "version": "23.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "23.1.0",
3
+ "version": "23.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -909,6 +909,12 @@
909
909
  "type": "object",
910
910
  "properties": {
911
911
  "data": {},
912
+ "type": {
913
+ "enum": [
914
+ "link",
915
+ "file"
916
+ ]
917
+ },
912
918
  "id": {
913
919
  "type": "string",
914
920
  "minLength": 1
@@ -909,6 +909,12 @@
909
909
  "type": "object",
910
910
  "properties": {
911
911
  "data": {},
912
+ "type": {
913
+ "enum": [
914
+ "link",
915
+ "file"
916
+ ]
917
+ },
912
918
  "id": {
913
919
  "type": "string",
914
920
  "minLength": 1
@@ -3,6 +3,7 @@ import { LinkDefinition } from '../marks/link';
3
3
  import { MediaBaseAttributes } from './media';
4
4
  export interface MediaInlineAttributes extends MediaBaseAttributes {
5
5
  data?: object;
6
+ type?: 'file' | 'link';
6
7
  }
7
8
  /**
8
9
  * @name mediaInline_node
@@ -909,6 +909,12 @@
909
909
  "type": "object",
910
910
  "properties": {
911
911
  "data": {},
912
+ "type": {
913
+ "enum": [
914
+ "link",
915
+ "file"
916
+ ]
917
+ },
912
918
  "id": {
913
919
  "type": "string",
914
920
  "minLength": 1
@@ -909,6 +909,12 @@
909
909
  "type": "object",
910
910
  "properties": {
911
911
  "data": {},
912
+ "type": {
913
+ "enum": [
914
+ "link",
915
+ "file"
916
+ ]
917
+ },
912
918
  "id": {
913
919
  "type": "string",
914
920
  "minLength": 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "23.1.0",
3
+ "version": "23.2.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/"
@@ -51,7 +51,7 @@
51
51
  "prosemirror-transform": "1.3.2"
52
52
  },
53
53
  "devDependencies": {
54
- "@atlaskit/adf-utils": "^17.0.0",
54
+ "@atlaskit/adf-utils": "^17.1.0",
55
55
  "@atlaskit/editor-json-transformer": "^8.7.0",
56
56
  "@atlaskit/editor-test-helpers": "^17.0.0",
57
57
  "@atlaskit/json-schema-generator": "^3.2.0",