@atlaskit/renderer 108.0.0 → 108.0.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/actions/package.json +2 -2
  3. package/consts/package.json +2 -2
  4. package/dist/cjs/ui/Renderer/index.js +1 -1
  5. package/dist/cjs/version.json +1 -1
  6. package/dist/es2019/ui/Renderer/index.js +1 -1
  7. package/dist/es2019/version.json +1 -1
  8. package/dist/esm/ui/Renderer/index.js +1 -1
  9. package/dist/esm/version.json +1 -1
  10. package/dist/types/actions/index.d.ts +4 -4
  11. package/dist/types/analytics/enums.d.ts +1 -1
  12. package/dist/types/analytics/events.d.ts +29 -29
  13. package/dist/types/analytics/unsupported-content.d.ts +2 -2
  14. package/dist/types/i18n/cs.d.ts +6 -6
  15. package/dist/types/i18n/da.d.ts +6 -6
  16. package/dist/types/i18n/de.d.ts +6 -6
  17. package/dist/types/i18n/en.d.ts +6 -6
  18. package/dist/types/i18n/en_GB.d.ts +6 -6
  19. package/dist/types/i18n/en_ZZ.d.ts +6 -6
  20. package/dist/types/i18n/es.d.ts +6 -6
  21. package/dist/types/i18n/et.d.ts +1 -1
  22. package/dist/types/i18n/fi.d.ts +6 -6
  23. package/dist/types/i18n/fr.d.ts +6 -6
  24. package/dist/types/i18n/hu.d.ts +6 -6
  25. package/dist/types/i18n/it.d.ts +6 -6
  26. package/dist/types/i18n/ja.d.ts +6 -6
  27. package/dist/types/i18n/ko.d.ts +6 -6
  28. package/dist/types/i18n/nb.d.ts +6 -6
  29. package/dist/types/i18n/nl.d.ts +6 -6
  30. package/dist/types/i18n/pl.d.ts +6 -6
  31. package/dist/types/i18n/pt_BR.d.ts +6 -6
  32. package/dist/types/i18n/pt_PT.d.ts +1 -1
  33. package/dist/types/i18n/ru.d.ts +6 -6
  34. package/dist/types/i18n/sk.d.ts +1 -1
  35. package/dist/types/i18n/sv.d.ts +6 -6
  36. package/dist/types/i18n/th.d.ts +6 -6
  37. package/dist/types/i18n/tr.d.ts +6 -6
  38. package/dist/types/i18n/uk.d.ts +6 -6
  39. package/dist/types/i18n/vi.d.ts +6 -6
  40. package/dist/types/i18n/zh.d.ts +6 -6
  41. package/dist/types/i18n/zh_TW.d.ts +6 -6
  42. package/dist/types/react/hooks/use-observed-width.d.ts +2 -2
  43. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +1 -1
  44. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +1 -1
  45. package/dist/types/react/nodes/extension.d.ts +3 -3
  46. package/dist/types/react/nodes/fallback.d.ts +1 -1
  47. package/dist/types/react/nodes/heading-anchor.d.ts +2 -2
  48. package/dist/types/react/nodes/heading.d.ts +1 -1
  49. package/dist/types/react/nodes/index.d.ts +1 -1
  50. package/dist/types/react/nodes/media.d.ts +1 -1
  51. package/dist/types/react/nodes/mediaInline.d.ts +2 -2
  52. package/dist/types/react/nodes/table/sticky.d.ts +2 -2
  53. package/dist/types/react/nodes/table/table.d.ts +1 -1
  54. package/dist/types/react/nodes/table/types.d.ts +1 -1
  55. package/dist/types/react/nodes/table.d.ts +2 -2
  56. package/dist/types/react/nodes/tableCell.d.ts +2 -2
  57. package/dist/types/react/nodes/tableRow.d.ts +2 -2
  58. package/dist/types/react/nodes/text-wrapper.d.ts +1 -1
  59. package/dist/types/react/types.d.ts +2 -2
  60. package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
  61. package/dist/types/react/utils/performance/RenderTracking.d.ts +4 -4
  62. package/dist/types/render-document.d.ts +2 -2
  63. package/dist/types/renderer-context.d.ts +1 -1
  64. package/dist/types/text/nodes/index.d.ts +1 -1
  65. package/dist/types/types/mediaOptions.d.ts +1 -1
  66. package/dist/types/ui/Expand.d.ts +1 -1
  67. package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
  68. package/dist/types/ui/MediaCard.d.ts +2 -2
  69. package/dist/types/ui/Renderer/style.d.ts +1 -1
  70. package/dist/types/ui/Renderer/types.d.ts +6 -6
  71. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  72. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +3 -3
  73. package/dist/types/ui/active-header-id-provider.d.ts +1 -1
  74. package/dist/types/ui/annotations/context.d.ts +4 -4
  75. package/dist/types/ui/annotations/draft/component.d.ts +2 -2
  76. package/dist/types/ui/annotations/draft/text.d.ts +1 -1
  77. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  78. package/dist/types/ui/annotations/element/mark.d.ts +1 -1
  79. package/dist/types/ui/annotations/hooks/use-events.d.ts +3 -3
  80. package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  81. package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
  82. package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
  83. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  84. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  85. package/dist/types/ui/annotations/selection/wrapper.d.ts +1 -1
  86. package/dist/types/ui/annotations/types.d.ts +3 -3
  87. package/dist/types/ui/annotations/view/index.d.ts +1 -1
  88. package/dist/types/utils.d.ts +2 -2
  89. package/messages/package.json +2 -2
  90. package/package.json +16 -8
  91. package/render-document/package.json +2 -2
  92. package/renderer-context/package.json +2 -2
  93. package/serializer/package.json +2 -2
  94. package/text-serializer/package.json +2 -2
  95. package/use-feature-flags/package.json +2 -2
  96. package/utils/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
3
- declare type MarkElementProps = {
3
+ type MarkElementProps = {
4
4
  id: AnnotationId;
5
5
  annotationParentIds: AnnotationId[];
6
6
  dataAttributes: AnnotationDataAttributes;
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
4
4
  import { AnnotationMarkStates, AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
5
- declare type MarkComponentProps = {
5
+ type MarkComponentProps = {
6
6
  id: AnnotationId;
7
7
  annotationParentIds: AnnotationId[];
8
8
  dataAttributes: AnnotationDataAttributes;
@@ -2,17 +2,17 @@ import { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
2
2
  import type { InlineCommentViewComponentProps } from '@atlaskit/editor-common/types';
3
3
  import { AnnotationMarkStates, AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
4
4
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
- declare type ListenEventProps = {
5
+ type ListenEventProps = {
6
6
  id: AnnotationId;
7
7
  updateSubscriber: AnnotationUpdateEmitter | null;
8
8
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
9
9
  };
10
- declare type UseAnnotationUpdateSatteByEventProps = {
10
+ type UseAnnotationUpdateSatteByEventProps = {
11
11
  type: AnnotationTypes;
12
12
  updateSubscriber: AnnotationUpdateEmitter | null;
13
13
  };
14
14
  export declare const useAnnotationStateByTypeEvent: ({ type, updateSubscriber, }: UseAnnotationUpdateSatteByEventProps) => Record<string, AnnotationMarkStates | null>;
15
15
  export declare const useHasFocusEvent: ({ id, updateSubscriber, }: ListenEventProps) => boolean;
16
- declare type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
16
+ type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
17
17
  export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps, 'updateSubscriber' | 'createAnalyticsEvent'>) => AnnotationsWithClickTarget;
18
18
  export {};
@@ -1,5 +1,5 @@
1
1
  import { AnnotationId, AnnotationMarkStates } from '@atlaskit/adf-schema';
2
- declare type Props = {
2
+ type Props = {
3
3
  annotationIds: AnnotationId[];
4
4
  filter: {
5
5
  state: AnnotationMarkStates;
@@ -1,5 +1,5 @@
1
1
  import { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
- declare type Props = {
2
+ type Props = {
3
3
  adfDocument: JSONDocNode;
4
4
  };
5
5
  export declare const useLoadAnnotations: ({ adfDocument }: Props) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  rendererRef: React.RefObject<HTMLDivElement>;
4
4
  };
5
5
  export declare const useUserSelectionRange: (props: Props) => [Range | null, () => void];
@@ -3,7 +3,7 @@ import type { AnnotationByMatches, InlineCommentSelectionComponentProps } from '
3
3
  import { ApplyAnnotation } from '../../../actions/index';
4
4
  import { Position } from '../types';
5
5
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
6
- declare type Props = {
6
+ type Props = {
7
7
  range: Range;
8
8
  component: React.ComponentType<InlineCommentSelectionComponentProps>;
9
9
  wrapperDOM: React.RefObject<HTMLDivElement>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Position } from '../types';
3
3
  import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
4
4
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
- declare type Props = {
5
+ type Props = {
6
6
  selectionComponent: React.ComponentType<InlineCommentSelectionComponentProps>;
7
7
  rendererRef: React.RefObject<HTMLDivElement>;
8
8
  applyAnnotationDraftAt: (position: Position) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- declare type Props = {
3
+ type Props = {
4
4
  rendererRef: React.RefObject<HTMLDivElement>;
5
5
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
6
6
  };
@@ -7,16 +7,16 @@ export declare enum InsertDraftPosition {
7
7
  END = "END",
8
8
  INSIDE = "INSIDE"
9
9
  }
10
- export declare type Position = {
10
+ export type Position = {
11
11
  from: number;
12
12
  to: number;
13
13
  };
14
- export declare type AnnotationsWrapperProps = {
14
+ export type AnnotationsWrapperProps = {
15
15
  adfDocument: JSONDocNode;
16
16
  annotationProvider: AnnotationProviders | null | undefined;
17
17
  rendererRef: React.RefObject<HTMLDivElement>;
18
18
  };
19
- export declare type TextPosition = {
19
+ export type TextPosition = {
20
20
  start: number;
21
21
  end: number;
22
22
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- declare type Props = {
3
+ type Props = {
4
4
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
5
  };
6
6
  declare const AnnotationView: React.FC<Props>;
@@ -4,13 +4,13 @@ import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
4
  import type { Transformer } from '@atlaskit/editor-common/types';
5
5
  import type { Node as PMNode } from 'prosemirror-model';
6
6
  import type { RendererAppearance } from './ui/Renderer/types';
7
- export declare type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
7
+ export type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
8
8
  export declare class ADFEncoder<T> {
9
9
  encode: (value: T) => any;
10
10
  constructor(createTransformerWithSchema: TransformerProvider<T>);
11
11
  }
12
12
  export declare const getText: (node: PMNode | ADNode) => string;
13
- export declare const getEventHandler: (eventHandlers?: EventHandlers | undefined, type?: keyof EventHandlers | undefined, eventName?: string) => any;
13
+ export declare const getEventHandler: (eventHandlers?: EventHandlers, type?: keyof EventHandlers, eventName?: string) => any;
14
14
  export declare const getPlatform: (rendererAppearance: RendererAppearance) => "mobile" | "web";
15
15
  /**
16
16
  * Traverse through parent elements of element. Return element for which evaluate(element) returns
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/messages.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/messages.d.ts"
11
+ "../dist/types-ts4.5/messages.d.ts"
12
12
  ]
13
13
  }
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "108.0.0",
3
+ "version": "108.0.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,14 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "sideEffects": false,
16
24
  "atlaskit:src": "src/index.ts",
17
25
  "atlassian": {
@@ -33,7 +41,7 @@
33
41
  "@atlaskit/code": "^14.6.0",
34
42
  "@atlaskit/editor-common": "^74.0.0",
35
43
  "@atlaskit/editor-json-transformer": "^8.9.0",
36
- "@atlaskit/editor-palette": "1.4.0",
44
+ "@atlaskit/editor-palette": "1.4.1",
37
45
  "@atlaskit/editor-shared-styles": "^2.4.0",
38
46
  "@atlaskit/emoji": "^67.4.0",
39
47
  "@atlaskit/icon": "^21.12.0",
@@ -43,11 +51,11 @@
43
51
  "@atlaskit/media-filmstrip": "^47.0.0",
44
52
  "@atlaskit/media-ui": "^22.4.0",
45
53
  "@atlaskit/media-viewer": "^47.6.0",
46
- "@atlaskit/smart-card": "^26.0.0",
54
+ "@atlaskit/smart-card": "^26.1.0",
47
55
  "@atlaskit/status": "^1.3.0",
48
56
  "@atlaskit/task-decision": "^17.6.0",
49
57
  "@atlaskit/theme": "^12.5.0",
50
- "@atlaskit/tokens": "^1.3.0",
58
+ "@atlaskit/tokens": "^1.4.0",
51
59
  "@atlaskit/tooltip": "^17.8.0",
52
60
  "@babel/runtime": "^7.0.0",
53
61
  "@emotion/react": "^11.7.1",
@@ -61,8 +69,8 @@
61
69
  "uuid": "^3.1.0"
62
70
  },
63
71
  "peerDependencies": {
64
- "@atlaskit/link-provider": "^1.6.0",
65
- "@atlaskit/media-core": "^34.1.0",
72
+ "@atlaskit/link-provider": "^1.6.1",
73
+ "@atlaskit/media-core": "^34.1.1",
66
74
  "react": "^16.8.0",
67
75
  "react-dom": "^16.8.0"
68
76
  },
@@ -72,7 +80,7 @@
72
80
  "@atlaskit/css-reset": "^6.5.0",
73
81
  "@atlaskit/docs": "*",
74
82
  "@atlaskit/editor-core": "^183.0.0",
75
- "@atlaskit/editor-test-helpers": "^18.2.0",
83
+ "@atlaskit/editor-test-helpers": "^18.3.0",
76
84
  "@atlaskit/link-provider": "^1.6.0",
77
85
  "@atlaskit/logo": "^13.14.0",
78
86
  "@atlaskit/media-core": "^34.1.0",
@@ -104,7 +112,7 @@
104
112
  "react-test-renderer": "^16.8.0",
105
113
  "rxjs": "^5.5.0",
106
114
  "sinon": "^2.2.0",
107
- "typescript": "4.5.5",
115
+ "typescript": "~4.9.5",
108
116
  "worker-plugin": "^4.0.2"
109
117
  },
110
118
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/render-document.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/render-document.d.ts"
11
+ "../dist/types-ts4.5/render-document.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/renderer-context.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/renderer-context.d.ts"
11
+ "../dist/types-ts4.5/renderer-context.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/serializer.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/serializer.d.ts"
11
+ "../dist/types-ts4.5/serializer.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/text-serializer.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/text-serializer.d.ts"
11
+ "../dist/types-ts4.5/text-serializer.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/use-feature-flags.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/use-feature-flags.d.ts"
11
+ "../dist/types-ts4.5/use-feature-flags.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/utils.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/utils.d.ts"
11
+ "../dist/types-ts4.5/utils.d.ts"
12
12
  ]
13
13
  }
14
14
  }