@atlaskit/smart-card 45.21.7 → 45.21.9
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/state/services/current-site-cloud-id/CurrentSiteCloudIdService.js +2 -2
- package/dist/cjs/state/services/personalization/PersonalizationService.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/analytics/getSmartLinkAnalyticsContext.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/services/current-site-cloud-id/CurrentSiteCloudIdService.js +1 -1
- package/dist/es2019/state/services/personalization/PersonalizationService.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/analytics/getSmartLinkAnalyticsContext.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/services/current-site-cloud-id/CurrentSiteCloudIdService.js +1 -1
- package/dist/esm/state/services/personalization/PersonalizationService.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/analytics/getSmartLinkAnalyticsContext.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/hooks/useConfluencePageData.d.ts +1 -1
- package/dist/types/utils/analytics/SmartLinkAnalyticsContext.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -10,12 +10,12 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
var
|
|
13
|
+
var _StorageClient = require("@atlaskit/frontend-utilities/StorageClient");
|
|
14
14
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
15
15
|
var _cloudIdStorageItemKey = require("./cloudIdStorageItemKey");
|
|
16
16
|
var _constants = require("./constants");
|
|
17
17
|
var _normalizeBaseUri = require("./normalizeBaseUri");
|
|
18
|
-
var smartCardStorage = new
|
|
18
|
+
var smartCardStorage = new _StorageClient.StorageClient(_constants.currentSiteCloudIdConstants.SMART_CARD_STORAGE_SCOPE);
|
|
19
19
|
var CurrentSiteCloudIdService = exports.CurrentSiteCloudIdService = /*#__PURE__*/function () {
|
|
20
20
|
function CurrentSiteCloudIdService() {
|
|
21
21
|
(0, _classCallCheck2.default)(this, CurrentSiteCloudIdService);
|
|
@@ -12,9 +12,9 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
12
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
-
var
|
|
15
|
+
var _StorageClient = require("@atlaskit/frontend-utilities/StorageClient");
|
|
16
16
|
var _constants = require("./constants");
|
|
17
|
-
var smartCardStorage = new
|
|
17
|
+
var smartCardStorage = new _StorageClient.StorageClient(_constants.personalizationConstants.PERSONALIZATION_STORAGE_SCOPE);
|
|
18
18
|
|
|
19
19
|
/** Keys written by this service in localStorage when using {@link smartCardStorage}. */
|
|
20
20
|
var LOCAL_STORAGE_ROW_KEY_PREFIX = "".concat(_constants.personalizationConstants.PERSONALIZATION_STORAGE_SCOPE, "_").concat(_constants.personalizationConstants.PERSONALIZATION_STORAGE_ITEM_KEY_PREFIX);
|
|
@@ -24,7 +24,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
24
24
|
var context = exports.context = {
|
|
25
25
|
componentName: 'smart-cards',
|
|
26
26
|
packageName: "@atlaskit/smart-card" || '',
|
|
27
|
-
packageVersion: "45.21.
|
|
27
|
+
packageVersion: "45.21.9" || ''
|
|
28
28
|
};
|
|
29
29
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
30
30
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getSmartLinkAnalyticsContext = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _getResolvedAttributes = require("@atlaskit/link-analytics/get-resolved-attributes");
|
|
10
10
|
var _analytics = require("./analytics");
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -15,7 +15,7 @@ var getExtendedResolvedAttributes = function getExtendedResolvedAttributes(linkD
|
|
|
15
15
|
return _objectSpread({
|
|
16
16
|
definitionId: (_details$meta$definit = details === null || details === void 0 || (_details$meta = details.meta) === null || _details$meta === void 0 ? void 0 : _details$meta.definitionId) !== null && _details$meta$definit !== void 0 ? _details$meta$definit : null,
|
|
17
17
|
resourceType: (_details$meta$resourc = details === null || details === void 0 || (_details$meta2 = details.meta) === null || _details$meta2 === void 0 ? void 0 : _details$meta2.resourceType) !== null && _details$meta$resourc !== void 0 ? _details$meta$resourc : null
|
|
18
|
-
}, (0,
|
|
18
|
+
}, (0, _getResolvedAttributes.getResolvedAttributes)(linkDetails, details, linkStatus, error));
|
|
19
19
|
};
|
|
20
20
|
var getSmartLinkAnalyticsContext = exports.getSmartLinkAnalyticsContext = function getSmartLinkAnalyticsContext(_ref) {
|
|
21
21
|
var display = _ref.display,
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -10,7 +10,7 @@ require("./index.compiled.css");
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var React = _react;
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var
|
|
13
|
+
var _StorageClient = require("@atlaskit/frontend-utilities/StorageClient");
|
|
14
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
15
|
var LOCAL_STORAGE_CLIENT_KEY = '@atlaskit/smart-card';
|
|
16
16
|
var LOCAL_STORAGE_DISCOVERY_KEY = 'action-discovery-ai-summarise';
|
|
@@ -30,7 +30,7 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
30
30
|
testId = _ref.testId;
|
|
31
31
|
var renderedTime = (0, _react.useRef)();
|
|
32
32
|
var storageClient = (0, _react.useMemo)(function () {
|
|
33
|
-
return new
|
|
33
|
+
return new _StorageClient.StorageClient(LOCAL_STORAGE_CLIENT_KEY);
|
|
34
34
|
}, []);
|
|
35
35
|
var discovered = (0, _react.useMemo)(function () {
|
|
36
36
|
try {
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "45.21.
|
|
22
|
+
packageVersion: "45.21.9",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { StorageClient } from '@atlaskit/frontend-utilities/
|
|
2
|
+
import { StorageClient } from '@atlaskit/frontend-utilities/StorageClient';
|
|
3
3
|
import { request } from '@atlaskit/linking-common';
|
|
4
4
|
import { cloudIdStorageItemKey } from './cloudIdStorageItemKey';
|
|
5
5
|
import { currentSiteCloudIdConstants } from './constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { StorageClient } from '@atlaskit/frontend-utilities/
|
|
2
|
+
import { StorageClient } from '@atlaskit/frontend-utilities/StorageClient';
|
|
3
3
|
import { personalizationConstants } from './constants';
|
|
4
4
|
const smartCardStorage = new StorageClient(personalizationConstants.PERSONALIZATION_STORAGE_SCOPE);
|
|
5
5
|
|
|
@@ -3,7 +3,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export const context = {
|
|
4
4
|
componentName: 'smart-cards',
|
|
5
5
|
packageName: "@atlaskit/smart-card" || '',
|
|
6
|
-
packageVersion: "45.21.
|
|
6
|
+
packageVersion: "45.21.9" || ''
|
|
7
7
|
};
|
|
8
8
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
9
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getResolvedAttributes } from '@atlaskit/link-analytics/resolved-attributes';
|
|
1
|
+
import { getResolvedAttributes } from '@atlaskit/link-analytics/get-resolved-attributes';
|
|
2
2
|
import { context } from './analytics';
|
|
3
3
|
const getExtendedResolvedAttributes = (linkDetails, details, linkStatus, error) => {
|
|
4
4
|
var _details$meta$definit, _details$meta, _details$meta$resourc, _details$meta2;
|
package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useEffect, useMemo, useRef } from 'react';
|
|
6
|
-
import { StorageClient } from '@atlaskit/frontend-utilities/
|
|
6
|
+
import { StorageClient } from '@atlaskit/frontend-utilities/StorageClient';
|
|
7
7
|
const LOCAL_STORAGE_CLIENT_KEY = '@atlaskit/smart-card';
|
|
8
8
|
const LOCAL_STORAGE_DISCOVERY_KEY = 'action-discovery-ai-summarise';
|
|
9
9
|
const LOCAL_STORAGE_DISCOVERY_VALUE = 'discovered';
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "45.21.
|
|
12
|
+
packageVersion: "45.21.9",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -3,7 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
-
import { StorageClient } from '@atlaskit/frontend-utilities/
|
|
6
|
+
import { StorageClient } from '@atlaskit/frontend-utilities/StorageClient';
|
|
7
7
|
import { request } from '@atlaskit/linking-common';
|
|
8
8
|
import { cloudIdStorageItemKey } from './cloudIdStorageItemKey';
|
|
9
9
|
import { currentSiteCloudIdConstants } from './constants';
|
|
@@ -5,7 +5,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
6
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
-
import { StorageClient } from '@atlaskit/frontend-utilities/
|
|
8
|
+
import { StorageClient } from '@atlaskit/frontend-utilities/StorageClient';
|
|
9
9
|
import { personalizationConstants } from './constants';
|
|
10
10
|
var smartCardStorage = new StorageClient(personalizationConstants.PERSONALIZATION_STORAGE_SCOPE);
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export var context = {
|
|
4
4
|
componentName: 'smart-cards',
|
|
5
5
|
packageName: "@atlaskit/smart-card" || '',
|
|
6
|
-
packageVersion: "45.21.
|
|
6
|
+
packageVersion: "45.21.9" || ''
|
|
7
7
|
};
|
|
8
8
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
9
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { getResolvedAttributes } from '@atlaskit/link-analytics/resolved-attributes';
|
|
4
|
+
import { getResolvedAttributes } from '@atlaskit/link-analytics/get-resolved-attributes';
|
|
5
5
|
import { context } from './analytics';
|
|
6
6
|
var getExtendedResolvedAttributes = function getExtendedResolvedAttributes(linkDetails, details, linkStatus, error) {
|
|
7
7
|
var _details$meta$definit, _details$meta, _details$meta$resourc, _details$meta2;
|
package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useEffect, useMemo, useRef } from 'react';
|
|
6
|
-
import { StorageClient } from '@atlaskit/frontend-utilities/
|
|
6
|
+
import { StorageClient } from '@atlaskit/frontend-utilities/StorageClient';
|
|
7
7
|
var LOCAL_STORAGE_CLIENT_KEY = '@atlaskit/smart-card';
|
|
8
8
|
var LOCAL_STORAGE_DISCOVERY_KEY = 'action-discovery-ai-summarise';
|
|
9
9
|
var LOCAL_STORAGE_DISCOVERY_VALUE = 'discovered';
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "45.21.
|
|
15
|
+
packageVersion: "45.21.9",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { getResolvedAttributes } from '@atlaskit/link-analytics/get-resolved-attributes';
|
|
3
3
|
import { type context } from './analytics';
|
|
4
4
|
export type SmartLinkAnalyticsContextProps = {
|
|
5
5
|
children?: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "45.21.
|
|
3
|
+
"version": "45.21.9",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"analytics:codegen": "
|
|
34
|
+
"analytics:codegen": "afm workspace @atlassian/analytics-tooling analytics:codegen smart-card --output ./src/common/analytics/generated",
|
|
35
35
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/popup": "^6.3.0",
|
|
80
80
|
"@atlaskit/primitives": "^22.5.0",
|
|
81
81
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
82
|
-
"@atlaskit/react-ufo": "^7.
|
|
82
|
+
"@atlaskit/react-ufo": "^7.9.0",
|
|
83
83
|
"@atlaskit/rovo-triggers": "^10.32.0",
|
|
84
84
|
"@atlaskit/section-message": "^10.2.0",
|
|
85
85
|
"@atlaskit/select": "^22.11.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"@atlaskit/textfield": "^10.2.0",
|
|
91
91
|
"@atlaskit/theme": "^28.2.0",
|
|
92
92
|
"@atlaskit/tile": "^4.1.0",
|
|
93
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
94
|
-
"@atlaskit/tokens": "^16.
|
|
93
|
+
"@atlaskit/tmp-editor-statsig": "^187.0.0",
|
|
94
|
+
"@atlaskit/tokens": "^16.12.0",
|
|
95
95
|
"@atlaskit/tooltip": "^24.3.0",
|
|
96
96
|
"@atlaskit/ufo": "^1.2.0",
|
|
97
97
|
"@atlaskit/width-detector": "^7.2.0",
|