@atlaskit/primitives 11.0.0 → 11.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.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/inline.js +4 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/inline.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/inline.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/types/components/inline.d.ts +5 -5
- package/dist/types-ts4.5/components/inline.d.ts +5 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 11.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#119548](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119548)
|
|
8
|
+
[`c99cce707b5cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c99cce707b5cb) -
|
|
9
|
+
The separator prop in the inline component has had its type expanded to `ReactNode`.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 11.0.0
|
|
4
13
|
|
|
5
14
|
### Major Changes
|
|
@@ -103,7 +103,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
103
103
|
action: 'clicked',
|
|
104
104
|
componentName: componentName || 'Anchor',
|
|
105
105
|
packageName: "@atlaskit/primitives",
|
|
106
|
-
packageVersion: "11.0.
|
|
106
|
+
packageVersion: "11.0.1",
|
|
107
107
|
analyticsData: analyticsContext,
|
|
108
108
|
actionSubject: 'link'
|
|
109
109
|
});
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
8
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
-
var _react = require("react");
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
11
|
var _react2 = require("@emotion/react");
|
|
11
12
|
var _xcss = require("../xcss/xcss");
|
|
12
13
|
var _flex = _interopRequireDefault(require("./flex"));
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
16
|
/* eslint-disable @repo/internal/styles/no-exported-styles */
|
|
14
17
|
/**
|
|
15
18
|
* @jsxRuntime classic
|
|
@@ -95,7 +95,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
95
95
|
action: 'clicked',
|
|
96
96
|
componentName: componentName || 'Pressable',
|
|
97
97
|
packageName: "@atlaskit/primitives",
|
|
98
|
-
packageVersion: "11.0.
|
|
98
|
+
packageVersion: "11.0.1",
|
|
99
99
|
analyticsData: analyticsContext,
|
|
100
100
|
actionSubject: 'button'
|
|
101
101
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
*/
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { Children, forwardRef, Fragment, memo } from 'react';
|
|
6
|
+
import React, { Children, forwardRef, Fragment, memo } from 'react';
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
85
85
|
action: 'clicked',
|
|
86
86
|
componentName: componentName || 'Pressable',
|
|
87
87
|
packageName: "@atlaskit/primitives",
|
|
88
|
-
packageVersion: "11.0.
|
|
88
|
+
packageVersion: "11.0.1",
|
|
89
89
|
analyticsData: analyticsContext,
|
|
90
90
|
actionSubject: 'button'
|
|
91
91
|
});
|
|
@@ -97,7 +97,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
97
97
|
action: 'clicked',
|
|
98
98
|
componentName: componentName || 'Anchor',
|
|
99
99
|
packageName: "@atlaskit/primitives",
|
|
100
|
-
packageVersion: "11.0.
|
|
100
|
+
packageVersion: "11.0.1",
|
|
101
101
|
analyticsData: analyticsContext,
|
|
102
102
|
actionSubject: 'link'
|
|
103
103
|
});
|
|
@@ -4,7 +4,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
4
4
|
* @jsxRuntime classic
|
|
5
5
|
*/
|
|
6
6
|
/** @jsx jsx */
|
|
7
|
-
import { Children, forwardRef, Fragment, memo } from 'react';
|
|
7
|
+
import React, { Children, forwardRef, Fragment, memo } from 'react';
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
@@ -89,7 +89,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
89
89
|
action: 'clicked',
|
|
90
90
|
componentName: componentName || 'Pressable',
|
|
91
91
|
packageName: "@atlaskit/primitives",
|
|
92
|
-
packageVersion: "11.0.
|
|
92
|
+
packageVersion: "11.0.1",
|
|
93
93
|
analyticsData: analyticsContext,
|
|
94
94
|
actionSubject: 'button'
|
|
95
95
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
*/
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
-
import { type ElementType, type ReactNode } from 'react';
|
|
5
|
+
import React, { type ElementType, type ReactNode } from 'react';
|
|
6
6
|
import { type Space } from '../xcss/style-maps.partial';
|
|
7
7
|
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
8
8
|
export type InlineProps<T extends ElementType = 'div'> = {
|
|
@@ -42,7 +42,7 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
42
42
|
/**
|
|
43
43
|
* Renders a separator string between each child.
|
|
44
44
|
*/
|
|
45
|
-
separator?:
|
|
45
|
+
separator?: React.ReactNode;
|
|
46
46
|
/**
|
|
47
47
|
* Elements to be rendered inside the Inline.
|
|
48
48
|
*/
|
|
@@ -66,7 +66,7 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
66
66
|
* ```
|
|
67
67
|
*
|
|
68
68
|
*/
|
|
69
|
-
declare const Inline:
|
|
69
|
+
declare const Inline: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<{
|
|
70
70
|
/**
|
|
71
71
|
* The DOM element to render as the Inline. Defaults to `div`.
|
|
72
72
|
*/
|
|
@@ -103,7 +103,7 @@ declare const Inline: import("react").MemoExoticComponent<import("react").Forwar
|
|
|
103
103
|
/**
|
|
104
104
|
* Renders a separator string between each child.
|
|
105
105
|
*/
|
|
106
|
-
separator?:
|
|
106
|
+
separator?: React.ReactNode;
|
|
107
107
|
/**
|
|
108
108
|
* Elements to be rendered inside the Inline.
|
|
109
109
|
*/
|
|
@@ -112,5 +112,5 @@ declare const Inline: import("react").MemoExoticComponent<import("react").Forwar
|
|
|
112
112
|
* Forwarded ref element.
|
|
113
113
|
*/
|
|
114
114
|
ref?: any;
|
|
115
|
-
} & BasePrimitiveProps, "space" | "separator" | "children" | "as" | keyof BasePrimitiveProps | "alignInline" | "alignBlock" | "shouldWrap" | "spread" | "grow" | "rowSpace"> &
|
|
115
|
+
} & BasePrimitiveProps, "space" | "separator" | "children" | "as" | keyof BasePrimitiveProps | "alignInline" | "alignBlock" | "shouldWrap" | "spread" | "grow" | "rowSpace"> & React.RefAttributes<any>>>;
|
|
116
116
|
export default Inline;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
*/
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
-
import { type ElementType, type ReactNode } from 'react';
|
|
5
|
+
import React, { type ElementType, type ReactNode } from 'react';
|
|
6
6
|
import { type Space } from '../xcss/style-maps.partial';
|
|
7
7
|
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
8
8
|
export type InlineProps<T extends ElementType = 'div'> = {
|
|
@@ -42,7 +42,7 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
42
42
|
/**
|
|
43
43
|
* Renders a separator string between each child.
|
|
44
44
|
*/
|
|
45
|
-
separator?:
|
|
45
|
+
separator?: React.ReactNode;
|
|
46
46
|
/**
|
|
47
47
|
* Elements to be rendered inside the Inline.
|
|
48
48
|
*/
|
|
@@ -66,7 +66,7 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
66
66
|
* ```
|
|
67
67
|
*
|
|
68
68
|
*/
|
|
69
|
-
declare const Inline:
|
|
69
|
+
declare const Inline: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<{
|
|
70
70
|
/**
|
|
71
71
|
* The DOM element to render as the Inline. Defaults to `div`.
|
|
72
72
|
*/
|
|
@@ -103,7 +103,7 @@ declare const Inline: import("react").MemoExoticComponent<import("react").Forwar
|
|
|
103
103
|
/**
|
|
104
104
|
* Renders a separator string between each child.
|
|
105
105
|
*/
|
|
106
|
-
separator?:
|
|
106
|
+
separator?: React.ReactNode;
|
|
107
107
|
/**
|
|
108
108
|
* Elements to be rendered inside the Inline.
|
|
109
109
|
*/
|
|
@@ -112,5 +112,5 @@ declare const Inline: import("react").MemoExoticComponent<import("react").Forwar
|
|
|
112
112
|
* Forwarded ref element.
|
|
113
113
|
*/
|
|
114
114
|
ref?: any;
|
|
115
|
-
} & BasePrimitiveProps, "space" | "separator" | "children" | "as" | keyof BasePrimitiveProps | "alignInline" | "alignBlock" | "shouldWrap" | "spread" | "grow" | "rowSpace"> &
|
|
115
|
+
} & BasePrimitiveProps, "space" | "separator" | "children" | "as" | keyof BasePrimitiveProps | "alignInline" | "alignBlock" | "shouldWrap" | "spread" | "grow" | "rowSpace"> & React.RefAttributes<any>>>;
|
|
116
116
|
export default Inline;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"@atlaskit/css": "^0.3.0",
|
|
129
129
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
130
130
|
"@atlaskit/interaction-context": "^2.1.0",
|
|
131
|
-
"@atlaskit/tokens": "^1.
|
|
131
|
+
"@atlaskit/tokens": "^1.54.0",
|
|
132
132
|
"@atlaskit/visually-hidden": "^1.4.0",
|
|
133
133
|
"@babel/runtime": "^7.0.0",
|
|
134
134
|
"@emotion/react": "^11.7.1",
|