@atlaskit/adf-utils 19.6.0 → 19.7.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,23 @@
1
1
  # @atlaskit/adf-utils
2
2
 
3
+ ## 19.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
8
+ [`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
9
+ [ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
10
+ promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
11
+ quotes in panels and decisions in lists in stage0 schema, and a validator spec change
12
+
13
+ ## 19.6.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#124673](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124673)
18
+ [`baa5f86d19b52`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/baa5f86d19b52) -
19
+ EDF-939 Export and use empty check from adf-utils
20
+
3
21
  ## 19.6.0
4
22
 
5
23
  ### Minor Changes
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getEmptyADF = void 0;
7
+ Object.defineProperty(exports, "isEmpty", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _helpers.isEmpty;
11
+ }
12
+ });
13
+ var _helpers = require("./transforms/helpers");
7
14
  // https://product-fabric.atlassian.net/wiki/spaces/ADF/pages/881362244/ADF+Change+42+Uniform+Empty+ADF+Representation
8
15
  var getEmptyADF = exports.getEmptyADF = function getEmptyADF() {
9
16
  return {
@@ -3,4 +3,5 @@ export const getEmptyADF = () => ({
3
3
  type: 'doc',
4
4
  version: 1,
5
5
  content: []
6
- });
6
+ });
7
+ export { isEmpty } from './transforms/helpers';
@@ -5,4 +5,5 @@ export var getEmptyADF = function getEmptyADF() {
5
5
  version: 1,
6
6
  content: []
7
7
  };
8
- };
8
+ };
9
+ export { isEmpty } from './transforms/helpers';
@@ -1,2 +1,3 @@
1
1
  import { type DocNode } from './validator/entry';
2
2
  export declare const getEmptyADF: () => DocNode;
3
+ export { isEmpty } from './transforms/helpers';
@@ -1,2 +1,3 @@
1
1
  import { type DocNode } from './validator/entry';
2
2
  export declare const getEmptyADF: () => DocNode;
3
+ export { isEmpty } from './transforms/helpers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "19.6.0",
3
+ "version": "19.7.0",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,12 +38,12 @@
38
38
  "./validatorTypes": "./src/types/validatorTypes.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@atlaskit/adf-schema": "^40.3.0",
41
+ "@atlaskit/adf-schema": "^40.8.1",
42
42
  "@atlaskit/codemod-utils": "^4.2.0",
43
43
  "@babel/runtime": "^7.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@atlassian/adf-schema-json": "^1.18.0",
46
+ "@atlassian/adf-schema-json": "^1.22.0",
47
47
  "jscodeshift": "^0.13.0",
48
48
  "react": "^16.8.0",
49
49
  "typescript": "~5.4.2",