@atlaskit/adf-utils 19.5.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,21 @@
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
+
11
+ ## 19.6.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#124209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124209)
16
+ [`8aa1792f12ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8aa1792f12ed3) -
17
+ bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0
18
+
3
19
  ## 19.5.0
4
20
 
5
21
  ### Minor Changes
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.post-office.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__adf-utils/app",
7
+ "composite": true,
8
+ "rootDir": "../"
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": []
20
+ }
@@ -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 {
@@ -171,8 +171,6 @@ function validateAttrs(spec, value) {
171
171
  }
172
172
  // extension_node parameters has no type
173
173
  if (!(0, _utils.isDefined)(spec.type)) {
174
- // @ts-expect-error - property 'optional' does not exist on type 'never'
175
- // This error was introduced after upgrading to TypeScript 5
176
174
  return !!spec.optional;
177
175
  }
178
176
  switch (spec.type) {
@@ -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';
@@ -140,8 +140,6 @@ export function validateAttrs(spec, value) {
140
140
  }
141
141
  // extension_node parameters has no type
142
142
  if (!isDefined(spec.type)) {
143
- // @ts-expect-error - property 'optional' does not exist on type 'never'
144
- // This error was introduced after upgrading to TypeScript 5
145
143
  return !!spec.optional;
146
144
  }
147
145
  switch (spec.type) {
@@ -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';
@@ -160,8 +160,6 @@ export function validateAttrs(spec, value) {
160
160
  }
161
161
  // extension_node parameters has no type
162
162
  if (!isDefined(spec.type)) {
163
- // @ts-expect-error - property 'optional' does not exist on type 'never'
164
- // This error was introduced after upgrading to TypeScript 5
165
163
  return !!spec.optional;
166
164
  }
167
165
  switch (spec.type) {
@@ -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.5.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/"