@atlaskit/renderer 130.2.17 → 130.2.18

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 (56) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/react/marks/link-compiled.compiled.css +6 -0
  3. package/dist/cjs/react/marks/link-compiled.js +27 -0
  4. package/dist/cjs/react/marks/link-emotion.js +42 -0
  5. package/dist/cjs/react/marks/link.js +13 -23
  6. package/dist/cjs/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  7. package/dist/cjs/react/nodes/layoutColumn-compiled.js +37 -0
  8. package/dist/cjs/react/nodes/layoutColumn-emotion.js +59 -0
  9. package/dist/cjs/react/nodes/layoutColumn.js +11 -41
  10. package/dist/cjs/react/nodes/panel-compiled.compiled.css +54 -0
  11. package/dist/cjs/react/nodes/panel-compiled.js +60 -0
  12. package/dist/cjs/react/nodes/panel-emotion.js +185 -0
  13. package/dist/cjs/react/nodes/panel.js +14 -181
  14. package/dist/es2019/react/marks/link-compiled.compiled.css +6 -0
  15. package/dist/es2019/react/marks/link-compiled.js +17 -0
  16. package/dist/es2019/react/marks/link-emotion.js +31 -0
  17. package/dist/es2019/react/marks/link.js +13 -23
  18. package/dist/es2019/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  19. package/dist/es2019/react/nodes/layoutColumn-compiled.js +31 -0
  20. package/dist/es2019/react/nodes/layoutColumn-emotion.js +61 -0
  21. package/dist/es2019/react/nodes/layoutColumn.js +10 -50
  22. package/dist/es2019/react/nodes/panel-compiled.compiled.css +57 -0
  23. package/dist/es2019/react/nodes/panel-compiled.js +44 -0
  24. package/dist/es2019/react/nodes/panel-emotion.js +178 -0
  25. package/dist/es2019/react/nodes/panel.js +12 -180
  26. package/dist/esm/react/marks/link-compiled.compiled.css +6 -0
  27. package/dist/esm/react/marks/link-compiled.js +19 -0
  28. package/dist/esm/react/marks/link-emotion.js +34 -0
  29. package/dist/esm/react/marks/link.js +15 -23
  30. package/dist/esm/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  31. package/dist/esm/react/nodes/layoutColumn-compiled.js +31 -0
  32. package/dist/esm/react/nodes/layoutColumn-emotion.js +52 -0
  33. package/dist/esm/react/nodes/layoutColumn.js +12 -41
  34. package/dist/esm/react/nodes/panel-compiled.compiled.css +54 -0
  35. package/dist/esm/react/nodes/panel-compiled.js +53 -0
  36. package/dist/esm/react/nodes/panel-emotion.js +179 -0
  37. package/dist/esm/react/nodes/panel.js +14 -181
  38. package/dist/types/react/marks/link-compiled.d.ts +13 -0
  39. package/dist/types/react/marks/link-emotion.d.ts +14 -0
  40. package/dist/types/react/marks/link.d.ts +5 -2
  41. package/dist/types/react/nodes/layoutColumn-compiled.d.ts +14 -0
  42. package/dist/types/react/nodes/layoutColumn-emotion.d.ts +14 -0
  43. package/dist/types/react/nodes/layoutColumn.d.ts +3 -5
  44. package/dist/types/react/nodes/panel-compiled.d.ts +22 -0
  45. package/dist/types/react/nodes/panel-emotion.d.ts +23 -0
  46. package/dist/types/react/nodes/panel.d.ts +1 -6
  47. package/dist/types-ts4.5/react/marks/link-compiled.d.ts +13 -0
  48. package/dist/types-ts4.5/react/marks/link-emotion.d.ts +14 -0
  49. package/dist/types-ts4.5/react/marks/link.d.ts +5 -2
  50. package/dist/types-ts4.5/react/nodes/layoutColumn-compiled.d.ts +14 -0
  51. package/dist/types-ts4.5/react/nodes/layoutColumn-emotion.d.ts +14 -0
  52. package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +3 -5
  53. package/dist/types-ts4.5/react/nodes/panel-compiled.d.ts +22 -0
  54. package/dist/types-ts4.5/react/nodes/panel-emotion.d.ts +23 -0
  55. package/dist/types-ts4.5/react/nodes/panel.d.ts +1 -6
  56. package/package.json +11 -9
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ export declare const LayoutSectionEmotion: (props: React.PropsWithChildren<{
13
+ width?: number;
14
+ }>) => React.JSX.Element;
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
3
+ * Render a layout column in renderer.
4
4
  */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
5
  export default function LayoutSection(props: React.PropsWithChildren<{
8
6
  width?: number;
9
- }>): jsx.JSX.Element;
7
+ }>): React.JSX.Element;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `panel.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import { PanelType } from '@atlaskit/adf-schema';
13
+ interface PanelStyledProps {
14
+ backgroundColor?: string;
15
+ 'data-panel-type': PanelType;
16
+ hasIcon?: boolean;
17
+ }
18
+ export declare const PanelStyledCompiled: {
19
+ ({ backgroundColor, children, className, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): JSX.Element;
20
+ displayName: string;
21
+ };
22
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `panel.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import { jsx } from '@emotion/react';
13
+ import { PanelType } from '@atlaskit/adf-schema';
14
+ interface PanelStyledProps {
15
+ backgroundColor?: string;
16
+ 'data-panel-type': PanelType;
17
+ hasIcon?: boolean;
18
+ }
19
+ export declare const PanelStyledEmotion: {
20
+ ({ backgroundColor, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): jsx.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ export {};
@@ -1,9 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import React from 'react';
6
- import { jsx } from '@emotion/react';
7
2
  import { PanelType } from '@atlaskit/adf-schema';
8
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
9
4
  export interface Props {
@@ -17,5 +12,5 @@ export interface Props {
17
12
  panelType: PanelType;
18
13
  providers?: ProviderFactory;
19
14
  }
20
- declare const Panel: (props: Props) => jsx.JSX.Element;
15
+ declare const Panel: (props: Props) => React.JSX.Element;
21
16
  export default Panel;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `link.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ComponentProps } from 'react';
12
+ import LinkUrl from '@atlaskit/smart-card/link-url';
13
+ export declare const LinkUrlCompiled: (props: ComponentProps<typeof LinkUrl>) => JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `link.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ComponentProps } from 'react';
12
+ import { jsx } from '@emotion/react';
13
+ import LinkUrl from '@atlaskit/smart-card/link-url';
14
+ export declare const LinkUrlEmotion: (props: ComponentProps<typeof LinkUrl>) => jsx.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
1
+ import React from 'react';
2
2
  import type { LinkAttributes } from '@atlaskit/adf-schema';
3
3
  import type { MarkProps } from '../types';
4
4
  interface LinkProps extends LinkAttributes {
@@ -6,5 +6,8 @@ interface LinkProps extends LinkAttributes {
6
6
  onSetLinkTarget?: (url: string) => '_blank' | undefined;
7
7
  target?: string;
8
8
  }
9
- export default function Link(props: MarkProps<LinkProps>): jsx.JSX.Element;
9
+ /**
10
+ * Render an ADF link mark in renderer.
11
+ */
12
+ export default function Link(props: MarkProps<LinkProps>): React.JSX.Element;
10
13
  export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ export declare const LayoutSectionCompiled: (props: React.PropsWithChildren<{
13
+ width?: number;
14
+ }>) => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ export declare const LayoutSectionEmotion: (props: React.PropsWithChildren<{
13
+ width?: number;
14
+ }>) => React.JSX.Element;
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
3
+ * Render a layout column in renderer.
4
4
  */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
5
  export default function LayoutSection(props: React.PropsWithChildren<{
8
6
  width?: number;
9
- }>): jsx.JSX.Element;
7
+ }>): React.JSX.Element;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `panel.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import { PanelType } from '@atlaskit/adf-schema';
13
+ interface PanelStyledProps {
14
+ backgroundColor?: string;
15
+ 'data-panel-type': PanelType;
16
+ hasIcon?: boolean;
17
+ }
18
+ export declare const PanelStyledCompiled: {
19
+ ({ backgroundColor, children, className, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): JSX.Element;
20
+ displayName: string;
21
+ };
22
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `panel.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import { jsx } from '@emotion/react';
13
+ import { PanelType } from '@atlaskit/adf-schema';
14
+ interface PanelStyledProps {
15
+ backgroundColor?: string;
16
+ 'data-panel-type': PanelType;
17
+ hasIcon?: boolean;
18
+ }
19
+ export declare const PanelStyledEmotion: {
20
+ ({ backgroundColor, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): jsx.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ export {};
@@ -1,9 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import React from 'react';
6
- import { jsx } from '@emotion/react';
7
2
  import { PanelType } from '@atlaskit/adf-schema';
8
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
9
4
  export interface Props {
@@ -17,5 +12,5 @@ export interface Props {
17
12
  panelType: PanelType;
18
13
  providers?: ProviderFactory;
19
14
  }
20
- declare const Panel: (props: Props) => jsx.JSX.Element;
15
+ declare const Panel: (props: Props) => React.JSX.Element;
21
16
  export default Panel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "130.2.17",
3
+ "version": "130.2.18",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,8 +30,8 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/adf-schema": "^52.6.0",
34
- "@atlaskit/adf-utils": "^19.27.0",
33
+ "@atlaskit/adf-schema": "^52.7.0",
34
+ "@atlaskit/adf-utils": "^19.28.0",
35
35
  "@atlaskit/afm-i18n-platform-editor-renderer": "2.10.0",
36
36
  "@atlaskit/analytics-listeners": "^10.0.0",
37
37
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
@@ -51,26 +51,27 @@
51
51
  "@atlaskit/link-datasource": "^5.2.0",
52
52
  "@atlaskit/link-extractors": "^2.4.0",
53
53
  "@atlaskit/linking-common": "^9.11.0",
54
- "@atlaskit/media-card": "^80.3.0",
55
- "@atlaskit/media-client": "^36.0.0",
54
+ "@atlaskit/media-card": "^80.4.0",
55
+ "@atlaskit/media-client": "^36.1.0",
56
56
  "@atlaskit/media-client-react": "^5.1.0",
57
- "@atlaskit/media-common": "^13.1.0",
57
+ "@atlaskit/media-common": "^13.2.0",
58
58
  "@atlaskit/media-filmstrip": "^51.3.0",
59
59
  "@atlaskit/media-ui": "^29.1.0",
60
60
  "@atlaskit/media-viewer": "^53.1.0",
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
62
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
63
63
  "@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
64
- "@atlaskit/react-ufo": "^5.17.0",
64
+ "@atlaskit/react-ufo": "^5.18.0",
65
65
  "@atlaskit/smart-card": "^44.3.0",
66
66
  "@atlaskit/status": "^4.0.0",
67
67
  "@atlaskit/task-decision": "^20.0.0",
68
68
  "@atlaskit/theme": "^23.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^73.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^74.0.0",
70
70
  "@atlaskit/tokens": "^13.0.0",
71
71
  "@atlaskit/tooltip": "^21.2.0",
72
72
  "@atlaskit/visually-hidden": "^3.0.0",
73
73
  "@babel/runtime": "^7.0.0",
74
+ "@compiled/react": "^0.20.0",
74
75
  "@emotion/react": "^11.7.1",
75
76
  "lodash": "^4.17.21",
76
77
  "memoize-one": "^6.0.0",
@@ -79,7 +80,7 @@
79
80
  "uuid": "^3.1.0"
80
81
  },
81
82
  "peerDependencies": {
82
- "@atlaskit/editor-common": "^114.13.0",
83
+ "@atlaskit/editor-common": "^114.15.0",
83
84
  "@atlaskit/link-provider": "^4.3.0",
84
85
  "@atlaskit/media-core": "^37.0.0",
85
86
  "react": "^18.2.0",
@@ -133,6 +134,7 @@
133
134
  ],
134
135
  "deprecation": "no-deprecated-imports",
135
136
  "styling": [
137
+ "compiled",
136
138
  "emotion"
137
139
  ]
138
140
  }