@atlaskit/adf-utils 19.6.0 → 19.6.1

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-utils
2
2
 
3
+ ## 19.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#124673](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124673)
8
+ [`baa5f86d19b52`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/baa5f86d19b52) -
9
+ EDF-939 Export and use empty check from adf-utils
10
+
3
11
  ## 19.6.0
4
12
 
5
13
  ### 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.6.1",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"