@atlaskit/forge-react-types 0.42.4 → 0.42.6

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,22 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.42.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#182163](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/182163)
8
+ [`28a10175a3cae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/28a10175a3cae) -
9
+ Add internal documentWithoutMedia prop to AdfRendererProps in @atlaskit/forge-react-types
10
+
11
+ ## 0.42.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [#181844](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181844)
16
+ [`96c8f11408c6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/96c8f11408c6e) -
17
+ Remove @atlaskit/renderer dependency from @atlaskit/forge-react-types
18
+ - Updated dependencies
19
+
3
20
  ## 0.42.4
4
21
 
5
22
  ### Patch Changes
@@ -3,20 +3,18 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - AdfRendererProps
5
5
  *
6
- * @codegen <<SignedSource::4e44b65ce16ded81aeeb086d4abf54c9>>
6
+ * @codegen <<SignedSource::126b3ad6e0833d5ef9d0270f34b9deb1>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::38be261305900c390921675abcf4c90c>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::812969188e3d278549014394c969938c>>
9
9
  */
10
- import { type RendererProps } from '@atlaskit/renderer';
11
10
  import type { DocNode } from '@atlaskit/adf-schema';
12
- export type AdfRendererProps = RendererProps & {
11
+ export type AdfRendererProps = {
13
12
  /**
14
13
  * An ADF document to render
15
14
  *
16
15
  * @type [DocNode](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/doc/)
17
16
  */
18
17
  document: DocNode;
19
- documentWithoutMedia?: RendererProps['document'];
20
18
  /**
21
19
  * A function to determine behaviour for handling unsupported nodes:
22
20
  * - Return a new Node to replace the unsupported one
@@ -26,6 +24,7 @@ export type AdfRendererProps = RendererProps & {
26
24
  * @type [Visitor](https://bitbucket.org/atlassian/atlassian-frontend-mirror/src/master/editor/adf-utils/src/types/index.ts)
27
25
  */
28
26
  replaceUnsupportedNode?: Function;
27
+ documentWithoutMedia?: DocNode;
29
28
  };
30
29
  /**
31
30
  * The AdfRenderer component provides a way to render a valid ADF document, using the same renderer that Atlassian uses internally to render ADF content in Confluence pages, Jira work items, and so on.
@@ -3,20 +3,18 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - AdfRendererProps
5
5
  *
6
- * @codegen <<SignedSource::4e44b65ce16ded81aeeb086d4abf54c9>>
6
+ * @codegen <<SignedSource::126b3ad6e0833d5ef9d0270f34b9deb1>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::38be261305900c390921675abcf4c90c>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::812969188e3d278549014394c969938c>>
9
9
  */
10
- import { type RendererProps } from '@atlaskit/renderer';
11
10
  import type { DocNode } from '@atlaskit/adf-schema';
12
- export type AdfRendererProps = RendererProps & {
11
+ export type AdfRendererProps = {
13
12
  /**
14
13
  * An ADF document to render
15
14
  *
16
15
  * @type [DocNode](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/doc/)
17
16
  */
18
17
  document: DocNode;
19
- documentWithoutMedia?: RendererProps['document'];
20
18
  /**
21
19
  * A function to determine behaviour for handling unsupported nodes:
22
20
  * - Return a new Node to replace the unsupported one
@@ -26,6 +24,7 @@ export type AdfRendererProps = RendererProps & {
26
24
  * @type [Visitor](https://bitbucket.org/atlassian/atlassian-frontend-mirror/src/master/editor/adf-utils/src/types/index.ts)
27
25
  */
28
26
  replaceUnsupportedNode?: Function;
27
+ documentWithoutMedia?: DocNode;
29
28
  };
30
29
  /**
31
30
  * The AdfRenderer component provides a way to render a valid ADF document, using the same renderer that Atlassian uses internally to render ADF content in Confluence pages, Jira work items, and so on.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.42.4",
3
+ "version": "0.42.6",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,14 +38,12 @@
38
38
  "@atlaskit/inline-edit": "^15.2.0",
39
39
  "@atlaskit/lozenge": "^13.0.0",
40
40
  "@atlaskit/modal-dialog": "^14.2.0",
41
- "@atlaskit/platform-feature-flags": "^1.1.0",
42
41
  "@atlaskit/popup": "^4.3.0",
43
- "@atlaskit/primitives": "^14.9.0",
42
+ "@atlaskit/primitives": "^14.10.0",
44
43
  "@atlaskit/progress-bar": "^4.0.0",
45
44
  "@atlaskit/progress-tracker": "^10.2.0",
46
45
  "@atlaskit/radio": "^8.1.0",
47
46
  "@atlaskit/range": "^9.1.0",
48
- "@atlaskit/renderer": "^119.0.0",
49
47
  "@atlaskit/section-message": "^8.2.0",
50
48
  "@atlaskit/select": "^21.0.0",
51
49
  "@atlaskit/spinner": "^18.0.0",
@@ -3,23 +3,21 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - AdfRendererProps
5
5
  *
6
- * @codegen <<SignedSource::4e44b65ce16ded81aeeb086d4abf54c9>>
6
+ * @codegen <<SignedSource::126b3ad6e0833d5ef9d0270f34b9deb1>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::38be261305900c390921675abcf4c90c>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::812969188e3d278549014394c969938c>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
12
- import { type RendererProps } from '@atlaskit/renderer';
13
12
  import type { DocNode } from '@atlaskit/adf-schema';
14
13
 
15
- export type AdfRendererProps = RendererProps & {
14
+ export type AdfRendererProps = {
16
15
  /**
17
16
  * An ADF document to render
18
17
  *
19
18
  * @type [DocNode](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/doc/)
20
19
  */
21
20
  document: DocNode;
22
- documentWithoutMedia?: RendererProps['document'];
23
21
 
24
22
  /**
25
23
  * A function to determine behaviour for handling unsupported nodes:
@@ -30,6 +28,9 @@ export type AdfRendererProps = RendererProps & {
30
28
  * @type [Visitor](https://bitbucket.org/atlassian/atlassian-frontend-mirror/src/master/editor/adf-utils/src/types/index.ts)
31
29
  */
32
30
  replaceUnsupportedNode?: Function;
31
+
32
+ // documentWithoutMedia is only used internally on the Forge side, this is not part of the public API
33
+ documentWithoutMedia?: DocNode;
33
34
  };
34
35
 
35
36
  /**