@atlaskit/renderer 126.4.0 → 126.5.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.
@@ -61,7 +61,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
61
61
  var TABLE_INFO_TIMEOUT = 10000;
62
62
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
63
63
  var packageName = "@atlaskit/renderer";
64
- var packageVersion = "126.3.0";
64
+ var packageVersion = "126.4.0";
65
65
  var setAsQueryContainerStyles = css({
66
66
  containerName: 'ak-renderer-wrapper',
67
67
  containerType: 'inline-size'
@@ -4,6 +4,16 @@ export declare const headingAnchorLinkMessages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ copyLinkToClipboard: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ copyHeadingLinkLabelledBy: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
7
17
  copiedHeadingLinkToClipboard: {
8
18
  id: string;
9
19
  defaultMessage: string;
@@ -1,9 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ * @jsxFrag
5
+ */
1
6
  import React from 'react';
2
7
  import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
8
  import type { NodeProps } from '../types';
4
9
  import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
5
10
  export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
6
- declare function Heading(props: NodeProps<{
11
+ type HeadingProps = NodeProps<{
7
12
  allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
8
13
  headingId?: string;
9
14
  invisible?: boolean;
@@ -11,5 +16,12 @@ declare function Heading(props: NodeProps<{
11
16
  localId?: string;
12
17
  marks?: PMNode['marks'];
13
18
  showAnchorLink?: boolean;
14
- }>): React.JSX.Element;
19
+ }>;
20
+ /**
21
+ * Gated Heading component:
22
+ * - When platform_editor_copy_link_a11y_inconsistency_fix experiment is enabled,
23
+ * returns HeadingWithWrapper (new a11y-improved structure)
24
+ * - Otherwise returns HeadingWithDuplicateAnchor (old structure)
25
+ */
26
+ declare function Heading({ allowHeadingAnchorLinks, children, dataAttributes, headingId, invisible, level, localId, marks, nodeType, showAnchorLink, serializer, asInline, }: HeadingProps): React.JSX.Element;
15
27
  export default Heading;
@@ -4,6 +4,16 @@ export declare const headingAnchorLinkMessages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ copyLinkToClipboard: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ copyHeadingLinkLabelledBy: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
7
17
  copiedHeadingLinkToClipboard: {
8
18
  id: string;
9
19
  defaultMessage: string;
@@ -1,9 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ * @jsxFrag
5
+ */
1
6
  import React from 'react';
2
7
  import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
8
  import type { NodeProps } from '../types';
4
9
  import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
5
10
  export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
6
- declare function Heading(props: NodeProps<{
11
+ type HeadingProps = NodeProps<{
7
12
  allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
8
13
  headingId?: string;
9
14
  invisible?: boolean;
@@ -11,5 +16,12 @@ declare function Heading(props: NodeProps<{
11
16
  localId?: string;
12
17
  marks?: PMNode['marks'];
13
18
  showAnchorLink?: boolean;
14
- }>): React.JSX.Element;
19
+ }>;
20
+ /**
21
+ * Gated Heading component:
22
+ * - When platform_editor_copy_link_a11y_inconsistency_fix experiment is enabled,
23
+ * returns HeadingWithWrapper (new a11y-improved structure)
24
+ * - Otherwise returns HeadingWithDuplicateAnchor (old structure)
25
+ */
26
+ declare function Heading({ allowHeadingAnchorLinks, children, dataAttributes, headingId, invisible, level, localId, marks, nodeType, showAnchorLink, serializer, asInline, }: HeadingProps): React.JSX.Element;
15
27
  export default Heading;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "126.4.0",
3
+ "version": "126.5.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/status": "^3.1.0",
58
58
  "@atlaskit/task-decision": "^19.2.0",
59
59
  "@atlaskit/theme": "^21.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^17.6.0",
60
+ "@atlaskit/tmp-editor-statsig": "^17.8.0",
61
61
  "@atlaskit/tokens": "^10.1.0",
62
62
  "@atlaskit/tooltip": "^20.14.0",
63
63
  "@atlaskit/visually-hidden": "^3.0.0",