@atlaskit/smart-hooks 0.2.3 → 0.2.5
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 +12 -0
- package/dist/cjs/services/use-user-recommendations/analytics.js +2 -3
- package/dist/cjs/utils/transform-recommendations-to-options/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/services/use-user-recommendations/analytics.js +2 -3
- package/dist/es2019/utils/transform-recommendations-to-options/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/services/use-user-recommendations/analytics.js +2 -3
- package/dist/esm/utils/transform-recommendations-to-options/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/smart-hooks
|
|
2
2
|
|
|
3
|
+
## 0.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
|
|
8
|
+
|
|
9
|
+
## 0.2.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`78f0d4b929c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78f0d4b929c) - [ux] Color of guest lozenges in the smartUserPicker changed from purple ('new') to grey ('default')
|
|
14
|
+
|
|
3
15
|
## 0.2.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
|
|
10
10
|
var _analyticsListeners = require("@atlaskit/analytics-listeners");
|
|
11
11
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
12
|
-
var _version = require("../../version.json");
|
|
13
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
14
|
var createAndFireEventInElementsChannel = (0, _analyticsNext.createAndFireEvent)(_analyticsListeners.FabricChannel.elements);
|
|
@@ -21,8 +20,8 @@ var createEvent = function createEvent(eventType, action, actionSubject) {
|
|
|
21
20
|
actionSubject: actionSubject,
|
|
22
21
|
source: '@atlaskit/smart-hooks/use-user-recommendations',
|
|
23
22
|
attributes: _objectSpread({
|
|
24
|
-
packageName:
|
|
25
|
-
packageVersion:
|
|
23
|
+
packageName: "@atlaskit/smart-hooks",
|
|
24
|
+
packageVersion: "0.2.5"
|
|
26
25
|
}, attributes)
|
|
27
26
|
};
|
|
28
27
|
};
|
|
@@ -17,7 +17,7 @@ var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
|
|
|
17
17
|
return {
|
|
18
18
|
text: intl.formatMessage(_messages.messages.guestLozengeText),
|
|
19
19
|
tooltip: intl.formatMessage(lozengeTooltipMessage),
|
|
20
|
-
appearance: '
|
|
20
|
+
appearance: 'default'
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
return undefined;
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TRACK_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
2
2
|
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
3
3
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
import { name as packageName, version as packageVersion } from '../../version.json';
|
|
5
4
|
const createAndFireEventInElementsChannel = createAndFireEvent(FabricChannel.elements);
|
|
6
5
|
const createEvent = (eventType, action, actionSubject, attributes = {}) => ({
|
|
7
6
|
eventType,
|
|
@@ -9,8 +8,8 @@ const createEvent = (eventType, action, actionSubject, attributes = {}) => ({
|
|
|
9
8
|
actionSubject,
|
|
10
9
|
source: '@atlaskit/smart-hooks/use-user-recommendations',
|
|
11
10
|
attributes: {
|
|
12
|
-
packageName,
|
|
13
|
-
packageVersion,
|
|
11
|
+
packageName: "@atlaskit/smart-hooks",
|
|
12
|
+
packageVersion: "0.2.5",
|
|
14
13
|
...attributes
|
|
15
14
|
}
|
|
16
15
|
});
|
package/dist/es2019/version.json
CHANGED
|
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
import { TRACK_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
5
5
|
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
6
6
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { name as packageName, version as packageVersion } from '../../version.json';
|
|
8
7
|
var createAndFireEventInElementsChannel = createAndFireEvent(FabricChannel.elements);
|
|
9
8
|
var createEvent = function createEvent(eventType, action, actionSubject) {
|
|
10
9
|
var attributes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
@@ -14,8 +13,8 @@ var createEvent = function createEvent(eventType, action, actionSubject) {
|
|
|
14
13
|
actionSubject: actionSubject,
|
|
15
14
|
source: '@atlaskit/smart-hooks/use-user-recommendations',
|
|
16
15
|
attributes: _objectSpread({
|
|
17
|
-
packageName:
|
|
18
|
-
packageVersion:
|
|
16
|
+
packageName: "@atlaskit/smart-hooks",
|
|
17
|
+
packageVersion: "0.2.5"
|
|
19
18
|
}, attributes)
|
|
20
19
|
};
|
|
21
20
|
};
|
|
@@ -11,7 +11,7 @@ var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
|
|
|
11
11
|
return {
|
|
12
12
|
text: intl.formatMessage(messages.guestLozengeText),
|
|
13
13
|
tooltip: intl.formatMessage(lozengeTooltipMessage),
|
|
14
|
-
appearance: '
|
|
14
|
+
appearance: 'default'
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
return undefined;
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-hooks",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
32
32
|
"@atlaskit/smart-common": "^0.2.0",
|
|
33
33
|
"@atlaskit/ufo": "^0.2.0",
|
|
34
|
-
"@atlaskit/user-picker": "^10.
|
|
34
|
+
"@atlaskit/user-picker": "^10.5.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"lodash": "^4.17.21",
|
|
37
37
|
"memoize-one": "^6.0.0",
|
|
@@ -42,11 +42,8 @@
|
|
|
42
42
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@atlaskit/docs": "*",
|
|
46
45
|
"@atlaskit/smart-hooks": "*",
|
|
47
|
-
"@atlaskit/textfield": "^5.5.0",
|
|
48
46
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
49
|
-
"@atlassian/ufo": "^0.2.0",
|
|
50
47
|
"@storybook/addon-knobs": "^5.3.18",
|
|
51
48
|
"@testing-library/react": "^12.1.5",
|
|
52
49
|
"@testing-library/react-hooks": "^8.0.1",
|