@atlaskit/primitives 16.0.0 → 16.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 16.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e336b1e1861e5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e336b1e1861e5) -
8
+ ts-expect-error was replaced with ts-ignore to fix typecheck issues with help-center local
9
+ consumption
10
+
3
11
  ## 16.0.0
4
12
 
5
13
  ### Major Changes
@@ -70,7 +70,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
70
70
  action: 'clicked',
71
71
  componentName: componentName || 'Anchor',
72
72
  packageName: "@atlaskit/primitives",
73
- packageVersion: "15.0.1",
73
+ packageVersion: "0.0.0-development",
74
74
  analyticsData: analyticsContext,
75
75
  actionSubject: 'link'
76
76
  });
@@ -333,7 +333,7 @@ var Box = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
333
333
  xcss = _ref.xcss,
334
334
  htmlAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
335
335
  // This is to remove className from safeHtmlAttributes
336
- // @ts-expect-error -- className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
336
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
337
337
  var _spreadClass = htmlAttributes.className,
338
338
  safeHtmlAttributes = (0, _objectWithoutProperties2.default)(htmlAttributes, _excluded2);
339
339
  var node = /*#__PURE__*/React.createElement(Component
@@ -40,7 +40,7 @@ var Focusable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
40
40
  xcss = _ref.xcss,
41
41
  htmlAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
42
42
  // This is to remove className from safeHtmlAttributes
43
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
43
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
44
44
  var _spreadClass = htmlAttributes.className,
45
45
  safeHtmlAttributes = (0, _objectWithoutProperties2.default)(htmlAttributes, _excluded2);
46
46
  return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({}, safeHtmlAttributes, {
@@ -61,7 +61,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
61
61
  action: 'clicked',
62
62
  componentName: componentName || 'Pressable',
63
63
  packageName: "@atlaskit/primitives",
64
- packageVersion: "15.0.1",
64
+ packageVersion: "0.0.0-development",
65
65
  analyticsData: analyticsContext,
66
66
  actionSubject: 'button'
67
67
  });
@@ -71,7 +71,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
71
71
  var _spreadClass = htmlAttributes.className,
72
72
  safeHtmlAttributes = (0, _objectWithoutProperties2.default)(htmlAttributes, _excluded2);
73
73
  return /*#__PURE__*/React.createElement(_focusable.default
74
- // @ts-expect-error we don't allow `button` on Focusable for makers as they should use Pressable instead
74
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - we don't allow `button` on Focusable for makers as they should use Pressable instead
75
75
  , (0, _extends2.default)({
76
76
  as: "button"
77
77
  // Safari does not apply focus to buttons on click like other browsers, which means click events will not be fired.
@@ -105,7 +105,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
105
105
  action: 'clicked',
106
106
  componentName: componentName || 'Anchor',
107
107
  packageName: "@atlaskit/primitives",
108
- packageVersion: "15.0.1",
108
+ packageVersion: "0.0.0-development",
109
109
  analyticsData: analyticsContext,
110
110
  actionSubject: 'link'
111
111
  });
@@ -51,7 +51,7 @@ var Box = exports.Box = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
51
51
  xcss = _ref.xcss,
52
52
  htmlAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
53
53
  // This is to remove className from safeHtmlAttributes
54
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
54
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
55
55
  var _spreadClass = htmlAttributes.className,
56
56
  safeHtmlAttributes = (0, _objectWithoutProperties2.default)(htmlAttributes, _excluded2);
57
57
  var resolvedStyles = (0, _xcss.parseXcss)(xcss);
@@ -97,7 +97,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
97
97
  action: 'clicked',
98
98
  componentName: componentName || 'Pressable',
99
99
  packageName: "@atlaskit/primitives",
100
- packageVersion: "15.0.1",
100
+ packageVersion: "0.0.0-development",
101
101
  analyticsData: analyticsContext,
102
102
  actionSubject: 'button'
103
103
  });
@@ -56,7 +56,7 @@ const AnchorNoRef = ({
56
56
  action: 'clicked',
57
57
  componentName: componentName || 'Anchor',
58
58
  packageName: "@atlaskit/primitives",
59
- packageVersion: "15.0.1",
59
+ packageVersion: "0.0.0-development",
60
60
  analyticsData: analyticsContext,
61
61
  actionSubject: 'link'
62
62
  });
@@ -316,7 +316,7 @@ const Box = /*#__PURE__*/forwardRef(({
316
316
  ...htmlAttributes
317
317
  }, ref) => {
318
318
  // This is to remove className from safeHtmlAttributes
319
- // @ts-expect-error -- className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
319
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
320
320
  const {
321
321
  className: _spreadClass,
322
322
  ...safeHtmlAttributes
@@ -28,7 +28,7 @@ const Focusable = /*#__PURE__*/forwardRef(({
28
28
  ...htmlAttributes
29
29
  }, ref) => {
30
30
  // This is to remove className from safeHtmlAttributes
31
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
31
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
32
32
  const {
33
33
  className: _spreadClass,
34
34
  ...safeHtmlAttributes
@@ -48,7 +48,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
48
48
  action: 'clicked',
49
49
  componentName: componentName || 'Pressable',
50
50
  packageName: "@atlaskit/primitives",
51
- packageVersion: "15.0.1",
51
+ packageVersion: "0.0.0-development",
52
52
  analyticsData: analyticsContext,
53
53
  actionSubject: 'button'
54
54
  });
@@ -60,7 +60,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
60
60
  ...safeHtmlAttributes
61
61
  } = htmlAttributes;
62
62
  return /*#__PURE__*/React.createElement(Focusable
63
- // @ts-expect-error we don't allow `button` on Focusable for makers as they should use Pressable instead
63
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - we don't allow `button` on Focusable for makers as they should use Pressable instead
64
64
  , _extends({
65
65
  as: "button"
66
66
  // Safari does not apply focus to buttons on click like other browsers, which means click events will not be fired.
@@ -94,7 +94,7 @@ const AnchorNoRef = ({
94
94
  action: 'clicked',
95
95
  componentName: componentName || 'Anchor',
96
96
  packageName: "@atlaskit/primitives",
97
- packageVersion: "15.0.1",
97
+ packageVersion: "0.0.0-development",
98
98
  analyticsData: analyticsContext,
99
99
  actionSubject: 'link'
100
100
  });
@@ -43,7 +43,7 @@ export const Box = /*#__PURE__*/forwardRef(({
43
43
  ...htmlAttributes
44
44
  }, ref) => {
45
45
  // This is to remove className from safeHtmlAttributes
46
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
46
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
47
47
  const {
48
48
  className: _spreadClass,
49
49
  ...safeHtmlAttributes
@@ -86,7 +86,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
86
86
  action: 'clicked',
87
87
  componentName: componentName || 'Pressable',
88
88
  packageName: "@atlaskit/primitives",
89
- packageVersion: "15.0.1",
89
+ packageVersion: "0.0.0-development",
90
90
  analyticsData: analyticsContext,
91
91
  actionSubject: 'button'
92
92
  });
@@ -61,7 +61,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
61
61
  action: 'clicked',
62
62
  componentName: componentName || 'Anchor',
63
63
  packageName: "@atlaskit/primitives",
64
- packageVersion: "15.0.1",
64
+ packageVersion: "0.0.0-development",
65
65
  analyticsData: analyticsContext,
66
66
  actionSubject: 'link'
67
67
  });
@@ -325,7 +325,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
325
325
  xcss = _ref.xcss,
326
326
  htmlAttributes = _objectWithoutProperties(_ref, _excluded);
327
327
  // This is to remove className from safeHtmlAttributes
328
- // @ts-expect-error -- className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
328
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
329
329
  var _spreadClass = htmlAttributes.className,
330
330
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
331
331
  var node = /*#__PURE__*/React.createElement(Component
@@ -31,7 +31,7 @@ var Focusable = /*#__PURE__*/forwardRef(function (_ref, ref) {
31
31
  xcss = _ref.xcss,
32
32
  htmlAttributes = _objectWithoutProperties(_ref, _excluded);
33
33
  // This is to remove className from safeHtmlAttributes
34
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
34
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
35
35
  var _spreadClass = htmlAttributes.className,
36
36
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
37
37
  return /*#__PURE__*/React.createElement(Component, _extends({}, safeHtmlAttributes, {
@@ -52,7 +52,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
52
52
  action: 'clicked',
53
53
  componentName: componentName || 'Pressable',
54
54
  packageName: "@atlaskit/primitives",
55
- packageVersion: "15.0.1",
55
+ packageVersion: "0.0.0-development",
56
56
  analyticsData: analyticsContext,
57
57
  actionSubject: 'button'
58
58
  });
@@ -62,7 +62,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
62
62
  var _spreadClass = htmlAttributes.className,
63
63
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
64
64
  return /*#__PURE__*/React.createElement(Focusable
65
- // @ts-expect-error we don't allow `button` on Focusable for makers as they should use Pressable instead
65
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - we don't allow `button` on Focusable for makers as they should use Pressable instead
66
66
  , _extends({
67
67
  as: "button"
68
68
  // Safari does not apply focus to buttons on click like other browsers, which means click events will not be fired.
@@ -99,7 +99,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
99
99
  action: 'clicked',
100
100
  componentName: componentName || 'Anchor',
101
101
  packageName: "@atlaskit/primitives",
102
- packageVersion: "15.0.1",
102
+ packageVersion: "0.0.0-development",
103
103
  analyticsData: analyticsContext,
104
104
  actionSubject: 'link'
105
105
  });
@@ -46,7 +46,7 @@ export var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
46
46
  xcss = _ref.xcss,
47
47
  htmlAttributes = _objectWithoutProperties(_ref, _excluded);
48
48
  // This is to remove className from safeHtmlAttributes
49
- // @ts-expect-error className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
49
+ // @ts-ignore -- not using expect since it causes issues with help-center local consumption - className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
50
50
  var _spreadClass = htmlAttributes.className,
51
51
  safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
52
52
  var resolvedStyles = parseXcss(xcss);
@@ -91,7 +91,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
91
91
  action: 'clicked',
92
92
  componentName: componentName || 'Pressable',
93
93
  packageName: "@atlaskit/primitives",
94
- packageVersion: "15.0.1",
94
+ packageVersion: "0.0.0-development",
95
95
  analyticsData: analyticsContext,
96
96
  actionSubject: 'button'
97
97
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "16.0.0",
3
+ "version": "16.0.1",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -175,10 +175,10 @@
175
175
  "@atlaskit/section-message": "^8.7.0",
176
176
  "@atlaskit/textfield": "^8.0.0",
177
177
  "@atlaskit/toggle": "^15.1.0",
178
- "@atlaskit/tooltip": "^20.5.0",
178
+ "@atlaskit/tooltip": "^20.6.0",
179
179
  "@atlassian/analytics-bridge": "^0.7.0",
180
180
  "@atlassian/codegen": "^0.1.0",
181
- "@atlassian/feature-flags-test-utils": "^0.3.0",
181
+ "@atlassian/feature-flags-test-utils": "^1.0.0",
182
182
  "@atlassian/ssr-tests": "^0.3.0",
183
183
  "@testing-library/react": "^13.4.0",
184
184
  "@testing-library/react-hooks": "^8.0.1",