@atlaskit/primitives 12.2.1 → 12.2.3

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,23 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 12.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#148281](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/148281)
8
+ [`3c4de48168ffe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3c4de48168ffe) -
9
+ Update the import path of `useId*` from `@atlaskit/ds-lib`
10
+ - Updated dependencies
11
+
12
+ ## 12.2.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [#146405](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146405)
17
+ [`a92a52978058c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a92a52978058c) -
18
+ Exports a temporary UNSAFE_SurfaceContext export that may be removed in a future minor version to
19
+ decouple Compiled migrations from Primitives
20
+
3
21
  ## 12.2.1
4
22
 
5
23
  ### Patch Changes
@@ -14,7 +14,7 @@ var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
14
14
  var _analyticsNext = require("@atlaskit/analytics-next");
15
15
  var _appProvider = require("@atlaskit/app-provider");
16
16
  var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
17
- var _reactUid = require("@atlaskit/ds-lib/react-uid");
17
+ var _useId = require("@atlaskit/ds-lib/use-id");
18
18
  var _interactionContext = _interopRequireDefault(require("@atlaskit/interaction-context"));
19
19
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
20
20
  var _styleMaps = require("../xcss/style-maps.partial");
@@ -94,13 +94,13 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
94
94
  interactionContext && interactionContext.tracePress(interactionName, e.timeStamp);
95
95
  providedOnClick(e, analyticsEvent);
96
96
  }, [providedOnClick, interactionContext, interactionName]);
97
- var opensNewWindowLabelId = (0, _reactUid.useId)();
97
+ var opensNewWindowLabelId = (0, _useId.useId)();
98
98
  var onClick = (0, _analyticsNext.usePlatformLeafEventHandler)({
99
99
  fn: handleClick,
100
100
  action: 'clicked',
101
101
  componentName: componentName || 'Anchor',
102
102
  packageName: "@atlaskit/primitives",
103
- packageVersion: "12.2.1",
103
+ packageVersion: "12.2.3",
104
104
  analyticsData: analyticsContext,
105
105
  actionSubject: 'link'
106
106
  });
@@ -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: "12.2.1",
98
+ packageVersion: "12.2.3",
99
99
  analyticsData: analyticsContext,
100
100
  actionSubject: 'button'
101
101
  });
package/dist/cjs/index.js CHANGED
@@ -70,6 +70,12 @@ Object.defineProperty(exports, "UNSAFE_BREAKPOINTS_CONFIG", {
70
70
  return _responsive.UNSAFE_BREAKPOINTS_CONFIG;
71
71
  }
72
72
  });
73
+ Object.defineProperty(exports, "UNSAFE_SurfaceContext", {
74
+ enumerable: true,
75
+ get: function get() {
76
+ return _surfaceProvider.SurfaceContext;
77
+ }
78
+ });
73
79
  Object.defineProperty(exports, "UNSAFE_inverseColorMap", {
74
80
  enumerable: true,
75
81
  get: function get() {
@@ -11,7 +11,7 @@ import invariant from 'tiny-invariant';
11
11
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
12
12
  import { useRouterLink } from '@atlaskit/app-provider';
13
13
  import noop from '@atlaskit/ds-lib/noop';
14
- import { useId } from '@atlaskit/ds-lib/react-uid';
14
+ import { useId } from '@atlaskit/ds-lib/use-id';
15
15
  import InteractionContext from '@atlaskit/interaction-context';
16
16
  import VisuallyHidden from '@atlaskit/visually-hidden';
17
17
  import { backgroundColorStylesMap, borderColorMap, borderWidthMap, paddingStylesMap, positiveSpaceMap } from '../xcss/style-maps.partial';
@@ -90,7 +90,7 @@ const AnchorNoRef = ({
90
90
  action: 'clicked',
91
91
  componentName: componentName || 'Anchor',
92
92
  packageName: "@atlaskit/primitives",
93
- packageVersion: "12.2.1",
93
+ packageVersion: "12.2.3",
94
94
  analyticsData: analyticsContext,
95
95
  actionSubject: 'link'
96
96
  });
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
85
85
  action: 'clicked',
86
86
  componentName: componentName || 'Pressable',
87
87
  packageName: "@atlaskit/primitives",
88
- packageVersion: "12.2.1",
88
+ packageVersion: "12.2.3",
89
89
  analyticsData: analyticsContext,
90
90
  actionSubject: 'button'
91
91
  });
@@ -13,5 +13,5 @@ export {
13
13
  */
14
14
  default as UNSAFE_ANCHOR, default as Anchor } from './components/anchor';
15
15
  export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
16
- export { useSurface as UNSAFE_useSurface } from './components/internal/surface-provider';
16
+ export { useSurface as UNSAFE_useSurface, SurfaceContext as UNSAFE_SurfaceContext } from './components/internal/surface-provider';
17
17
  export { inverseColorMap as UNSAFE_inverseColorMap } from './xcss/style-maps.partial';
@@ -15,7 +15,7 @@ import invariant from 'tiny-invariant';
15
15
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
16
16
  import { useRouterLink } from '@atlaskit/app-provider';
17
17
  import noop from '@atlaskit/ds-lib/noop';
18
- import { useId } from '@atlaskit/ds-lib/react-uid';
18
+ import { useId } from '@atlaskit/ds-lib/use-id';
19
19
  import InteractionContext from '@atlaskit/interaction-context';
20
20
  import VisuallyHidden from '@atlaskit/visually-hidden';
21
21
  import { backgroundColorStylesMap, borderColorMap, borderWidthMap, paddingStylesMap, positiveSpaceMap } from '../xcss/style-maps.partial';
@@ -94,7 +94,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
94
94
  action: 'clicked',
95
95
  componentName: componentName || 'Anchor',
96
96
  packageName: "@atlaskit/primitives",
97
- packageVersion: "12.2.1",
97
+ packageVersion: "12.2.3",
98
98
  analyticsData: analyticsContext,
99
99
  actionSubject: 'link'
100
100
  });
@@ -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: "12.2.1",
92
+ packageVersion: "12.2.3",
93
93
  analyticsData: analyticsContext,
94
94
  actionSubject: 'button'
95
95
  });
package/dist/esm/index.js CHANGED
@@ -13,5 +13,5 @@ export {
13
13
  */
14
14
  default as UNSAFE_ANCHOR, default as Anchor } from './components/anchor';
15
15
  export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
16
- export { useSurface as UNSAFE_useSurface } from './components/internal/surface-provider';
16
+ export { useSurface as UNSAFE_useSurface, SurfaceContext as UNSAFE_SurfaceContext } from './components/internal/surface-provider';
17
17
  export { inverseColorMap as UNSAFE_inverseColorMap } from './xcss/style-maps.partial';
@@ -29,5 +29,5 @@ export type {
29
29
  AnchorProps as UNSAFE_AnchorProps, AnchorProps, } from './components/anchor';
30
30
  export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
31
31
  export type { Breakpoint, MediaQuery } from './responsive';
32
- export { useSurface as UNSAFE_useSurface } from './components/internal/surface-provider';
32
+ export { useSurface as UNSAFE_useSurface, SurfaceContext as UNSAFE_SurfaceContext, } from './components/internal/surface-provider';
33
33
  export { inverseColorMap as UNSAFE_inverseColorMap } from './xcss/style-maps.partial';
@@ -29,5 +29,5 @@ export type {
29
29
  AnchorProps as UNSAFE_AnchorProps, AnchorProps, } from './components/anchor';
30
30
  export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
31
31
  export type { Breakpoint, MediaQuery } from './responsive';
32
- export { useSurface as UNSAFE_useSurface } from './components/internal/surface-provider';
32
+ export { useSurface as UNSAFE_useSurface, SurfaceContext as UNSAFE_SurfaceContext, } from './components/internal/surface-provider';
33
33
  export { inverseColorMap as UNSAFE_inverseColorMap } from './xcss/style-maps.partial';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "12.2.1",
3
+ "version": "12.2.3",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -115,7 +115,7 @@
115
115
  "@atlaskit/analytics-next": "^10.1.0",
116
116
  "@atlaskit/app-provider": "^1.4.0",
117
117
  "@atlaskit/css": "^0.5.0",
118
- "@atlaskit/ds-lib": "^2.6.0",
118
+ "@atlaskit/ds-lib": "^2.7.0",
119
119
  "@atlaskit/interaction-context": "^2.1.0",
120
120
  "@atlaskit/tokens": "^2.0.0",
121
121
  "@atlaskit/visually-hidden": "^1.5.0",
@@ -133,7 +133,7 @@
133
133
  "@af/formatting": "*",
134
134
  "@atlaskit/ssr": "*",
135
135
  "@atlaskit/toggle": "^13.4.0",
136
- "@atlaskit/tooltip": "^18.7.0",
136
+ "@atlaskit/tooltip": "^18.8.0",
137
137
  "@atlaskit/visual-regression": "*",
138
138
  "@atlassian/codegen": "^0.1.0",
139
139
  "@testing-library/react": "^12.1.5",