@atlaskit/smart-card 30.1.4 → 30.1.6

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,22 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 30.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#157758](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/157758)
8
+ [`27217ca737a9c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/27217ca737a9c) -
9
+ Internal clean-up following eslint config change
10
+ - Updated dependencies
11
+
12
+ ## 30.1.5
13
+
14
+ ### Patch Changes
15
+
16
+ - [#156360](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156360)
17
+ [`4432a076582e7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4432a076582e7) -
18
+ Enable import sorting
19
+
3
20
  ## 30.1.4
4
21
 
5
22
  ### Patch Changes
package/dist/cjs/ssr.js CHANGED
@@ -9,12 +9,12 @@ exports.CardSSR = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
- var _uuid = _interopRequireDefault(require("uuid"));
13
12
  var _reactErrorBoundary = require("react-error-boundary");
13
+ var _uuid = _interopRequireDefault(require("uuid"));
14
14
  var _analyticsNext = require("@atlaskit/analytics-next");
15
+ var _analytics = require("./utils/analytics/analytics");
15
16
  var _component = require("./view/CardWithUrl/component");
16
17
  var _LoadingCardLink = require("./view/CardWithUrl/component-lazy/LoadingCardLink");
17
- var _analytics = require("./utils/analytics/analytics");
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
20
  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; }
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "30.1.4"
25
+ packageVersion: "30.1.6"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "30.1.4",
20
+ packageVersion: "30.1.6",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -1,11 +1,10 @@
1
- import React from 'react';
2
- import { useState } from 'react';
3
- import uuid from 'uuid';
1
+ import React, { useState } from 'react';
4
2
  import { ErrorBoundary } from 'react-error-boundary';
3
+ import uuid from 'uuid';
5
4
  import { AnalyticsContext } from '@atlaskit/analytics-next';
5
+ import { context } from './utils/analytics/analytics';
6
6
  import { CardWithUrlContent } from './view/CardWithUrl/component';
7
7
  import { LoadingCardLink } from './view/CardWithUrl/component-lazy/LoadingCardLink';
8
- import { context } from './utils/analytics/analytics';
9
8
  // SSR friendly version of smart-card
10
9
  // simplifies the logic around rendering and loading placeholders and
11
10
  // only contains whats necessary to render the card on SSR mode
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "30.1.4"
7
+ packageVersion: "30.1.6"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -7,7 +7,7 @@ import LinkWarningModal from './LinkWarningModal';
7
7
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "30.1.4",
10
+ packageVersion: "30.1.6",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
package/dist/esm/ssr.js CHANGED
@@ -2,14 +2,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  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; }
4
4
  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; }
5
- import React from 'react';
6
- import { useState } from 'react';
7
- import uuid from 'uuid';
5
+ import React, { useState } from 'react';
8
6
  import { ErrorBoundary } from 'react-error-boundary';
7
+ import uuid from 'uuid';
9
8
  import { AnalyticsContext } from '@atlaskit/analytics-next';
9
+ import { context } from './utils/analytics/analytics';
10
10
  import { CardWithUrlContent } from './view/CardWithUrl/component';
11
11
  import { LoadingCardLink } from './view/CardWithUrl/component-lazy/LoadingCardLink';
12
- import { context } from './utils/analytics/analytics';
13
12
  // SSR friendly version of smart-card
14
13
  // simplifies the logic around rendering and loading placeholders and
15
14
  // only contains whats necessary to render the card on SSR mode
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "30.1.4"
18
+ packageVersion: "30.1.6"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "30.1.4",
13
+ packageVersion: "30.1.6",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -1,9 +1,9 @@
1
1
  import { type JsonLd } from 'json-ld-types';
2
- import { type RequestAccessMessageKey } from './messages';
3
2
  export type { CardContext } from '@atlaskit/link-provider';
4
- import type { LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
5
- import { type AccessContext } from './view/types';
3
+ import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
4
+ import { type RequestAccessMessageKey } from './messages';
6
5
  import { type ActionProps } from './view/BlockCard/components/Action';
6
+ import { type AccessContext } from './view/types';
7
7
  export type ResolveResponse = JsonLd.Response;
8
8
  export type { ProviderProps, CardType } from './state';
9
9
  export type { CardProps, CardAppearance, CardPlatform } from './view/Card/types';
@@ -1,9 +1,9 @@
1
1
  import { type JsonLd } from 'json-ld-types';
2
- import { type RequestAccessMessageKey } from './messages';
3
2
  export type { CardContext } from '@atlaskit/link-provider';
4
- import type { LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
5
- import { type AccessContext } from './view/types';
3
+ import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
4
+ import { type RequestAccessMessageKey } from './messages';
6
5
  import { type ActionProps } from './view/BlockCard/components/Action';
6
+ import { type AccessContext } from './view/types';
7
7
  export type ResolveResponse = JsonLd.Response;
8
8
  export type { ProviderProps, CardType } from './state';
9
9
  export type { CardProps, CardAppearance, CardPlatform } from './view/Card/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "30.1.4",
3
+ "version": "30.1.6",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/link-client-extension": "^2.4.0",
45
45
  "@atlaskit/link-extractors": "^1.9.0",
46
46
  "@atlaskit/linking-common": "^6.0.0",
47
- "@atlaskit/linking-types": "^9.2.0",
47
+ "@atlaskit/linking-types": "^9.3.0",
48
48
  "@atlaskit/logo": "^14.3.0",
49
49
  "@atlaskit/lozenge": "^11.12.0",
50
50
  "@atlaskit/menu": "^2.13.0",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/popup": "^1.29.0",
55
55
  "@atlaskit/primitives": "^12.2.0",
56
56
  "@atlaskit/section-message": "^6.6.0",
57
- "@atlaskit/select": "^18.3.0",
57
+ "@atlaskit/select": "^18.4.0",
58
58
  "@atlaskit/spinner": "^16.3.0",
59
59
  "@atlaskit/textarea": "^5.6.0",
60
60
  "@atlaskit/textfield": "^6.5.0",
@@ -131,6 +131,14 @@
131
131
  "color",
132
132
  "spacing"
133
133
  ]
134
+ },
135
+ "@atlassian/frontend": {
136
+ "import-structure": [
137
+ "atlassian-conventions"
138
+ ],
139
+ "circular-dependencies": [
140
+ "file-and-folder-level"
141
+ ]
134
142
  }
135
143
  },
136
144
  "typesVersions": {