@atlaskit/primitives 16.0.0 → 16.0.2

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,21 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 16.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cd77e341e3aa0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd77e341e3aa0) -
8
+ Mark `xcss()` as deprecated. Please use `@atlaskit/css` with `@atlaskit/primitives/compiled`
9
+ instead.
10
+
11
+ ## 16.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`e336b1e1861e5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e336b1e1861e5) -
16
+ ts-expect-error was replaced with ts-ignore to fix typecheck issues with help-center local
17
+ consumption
18
+
3
19
  ## 16.0.0
4
20
 
5
21
  ### 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
  });
@@ -229,6 +229,9 @@ var _parseXcss = exports.parseXcss = function parseXcss(args) {
229
229
  * padding: 'space.100'
230
230
  * })
231
231
  * ```
232
+ *
233
+ * @deprecated Use `@atlaskit/css` with `@atlaskit/primitives/compiled` instead.
234
+ * {@link https://hello.atlassian.net/wiki/spaces/DST/pages/4992259434/Guidance+Migrating+to+atlaskit+css+from+xcss Internal documentation for migration; no external access}
232
235
  */
233
236
  function xcss(style) {
234
237
  return baseXcss(style);
@@ -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
  });
@@ -206,6 +206,9 @@ export const parseXcss = args => {
206
206
  * padding: 'space.100'
207
207
  * })
208
208
  * ```
209
+ *
210
+ * @deprecated Use `@atlaskit/css` with `@atlaskit/primitives/compiled` instead.
211
+ * {@link https://hello.atlassian.net/wiki/spaces/DST/pages/4992259434/Guidance+Migrating+to+atlaskit+css+from+xcss Internal documentation for migration; no external access}
209
212
  */
210
213
  export function xcss(style) {
211
214
  return baseXcss(style);
@@ -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
  });
@@ -219,6 +219,9 @@ export { _parseXcss as parseXcss }; // Media queries should not contain nested m
219
219
  * padding: 'space.100'
220
220
  * })
221
221
  * ```
222
+ *
223
+ * @deprecated Use `@atlaskit/css` with `@atlaskit/primitives/compiled` instead.
224
+ * {@link https://hello.atlassian.net/wiki/spaces/DST/pages/4992259434/Guidance+Migrating+to+atlaskit+css+from+xcss Internal documentation for migration; no external access}
222
225
  */
223
226
  export function xcss(style) {
224
227
  return baseXcss(style);
@@ -133,6 +133,9 @@ export type XCSS = ReturnType<typeof xcss>;
133
133
  * padding: 'space.100'
134
134
  * })
135
135
  * ```
136
+ *
137
+ * @deprecated Use `@atlaskit/css` with `@atlaskit/primitives/compiled` instead.
138
+ * {@link https://hello.atlassian.net/wiki/spaces/DST/pages/4992259434/Guidance+Migrating+to+atlaskit+css+from+xcss Internal documentation for migration; no external access}
136
139
  */
137
140
  export declare function xcss(style: SafeCSSObject): {
138
141
  readonly [uniqueSymbol]: SerializedStyles;
@@ -133,6 +133,9 @@ export type XCSS = ReturnType<typeof xcss>;
133
133
  * padding: 'space.100'
134
134
  * })
135
135
  * ```
136
+ *
137
+ * @deprecated Use `@atlaskit/css` with `@atlaskit/primitives/compiled` instead.
138
+ * {@link https://hello.atlassian.net/wiki/spaces/DST/pages/4992259434/Guidance+Migrating+to+atlaskit+css+from+xcss Internal documentation for migration; no external access}
136
139
  */
137
140
  export declare function xcss(style: SafeCSSObject): {
138
141
  readonly [uniqueSymbol]: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "16.0.0",
3
+ "version": "16.0.2",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -155,7 +155,7 @@
155
155
  "@af/formatting": "workspace:^",
156
156
  "@af/integration-testing": "workspace:^",
157
157
  "@af/visual-regression": "workspace:^",
158
- "@atlaskit/avatar": "^25.4.0",
158
+ "@atlaskit/avatar": "^25.5.0",
159
159
  "@atlaskit/button": "^23.5.0",
160
160
  "@atlaskit/checkbox": "^17.1.0",
161
161
  "@atlaskit/code": "^17.2.0",
@@ -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",